Revision 86cc1ce0
b/linux-user/alpha/syscall.h | ||
---|---|---|
1 |
/* default linux values for the selectors */ |
|
2 |
#define __USER_DS (1) |
|
3 |
|
|
4 |
struct target_pt_regs { |
|
5 |
target_ulong r0; |
|
6 |
target_ulong r1; |
|
7 |
target_ulong r2; |
|
8 |
target_ulong r3; |
|
9 |
target_ulong r4; |
|
10 |
target_ulong r5; |
|
11 |
target_ulong r6; |
|
12 |
target_ulong r7; |
|
13 |
target_ulong r8; |
|
14 |
target_ulong r19; |
|
15 |
target_ulong r20; |
|
16 |
target_ulong r21; |
|
17 |
target_ulong r22; |
|
18 |
target_ulong r23; |
|
19 |
target_ulong r24; |
|
20 |
target_ulong r25; |
|
21 |
target_ulong r26; |
|
22 |
target_ulong r27; |
|
23 |
target_ulong r28; |
|
24 |
target_ulong hae; |
|
25 |
/* JRP - These are the values provided to a0-a2 by PALcode */ |
|
26 |
target_ulong trap_a0; |
|
27 |
target_ulong trap_a1; |
|
28 |
target_ulong trap_a2; |
|
29 |
/* These are saved by PAL-code: */ |
|
30 |
target_ulong ps; |
|
31 |
target_ulong pc; |
|
32 |
target_ulong gp; |
|
33 |
target_ulong r16; |
|
34 |
target_ulong r17; |
|
35 |
target_ulong r18; |
|
36 |
/* Those is needed by qemu to temporary store the user stack pointer */ |
|
37 |
target_ulong usp; |
|
38 |
target_ulong unique; |
|
39 |
}; |
|
40 |
|
|
41 |
#define TARGET_SEMOP 1 |
|
42 |
#define TARGET_SEMGET 2 |
|
43 |
#define TARGET_SEMCTL 3 |
|
44 |
#define TARGET_MSGSND 11 |
|
45 |
#define TARGET_MSGRCV 12 |
|
46 |
#define TARGET_MSGGET 13 |
|
47 |
#define TARGET_MSGCTL 14 |
|
48 |
#define TARGET_SHMAT 21 |
|
49 |
#define TARGET_SHMDT 22 |
|
50 |
#define TARGET_SHMGET 23 |
|
51 |
#define TARGET_SHMCTL 24 |
|
52 |
|
|
53 |
struct target_msgbuf { |
|
54 |
int mtype; |
|
55 |
char mtext[1]; |
|
56 |
}; |
|
57 |
|
|
58 |
struct target_ipc_kludge { |
|
59 |
unsigned int msgp; /* Really (struct msgbuf *) */ |
|
60 |
int msgtyp; |
|
61 |
}; |
|
62 |
|
|
63 |
struct target_ipc_perm { |
|
64 |
int key; |
|
65 |
unsigned short uid; |
|
66 |
unsigned short gid; |
|
67 |
unsigned short cuid; |
|
68 |
unsigned short cgid; |
|
69 |
unsigned short mode; |
|
70 |
unsigned short seq; |
|
71 |
}; |
|
72 |
|
|
73 |
struct target_msqid_ds { |
|
74 |
struct target_ipc_perm msg_perm; |
|
75 |
unsigned int msg_first; /* really struct target_msg* */ |
|
76 |
unsigned int msg_last; /* really struct target_msg* */ |
|
77 |
unsigned int msg_stime; /* really target_time_t */ |
|
78 |
unsigned int msg_rtime; /* really target_time_t */ |
|
79 |
unsigned int msg_ctime; /* really target_time_t */ |
|
80 |
unsigned int wwait; /* really struct wait_queue* */ |
|
81 |
unsigned int rwait; /* really struct wait_queue* */ |
|
82 |
unsigned short msg_cbytes; |
|
83 |
unsigned short msg_qnum; |
|
84 |
unsigned short msg_qbytes; |
|
85 |
unsigned short msg_lspid; |
|
86 |
unsigned short msg_lrpid; |
|
87 |
}; |
|
88 |
|
|
89 |
struct target_shmid_ds { |
|
90 |
struct target_ipc_perm shm_perm; |
|
91 |
int shm_segsz; |
|
92 |
unsigned int shm_atime; /* really target_time_t */ |
|
93 |
unsigned int shm_dtime; /* really target_time_t */ |
|
94 |
unsigned int shm_ctime; /* really target_time_t */ |
|
95 |
unsigned short shm_cpid; |
|
96 |
unsigned short shm_lpid; |
|
97 |
short shm_nattch; |
|
98 |
unsigned short shm_npages; |
|
99 |
unsigned long *shm_pages; |
|
100 |
void *attaches; /* really struct shm_desc * */ |
|
101 |
}; |
|
102 |
|
|
103 |
#define TARGET_IPC_RMID 0 |
|
104 |
#define TARGET_IPC_SET 1 |
|
105 |
#define TARGET_IPC_STAT 2 |
|
106 |
|
|
107 |
union target_semun { |
|
108 |
int val; |
|
109 |
unsigned int buf; /* really struct semid_ds * */ |
|
110 |
unsigned int array; /* really unsigned short * */ |
|
111 |
unsigned int __buf; /* really struct seminfo * */ |
|
112 |
unsigned int __pad; /* really void* */ |
|
113 |
}; |
|
114 |
|
|
115 |
#define UNAME_MACHINE "alpha" |
b/linux-user/alpha/syscall_nr.h | ||
---|---|---|
1 |
#define TARGET_NR_osf_syscall 0 /* not implemented */ |
|
2 |
#define TARGET_NR_exit 1 |
|
3 |
#define TARGET_NR_fork 2 |
|
4 |
#define TARGET_NR_read 3 |
|
5 |
#define TARGET_NR_write 4 |
|
6 |
#define TARGET_NR_osf_old_open 5 /* not implemented */ |
|
7 |
#define TARGET_NR_close 6 |
|
8 |
#define TARGET_NR_osf_wait4 7 |
|
9 |
#define TARGET_NR_osf_old_creat 8 /* not implemented */ |
|
10 |
#define TARGET_NR_link 9 |
|
11 |
#define TARGET_NR_unlink 10 |
|
12 |
#define TARGET_NR_osf_execve 11 /* not implemented */ |
|
13 |
#define TARGET_NR_chdir 12 |
|
14 |
#define TARGET_NR_fchdir 13 |
|
15 |
#define TARGET_NR_mknod 14 |
|
16 |
#define TARGET_NR_chmod 15 |
|
17 |
#define TARGET_NR_chown 16 |
|
18 |
#define TARGET_NR_brk 17 |
|
19 |
#define TARGET_NR_osf_getfsstat 18 /* not implemented */ |
|
20 |
#define TARGET_NR_lseek 19 |
|
21 |
#define TARGET_NR_getxpid 20 |
|
22 |
#define TARGET_NR_osf_mount 21 |
|
23 |
#define TARGET_NR_umount 22 |
|
24 |
#define TARGET_NR_setuid 23 |
|
25 |
#define TARGET_NR_getxuid 24 |
|
26 |
#define TARGET_NR_exec_with_loader 25 /* not implemented */ |
|
27 |
#define TARGET_NR_ptrace 26 |
|
28 |
#define TARGET_NR_osf_nrecvmsg 27 /* not implemented */ |
|
29 |
#define TARGET_NR_osf_nsendmsg 28 /* not implemented */ |
|
30 |
#define TARGET_NR_osf_nrecvfrom 29 /* not implemented */ |
|
31 |
#define TARGET_NR_osf_naccept 30 /* not implemented */ |
|
32 |
#define TARGET_NR_osf_ngetpeername 31 /* not implemented */ |
|
33 |
#define TARGET_NR_osf_ngetsockname 32 /* not implemented */ |
|
34 |
#define TARGET_NR_access 33 |
|
35 |
#define TARGET_NR_osf_chflags 34 /* not implemented */ |
|
36 |
#define TARGET_NR_osf_fchflags 35 /* not implemented */ |
|
37 |
#define TARGET_NR_sync 36 |
|
38 |
#define TARGET_NR_kill 37 |
|
39 |
#define TARGET_NR_osf_old_stat 38 /* not implemented */ |
|
40 |
#define TARGET_NR_setpgid 39 |
|
41 |
#define TARGET_NR_osf_old_lstat 40 /* not implemented */ |
|
42 |
#define TARGET_NR_dup 41 |
|
43 |
#define TARGET_NR_pipe 42 |
|
44 |
#define TARGET_NR_osf_set_program_attributes 43 |
|
45 |
#define TARGET_NR_osf_profil 44 /* not implemented */ |
|
46 |
#define TARGET_NR_open 45 |
|
47 |
#define TARGET_NR_osf_old_sigaction 46 /* not implemented */ |
|
48 |
#define TARGET_NR_getxgid 47 |
|
49 |
#define TARGET_NR_osf_sigprocmask 48 |
|
50 |
#define TARGET_NR_osf_getlogin 49 /* not implemented */ |
|
51 |
#define TARGET_NR_osf_setlogin 50 /* not implemented */ |
|
52 |
#define TARGET_NR_acct 51 |
|
53 |
#define TARGET_NR_sigpending 52 |
|
54 |
|
|
55 |
#define TARGET_NR_ioctl 54 |
|
56 |
#define TARGET_NR_osf_reboot 55 /* not implemented */ |
|
57 |
#define TARGET_NR_osf_revoke 56 /* not implemented */ |
|
58 |
#define TARGET_NR_symlink 57 |
|
59 |
#define TARGET_NR_readlink 58 |
|
60 |
#define TARGET_NR_execve 59 |
|
61 |
#define TARGET_NR_umask 60 |
|
62 |
#define TARGET_NR_chroot 61 |
|
63 |
#define TARGET_NR_osf_old_fstat 62 /* not implemented */ |
|
64 |
#define TARGET_NR_getpgrp 63 |
|
65 |
#define TARGET_NR_getpagesize 64 |
|
66 |
#define TARGET_NR_osf_mremap 65 /* not implemented */ |
|
67 |
#define TARGET_NR_vfork 66 |
|
68 |
#define TARGET_NR_stat 67 |
|
69 |
#define TARGET_NR_lstat 68 |
|
70 |
#define TARGET_NR_osf_sbrk 69 /* not implemented */ |
|
71 |
#define TARGET_NR_osf_sstk 70 /* not implemented */ |
|
72 |
#define TARGET_NR_mmap 71 /* OSF/1 mmap is superset of Linux */ |
|
73 |
#define TARGET_NR_osf_old_vadvise 72 /* not implemented */ |
|
74 |
#define TARGET_NR_munmap 73 |
|
75 |
#define TARGET_NR_mprotect 74 |
|
76 |
#define TARGET_NR_madvise 75 |
|
77 |
#define TARGET_NR_vhangup 76 |
|
78 |
#define TARGET_NR_osf_kmodcall 77 /* not implemented */ |
|
79 |
#define TARGET_NR_osf_mincore 78 /* not implemented */ |
|
80 |
#define TARGET_NR_getgroups 79 |
|
81 |
#define TARGET_NR_setgroups 80 |
|
82 |
#define TARGET_NR_osf_old_getpgrp 81 /* not implemented */ |
|
83 |
#define TARGET_NR_setpgrp 82 /* BSD alias for setpgid */ |
|
84 |
#define TARGET_NR_osf_setitimer 83 |
|
85 |
#define TARGET_NR_osf_old_wait 84 /* not implemented */ |
|
86 |
#define TARGET_NR_osf_table 85 /* not implemented */ |
|
87 |
#define TARGET_NR_osf_getitimer 86 |
|
88 |
#define TARGET_NR_gethostname 87 |
|
89 |
#define TARGET_NR_sethostname 88 |
|
90 |
#define TARGET_NR_getdtablesize 89 |
|
91 |
#define TARGET_NR_dup2 90 |
|
92 |
#define TARGET_NR_fstat 91 |
|
93 |
#define TARGET_NR_fcntl 92 |
|
94 |
#define TARGET_NR_osf_select 93 |
|
95 |
#define TARGET_NR_poll 94 |
|
96 |
#define TARGET_NR_fsync 95 |
|
97 |
#define TARGET_NR_setpriority 96 |
|
98 |
#define TARGET_NR_socket 97 |
|
99 |
#define TARGET_NR_connect 98 |
|
100 |
#define TARGET_NR_accept 99 |
|
101 |
#define TARGET_NR_getpriority 100 |
|
102 |
#define TARGET_NR_send 101 |
|
103 |
#define TARGET_NR_recv 102 |
|
104 |
#define TARGET_NR_sigreturn 103 |
|
105 |
#define TARGET_NR_bind 104 |
|
106 |
#define TARGET_NR_setsockopt 105 |
|
107 |
#define TARGET_NR_listen 106 |
|
108 |
#define TARGET_NR_osf_plock 107 /* not implemented */ |
|
109 |
#define TARGET_NR_osf_old_sigvec 108 /* not implemented */ |
|
110 |
#define TARGET_NR_osf_old_sigblock 109 /* not implemented */ |
|
111 |
#define TARGET_NR_osf_old_sigsetmask 110 /* not implemented */ |
|
112 |
#define TARGET_NR_sigsuspend 111 |
|
113 |
#define TARGET_NR_osf_sigstack 112 |
|
114 |
#define TARGET_NR_recvmsg 113 |
|
115 |
#define TARGET_NR_sendmsg 114 |
|
116 |
#define TARGET_NR_osf_old_vtrace 115 /* not implemented */ |
|
117 |
#define TARGET_NR_osf_gettimeofday 116 |
|
118 |
#define TARGET_NR_osf_getrusage 117 |
|
119 |
#define TARGET_NR_getsockopt 118 |
|
120 |
|
|
121 |
#define TARGET_NR_readv 120 |
|
122 |
#define TARGET_NR_writev 121 |
|
123 |
#define TARGET_NR_osf_settimeofday 122 |
|
124 |
#define TARGET_NR_fchown 123 |
|
125 |
#define TARGET_NR_fchmod 124 |
|
126 |
#define TARGET_NR_recvfrom 125 |
|
127 |
#define TARGET_NR_setreuid 126 |
|
128 |
#define TARGET_NR_setregid 127 |
|
129 |
#define TARGET_NR_rename 128 |
|
130 |
#define TARGET_NR_truncate 129 |
|
131 |
#define TARGET_NR_ftruncate 130 |
|
132 |
#define TARGET_NR_flock 131 |
|
133 |
#define TARGET_NR_setgid 132 |
|
134 |
#define TARGET_NR_sendto 133 |
|
135 |
#define TARGET_NR_shutdown 134 |
|
136 |
#define TARGET_NR_socketpair 135 |
|
137 |
#define TARGET_NR_mkdir 136 |
|
138 |
#define TARGET_NR_rmdir 137 |
|
139 |
#define TARGET_NR_osf_utimes 138 |
|
140 |
#define TARGET_NR_osf_old_sigreturn 139 /* not implemented */ |
|
141 |
#define TARGET_NR_osf_adjtime 140 /* not implemented */ |
|
142 |
#define TARGET_NR_getpeername 141 |
|
143 |
#define TARGET_NR_osf_gethostid 142 /* not implemented */ |
|
144 |
#define TARGET_NR_osf_sethostid 143 /* not implemented */ |
|
145 |
#define TARGET_NR_getrlimit 144 |
|
146 |
#define TARGET_NR_setrlimit 145 |
|
147 |
#define TARGET_NR_osf_old_killpg 146 /* not implemented */ |
|
148 |
#define TARGET_NR_setsid 147 |
|
149 |
#define TARGET_NR_quotactl 148 |
|
150 |
#define TARGET_NR_osf_oldquota 149 /* not implemented */ |
|
151 |
#define TARGET_NR_getsockname 150 |
|
152 |
|
|
153 |
#define TARGET_NR_osf_pid_block 153 /* not implemented */ |
|
154 |
#define TARGET_NR_osf_pid_unblock 154 /* not implemented */ |
|
155 |
|
|
156 |
#define TARGET_NR_sigaction 156 |
|
157 |
#define TARGET_NR_osf_sigwaitprim 157 /* not implemented */ |
|
158 |
#define TARGET_NR_osf_nfssvc 158 /* not implemented */ |
|
159 |
#define TARGET_NR_osf_getdirentries 159 |
|
160 |
#define TARGET_NR_osf_statfs 160 |
|
161 |
#define TARGET_NR_osf_fstatfs 161 |
|
162 |
|
|
163 |
#define TARGET_NR_osf_asynch_daemon 163 /* not implemented */ |
|
164 |
#define TARGET_NR_osf_getfh 164 /* not implemented */ |
|
165 |
#define TARGET_NR_osf_getdomainname 165 |
|
166 |
#define TARGET_NR_setdomainname 166 |
|
167 |
|
|
168 |
#define TARGET_NR_osf_exportfs 169 /* not implemented */ |
|
169 |
|
|
170 |
#define TARGET_NR_osf_alt_plock 181 /* not implemented */ |
|
171 |
|
|
172 |
#define TARGET_NR_osf_getmnt 184 /* not implemented */ |
|
173 |
|
|
174 |
#define TARGET_NR_osf_alt_sigpending 187 /* not implemented */ |
|
175 |
#define TARGET_NR_osf_alt_setsid 188 /* not implemented */ |
|
176 |
|
|
177 |
#define TARGET_NR_osf_swapon 199 |
|
178 |
#define TARGET_NR_msgctl 200 |
|
179 |
#define TARGET_NR_msgget 201 |
|
180 |
#define TARGET_NR_msgrcv 202 |
|
181 |
#define TARGET_NR_msgsnd 203 |
|
182 |
#define TARGET_NR_semctl 204 |
|
183 |
#define TARGET_NR_semget 205 |
|
184 |
#define TARGET_NR_semop 206 |
|
185 |
#define TARGET_NR_osf_utsname 207 |
|
186 |
#define TARGET_NR_lchown 208 |
|
187 |
#define TARGET_NR_osf_shmat 209 |
|
188 |
#define TARGET_NR_shmctl 210 |
|
189 |
#define TARGET_NR_shmdt 211 |
|
190 |
#define TARGET_NR_shmget 212 |
|
191 |
#define TARGET_NR_osf_mvalid 213 /* not implemented */ |
|
192 |
#define TARGET_NR_osf_getaddressconf 214 /* not implemented */ |
|
193 |
#define TARGET_NR_osf_msleep 215 /* not implemented */ |
|
194 |
#define TARGET_NR_osf_mwakeup 216 /* not implemented */ |
|
195 |
#define TARGET_NR_msync 217 |
|
196 |
#define TARGET_NR_osf_signal 218 /* not implemented */ |
|
197 |
#define TARGET_NR_osf_utc_gettime 219 /* not implemented */ |
|
198 |
#define TARGET_NR_osf_utc_adjtime 220 /* not implemented */ |
|
199 |
|
|
200 |
#define TARGET_NR_osf_security 222 /* not implemented */ |
|
201 |
#define TARGET_NR_osf_kloadcall 223 /* not implemented */ |
|
202 |
|
|
203 |
#define TARGET_NR_getpgid 233 |
|
204 |
#define TARGET_NR_getsid 234 |
|
205 |
#define TARGET_NR_sigaltstack 235 |
|
206 |
#define TARGET_NR_osf_waitid 236 /* not implemented */ |
|
207 |
#define TARGET_NR_osf_priocntlset 237 /* not implemented */ |
|
208 |
#define TARGET_NR_osf_sigsendset 238 /* not implemented */ |
|
209 |
#define TARGET_NR_osf_set_speculative 239 /* not implemented */ |
|
210 |
#define TARGET_NR_osf_msfs_syscall 240 /* not implemented */ |
|
211 |
#define TARGET_NR_osf_sysinfo 241 |
|
212 |
#define TARGET_NR_osf_uadmin 242 /* not implemented */ |
|
213 |
#define TARGET_NR_osf_fuser 243 /* not implemented */ |
|
214 |
#define TARGET_NR_osf_proplist_syscall 244 |
|
215 |
#define TARGET_NR_osf_ntp_adjtime 245 /* not implemented */ |
|
216 |
#define TARGET_NR_osf_ntp_gettime 246 /* not implemented */ |
|
217 |
#define TARGET_NR_osf_pathconf 247 /* not implemented */ |
|
218 |
#define TARGET_NR_osf_fpathconf 248 /* not implemented */ |
|
219 |
|
|
220 |
#define TARGET_NR_osf_uswitch 250 /* not implemented */ |
|
221 |
#define TARGET_NR_osf_usleep_thread 251 |
|
222 |
#define TARGET_NR_osf_audcntl 252 /* not implemented */ |
|
223 |
#define TARGET_NR_osf_audgen 253 /* not implemented */ |
|
224 |
#define TARGET_NR_sysfs 254 |
|
225 |
#define TARGET_NR_osf_subsys_info 255 /* not implemented */ |
|
226 |
#define TARGET_NR_osf_getsysinfo 256 |
|
227 |
#define TARGET_NR_osf_setsysinfo 257 |
|
228 |
#define TARGET_NR_osf_afs_syscall 258 /* not implemented */ |
|
229 |
#define TARGET_NR_osf_swapctl 259 /* not implemented */ |
|
230 |
#define TARGET_NR_osf_memcntl 260 /* not implemented */ |
|
231 |
#define TARGET_NR_osf_fdatasync 261 /* not implemented */ |
|
232 |
|
|
233 |
|
|
234 |
/* |
|
235 |
* Linux-specific system calls begin at 300 |
|
236 |
*/ |
|
237 |
#define TARGET_NR_bdflush 300 |
|
238 |
#define TARGET_NR_sethae 301 |
|
239 |
#define TARGET_NR_mount 302 |
|
240 |
#define TARGET_NR_old_adjtimex 303 |
|
241 |
#define TARGET_NR_swapoff 304 |
|
242 |
#define TARGET_NR_getdents 305 |
|
243 |
#define TARGET_NR_create_module 306 |
|
244 |
#define TARGET_NR_init_module 307 |
|
245 |
#define TARGET_NR_delete_module 308 |
|
246 |
#define TARGET_NR_get_kernel_syms 309 |
|
247 |
#define TARGET_NR_syslog 310 |
|
248 |
#define TARGET_NR_reboot 311 |
|
249 |
#define TARGET_NR_clone 312 |
|
250 |
#define TARGET_NR_uselib 313 |
|
251 |
#define TARGET_NR_mlock 314 |
|
252 |
#define TARGET_NR_munlock 315 |
|
253 |
#define TARGET_NR_mlockall 316 |
|
254 |
#define TARGET_NR_munlockall 317 |
|
255 |
#define TARGET_NR_sysinfo 318 |
|
256 |
#define TARGET_NR__sysctl 319 |
|
257 |
/* 320 was sys_idle. */ |
|
258 |
#define TARGET_NR_oldumount 321 |
|
259 |
#define TARGET_NR_swapon 322 |
|
260 |
#define TARGET_NR_times 323 |
|
261 |
#define TARGET_NR_personality 324 |
|
262 |
#define TARGET_NR_setfsuid 325 |
|
263 |
#define TARGET_NR_setfsgid 326 |
|
264 |
#define TARGET_NR_ustat 327 |
|
265 |
#define TARGET_NR_statfs 328 |
|
266 |
#define TARGET_NR_fstatfs 329 |
|
267 |
#define TARGET_NR_sched_setparam 330 |
|
268 |
#define TARGET_NR_sched_getparam 331 |
|
269 |
#define TARGET_NR_sched_setscheduler 332 |
|
270 |
#define TARGET_NR_sched_getscheduler 333 |
|
271 |
#define TARGET_NR_sched_yield 334 |
|
272 |
#define TARGET_NR_sched_get_priority_max 335 |
|
273 |
#define TARGET_NR_sched_get_priority_min 336 |
|
274 |
#define TARGET_NR_sched_rr_get_interval 337 |
|
275 |
#define TARGET_NR_afs_syscall 338 |
|
276 |
#define TARGET_NR_uname 339 |
|
277 |
#define TARGET_NR_nanosleep 340 |
|
278 |
#define TARGET_NR_mremap 341 |
|
279 |
#define TARGET_NR_nfsservctl 342 |
|
280 |
#define TARGET_NR_setresuid 343 |
|
281 |
#define TARGET_NR_getresuid 344 |
|
282 |
#define TARGET_NR_pciconfig_read 345 |
|
283 |
#define TARGET_NR_pciconfig_write 346 |
|
284 |
#define TARGET_NR_query_module 347 |
|
285 |
#define TARGET_NR_prctl 348 |
|
286 |
#define TARGET_NR_pread64 349 |
|
287 |
#define TARGET_NR_pwrite64 350 |
|
288 |
#define TARGET_NR_rt_sigreturn 351 |
|
289 |
#define TARGET_NR_rt_sigaction 352 |
|
290 |
#define TARGET_NR_rt_sigprocmask 353 |
|
291 |
#define TARGET_NR_rt_sigpending 354 |
|
292 |
#define TARGET_NR_rt_sigtimedwait 355 |
|
293 |
#define TARGET_NR_rt_sigqueueinfo 356 |
|
294 |
#define TARGET_NR_rt_sigsuspend 357 |
|
295 |
#define TARGET_NR_select 358 |
|
296 |
#define TARGET_NR_gettimeofday 359 |
|
297 |
#define TARGET_NR_settimeofday 360 |
|
298 |
#define TARGET_NR_getitimer 361 |
|
299 |
#define TARGET_NR_setitimer 362 |
|
300 |
#define TARGET_NR_utimes 363 |
|
301 |
#define TARGET_NR_getrusage 364 |
|
302 |
#define TARGET_NR_wait4 365 |
|
303 |
#define TARGET_NR_adjtimex 366 |
|
304 |
#define TARGET_NR_getcwd 367 |
|
305 |
#define TARGET_NR_capget 368 |
|
306 |
#define TARGET_NR_capset 369 |
|
307 |
#define TARGET_NR_sendfile 370 |
|
308 |
#define TARGET_NR_setresgid 371 |
|
309 |
#define TARGET_NR_getresgid 372 |
|
310 |
#define TARGET_NR_dipc 373 |
|
311 |
#define TARGET_NR_pivot_root 374 |
|
312 |
#define TARGET_NR_mincore 375 |
|
313 |
#define TARGET_NR_pciconfig_iobase 376 |
|
314 |
#define TARGET_NR_getdents64 377 |
|
315 |
#define TARGET_NR_gettid 378 |
|
316 |
#define TARGET_NR_readahead 379 |
|
317 |
/* 380 is unused */ |
|
318 |
#define TARGET_NR_tkill 381 |
|
319 |
#define TARGET_NR_setxattr 382 |
|
320 |
#define TARGET_NR_lsetxattr 383 |
|
321 |
#define TARGET_NR_fsetxattr 384 |
|
322 |
#define TARGET_NR_getxattr 385 |
|
323 |
#define TARGET_NR_lgetxattr 386 |
|
324 |
#define TARGET_NR_fgetxattr 387 |
|
325 |
#define TARGET_NR_listxattr 388 |
|
326 |
#define TARGET_NR_llistxattr 389 |
|
327 |
#define TARGET_NR_flistxattr 390 |
|
328 |
#define TARGET_NR_removexattr 391 |
|
329 |
#define TARGET_NR_lremovexattr 392 |
|
330 |
#define TARGET_NR_fremovexattr 393 |
|
331 |
#define TARGET_NR_futex 394 |
|
332 |
#define TARGET_NR_sched_setaffinity 395 |
|
333 |
#define TARGET_NR_sched_getaffinity 396 |
|
334 |
#define TARGET_NR_tuxcall 397 |
|
335 |
#define TARGET_NR_io_setup 398 |
|
336 |
#define TARGET_NR_io_destroy 399 |
|
337 |
#define TARGET_NR_io_getevents 400 |
|
338 |
#define TARGET_NR_io_submit 401 |
|
339 |
#define TARGET_NR_io_cancel 402 |
|
340 |
#define TARGET_NR_exit_group 405 |
|
341 |
#define TARGET_NR_lookup_dcookie 406 |
|
342 |
#define TARGET_NR_sys_epoll_create 407 |
|
343 |
#define TARGET_NR_sys_epoll_ctl 408 |
|
344 |
#define TARGET_NR_sys_epoll_wait 409 |
|
345 |
#define TARGET_NR_remap_file_pages 410 |
|
346 |
#define TARGET_NR_set_tid_address 411 |
|
347 |
#define TARGET_NR_restart_syscall 412 |
|
348 |
#define TARGET_NR_fadvise64 413 |
|
349 |
#define TARGET_NR_timer_create 414 |
|
350 |
#define TARGET_NR_timer_settime 415 |
|
351 |
#define TARGET_NR_timer_gettime 416 |
|
352 |
#define TARGET_NR_timer_getoverrun 417 |
|
353 |
#define TARGET_NR_timer_delete 418 |
|
354 |
#define TARGET_NR_clock_settime 419 |
|
355 |
#define TARGET_NR_clock_gettime 420 |
|
356 |
#define TARGET_NR_clock_getres 421 |
|
357 |
#define TARGET_NR_clock_nanosleep 422 |
|
358 |
#define TARGET_NR_semtimedop 423 |
|
359 |
#define TARGET_NR_tgkill 424 |
|
360 |
#define TARGET_NR_stat64 425 |
|
361 |
#define TARGET_NR_lstat64 426 |
|
362 |
#define TARGET_NR_fstat64 427 |
|
363 |
#define TARGET_NR_vserver 428 |
|
364 |
#define TARGET_NR_mbind 429 |
|
365 |
#define TARGET_NR_get_mempolicy 430 |
|
366 |
#define TARGET_NR_set_mempolicy 431 |
|
367 |
#define TARGET_NR_mq_open 432 |
|
368 |
#define TARGET_NR_mq_unlink 433 |
|
369 |
#define TARGET_NR_mq_timedsend 434 |
|
370 |
#define TARGET_NR_mq_timedreceive 435 |
|
371 |
#define TARGET_NR_mq_notify 436 |
|
372 |
#define TARGET_NR_mq_getsetattr 437 |
|
373 |
#define TARGET_NR_waitid 438 |
|
374 |
#define TARGET_NR_add_key 439 |
|
375 |
#define TARGET_NR_request_key 440 |
|
376 |
#define TARGET_NR_keyctl 441 |
|
377 |
#define TARGET_NR_ioprio_set 442 |
|
378 |
#define TARGET_NR_ioprio_get 443 |
|
379 |
#define TARGET_NR_inotify_init 444 |
|
380 |
#define TARGET_NR_inotify_add_watch 445 |
|
381 |
#define TARGET_NR_inotify_rm_watch 446 |
b/linux-user/alpha/termbits.h | ||
---|---|---|
1 |
typedef unsigned char cc_t; |
|
2 |
typedef unsigned int speed_t; |
|
3 |
typedef unsigned int tcflag_t; |
|
4 |
|
|
5 |
#define TARGET_NCCS 19 |
|
6 |
struct target_termios { |
|
7 |
tcflag_t c_iflag; /* input mode flags */ |
|
8 |
tcflag_t c_oflag; /* output mode flags */ |
|
9 |
tcflag_t c_cflag; /* control mode flags */ |
|
10 |
tcflag_t c_lflag; /* local mode flags */ |
|
11 |
cc_t c_cc[TARGET_NCCS]; /* control characters */ |
|
12 |
cc_t c_line; /* line discipline (== c_cc[19]) */ |
|
13 |
speed_t c_ispeed; /* input speed */ |
|
14 |
speed_t c_ospeed; /* output speed */ |
|
15 |
}; |
|
16 |
|
|
17 |
/* c_cc characters */ |
|
18 |
#define TARGET_VEOF 0 |
|
19 |
#define TARGET_VEOL 1 |
|
20 |
#define TARGET_VEOL2 2 |
|
21 |
#define TARGET_VERASE 3 |
|
22 |
#define TARGET_VWERASE 4 |
|
23 |
#define TARGET_VKILL 5 |
|
24 |
#define TARGET_VREPRINT 6 |
|
25 |
#define TARGET_VSWTC 7 |
|
26 |
#define TARGET_VINTR 8 |
|
27 |
#define TARGET_VQUIT 9 |
|
28 |
#define TARGET_VSUSP 10 |
|
29 |
#define TARGET_VSTART 12 |
|
30 |
#define TARGET_VSTOP 13 |
|
31 |
#define TARGET_VLNEXT 14 |
|
32 |
#define TARGET_VDISCARD 15 |
|
33 |
#define TARGET_VMIN 16 |
|
34 |
#define TARGET_VTIME 17 |
|
35 |
|
|
36 |
/* c_iflag bits */ |
|
37 |
#define TARGET_IGNBRK 0000001 |
|
38 |
#define TARGET_BRKINT 0000002 |
|
39 |
#define TARGET_IGNPAR 0000004 |
|
40 |
#define TARGET_PARMRK 0000010 |
|
41 |
#define TARGET_INPCK 0000020 |
|
42 |
#define TARGET_ISTRIP 0000040 |
|
43 |
#define TARGET_INLCR 0000100 |
|
44 |
#define TARGET_IGNCR 0000200 |
|
45 |
#define TARGET_ICRNL 0000400 |
|
46 |
#define TARGET_IXON 0001000 |
|
47 |
#define TARGET_IXOFF 0002000 |
|
48 |
#define TARGET_IXANY 0004000 |
|
49 |
#define TARGET_IUCLC 0010000 |
|
50 |
#define TARGET_IMAXBEL 0020000 |
|
51 |
#define TARGET_IUTF8 0040000 |
|
52 |
|
|
53 |
/* c_oflag bits */ |
|
54 |
#define TARGET_OPOST 0000001 |
|
55 |
#define TARGET_ONLCR 0000002 |
|
56 |
#define TARGET_OLCUC 0000004 |
|
57 |
|
|
58 |
#define TARGET_OCRNL 0000010 |
|
59 |
#define TARGET_ONOCR 0000020 |
|
60 |
#define TARGET_ONLRET 0000040 |
|
61 |
|
|
62 |
#define TARGET_OFILL 00000100 |
|
63 |
#define TARGET_OFDEL 00000200 |
|
64 |
#define TARGET_NLDLY 00001400 |
|
65 |
#define TARGET_NL0 00000000 |
|
66 |
#define TARGET_NL1 00000400 |
|
67 |
#define TARGET_NL2 00001000 |
|
68 |
#define TARGET_NL3 00001400 |
|
69 |
#define TARGET_TABDLY 00006000 |
|
70 |
#define TARGET_TAB0 00000000 |
|
71 |
#define TARGET_TAB1 00002000 |
|
72 |
#define TARGET_TAB2 00004000 |
|
73 |
#define TARGET_TAB3 00006000 |
|
74 |
#define TARGET_CRDLY 00030000 |
|
75 |
#define TARGET_CR0 00000000 |
|
76 |
#define TARGET_CR1 00010000 |
|
77 |
#define TARGET_CR2 00020000 |
|
78 |
#define TARGET_CR3 00030000 |
|
79 |
#define TARGET_FFDLY 00040000 |
|
80 |
#define TARGET_FF0 00000000 |
|
81 |
#define TARGET_FF1 00040000 |
|
82 |
#define TARGET_BSDLY 00100000 |
|
83 |
#define TARGET_BS0 00000000 |
|
84 |
#define TARGET_BS1 00100000 |
|
85 |
#define TARGET_VTDLY 00200000 |
|
86 |
#define TARGET_VT0 00000000 |
|
87 |
#define TARGET_VT1 00200000 |
|
88 |
#define TARGET_XTABS 01000000 /* Hmm.. Linux/i386 considers this part of TABDLY.. */ |
|
89 |
|
|
90 |
/* c_cflag bit meaning */ |
|
91 |
#define TARGET_CBAUD 0000037 |
|
92 |
#define TARGET_B0 0000000 /* hang up */ |
|
93 |
#define TARGET_B50 0000001 |
|
94 |
#define TARGET_B75 0000002 |
|
95 |
#define TARGET_B110 0000003 |
|
96 |
#define TARGET_B134 0000004 |
|
97 |
#define TARGET_B150 0000005 |
|
98 |
#define TARGET_B200 0000006 |
|
99 |
#define TARGET_B300 0000007 |
|
100 |
#define TARGET_B600 0000010 |
|
101 |
#define TARGET_B1200 0000011 |
|
102 |
#define TARGET_B1800 0000012 |
|
103 |
#define TARGET_B2400 0000013 |
|
104 |
#define TARGET_B4800 0000014 |
|
105 |
#define TARGET_B9600 0000015 |
|
106 |
#define TARGET_B19200 0000016 |
|
107 |
#define TARGET_B38400 0000017 |
|
108 |
#define TARGET_EXTA B19200 |
|
109 |
#define TARGET_EXTB B38400 |
|
110 |
#define TARGET_CBAUDEX 0000000 |
|
111 |
#define TARGET_B57600 00020 |
|
112 |
#define TARGET_B115200 00021 |
|
113 |
#define TARGET_B230400 00022 |
|
114 |
#define TARGET_B460800 00023 |
|
115 |
#define TARGET_B500000 00024 |
|
116 |
#define TARGET_B576000 00025 |
|
117 |
#define TARGET_B921600 00026 |
|
118 |
#define TARGET_B1000000 00027 |
|
119 |
#define TARGET_B1152000 00030 |
|
120 |
#define TARGET_B1500000 00031 |
|
121 |
#define TARGET_B2000000 00032 |
|
122 |
#define TARGET_B2500000 00033 |
|
123 |
#define TARGET_B3000000 00034 |
|
124 |
#define TARGET_B3500000 00035 |
|
125 |
#define TARGET_B4000000 00036 |
|
126 |
|
|
127 |
#define TARGET_CSIZE 00001400 |
|
128 |
#define TARGET_CS5 00000000 |
|
129 |
#define TARGET_CS6 00000400 |
|
130 |
#define TARGET_CS7 00001000 |
|
131 |
#define TARGET_CS8 00001400 |
|
132 |
|
|
133 |
#define TARGET_CSTOPB 00002000 |
|
134 |
#define TARGET_CREAD 00004000 |
|
135 |
#define TARGET_PARENB 00010000 |
|
136 |
#define TARGET_PARODD 00020000 |
|
137 |
#define TARGET_HUPCL 00040000 |
|
138 |
|
|
139 |
#define TARGET_CLOCAL 00100000 |
|
140 |
#define TARGET_CMSPAR 010000000000 /* mark or space (stick) parity */ |
|
141 |
#define TARGET_CRTSCTS 020000000000 /* flow control */ |
|
142 |
|
|
143 |
/* c_lflag bits */ |
|
144 |
#define TARGET_ISIG 0x00000080 |
|
145 |
#define TARGET_ICANON 0x00000100 |
|
146 |
#define TARGET_XCASE 0x00004000 |
|
147 |
#define TARGET_ECHO 0x00000008 |
|
148 |
#define TARGET_ECHOE 0x00000002 |
|
149 |
#define TARGET_ECHOK 0x00000004 |
|
150 |
#define TARGET_ECHONL 0x00000010 |
|
151 |
#define TARGET_NOFLSH 0x80000000 |
|
152 |
#define TARGET_TOSTOP 0x00400000 |
|
153 |
#define TARGET_ECHOCTL 0x00000040 |
|
154 |
#define TARGET_ECHOPRT 0x00000020 |
|
155 |
#define TARGET_ECHOKE 0x00000001 |
|
156 |
#define TARGET_FLUSHO 0x00800000 |
|
157 |
#define TARGET_PENDIN 0x20000000 |
|
158 |
#define TARGET_IEXTEN 0x00000400 |
|
159 |
|
|
160 |
#define TARGET_FIOCLEX _IO('f', 1) |
|
161 |
#define TARGET_FIONCLEX _IO('f', 2) |
|
162 |
#define TARGET_FIOASYNC _IOW('f', 125, int) |
|
163 |
#define TARGET_FIONBIO _IOW('f', 126, int) |
|
164 |
#define TARGET_FIONREAD _IOR('f', 127, int) |
|
165 |
#define TARGET_TIOCINQ FIONREAD |
|
166 |
#define TARGET_FIOQSIZE _IOR('f', 128, loff_t) |
|
167 |
|
|
168 |
#define TARGET_TIOCGETP _IOR('t', 8, struct sgttyb) |
|
169 |
#define TARGET_TIOCSETP _IOW('t', 9, struct sgttyb) |
|
170 |
#define TARGET_TIOCSETN _IOW('t', 10, struct sgttyb) /* TIOCSETP wo flush */ |
|
171 |
|
|
172 |
#define TARGET_TIOCSETC _IOW('t', 17, struct tchars) |
|
173 |
#define TARGET_TIOCGETC _IOR('t', 18, struct tchars) |
|
174 |
#define TARGET_TCGETS _IOR('t', 19, struct termios) |
|
175 |
#define TARGET_TCSETS _IOW('t', 20, struct termios) |
|
176 |
#define TARGET_TCSETSW _IOW('t', 21, struct termios) |
|
177 |
#define TARGET_TCSETSF _IOW('t', 22, struct termios) |
|
178 |
|
|
179 |
#define TARGET_TCGETA _IOR('t', 23, struct termio) |
|
180 |
#define TARGET_TCSETA _IOW('t', 24, struct termio) |
|
181 |
#define TARGET_TCSETAW _IOW('t', 25, struct termio) |
|
182 |
#define TARGET_TCSETAF _IOW('t', 28, struct termio) |
|
183 |
|
|
184 |
#define TARGET_TCSBRK _IO('t', 29) |
|
185 |
#define TARGET_TCXONC _IO('t', 30) |
|
186 |
#define TARGET_TCFLSH _IO('t', 31) |
|
187 |
|
|
188 |
#define TARGET_TIOCSWINSZ _IOW('t', 103, struct winsize) |
|
189 |
#define TARGET_TIOCGWINSZ _IOR('t', 104, struct winsize) |
|
190 |
#define TARGET_TIOCSTART _IO('t', 110) /* start output, like ^Q */ |
|
191 |
#define TARGET_TIOCSTOP _IO('t', 111) /* stop output, like ^S */ |
|
192 |
#define TARGET_TIOCOUTQ _IOR('t', 115, int) /* output queue size */ |
|
193 |
|
|
194 |
#define TARGET_TIOCGLTC _IOR('t', 116, struct ltchars) |
|
195 |
#define TARGET_TIOCSLTC _IOW('t', 117, struct ltchars) |
|
196 |
#define TARGET_TIOCSPGRP _IOW('t', 118, int) |
|
197 |
#define TARGET_TIOCGPGRP _IOR('t', 119, int) |
|
198 |
|
|
199 |
#define TARGET_TIOCEXCL 0x540C |
|
200 |
#define TARGET_TIOCNXCL 0x540D |
|
201 |
#define TARGET_TIOCSCTTY 0x540E |
|
202 |
|
|
203 |
#define TARGET_TIOCSTI 0x5412 |
|
204 |
#define TARGET_TIOCMGET 0x5415 |
|
205 |
#define TARGET_TIOCMBIS 0x5416 |
|
206 |
#define TARGET_TIOCMBIC 0x5417 |
|
207 |
#define TARGET_TIOCMSET 0x5418 |
|
208 |
# define TARGET_TIOCM_LE 0x001 |
|
209 |
# define TARGET_TIOCM_DTR 0x002 |
|
210 |
# define TARGET_TIOCM_RTS 0x004 |
|
211 |
# define TARGET_TIOCM_ST 0x008 |
|
212 |
# define TARGET_TIOCM_SR 0x010 |
|
213 |
# define TARGET_TIOCM_CTS 0x020 |
|
214 |
# define TARGET_TIOCM_CAR 0x040 |
|
215 |
# define TARGET_TIOCM_RNG 0x080 |
|
216 |
# define TARGET_TIOCM_DSR 0x100 |
|
217 |
# define TARGET_TIOCM_CD TIOCM_CAR |
|
218 |
# define TARGET_TIOCM_RI TIOCM_RNG |
|
219 |
# define TARGET_TIOCM_OUT1 0x2000 |
|
220 |
# define TARGET_TIOCM_OUT2 0x4000 |
|
221 |
# define TARGET_TIOCM_LOOP 0x8000 |
|
222 |
|
|
223 |
#define TARGET_TIOCGSOFTCAR 0x5419 |
|
224 |
#define TARGET_TIOCSSOFTCAR 0x541A |
|
225 |
#define TARGET_TIOCLINUX 0x541C |
|
226 |
#define TARGET_TIOCCONS 0x541D |
|
227 |
#define TARGET_TIOCGSERIAL 0x541E |
|
228 |
#define TARGET_TIOCSSERIAL 0x541F |
|
229 |
#define TARGET_TIOCPKT 0x5420 |
|
230 |
# define TARGET_TIOCPKT_DATA 0 |
|
231 |
# define TARGET_TIOCPKT_FLUSHREAD 1 |
|
232 |
# define TARGET_TIOCPKT_FLUSHWRITE 2 |
|
233 |
# define TARGET_TIOCPKT_STOP 4 |
|
234 |
# define TARGET_TIOCPKT_START 8 |
|
235 |
# define TARGET_TIOCPKT_NOSTOP 16 |
|
236 |
# define TARGET_TIOCPKT_DOSTOP 32 |
|
237 |
|
|
238 |
|
|
239 |
#define TARGET_TIOCNOTTY 0x5422 |
|
240 |
#define TARGET_TIOCSETD 0x5423 |
|
241 |
#define TARGET_TIOCGETD 0x5424 |
|
242 |
#define TARGET_TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */ |
|
243 |
#define TARGET_TIOCSBRK 0x5427 /* BSD compatibility */ |
|
244 |
#define TARGET_TIOCCBRK 0x5428 /* BSD compatibility */ |
|
245 |
#define TARGET_TIOCGSID 0x5429 /* Return the session ID of FD */ |
|
246 |
#define TARGET_TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ |
|
247 |
#define TARGET_TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ |
|
248 |
|
|
249 |
#define TARGET_TIOCSERCONFIG 0x5453 |
|
250 |
#define TARGET_TIOCSERGWILD 0x5454 |
|
251 |
#define TARGET_TIOCSERSWILD 0x5455 |
|
252 |
#define TARGET_TIOCGLCKTRMIOS 0x5456 |
|
253 |
#define TARGET_TIOCSLCKTRMIOS 0x5457 |
|
254 |
#define TARGET_TIOCSERGSTRUCT 0x5458 /* For debugging only */ |
|
255 |
#define TARGET_TIOCSERGETLSR 0x5459 /* Get line status register */ |
|
256 |
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ |
|
257 |
# define TARGET_TIOCSER_TEMT 0x01 /* Transmitter physically empty */ |
|
258 |
#define TARGET_TIOCSERGETMULTI 0x545A /* Get multiport config */ |
|
259 |
#define TARGET_TIOCSERSETMULTI 0x545B /* Set multiport config */ |
|
260 |
|
|
261 |
#define TARGET_TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */ |
|
262 |
#define TARGET_TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */ |
|
263 |
#define TARGET_TIOCGHAYESESP 0x545E /* Get Hayes ESP configuration */ |
|
264 |
#define TARGET_TIOCSHAYESESP 0x545F /* Set Hayes ESP configuration */ |
|
265 |
|
Also available in: Unified diff