Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/kern/lib/libsys_linux gen (without re)



details:   https://anonhg.NetBSD.org/src/rev/59f34d16368d
branches:  trunk
changeset: 781646:59f34d16368d
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Sep 19 21:46:46 2012 +0000

description:
gen (without re)

diffstat:

 sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h |   490 ++++++
 sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c    |   539 +++++++
 sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c      |  1053 +++++++++++++++
 3 files changed, 2082 insertions(+), 0 deletions(-)

diffs (truncated from 2094 to 300 lines):

diff -r 9b1ea45a31aa -r 59f34d16368d sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h   Wed Sep 19 21:46:46 2012 +0000
@@ -0,0 +1,490 @@
+/* $NetBSD: rump_linux_syscallargs.h,v 1.1 2012/09/19 21:46:46 pooka Exp $ */
+
+/*
+ * System call argument lists.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        NetBSD: syscalls.master,v 1.1 2012/09/19 21:45:40 pooka Exp
+ */
+
+#ifndef _RUMP_LINUX_SYS_SYSCALLARGS_H_
+#define        _RUMP_LINUX_SYS_SYSCALLARGS_H_
+
+#define        RUMP_LINUX_SYS_MAXSYSARGS       8
+
+#undef syscallarg
+#define        syscallarg(x)                                                   \
+       union {                                                         \
+               register_t pad;                                         \
+               struct { x datum; } le;                                 \
+               struct { /* LINTED zero array dimension */              \
+                       int8_t pad[  /* CONSTCOND */                    \
+                               (sizeof (register_t) < sizeof (x))      \
+                               ? 0                                     \
+                               : sizeof (register_t) - sizeof (x)];    \
+                       x datum;                                        \
+               } be;                                                   \
+       }
+
+#undef check_syscall_args
+#define check_syscall_args(call) /*LINTED*/ \
+       typedef char call##_check_args[sizeof (struct call##_args) \
+               <= RUMP_LINUX_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
+
+struct sys_read_args;
+
+struct sys_write_args;
+
+struct linux_sys_open_args {
+       syscallarg(const char *) path;
+       syscallarg(int) flags;
+       syscallarg(int) mode;
+};
+check_syscall_args(linux_sys_open)
+
+struct sys_close_args;
+
+struct sys_link_args;
+
+struct linux_sys_unlink_args {
+       syscallarg(const char *) path;
+};
+check_syscall_args(linux_sys_unlink)
+
+struct sys_chdir_args;
+
+struct sys_fchdir_args;
+
+struct sys_chmod_args;
+
+struct sys___posix_chown_args;
+
+struct sys_setuid_args;
+
+struct linux_sys_recvmsg_args {
+       syscallarg(int) s;
+       syscallarg(struct linux_msghdr *) msg;
+       syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_recvmsg)
+
+struct linux_sys_sendmsg_args {
+       syscallarg(int) s;
+       syscallarg(const struct linux_msghdr *) msg;
+       syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_sendmsg)
+
+struct linux_sys_recvfrom_args {
+       syscallarg(int) s;
+       syscallarg(void *) buf;
+       syscallarg(int) len;
+       syscallarg(int) flags;
+       syscallarg(struct osockaddr *) from;
+       syscallarg(int *) fromlenaddr;
+};
+check_syscall_args(linux_sys_recvfrom)
+
+struct linux_sys_accept_args {
+       syscallarg(int) s;
+       syscallarg(struct osockaddr *) name;
+       syscallarg(int *) anamelen;
+};
+check_syscall_args(linux_sys_accept)
+
+struct linux_sys_getpeername_args {
+       syscallarg(int) fdes;
+       syscallarg(struct osockaddr *) asa;
+       syscallarg(int *) alen;
+};
+check_syscall_args(linux_sys_getpeername)
+
+struct linux_sys_getsockname_args {
+       syscallarg(int) fdes;
+       syscallarg(struct osockaddr *) asa;
+       syscallarg(int *) alen;
+};
+check_syscall_args(linux_sys_getsockname)
+
+struct sys_access_args;
+
+struct sys_dup_args;
+
+struct linux_sys_ioctl_args {
+       syscallarg(int) fd;
+       syscallarg(u_long) com;
+       syscallarg(void *) data;
+};
+check_syscall_args(linux_sys_ioctl)
+
+struct sys_symlink_args;
+
+struct sys_readlink_args;
+
+struct sys_umask_args;
+
+struct sys_chroot_args;
+
+struct sys_getgroups_args;
+
+struct sys_setgroups_args;
+
+struct sys_setpgid_args;
+
+struct sys_dup2_args;
+
+struct linux_sys_fcntl_args {
+       syscallarg(int) fd;
+       syscallarg(int) cmd;
+       syscallarg(void *) arg;
+};
+check_syscall_args(linux_sys_fcntl)
+
+struct sys_fsync_args;
+
+struct linux_sys_connect_args {
+       syscallarg(int) s;
+       syscallarg(const struct osockaddr *) name;
+       syscallarg(unsigned int) namelen;
+};
+check_syscall_args(linux_sys_connect)
+
+struct linux_sys_bind_args {
+       syscallarg(int) s;
+       syscallarg(const struct osockaddr *) name;
+       syscallarg(unsigned) namelen;
+};
+check_syscall_args(linux_sys_bind)
+
+struct linux_sys_setsockopt_args {
+       syscallarg(int) s;
+       syscallarg(int) level;
+       syscallarg(int) name;
+       syscallarg(const void *) val;
+       syscallarg(int) optlen;
+};
+check_syscall_args(linux_sys_setsockopt)
+
+struct sys_listen_args;
+
+struct linux_sys_getsockopt_args {
+       syscallarg(int) s;
+       syscallarg(int) level;
+       syscallarg(int) name;
+       syscallarg(void *) val;
+       syscallarg(int *) avalsize;
+};
+check_syscall_args(linux_sys_getsockopt)
+
+struct sys_readv_args;
+
+struct sys_writev_args;
+
+struct sys___posix_fchown_args;
+
+struct sys_fchmod_args;
+
+struct sys_setreuid_args;
+
+struct sys_setregid_args;
+
+struct sys___posix_rename_args;
+
+struct sys_flock_args;
+
+struct linux_sys_sendto_args {
+       syscallarg(int) s;
+       syscallarg(void *) buf;
+       syscallarg(int) len;
+       syscallarg(int) flags;
+       syscallarg(const struct osockaddr *) to;
+       syscallarg(int) tolen;
+};
+check_syscall_args(linux_sys_sendto)
+
+struct sys_shutdown_args;
+
+struct linux_sys_socketpair_args {
+       syscallarg(int) domain;
+       syscallarg(int) type;
+       syscallarg(int) protocol;
+       syscallarg(int *) rsv;
+};
+check_syscall_args(linux_sys_socketpair)
+
+struct sys_mkdir_args;
+
+struct sys_rmdir_args;
+
+struct linux_sys_pread_args {
+       syscallarg(int) fd;
+       syscallarg(char *) buf;
+       syscallarg(size_t) nbyte;
+       syscallarg(int) PAD;
+       syscallarg(linux_off_t) offset;
+};
+check_syscall_args(linux_sys_pread)
+
+struct linux_sys_pwrite_args {
+       syscallarg(int) fd;
+       syscallarg(char *) buf;
+       syscallarg(size_t) nbyte;
+       syscallarg(int) PAD;
+       syscallarg(linux_off_t) offset;
+};
+check_syscall_args(linux_sys_pwrite)
+
+struct sys_setgid_args;
+
+struct sys_setegid_args;
+
+struct sys_seteuid_args;
+
+struct linux_sys_getrlimit_args {
+       syscallarg(int) which;
+       syscallarg(struct orlimit *) rlp;
+};
+check_syscall_args(linux_sys_getrlimit)
+
+struct linux_sys_setrlimit_args {
+       syscallarg(int) which;
+       syscallarg(const struct orlimit *) rlp;
+};
+check_syscall_args(linux_sys_setrlimit)
+
+struct sys_lseek_args;
+
+struct sys_truncate_args;
+
+struct sys_ftruncate_args;
+
+struct sys_getpgid_args;
+
+struct sys_poll_args;
+
+struct linux_sys_fdatasync_args {
+       syscallarg(int) fd;
+};
+check_syscall_args(linux_sys_fdatasync)
+
+struct sys_getsid_args;
+
+struct sys___getcwd_args;
+
+struct sys_fchroot_args;
+
+struct linux_sys_getdents_args {
+       syscallarg(int) fd;
+       syscallarg(struct linux_dirent *) dent;
+       syscallarg(unsigned int) count;
+};
+check_syscall_args(linux_sys_getdents)
+
+struct linux_sys_socket_args {
+       syscallarg(int) domain;
+       syscallarg(int) type;
+       syscallarg(int) protocol;
+};
+check_syscall_args(linux_sys_socket)
+
+struct linux_sys_select_args {
+       syscallarg(int) nd;
+       syscallarg(fd_set *) in;
+       syscallarg(fd_set *) ou;
+       syscallarg(fd_set *) ex;
+       syscallarg(struct timeval50 *) tv;
+};



Home | Main Index | Thread Index | Old Index