Statistics
| Branch: | Revision:

root / linux-user / syscall_types.h @ 6a24a778

History | View | Annotate | Download (3.6 kB)

1 31e31b8a bellard
STRUCT_SPECIAL(termios)
2 31e31b8a bellard
3 31e31b8a bellard
STRUCT(winsize,
4 31e31b8a bellard
       TYPE_SHORT, TYPE_SHORT, TYPE_SHORT, TYPE_SHORT)
5 31e31b8a bellard
6 31e31b8a bellard
STRUCT(serial_multiport_struct,
7 31e31b8a bellard
       TYPE_INT, TYPE_INT, TYPE_CHAR, TYPE_CHAR, TYPE_INT, TYPE_CHAR, TYPE_CHAR,
8 5fafdf24 ths
       TYPE_INT, TYPE_CHAR, TYPE_CHAR, TYPE_INT, TYPE_CHAR, TYPE_CHAR, TYPE_INT,
9 31e31b8a bellard
       MK_ARRAY(TYPE_INT, 32))
10 31e31b8a bellard
11 31e31b8a bellard
STRUCT(serial_icounter_struct,
12 31e31b8a bellard
       TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT, MK_ARRAY(TYPE_INT, 16))
13 31e31b8a bellard
14 31e31b8a bellard
STRUCT(sockaddr,
15 31e31b8a bellard
       TYPE_SHORT, MK_ARRAY(TYPE_CHAR, 14))
16 31e31b8a bellard
17 31e31b8a bellard
STRUCT(rtentry,
18 5fafdf24 ths
       TYPE_ULONG, MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr),
19 5fafdf24 ths
       TYPE_SHORT, TYPE_SHORT, TYPE_ULONG, TYPE_PTRVOID, TYPE_SHORT, TYPE_PTRVOID,
20 31e31b8a bellard
       TYPE_ULONG, TYPE_ULONG, TYPE_SHORT)
21 31e31b8a bellard
22 31e31b8a bellard
STRUCT(ifmap,
23 5fafdf24 ths
       TYPE_ULONG, TYPE_ULONG, TYPE_SHORT, TYPE_CHAR, TYPE_CHAR, TYPE_CHAR,
24 31e31b8a bellard
       /* Spare 3 bytes */
25 31e31b8a bellard
       TYPE_CHAR, TYPE_CHAR, TYPE_CHAR)
26 31e31b8a bellard
27 31e31b8a bellard
/* The *_ifreq_list arrays deal with the fact that struct ifreq has unions */
28 31e31b8a bellard
29 31e31b8a bellard
STRUCT(sockaddr_ifreq,
30 31e31b8a bellard
       MK_ARRAY(TYPE_CHAR, IFNAMSIZ), MK_STRUCT(STRUCT_sockaddr))
31 3b46e624 ths
32 31e31b8a bellard
STRUCT(short_ifreq,
33 31e31b8a bellard
       MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_SHORT)
34 31e31b8a bellard
35 31e31b8a bellard
STRUCT(int_ifreq,
36 31e31b8a bellard
       MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT)
37 31e31b8a bellard
38 31e31b8a bellard
STRUCT(ifmap_ifreq,
39 31e31b8a bellard
       MK_ARRAY(TYPE_CHAR, IFNAMSIZ), MK_STRUCT(STRUCT_ifmap))
40 31e31b8a bellard
41 31e31b8a bellard
STRUCT(char_ifreq,
42 31e31b8a bellard
       MK_ARRAY(TYPE_CHAR, IFNAMSIZ),
43 31e31b8a bellard
       MK_ARRAY(TYPE_CHAR, IFNAMSIZ))
44 31e31b8a bellard
45 31e31b8a bellard
STRUCT(ptr_ifreq,
46 31e31b8a bellard
       MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_PTRVOID)
47 31e31b8a bellard
48 31e31b8a bellard
STRUCT(ifconf,
49 31e31b8a bellard
       TYPE_INT, TYPE_PTRVOID)
50 31e31b8a bellard
51 31e31b8a bellard
STRUCT(arpreq,
52 5fafdf24 ths
       MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr), TYPE_INT, MK_STRUCT(STRUCT_sockaddr),
53 31e31b8a bellard
       MK_ARRAY(TYPE_CHAR, 16))
54 31e31b8a bellard
55 31e31b8a bellard
STRUCT(arpreq_old,
56 31e31b8a bellard
       MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr), TYPE_INT, MK_STRUCT(STRUCT_sockaddr))
57 31e31b8a bellard
58 31e31b8a bellard
STRUCT(cdrom_read_audio,
59 31e31b8a bellard
       TYPE_CHAR, TYPE_CHAR, TYPE_CHAR, TYPE_CHAR, TYPE_CHAR, TYPE_INT, TYPE_PTRVOID,
60 31e31b8a bellard
       TYPE_NULL)
61 31e31b8a bellard
62 31e31b8a bellard
STRUCT(hd_geometry,
63 31e31b8a bellard
       TYPE_CHAR, TYPE_CHAR, TYPE_SHORT, TYPE_ULONG)
64 1a9353d2 bellard
65 1a9353d2 bellard
STRUCT(dirent,
66 1a9353d2 bellard
       TYPE_LONG, TYPE_LONG, TYPE_SHORT, MK_ARRAY(TYPE_CHAR, 256))
67 0221cfcd bellard
68 0221cfcd bellard
STRUCT(kbentry,
69 0221cfcd bellard
       TYPE_CHAR, TYPE_CHAR, TYPE_SHORT)
70 2521d698 bellard
71 53a5960a pbrook
STRUCT(kbsentry,
72 53a5960a pbrook
       TYPE_CHAR, MK_ARRAY(TYPE_CHAR, 512))
73 53a5960a pbrook
74 2521d698 bellard
STRUCT(audio_buf_info,
75 2521d698 bellard
       TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT)
76 2521d698 bellard
77 2521d698 bellard
STRUCT(count_info,
78 2521d698 bellard
       TYPE_INT, TYPE_INT, TYPE_INT)
79 2521d698 bellard
80 2521d698 bellard
STRUCT(mixer_info,
81 2521d698 bellard
       MK_ARRAY(TYPE_CHAR, 16), MK_ARRAY(TYPE_CHAR, 32), TYPE_INT, MK_ARRAY(TYPE_INT, 10))
82 b8005914 balrog
83 b8005914 balrog
/* loop device ioctls */
84 b8005914 balrog
STRUCT(loop_info,
85 b8005914 balrog
       TYPE_INT,                 /* lo_number */
86 b8005914 balrog
       TYPE_SHORT,               /* lo_device */
87 b8005914 balrog
       TYPE_ULONG,               /* lo_inode */
88 b8005914 balrog
       TYPE_SHORT,               /* lo_rdevice */
89 b8005914 balrog
       TYPE_INT,                 /* lo_offset */
90 b8005914 balrog
       TYPE_INT,                 /* lo_encrypt_type */
91 b8005914 balrog
       TYPE_INT,                 /* lo_encrypt_key_size */
92 b8005914 balrog
       TYPE_INT,                 /* lo_flags */
93 b8005914 balrog
       MK_ARRAY(TYPE_CHAR, 64),  /* lo_name */
94 b8005914 balrog
       MK_ARRAY(TYPE_CHAR, 32),  /* lo_encrypt_key */
95 b8005914 balrog
       MK_ARRAY(TYPE_ULONG, 2),  /* lo_init */
96 b8005914 balrog
       MK_ARRAY(TYPE_CHAR, 4))   /* reserved */
97 b8005914 balrog
98 b8005914 balrog
STRUCT(loop_info64,
99 b8005914 balrog
       TYPE_ULONGLONG,           /* lo_device */
100 b8005914 balrog
       TYPE_ULONGLONG,           /* lo_inode */
101 b8005914 balrog
       TYPE_ULONGLONG,           /* lo_rdevice */
102 b8005914 balrog
       TYPE_ULONGLONG,           /* lo_offset */
103 b8005914 balrog
       TYPE_ULONG,               /* lo_number */
104 b8005914 balrog
       TYPE_ULONG,               /* lo_encrypt_type */
105 b8005914 balrog
       TYPE_ULONG,               /* lo_encrypt_key_size */
106 b8005914 balrog
       TYPE_ULONG,               /* lo_flags */
107 b8005914 balrog
       MK_ARRAY(TYPE_CHAR, 64),  /* lo_name */
108 b8005914 balrog
       MK_ARRAY(TYPE_CHAR, 64),  /* lo_crypt_name */
109 b8005914 balrog
       MK_ARRAY(TYPE_CHAR, 32),  /* lo_encrypt_key */
110 b8005914 balrog
       MK_ARRAY(TYPE_ULONGLONG, 2))  /* lo_init */