1 USING: alien.syntax alien.c-types math vocabs.loader
2 classes.struct unix.types unix.time ;
5 CONSTANT: FD_SETSIZE 256
18 { d_fileno __uint32_t }
19 { d_reclen __uint16_t }
21 { d_namlen __uint8_t }
22 { d_name char[256] } ;
59 ALIAS: EWOULDBLOCK EAGAIN
60 CONSTANT: EINPROGRESS 36
63 CONSTANT: EDESTADDRREQ 39
65 CONSTANT: EPROTOTYPE 41
66 CONSTANT: ENOPROTOOPT 42
67 CONSTANT: EPROTONOSUPPORT 43
68 CONSTANT: ESOCKTNOSUPPORT 44
69 CONSTANT: EOPNOTSUPP 45
70 CONSTANT: EPFNOSUPPORT 46
71 CONSTANT: EAFNOSUPPORT 47
72 CONSTANT: EADDRINUSE 48
73 CONSTANT: EADDRNOTAVAIL 49
75 CONSTANT: ENETUNREACH 51
76 CONSTANT: ENETRESET 52
77 CONSTANT: ECONNABORTED 53
78 CONSTANT: ECONNRESET 54
82 CONSTANT: ESHUTDOWN 58
83 CONSTANT: ETOOMANYREFS 59
84 CONSTANT: ETIMEDOUT 60
85 CONSTANT: ECONNREFUSED 61
87 CONSTANT: ENAMETOOLONG 63
88 CONSTANT: EHOSTDOWN 64
89 CONSTANT: EHOSTUNREACH 65
90 CONSTANT: ENOTEMPTY 66
97 CONSTANT: ERPCMISMATCH 73
98 CONSTANT: EPROGUNAVAIL 74
99 CONSTANT: EPROGMISMATCH 75
100 CONSTANT: EPROCUNAVAIL 76
105 CONSTANT: ENEEDAUTH 81
108 CONSTANT: EOVERFLOW 84
111 CONSTANT: ECANCELED 87
118 CONSTANT: EMULTIHOP 94
123 TYPEDEF: __uint8_t sa_family_t
125 CONSTANT: _UTX_USERSIZE 32
126 CONSTANT: _UTX_LINESIZE 32
127 CONSTANT: _UTX_IDSIZE 4
128 CONSTANT: _UTX_HOSTSIZE 256
132 CONSTANT: _SS_MAXSIZE 128
134 : _SS_ALIGNSIZE ( -- n )
135 __int64_t heap-size ; inline
137 : _SS_PAD1SIZE ( -- n )
138 _SS_ALIGNSIZE 2 - ; inline
140 : _SS_PAD2SIZE ( -- n )
141 _SS_MAXSIZE 2 - _SS_PAD1SIZE - _SS_ALIGNSIZE - ; inline
145 STRUCT: sockaddr_storage
147 { ss_family sa_family_t }
148 { __ss_pad1 { char _SS_PAD1SIZE } }
149 { __ss_align __int64_t }
150 { __ss_pad2 { char _SS_PAD2SIZE } } ;
153 { e_termination uint16_t }
154 { e_exit uint16_t } ;
157 { ut_user { char _UTX_USERSIZE } }
158 { ut_id { char _UTX_IDSIZE } }
159 { ut_line { char _UTX_LINESIZE } }
160 { ut_host { char _UTX_HOSTSIZE } }
161 { ut_session uint16_t }
164 { ut_exit exit_struct }
165 { ut_ss sockaddr_storage }
167 { ut_pad { uint32_t 10 } } ;