NetBSD/sys/compat/linux/linux_syscallargs.h
1995-08-14 01:29:05 +00:00

264 lines
4.5 KiB
C

/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.8 1995/08/14 01:27:56 mycroft Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
struct linux_open_args {
syscallarg(char *) path;
syscallarg(int) flags;
syscallarg(int) mode;
};
struct linux_waitpid_args {
syscallarg(int) pid;
syscallarg(int *) status;
syscallarg(int) options;
};
struct linux_creat_args {
syscallarg(char *) path;
syscallarg(int) mode;
};
struct linux_unlink_args {
syscallarg(char *) path;
};
struct linux_execve_args {
syscallarg(char *) path;
syscallarg(char **) argp;
syscallarg(char **) envp;
};
struct linux_chdir_args {
syscallarg(char *) path;
};
struct linux_time_args {
syscallarg(linux_time_t *) t;
};
struct linux_mknod_args {
syscallarg(char *) path;
syscallarg(int) mode;
syscallarg(int) dev;
};
struct linux_chmod_args {
syscallarg(char *) path;
syscallarg(int) mode;
};
struct linux_chown_args {
syscallarg(char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
};
struct linux_break_args {
syscallarg(char *) nsize;
};
struct linux_alarm_args {
syscallarg(unsigned int) secs;
};
struct linux_utime_args {
syscallarg(char *) path;
syscallarg(struct linux_utimbuf *) times;
};
struct linux_access_args {
syscallarg(char *) path;
syscallarg(int) flags;
};
struct linux_kill_args {
syscallarg(int) pid;
syscallarg(int) signum;
};
struct linux_rename_args {
syscallarg(char *) from;
syscallarg(char *) to;
};
struct linux_mkdir_args {
syscallarg(char *) path;
syscallarg(int) mode;
};
struct linux_rmdir_args {
syscallarg(char *) path;
};
struct linux_pipe_args {
syscallarg(int *) pfds;
};
struct linux_times_args {
syscallarg(struct times *) tms;
};
struct linux_brk_args {
syscallarg(char *) nsize;
};
struct linux_signal_args {
syscallarg(int) sig;
syscallarg(linux_handler_t) handler;
};
struct linux_ioctl_args {
syscallarg(int) fd;
syscallarg(u_long) com;
syscallarg(caddr_t) data;
};
struct linux_fcntl_args {
syscallarg(int) fd;
syscallarg(int) cmd;
syscallarg(void *) arg;
};
struct linux_sigaction_args {
syscallarg(int) signum;
syscallarg(struct linux_sigaction *) nsa;
syscallarg(struct linux_sigaction *) osa;
};
struct linux_sigsetmask_args {
syscallarg(linux_sigset_t) mask;
};
struct linux_sigsuspend_args {
syscallarg(caddr_t) restart;
syscallarg(int) oldmask;
syscallarg(int) mask;
};
struct linux_sigpending_args {
syscallarg(linux_sigset_t *) mask;
};
struct linux_select_args {
syscallarg(struct linux_select *) lsp;
};
struct linux_symlink_args {
syscallarg(char *) path;
syscallarg(char *) to;
};
struct linux_readlink_args {
syscallarg(char *) name;
syscallarg(char *) buf;
syscallarg(int) count;
};
struct linux_uselib_args {
syscallarg(char *) path;
};
struct linux_readdir_args {
syscallarg(int) fd;
syscallarg(struct linux_dirent *) dent;
syscallarg(unsigned int) count;
};
struct linux_mmap_args {
syscallarg(struct linux_mmap *) lmp;
};
struct linux_truncate_args {
syscallarg(char *) path;
syscallarg(long) length;
};
struct linux_statfs_args {
syscallarg(char *) path;
syscallarg(struct linux_statfs *) sp;
};
struct linux_fstatfs_args {
syscallarg(int) fd;
syscallarg(struct linux_statfs *) sp;
};
struct linux_socketcall_args {
syscallarg(int) what;
syscallarg(void *) args;
};
struct linux_stat_args {
syscallarg(char *) path;
syscallarg(struct linux_stat *) sp;
};
struct linux_lstat_args {
syscallarg(char *) path;
syscallarg(struct linux_stat *) sp;
};
struct linux_fstat_args {
syscallarg(int) fd;
syscallarg(struct linux_stat *) sp;
};
struct linux_wait4_args {
syscallarg(int) pid;
syscallarg(int *) status;
syscallarg(int) options;
syscallarg(struct rusage *) rusage;
};
struct linux_ipc_args {
syscallarg(int) what;
syscallarg(int) a1;
syscallarg(int) a2;
syscallarg(int) a3;
syscallarg(caddr_t) ptr;
};
struct linux_sigreturn_args {
syscallarg(struct linux_sigcontext *) scp;
};
struct linux_uname_args {
syscallarg(struct linux_utsname *) up;
};
struct linux_modify_ldt_args {
syscallarg(int) func;
syscallarg(void *) ptr;
syscallarg(size_t) bytecount;
};
struct linux_sigprocmask_args {
syscallarg(int) how;
syscallarg(linux_sigset_t *) set;
syscallarg(linux_sigset_t *) oset;
};
struct linux_getpgid_args {
syscallarg(int) pid;
};
struct linux_personality_args {
syscallarg(int) per;
};
struct linux_llseek_args {
syscallarg(int) fd;
syscallarg(u_int32_t) ohigh;
syscallarg(u_int32_t) olow;
syscallarg(caddr_t) res;
syscallarg(int) whence;
};
#undef syscallarg