factor/extra/unix/bsd/macosx/macosx.factor

28 lines
610 B
Factor
Raw Normal View History

2008-03-30 11:55:47 -04:00
USING: alien.syntax ;
IN: unix
: FD_SETSIZE 1024 ; inline
2008-03-30 11:55:47 -04:00
C-STRUCT: addrinfo
{ "int" "flags" }
{ "int" "family" }
{ "int" "socktype" }
{ "int" "protocol" }
{ "socklen_t" "addrlen" }
{ "char*" "canonname" }
{ "void*" "addr" }
{ "addrinfo*" "next" } ;
2008-05-20 12:41:20 -04:00
C-STRUCT: passwd
{ "char*" "pw_name" }
{ "char*" "pw_passwd" }
{ "uid_t" "pw_uid" }
{ "gid_t" "pw_gid" }
{ "time_t" "pw_change" }
{ "char*" "pw_class" }
{ "char*" "pw_gecos" }
{ "char*" "pw_dir" }
{ "char*" "pw_shell" }
{ "time_t" "pw_expire" }
{ "int" "pw_fields" } ;