1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.c-types alien.syntax unix.time unix.types
4 unix.types.netbsd classes.struct ;
7 STRUCT: sockaddr_storage
9 { ss_family sa_family_t }
10 { __ss_pad1 { char _SS_PAD1SIZE } }
11 { __ss_align __int64_t }
12 { __ss_pad2 { char _SS_PAD2SIZE } } ;
15 { e_termination uint16_t }
19 { ut_user { char _UTX_USERSIZE } }
20 { ut_id { char _UTX_IDSIZE } }
21 { ut_line { char _UTX_LINESIZE } }
22 { ut_host { char _UTX_HOSTSIZE } }
23 { ut_session uint16_t }
26 { ut_exit exit_struct }
27 { ut_ss sockaddr_storage }
29 { ut_pad { uint32_t 10 } } ;