Merge branch 'master' of git://factorcode.org/git/factor

db4
Doug Coleman 2010-01-22 19:40:59 -06:00
commit f0a4223ab4
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
USING: alien.syntax alien.c-types math vocabs.loader
classes.struct unix.types ;
classes.struct unix.types unix.time ;
IN: unix.ffi
CONSTANT: FD_SETSIZE 256
@ -127,6 +127,8 @@ CONSTANT: _UTX_LINESIZE 32
CONSTANT: _UTX_IDSIZE 4
CONSTANT: _UTX_HOSTSIZE 256
<<
CONSTANT: _SS_MAXSIZE 128
: _SS_ALIGNSIZE ( -- n )
@ -138,6 +140,8 @@ CONSTANT: _SS_MAXSIZE 128
: _SS_PAD2SIZE ( -- n )
_SS_MAXSIZE 2 - _SS_PAD1SIZE - _SS_ALIGNSIZE - ; inline
>>
STRUCT: sockaddr_storage
{ ss_len __uint8_t }
{ ss_family sa_family_t }