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_sunos gen



details:   https://anonhg.NetBSD.org/src/rev/fa35993bec35
branches:  trunk
changeset: 785988:fa35993bec35
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Apr 09 13:09:12 2013 +0000

description:
gen

diffstat:

 sys/rump/kern/lib/libsys_sunos/rump_sunos_syscall.h     |   185 ++
 sys/rump/kern/lib/libsys_sunos/rump_sunos_syscallargs.h |   286 ++++
 sys/rump/kern/lib/libsys_sunos/rump_sunos_syscalls.c    |   538 +++++++
 sys/rump/kern/lib/libsys_sunos/rump_sunos_sysent.c      |  1052 +++++++++++++++
 4 files changed, 2061 insertions(+), 0 deletions(-)

diffs (truncated from 2077 to 300 lines):

diff -r ba68de95626c -r fa35993bec35 sys/rump/kern/lib/libsys_sunos/rump_sunos_syscall.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/kern/lib/libsys_sunos/rump_sunos_syscall.h       Tue Apr 09 13:09:12 2013 +0000
@@ -0,0 +1,185 @@
+/* $NetBSD: rump_sunos_syscall.h,v 1.1 2013/04/09 13:09:12 pooka Exp $ */
+
+/*
+ * System call numbers.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        NetBSD: syscalls.master,v 1.1 2013/04/09 13:08:33 pooka Exp
+ */
+
+#ifndef _RUMP_SUNOS_SYS_SYSCALL_H_
+#define        _RUMP_SUNOS_SYS_SYSCALL_H_
+
+#define        RUMP_SUNOS_SYS_MAXSYSARGS       8
+
+/* syscall: "nosys" ret: "int" args: */
+#define        RUMP_SUNOS_SYS_nosys    0
+
+/* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
+#define        RUMP_SUNOS_SYS_read     3
+
+/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
+#define        RUMP_SUNOS_SYS_write    4
+
+/* syscall: "close" ret: "int" args: "int" */
+#define        RUMP_SUNOS_SYS_close    6
+
+/* syscall: "link" ret: "int" args: "const char *" "const char *" */
+#define        RUMP_SUNOS_SYS_link     9
+
+/* syscall: "unlink" ret: "int" args: "const char *" */
+#define        RUMP_SUNOS_SYS_unlink   10
+
+/* syscall: "chdir" ret: "int" args: "const char *" */
+#define        RUMP_SUNOS_SYS_chdir    12
+
+/* syscall: "fchdir" ret: "int" args: "int" */
+#define        RUMP_SUNOS_SYS_fchdir   13
+
+/* syscall: "chmod" ret: "int" args: "const char *" "int" */
+#define        RUMP_SUNOS_SYS_chmod    15
+
+/* syscall: "chown" ret: "int" args: "const char *" "int" "int" */
+#define        RUMP_SUNOS_SYS_chown    16
+
+/* syscall: "getpid" ret: "pid_t" args: */
+#define        RUMP_SUNOS_SYS_getpid   20
+
+/* syscall: "setuid" ret: "int" args: "int" */
+#define        RUMP_SUNOS_SYS_setuid   23
+
+/* syscall: "getuid" ret: "int" args: */
+#define        RUMP_SUNOS_SYS_getuid   24
+
+/* syscall: "geteuid" ret: "int" args: */
+#define        RUMP_SUNOS_SYS_geteuid  25
+
+/* syscall: "access" ret: "int" args: "const char *" "int" */
+#define        RUMP_SUNOS_SYS_access   33
+
+/* syscall: "sync" ret: "void" args: */
+#define        RUMP_SUNOS_SYS_sync     36
+
+/* syscall: "dup" ret: "int" args: "int" */
+#define        RUMP_SUNOS_SYS_dup      41
+
+/* syscall: "pipe" ret: "int" args: */
+#define        RUMP_SUNOS_SYS_pipe     42
+
+/* syscall: "getgid" ret: "int" args: */
+#define        RUMP_SUNOS_SYS_getgid   47
+
+/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
+#define        RUMP_SUNOS_SYS_symlink  57
+
+/* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "int" */
+#define        RUMP_SUNOS_SYS_readlink 58
+
+/* syscall: "umask" ret: "mode_t" args: "mode_t" */
+#define        RUMP_SUNOS_SYS_umask    60
+
+/* syscall: "chroot" ret: "int" args: "const char *" */
+#define        RUMP_SUNOS_SYS_chroot   61
+
+/* syscall: "getgroups" ret: "int" args: "int" "int *" */
+#define        RUMP_SUNOS_SYS_getgroups        79
+
+/* syscall: "setgroups" ret: "int" args: "int" "const int *" */
+#define        RUMP_SUNOS_SYS_setgroups        80
+
+/* syscall: "getpgrp" ret: "int" args: */
+#define        RUMP_SUNOS_SYS_getpgrp  81
+
+/* syscall: "setpgid" ret: "int" args: "int" "int" */
+#define        RUMP_SUNOS_SYS_setpgid  82
+
+/* syscall: "dup2" ret: "int" args: "int" "int" */
+#define        RUMP_SUNOS_SYS_dup2     90
+
+/* syscall: "fsync" ret: "int" args: "int" */
+#define        RUMP_SUNOS_SYS_fsync    95
+
+/* syscall: "readv" ret: "ssize_t" args: "int" "struct iovec *" "int" */
+#define        RUMP_SUNOS_SYS_readv    120
+
+/* syscall: "writev" ret: "ssize_t" args: "int" "struct iovec *" "int" */
+#define        RUMP_SUNOS_SYS_writev   121
+
+/* syscall: "fchown" ret: "int" args: "int" "int" "int" */
+#define        RUMP_SUNOS_SYS_fchown   123
+
+/* syscall: "fchmod" ret: "int" args: "int" "int" */
+#define        RUMP_SUNOS_SYS_fchmod   124
+
+/* syscall: "setreuid" ret: "int" args: "int" "int" */
+#define        RUMP_SUNOS_SYS_setreuid 126
+
+/* syscall: "setregid" ret: "int" args: "int" "int" */
+#define        RUMP_SUNOS_SYS_setregid 127
+
+/* syscall: "rename" ret: "int" args: "char *" "char *" */
+#define        RUMP_SUNOS_SYS_rename   128
+
+/* syscall: "flock" ret: "int" args: "int" "int" */
+#define        RUMP_SUNOS_SYS_flock    131
+
+/* syscall: "sendto" ret: "int" args: "int" "void *" "int" "int" "void *" "int" */
+#define        RUMP_SUNOS_SYS_sendto   133
+
+/* syscall: "shutdown" ret: "int" args: "int" "int" */
+#define        RUMP_SUNOS_SYS_shutdown 134
+
+/* syscall: "mkdir" ret: "int" args: "const char *" "int" */
+#define        RUMP_SUNOS_SYS_mkdir    136
+
+/* syscall: "rmdir" ret: "int" args: "const char *" */
+#define        RUMP_SUNOS_SYS_rmdir    137
+
+/* syscall: "setsid" ret: "int" args: */
+#define        RUMP_SUNOS_SYS_setsid   147
+
+/* syscall: "pread" ret: "ssize_t" args: "int" "char *" "size_t" "int" "off_t" */
+#define        RUMP_SUNOS_SYS_pread    173
+
+/* syscall: "pwrite" ret: "ssize_t" args: "int" "char *" "size_t" "int" "off_t" */
+#define        RUMP_SUNOS_SYS_pwrite   174
+
+/* syscall: "setgid" ret: "int" args: "gid_t" */
+#define        RUMP_SUNOS_SYS_setgid   181
+
+/* syscall: "setegid" ret: "int" args: "gid_t" */
+#define        RUMP_SUNOS_SYS_setegid  182
+
+/* syscall: "seteuid" ret: "int" args: "uid_t" */
+#define        RUMP_SUNOS_SYS_seteuid  183
+
+/* syscall: "lseek" ret: "long" args: "int" "int" "off_t" "int" */
+#define        RUMP_SUNOS_SYS_lseek    199
+
+/* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */
+#define        RUMP_SUNOS_SYS_truncate 200
+
+/* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */
+#define        RUMP_SUNOS_SYS_ftruncate        201
+
+/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
+#define        RUMP_SUNOS_SYS_getpgid  207
+
+/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
+#define        RUMP_SUNOS_SYS_poll     209
+
+/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
+#define        RUMP_SUNOS_SYS_getsid   286
+
+/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
+#define        RUMP_SUNOS_SYS___getcwd 296
+
+/* syscall: "fchroot" ret: "int" args: "int" */
+#define        RUMP_SUNOS_SYS_fchroot  297
+
+/* syscall: "__mknod50" ret: "int" args: "const char *" "mode_t" "int" */
+#define        RUMP_SUNOS_SYS___mknod50        450
+
+#define        RUMP_SUNOS_SYS_MAXSYSCALL       477
+#define        RUMP_SUNOS_SYS_NSYSENT  512
+#endif /* _RUMP_SUNOS_SYS_SYSCALL_H_ */
diff -r ba68de95626c -r fa35993bec35 sys/rump/kern/lib/libsys_sunos/rump_sunos_syscallargs.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/kern/lib/libsys_sunos/rump_sunos_syscallargs.h   Tue Apr 09 13:09:12 2013 +0000
@@ -0,0 +1,286 @@
+/* $NetBSD: rump_sunos_syscallargs.h,v 1.1 2013/04/09 13:09:12 pooka Exp $ */
+
+/*
+ * System call argument lists.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        NetBSD: syscalls.master,v 1.1 2013/04/09 13:08:33 pooka Exp
+ */
+
+#ifndef _RUMP_SUNOS_SYS_SYSCALLARGS_H_
+#define        _RUMP_SUNOS_SYS_SYSCALLARGS_H_
+
+#define        RUMP_SUNOS_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_SUNOS_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
+
+struct sys_read_args;
+
+struct sys_write_args;
+
+struct rump_sunos_sys_open_args {
+       syscallarg(const char *) path;
+       syscallarg(int) flags;
+       syscallarg(int) mode;
+};
+check_syscall_args(rump_sunos_sys_open)
+
+struct sys_close_args;
+
+struct sys_link_args;
+
+struct sys_unlink_args;
+
+struct sys_chdir_args;
+
+struct sys_fchdir_args;
+
+struct sys_chmod_args;
+
+struct sys_chown_args;
+
+struct sys_setuid_args;
+
+struct sys_access_args;
+
+struct sys_dup_args;
+
+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 sys_fsync_args;
+
+struct sys_readv_args;
+
+struct sys_writev_args;
+
+struct sys_fchown_args;
+
+struct sys_fchmod_args;
+
+struct sys_setreuid_args;
+
+struct sys_setregid_args;
+
+struct sys_rename_args;
+
+struct sys_flock_args;
+
+struct sys_sendto_args;
+
+struct sys_shutdown_args;
+
+struct sys_mkdir_args;
+
+struct sys_rmdir_args;
+
+struct sys_pread_args;



Home | Main Index | Thread Index | Old Index