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



details:   https://anonhg.NetBSD.org/src/rev/5a7c9892f9fb
branches:  trunk
changeset: 785999:5a7c9892f9fb
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Apr 10 16:45:45 2013 +0000

description:
gen

diffstat:

 sys/rump/kern/lib/libsys_cygwin/rump_cygwin_syscall.h     |   179 ++
 sys/rump/kern/lib/libsys_cygwin/rump_cygwin_syscallargs.h |   278 +++
 sys/rump/kern/lib/libsys_cygwin/rump_cygwin_syscalls.c    |   537 ++++++
 sys/rump/kern/lib/libsys_cygwin/rump_cygwin_sysent.c      |  1051 +++++++++++++
 4 files changed, 2045 insertions(+), 0 deletions(-)

diffs (truncated from 2061 to 300 lines):

diff -r 6355c94c44d4 -r 5a7c9892f9fb sys/rump/kern/lib/libsys_cygwin/rump_cygwin_syscall.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/kern/lib/libsys_cygwin/rump_cygwin_syscall.h     Wed Apr 10 16:45:45 2013 +0000
@@ -0,0 +1,179 @@
+/* $NetBSD: rump_cygwin_syscall.h,v 1.1 2013/04/10 16:45:45 pooka Exp $ */
+
+/*
+ * System call numbers.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        NetBSD: syscalls.master,v 1.1 2013/04/10 16:44:54 pooka Exp
+ */
+
+#ifndef _RUMP_CYGWIN_SYS_SYSCALL_H_
+#define        _RUMP_CYGWIN_SYS_SYSCALL_H_
+
+#define        RUMP_CYGWIN_SYS_MAXSYSARGS      8
+
+/* syscall: "nosys" ret: "int" args: */
+#define        RUMP_CYGWIN_SYS_nosys   0
+
+/* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
+#define        RUMP_CYGWIN_SYS_read    3
+
+/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
+#define        RUMP_CYGWIN_SYS_write   4
+
+/* syscall: "close" ret: "int" args: "int" */
+#define        RUMP_CYGWIN_SYS_close   6
+
+/* syscall: "link" ret: "int" args: "const char *" "const char *" */
+#define        RUMP_CYGWIN_SYS_link    9
+
+/* syscall: "unlink" ret: "int" args: "const char *" */
+#define        RUMP_CYGWIN_SYS_unlink  10
+
+/* syscall: "chdir" ret: "int" args: "const char *" */
+#define        RUMP_CYGWIN_SYS_chdir   12
+
+/* syscall: "fchdir" ret: "int" args: "int" */
+#define        RUMP_CYGWIN_SYS_fchdir  13
+
+/* syscall: "chmod" ret: "int" args: "const char *" "int" */
+#define        RUMP_CYGWIN_SYS_chmod   15
+
+/* syscall: "chown" ret: "int" args: "const char *" "int" "int" */
+#define        RUMP_CYGWIN_SYS_chown   16
+
+/* syscall: "getpid" ret: "pid_t" args: */
+#define        RUMP_CYGWIN_SYS_getpid  20
+
+/* syscall: "setuid" ret: "int" args: "int" */
+#define        RUMP_CYGWIN_SYS_setuid  23
+
+/* syscall: "getuid" ret: "int" args: */
+#define        RUMP_CYGWIN_SYS_getuid  24
+
+/* syscall: "geteuid" ret: "int" args: */
+#define        RUMP_CYGWIN_SYS_geteuid 25
+
+/* syscall: "access" ret: "int" args: "const char *" "int" */
+#define        RUMP_CYGWIN_SYS_access  33
+
+/* syscall: "sync" ret: "void" args: */
+#define        RUMP_CYGWIN_SYS_sync    36
+
+/* syscall: "dup" ret: "int" args: "int" */
+#define        RUMP_CYGWIN_SYS_dup     41
+
+/* syscall: "pipe" ret: "int" args: */
+#define        RUMP_CYGWIN_SYS_pipe    42
+
+/* syscall: "getgid" ret: "int" args: */
+#define        RUMP_CYGWIN_SYS_getgid  47
+
+/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
+#define        RUMP_CYGWIN_SYS_symlink 57
+
+/* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "int" */
+#define        RUMP_CYGWIN_SYS_readlink        58
+
+/* syscall: "umask" ret: "mode_t" args: "mode_t" */
+#define        RUMP_CYGWIN_SYS_umask   60
+
+/* syscall: "chroot" ret: "int" args: "const char *" */
+#define        RUMP_CYGWIN_SYS_chroot  61
+
+/* syscall: "getgroups" ret: "int" args: "int" "int *" */
+#define        RUMP_CYGWIN_SYS_getgroups       79
+
+/* syscall: "setgroups" ret: "int" args: "int" "const int *" */
+#define        RUMP_CYGWIN_SYS_setgroups       80
+
+/* syscall: "getpgrp" ret: "int" args: */
+#define        RUMP_CYGWIN_SYS_getpgrp 81
+
+/* syscall: "setpgid" ret: "int" args: "int" "int" */
+#define        RUMP_CYGWIN_SYS_setpgid 82
+
+/* syscall: "dup2" ret: "int" args: "int" "int" */
+#define        RUMP_CYGWIN_SYS_dup2    90
+
+/* syscall: "fsync" ret: "int" args: "int" */
+#define        RUMP_CYGWIN_SYS_fsync   95
+
+/* syscall: "readv" ret: "ssize_t" args: "int" "struct iovec *" "int" */
+#define        RUMP_CYGWIN_SYS_readv   120
+
+/* syscall: "writev" ret: "ssize_t" args: "int" "struct iovec *" "int" */
+#define        RUMP_CYGWIN_SYS_writev  121
+
+/* syscall: "fchown" ret: "int" args: "int" "int" "int" */
+#define        RUMP_CYGWIN_SYS_fchown  123
+
+/* syscall: "fchmod" ret: "int" args: "int" "int" */
+#define        RUMP_CYGWIN_SYS_fchmod  124
+
+/* syscall: "setreuid" ret: "int" args: "int" "int" */
+#define        RUMP_CYGWIN_SYS_setreuid        126
+
+/* syscall: "setregid" ret: "int" args: "int" "int" */
+#define        RUMP_CYGWIN_SYS_setregid        127
+
+/* syscall: "rename" ret: "int" args: "char *" "char *" */
+#define        RUMP_CYGWIN_SYS_rename  128
+
+/* syscall: "flock" ret: "int" args: "int" "int" */
+#define        RUMP_CYGWIN_SYS_flock   131
+
+/* syscall: "mkdir" ret: "int" args: "const char *" "int" */
+#define        RUMP_CYGWIN_SYS_mkdir   136
+
+/* syscall: "rmdir" ret: "int" args: "const char *" */
+#define        RUMP_CYGWIN_SYS_rmdir   137
+
+/* syscall: "setsid" ret: "int" args: */
+#define        RUMP_CYGWIN_SYS_setsid  147
+
+/* syscall: "pread" ret: "ssize_t" args: "int" "char *" "size_t" "int" "off_t" */
+#define        RUMP_CYGWIN_SYS_pread   173
+
+/* syscall: "pwrite" ret: "ssize_t" args: "int" "char *" "size_t" "int" "off_t" */
+#define        RUMP_CYGWIN_SYS_pwrite  174
+
+/* syscall: "setgid" ret: "int" args: "gid_t" */
+#define        RUMP_CYGWIN_SYS_setgid  181
+
+/* syscall: "setegid" ret: "int" args: "gid_t" */
+#define        RUMP_CYGWIN_SYS_setegid 182
+
+/* syscall: "seteuid" ret: "int" args: "uid_t" */
+#define        RUMP_CYGWIN_SYS_seteuid 183
+
+/* syscall: "lseek" ret: "long" args: "int" "int" "off_t" "int" */
+#define        RUMP_CYGWIN_SYS_lseek   199
+
+/* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */
+#define        RUMP_CYGWIN_SYS_truncate        200
+
+/* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */
+#define        RUMP_CYGWIN_SYS_ftruncate       201
+
+/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
+#define        RUMP_CYGWIN_SYS_getpgid 207
+
+/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
+#define        RUMP_CYGWIN_SYS_poll    209
+
+/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
+#define        RUMP_CYGWIN_SYS_getsid  286
+
+/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
+#define        RUMP_CYGWIN_SYS___getcwd        296
+
+/* syscall: "fchroot" ret: "int" args: "int" */
+#define        RUMP_CYGWIN_SYS_fchroot 297
+
+/* syscall: "__mknod50" ret: "int" args: "const char *" "mode_t" "int" */
+#define        RUMP_CYGWIN_SYS___mknod50       450
+
+#define        RUMP_CYGWIN_SYS_MAXSYSCALL      477
+#define        RUMP_CYGWIN_SYS_NSYSENT 512
+#endif /* _RUMP_CYGWIN_SYS_SYSCALL_H_ */
diff -r 6355c94c44d4 -r 5a7c9892f9fb sys/rump/kern/lib/libsys_cygwin/rump_cygwin_syscallargs.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/kern/lib/libsys_cygwin/rump_cygwin_syscallargs.h Wed Apr 10 16:45:45 2013 +0000
@@ -0,0 +1,278 @@
+/* $NetBSD: rump_cygwin_syscallargs.h,v 1.1 2013/04/10 16:45:45 pooka Exp $ */
+
+/*
+ * System call argument lists.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        NetBSD: syscalls.master,v 1.1 2013/04/10 16:44:54 pooka Exp
+ */
+
+#ifndef _RUMP_CYGWIN_SYS_SYSCALLARGS_H_
+#define        _RUMP_CYGWIN_SYS_SYSCALLARGS_H_
+
+#define        RUMP_CYGWIN_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_CYGWIN_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
+
+struct sys_read_args;
+
+struct sys_write_args;
+
+struct rump_cygwin_sys_open_args {
+       syscallarg(const char *) path;
+       syscallarg(int) flags;
+       syscallarg(int) mode;
+};
+check_syscall_args(rump_cygwin_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_mkdir_args;
+
+struct sys_rmdir_args;
+
+struct sys_pread_args;
+
+struct sys_pwrite_args;
+
+struct sys_setgid_args;
+
+struct sys_setegid_args;
+
+struct sys_seteuid_args;
+
+struct sys_lseek_args;



Home | Main Index | Thread Index | Old Index