summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_proto.h
blob: c5909b6b85d1411acb1a9c16f8598952a05aed97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
/*
 * System call prototypes.
 *
 * DO NOT EDIT-- this file is automatically generated.
 * created from	Id: syscalls.master,v 1.10 1998/03/29 07:59:10 peter Exp 
 */

#ifndef _LINUX_SYSPROTO_H_
#define	_LINUX_SYSPROTO_H_

#include <sys/signal.h>

struct proc;

#define PAD_(t) sizeof(register_t) <= sizeof(t) ? \
		0 : sizeof(register_t) - sizeof(t)

struct	linux_setup_args {
	register_t dummy;
};
struct	linux_fork_args {
	register_t dummy;
};
struct	linux_open_args {
	char * path;	char path_[PAD_(char *)];
	int flags;	char flags_[PAD_(int)];
	int mode;	char mode_[PAD_(int)];
};
struct	linux_waitpid_args {
	int pid;	char pid_[PAD_(int)];
	int * status;	char status_[PAD_(int *)];
	int options;	char options_[PAD_(int)];
};
struct	linux_creat_args {
	char * path;	char path_[PAD_(char *)];
	int mode;	char mode_[PAD_(int)];
};
struct	linux_unlink_args {
	char * path;	char path_[PAD_(char *)];
};
struct	linux_execve_args {
	char * path;	char path_[PAD_(char *)];
	char ** argp;	char argp_[PAD_(char **)];
	char ** envp;	char envp_[PAD_(char **)];
};
struct	linux_chdir_args {
	char * path;	char path_[PAD_(char *)];
};
struct	linux_time_args {
	linux_time_t * tm;	char tm_[PAD_(linux_time_t *)];
};
struct	linux_mknod_args {
	char * path;	char path_[PAD_(char *)];
	int mode;	char mode_[PAD_(int)];
	int dev;	char dev_[PAD_(int)];
};
struct	linux_chmod_args {
	char * path;	char path_[PAD_(char *)];
	int mode;	char mode_[PAD_(int)];
};
struct	linux_lchown_args {
	char * path;	char path_[PAD_(char *)];
	int uid;	char uid_[PAD_(int)];
	int gid;	char gid_[PAD_(int)];
};
struct	linux_break_args {
	char * nsize;	char nsize_[PAD_(char *)];
};
struct	linux_stat_args {
	char * path;	char path_[PAD_(char *)];
	struct ostat * up;	char up_[PAD_(struct ostat *)];
};
struct	linux_lseek_args {
	int fdes;	char fdes_[PAD_(int)];
	long off;	char off_[PAD_(long)];
	int whence;	char whence_[PAD_(int)];
};
struct	linux_mount_args {
	register_t dummy;
};
struct	linux_umount_args {
	register_t dummy;
};
struct	linux_stime_args {
	register_t dummy;
};
struct	linux_ptrace_args {
	register_t dummy;
};
struct	linux_alarm_args {
	unsigned int secs;	char secs_[PAD_(unsigned int)];
};
struct	linux_fstat_args {
	int fd;	char fd_[PAD_(int)];
	struct ostat * up;	char up_[PAD_(struct ostat *)];
};
struct	linux_pause_args {
	register_t dummy;
};
struct	linux_utime_args {
	char * fname;	char fname_[PAD_(char *)];
	struct linux_utimbuf * times;	char times_[PAD_(struct linux_utimbuf *)];
};
struct	linux_stty_args {
	register_t dummy;
};
struct	linux_gtty_args {
	register_t dummy;
};
struct	linux_access_args {
	char * path;	char path_[PAD_(char *)];
	int flags;	char flags_[PAD_(int)];
};
struct	linux_nice_args {
	int inc;	char inc_[PAD_(int)];
};
struct	linux_ftime_args {
	register_t dummy;
};
struct	linux_kill_args {
	int pid;	char pid_[PAD_(int)];
	int signum;	char signum_[PAD_(int)];
};
struct	linux_rename_args {
	char * from;	char from_[PAD_(char *)];
	char * to;	char to_[PAD_(char *)];
};
struct	linux_mkdir_args {
	char * path;	char path_[PAD_(char *)];
	int mode;	char mode_[PAD_(int)];
};
struct	linux_rmdir_args {
	char * path;	char path_[PAD_(char *)];
};
struct	linux_pipe_args {
	int * pipefds;	char pipefds_[PAD_(int *)];
};
struct	linux_times_args {
	struct linux_times_argv * buf;	char buf_[PAD_(struct linux_times_argv *)];
};
struct	linux_prof_args {
	register_t dummy;
};
struct	linux_brk_args {
	char * dsend;	char dsend_[PAD_(char *)];
};
struct	linux_signal_args {
	int sig;	char sig_[PAD_(int)];
	linux_handler_t handler;	char handler_[PAD_(linux_handler_t)];
};
struct	linux_phys_args {
	register_t dummy;
};
struct	linux_lock_args {
	register_t dummy;
};
struct	linux_ioctl_args {
	int fd;	char fd_[PAD_(int)];
	u_long cmd;	char cmd_[PAD_(u_long)];
	int arg;	char arg_[PAD_(int)];
};
struct	linux_fcntl_args {
	int fd;	char fd_[PAD_(int)];
	int cmd;	char cmd_[PAD_(int)];
	int arg;	char arg_[PAD_(int)];
};
struct	linux_mpx_args {
	register_t dummy;
};
struct	linux_ulimit_args {
	register_t dummy;
};
struct	linux_olduname_args {
	struct linux_oldold_utsname * up;	char up_[PAD_(struct linux_oldold_utsname *)];
};
struct	linux_ustat_args {
	register_t dummy;
};
struct	linux_sigaction_args {
	int sig;	char sig_[PAD_(int)];
	struct linux_sigaction * nsa;	char nsa_[PAD_(struct linux_sigaction *)];
	struct linux_sigaction * osa;	char osa_[PAD_(struct linux_sigaction *)];
};
struct	linux_siggetmask_args {
	register_t dummy;
};
struct	linux_sigsetmask_args {
	linux_sigset_t mask;	char mask_[PAD_(linux_sigset_t)];
};
struct	linux_sigsuspend_args {
	int restart;	char restart_[PAD_(int)];
	linux_sigset_t oldmask;	char oldmask_[PAD_(linux_sigset_t)];
	linux_sigset_t mask;	char mask_[PAD_(linux_sigset_t)];
};
struct	linux_sigpending_args {
	linux_sigset_t * mask;	char mask_[PAD_(linux_sigset_t *)];
};
struct	linux_select_args {
	struct linux_select_argv * ptr;	char ptr_[PAD_(struct linux_select_argv *)];
};
struct	linux_symlink_args {
	char * path;	char path_[PAD_(char *)];
	char * to;	char to_[PAD_(char *)];
};
struct	linux_readlink_args {
	char * name;	char name_[PAD_(char *)];
	char * buf;	char buf_[PAD_(char *)];
	int count;	char count_[PAD_(int)];
};
struct	linux_uselib_args {
	char * library;	char library_[PAD_(char *)];
};
struct	linux_readdir_args {
	int fd;	char fd_[PAD_(int)];
	struct linux_dirent * dent;	char dent_[PAD_(struct linux_dirent *)];
	unsigned int count;	char count_[PAD_(unsigned int)];
};
struct	linux_mmap_args {
	struct linux_mmap_argv * ptr;	char ptr_[PAD_(struct linux_mmap_argv *)];
};
struct	linux_truncate_args {
	char * path;	char path_[PAD_(char *)];
	long length;	char length_[PAD_(long)];
};
struct	linux_statfs_args {
	char * path;	char path_[PAD_(char *)];
	struct linux_statfs_buf * buf;	char buf_[PAD_(struct linux_statfs_buf *)];
};
struct	linux_fstatfs_args {
	int fd;	char fd_[PAD_(int)];
	struct linux_statfs_buf * buf;	char buf_[PAD_(struct linux_statfs_buf *)];
};
struct	linux_ioperm_args {
	unsigned int lo;	char lo_[PAD_(unsigned int)];
	unsigned int hi;	char hi_[PAD_(unsigned int)];
	int val;	char val_[PAD_(int)];
};
struct	linux_socketcall_args {
	int what;	char what_[PAD_(int)];
	void * args;	char args_[PAD_(void *)];
};
struct	linux_ksyslog_args {
	int what;	char what_[PAD_(int)];
};
struct	linux_setitimer_args {
	u_int which;	char which_[PAD_(u_int)];
	struct itimerval * itv;	char itv_[PAD_(struct itimerval *)];
	struct itimerval * oitv;	char oitv_[PAD_(struct itimerval *)];
};
struct	linux_getitimer_args {
	u_int which;	char which_[PAD_(u_int)];
	struct itimerval * itv;	char itv_[PAD_(struct itimerval *)];
};
struct	linux_newstat_args {
	char * path;	char path_[PAD_(char *)];
	struct linux_newstat * buf;	char buf_[PAD_(struct linux_newstat *)];
};
struct	linux_newlstat_args {
	char * path;	char path_[PAD_(char *)];
	struct linux_newstat * buf;	char buf_[PAD_(struct linux_newstat *)];
};
struct	linux_newfstat_args {
	int fd;	char fd_[PAD_(int)];
	struct linux_newstat * buf;	char buf_[PAD_(struct linux_newstat *)];
};
struct	linux_uname_args {
	struct linux_old_utsname * up;	char up_[PAD_(struct linux_old_utsname *)];
};
struct	linux_iopl_args {
	int level;	char level_[PAD_(int)];
};
struct	linux_vhangup_args {
	register_t dummy;
};
struct	linux_idle_args {
	register_t dummy;
};
struct	linux_vm86_args {
	register_t dummy;
};
struct	linux_wait4_args {
	int pid;	char pid_[PAD_(int)];
	int * status;	char status_[PAD_(int *)];
	int options;	char options_[PAD_(int)];
	struct rusage * rusage;	char rusage_[PAD_(struct rusage *)];
};
struct	linux_swapoff_args {
	register_t dummy;
};
struct	linux_sysinfo_args {
	register_t dummy;
};
struct	linux_ipc_args {
	int what;	char what_[PAD_(int)];
	int arg1;	char arg1_[PAD_(int)];
	int arg2;	char arg2_[PAD_(int)];
	int arg3;	char arg3_[PAD_(int)];
	caddr_t ptr;	char ptr_[PAD_(caddr_t)];
};
struct	linux_sigreturn_args {
	struct linux_sigcontext * scp;	char scp_[PAD_(struct linux_sigcontext *)];
};
struct	linux_clone_args {
	register_t dummy;
};
struct	linux_newuname_args {
	struct linux_newuname_t * buf;	char buf_[PAD_(struct linux_newuname_t *)];
};
struct	linux_modify_ldt_args {
	int func;	char func_[PAD_(int)];
	void * ptr;	char ptr_[PAD_(void *)];
	size_t bytecount;	char bytecount_[PAD_(size_t)];
};
struct	linux_adjtimex_args {
	register_t dummy;
};
struct	linux_sigprocmask_args {
	int how;	char how_[PAD_(int)];
	linux_sigset_t * mask;	char mask_[PAD_(linux_sigset_t *)];
	linux_sigset_t * omask;	char omask_[PAD_(linux_sigset_t *)];
};
struct	linux_create_module_args {
	register_t dummy;
};
struct	linux_init_module_args {
	register_t dummy;
};
struct	linux_delete_module_args {
	register_t dummy;
};
struct	linux_get_kernel_syms_args {
	register_t dummy;
};
struct	linux_quotactl_args {
	register_t dummy;
};
struct	linux_getpgid_args {
	int pid;	char pid_[PAD_(int)];
};
struct	linux_bdflush_args {
	register_t dummy;
};
struct	linux_personality_args {
	int per;	char per_[PAD_(int)];
};
struct	linux_llseek_args {
	int fd;	char fd_[PAD_(int)];
	u_int32_t ohigh;	char ohigh_[PAD_(u_int32_t)];
	u_int32_t olow;	char olow_[PAD_(u_int32_t)];
	caddr_t res;	char res_[PAD_(caddr_t)];
	int whence;	char whence_[PAD_(int)];
};
struct	linux_getdents_args {
	int fd;	char fd_[PAD_(int)];
	void * dent;	char dent_[PAD_(void *)];
	unsigned count;	char count_[PAD_(unsigned)];
};
struct	linux_newselect_args {
	int nfds;	char nfds_[PAD_(int)];
	fd_set * readfds;	char readfds_[PAD_(fd_set *)];
	fd_set * writefds;	char writefds_[PAD_(fd_set *)];
	fd_set * exceptfds;	char exceptfds_[PAD_(fd_set *)];
	struct timeval * timeout;	char timeout_[PAD_(struct timeval *)];
};
struct	linux_msync_args {
	caddr_t addr;	char addr_[PAD_(caddr_t)];
	int len;	char len_[PAD_(int)];
	int fl;	char fl_[PAD_(int)];
};
struct	linux_chown_args {
	char * path;	char path_[PAD_(char *)];
	int uid;	char uid_[PAD_(int)];
	int gid;	char gid_[PAD_(int)];
};
int	linux_setup __P((struct proc *, struct linux_setup_args *));
int	linux_fork __P((struct proc *, struct linux_fork_args *));
int	linux_open __P((struct proc *, struct linux_open_args *));
int	linux_waitpid __P((struct proc *, struct linux_waitpid_args *));
int	linux_creat __P((struct proc *, struct linux_creat_args *));
int	linux_unlink __P((struct proc *, struct linux_unlink_args *));
int	linux_execve __P((struct proc *, struct linux_execve_args *));
int	linux_chdir __P((struct proc *, struct linux_chdir_args *));
int	linux_time __P((struct proc *, struct linux_time_args *));
int	linux_mknod __P((struct proc *, struct linux_mknod_args *));
int	linux_chmod __P((struct proc *, struct linux_chmod_args *));
int	linux_lchown __P((struct proc *, struct linux_lchown_args *));
int	linux_break __P((struct proc *, struct linux_break_args *));
int	linux_stat __P((struct proc *, struct linux_stat_args *));
int	linux_lseek __P((struct proc *, struct linux_lseek_args *));
int	linux_mount __P((struct proc *, struct linux_mount_args *));
int	linux_umount __P((struct proc *, struct linux_umount_args *));
int	linux_stime __P((struct proc *, struct linux_stime_args *));
int	linux_ptrace __P((struct proc *, struct linux_ptrace_args *));
int	linux_alarm __P((struct proc *, struct linux_alarm_args *));
int	linux_fstat __P((struct proc *, struct linux_fstat_args *));
int	linux_pause __P((struct proc *, struct linux_pause_args *));
int	linux_utime __P((struct proc *, struct linux_utime_args *));
int	linux_stty __P((struct proc *, struct linux_stty_args *));
int	linux_gtty __P((struct proc *, struct linux_gtty_args *));
int	linux_access __P((struct proc *, struct linux_access_args *));
int	linux_nice __P((struct proc *, struct linux_nice_args *));
int	linux_ftime __P((struct proc *, struct linux_ftime_args *));
int	linux_kill __P((struct proc *, struct linux_kill_args *));
int	linux_rename __P((struct proc *, struct linux_rename_args *));
int	linux_mkdir __P((struct proc *, struct linux_mkdir_args *));
int	linux_rmdir __P((struct proc *, struct linux_rmdir_args *));
int	linux_pipe __P((struct proc *, struct linux_pipe_args *));
int	linux_times __P((struct proc *, struct linux_times_args *));
int	linux_prof __P((struct proc *, struct linux_prof_args *));
int	linux_brk __P((struct proc *, struct linux_brk_args *));
int	linux_signal __P((struct proc *, struct linux_signal_args *));
int	linux_phys __P((struct proc *, struct linux_phys_args *));
int	linux_lock __P((struct proc *, struct linux_lock_args *));
int	linux_ioctl __P((struct proc *, struct linux_ioctl_args *));
int	linux_fcntl __P((struct proc *, struct linux_fcntl_args *));
int	linux_mpx __P((struct proc *, struct linux_mpx_args *));
int	linux_ulimit __P((struct proc *, struct linux_ulimit_args *));
int	linux_olduname __P((struct proc *, struct linux_olduname_args *));
int	linux_ustat __P((struct proc *, struct linux_ustat_args *));
int	linux_sigaction __P((struct proc *, struct linux_sigaction_args *));
int	linux_siggetmask __P((struct proc *, struct linux_siggetmask_args *));
int	linux_sigsetmask __P((struct proc *, struct linux_sigsetmask_args *));
int	linux_sigsuspend __P((struct proc *, struct linux_sigsuspend_args *));
int	linux_sigpending __P((struct proc *, struct linux_sigpending_args *));
int	linux_select __P((struct proc *, struct linux_select_args *));
int	linux_symlink __P((struct proc *, struct linux_symlink_args *));
int	linux_readlink __P((struct proc *, struct linux_readlink_args *));
int	linux_uselib __P((struct proc *, struct linux_uselib_args *));
int	linux_readdir __P((struct proc *, struct linux_readdir_args *));
int	linux_mmap __P((struct proc *, struct linux_mmap_args *));
int	linux_truncate __P((struct proc *, struct linux_truncate_args *));
int	linux_statfs __P((struct proc *, struct linux_statfs_args *));
int	linux_fstatfs __P((struct proc *, struct linux_fstatfs_args *));
int	linux_ioperm __P((struct proc *, struct linux_ioperm_args *));
int	linux_socketcall __P((struct proc *, struct linux_socketcall_args *));
int	linux_ksyslog __P((struct proc *, struct linux_ksyslog_args *));
int	linux_setitimer __P((struct proc *, struct linux_setitimer_args *));
int	linux_getitimer __P((struct proc *, struct linux_getitimer_args *));
int	linux_newstat __P((struct proc *, struct linux_newstat_args *));
int	linux_newlstat __P((struct proc *, struct linux_newlstat_args *));
int	linux_newfstat __P((struct proc *, struct linux_newfstat_args *));
int	linux_uname __P((struct proc *, struct linux_uname_args *));
int	linux_iopl __P((struct proc *, struct linux_iopl_args *));
int	linux_vhangup __P((struct proc *, struct linux_vhangup_args *));
int	linux_idle __P((struct proc *, struct linux_idle_args *));
int	linux_vm86 __P((struct proc *, struct linux_vm86_args *));
int	linux_wait4 __P((struct proc *, struct linux_wait4_args *));
int	linux_swapoff __P((struct proc *, struct linux_swapoff_args *));
int	linux_sysinfo __P((struct proc *, struct linux_sysinfo_args *));
int	linux_ipc __P((struct proc *, struct linux_ipc_args *));
int	linux_sigreturn __P((struct proc *, struct linux_sigreturn_args *));
int	linux_clone __P((struct proc *, struct linux_clone_args *));
int	linux_newuname __P((struct proc *, struct linux_newuname_args *));
int	linux_modify_ldt __P((struct proc *, struct linux_modify_ldt_args *));
int	linux_adjtimex __P((struct proc *, struct linux_adjtimex_args *));
int	linux_sigprocmask __P((struct proc *, struct linux_sigprocmask_args *));
int	linux_create_module __P((struct proc *, struct linux_create_module_args *));
int	linux_init_module __P((struct proc *, struct linux_init_module_args *));
int	linux_delete_module __P((struct proc *, struct linux_delete_module_args *));
int	linux_get_kernel_syms __P((struct proc *, struct linux_get_kernel_syms_args *));
int	linux_quotactl __P((struct proc *, struct linux_quotactl_args *));
int	linux_getpgid __P((struct proc *, struct linux_getpgid_args *));
int	linux_bdflush __P((struct proc *, struct linux_bdflush_args *));
int	linux_personality __P((struct proc *, struct linux_personality_args *));
int	linux_llseek __P((struct proc *, struct linux_llseek_args *));
int	linux_getdents __P((struct proc *, struct linux_getdents_args *));
int	linux_newselect __P((struct proc *, struct linux_newselect_args *));
int	linux_msync __P((struct proc *, struct linux_msync_args *));
int	linux_chown __P((struct proc *, struct linux_chown_args *));

#ifdef COMPAT_43


#endif /* COMPAT_43 */

#undef PAD_

#endif /* !_LINUX_SYSPROTO_H_ */
OpenPOWER on IntegriCloud