darcs patch: Use CSockLen when appropriate (and 2 more)

Lennart Kolmodin kolmodin at dtek.chalmers.se
Sat Sep 8 06:20:51 EDT 2007


Wed Sep  5 22:30:41 CEST 2007  Lennart Kolmodin <kolmodin at dtek.chalmers.se>
  * Use CSockLen when appropriate

Thu Sep  6 06:21:13 CEST 2007  Lennart Kolmodin <kolmodin at dtek.chalmers.se>
  * alloca and poke is a 'with'

Sat Sep  8 12:02:17 CEST 2007  Lennart Kolmodin <kolmodin at dtek.chalmers.se>
  * Fix abstract unix sockets
  Using abstract unix sockets is a bit different than regular unix sockets.
  Abstract unix sockets are identified with that the path starts with a zero
  and doesn't have the trailing zero.
  
  Thus, this patch contains the following changes:
  1) Correctly count the bytes used in a unix socket address.
  2) Make peekSockAddr aware the socked address length.
       The old implementation relied on a zero terminated path, which abstract
       unix sockets are not.
  3) Update other functions to respect address length.
  4) A bit of cleanup and use of CSockLen instead of CInt.
  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 10560 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/libraries/attachments/20070908/dbc5de44/attachment.bin


More information about the Libraries mailing list