]> gitweb.factorcode.org Git - factor.git/blob - basis/unix/bsd/netbsd/structs/structs.factor
Merge branch 'master' of git://factorcode.org/git/factor into constraints
[factor.git] / basis / unix / bsd / netbsd / structs / structs.factor
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 ;
5 IN: unix
6
7 STRUCT: sockaddr_storage
8     { ss_len __uint8_t }
9     { ss_family sa_family_t }
10     { __ss_pad1 { char _SS_PAD1SIZE } }
11     { __ss_align __int64_t }
12     { __ss_pad2 { char _SS_PAD2SIZE } } ;
13
14 STRUCT: exit_struct
15     { e_termination uint16_t }
16     { e_exit uint16_t } ;
17
18 STRUCT: utmpx
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 }
24     { ut_type uint16_t }
25     { ut_pid pid_t }
26     { ut_exit exit_struct }
27     { ut_ss sockaddr_storage }
28     { ut_tv timeval }
29     { ut_pad { uint32_t 10 } } ;
30