[fpc-devel]possible bug in sockets.pp

Thomas.Hergenhahn at nexans.com Thomas.Hergenhahn at nexans.com
Fri Nov 2 08:40:48 CET 2001


When I tried to open a socket in the unix domain bind(Sock, Addr, SizeOf(Addr)) returned the error "invalid argument", but I could not find what was wrong with my code. When I changed the definition of TUnixSockAddr in sockets.pp from:

type
  TUnixSockAddr = packed Record
    family:word; { was byte, fixed }
    path:array[0..108] of char;
    end;
    
to:
type
  TUnixSockAddr = packed Record
    family:word; { was byte, fixed }
    path:array[0..107] of char;
    end;    

bind works fine.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WINMAIL.DAT
Type: application/ms-tnef
Size: 1179 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20011102/b0bbb618/attachment.bin>


More information about the fpc-devel mailing list