diff options
author | jasoni <jasoni@cvs.openbsd.org> | 2000-03-27 22:38:45 +0000 |
---|---|---|
committer | jasoni <jasoni@cvs.openbsd.org> | 2000-03-27 22:38:45 +0000 |
commit | 7ec5f618715a12603059810b89dbdc44fe6509a2 (patch) | |
tree | 959fbba48c8da2a6164f98c8d2a8dc86aaf0c1a1 | |
parent | 14bc7d515a1508837e19acbfb2d7041eea819936 (diff) |
sync
-rw-r--r-- | sys/compat/linux/linux_syscall.h | 7 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscallargs.h | 10 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscalls.c | 6 | ||||
-rw-r--r-- | sys/compat/linux/linux_sysent.c | 8 |
4 files changed, 20 insertions, 11 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index f4afd6c6ce9..a3689da416d 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscall.h,v 1.17 2000/03/18 21:39:15 ian Exp $ */ +/* $OpenBSD: linux_syscall.h,v 1.18 2000/03/27 22:38:43 jasoni Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.18 2000/03/18 21:36:02 ian Exp + * created from OpenBSD: syscalls.master,v 1.19 2000/03/27 22:38:12 jasoni Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -411,6 +411,9 @@ /* syscall: "chown" ret: "int" args: "char *" "int" "int" */ #define LINUX_SYS_chown 182 +/* syscall: "getcwd" ret: "int" args: "char *" "size_t" */ +#define LINUX_SYS_getcwd 183 + /* syscall: "vfork" ret: "int" args: */ #define LINUX_SYS_vfork 190 diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index 9cf66c0c302..a60faf845b4 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscallargs.h,v 1.18 2000/03/18 21:39:16 ian Exp $ */ +/* $OpenBSD: linux_syscallargs.h,v 1.19 2000/03/27 22:38:44 jasoni Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.18 2000/03/18 21:36:02 ian Exp + * created from OpenBSD: syscalls.master,v 1.19 2000/03/27 22:38:12 jasoni Exp */ #define syscallarg(x) union { x datum; register_t pad; } @@ -403,6 +403,11 @@ struct linux_sys_chown_args { syscallarg(int) gid; }; +struct linux_sys_getcwd_args { + syscallarg(char *) bufp; + syscallarg(size_t) length; +}; + /* * System call prototypes. */ @@ -550,4 +555,5 @@ int linux_sys_rt_sigprocmask __P((struct proc *, void *, register_t *)); int linux_sys_rt_sigpending __P((struct proc *, void *, register_t *)); int linux_sys_rt_sigsuspend __P((struct proc *, void *, register_t *)); int linux_sys_chown __P((struct proc *, void *, register_t *)); +int linux_sys_getcwd __P((struct proc *, void *, register_t *)); int sys_vfork __P((struct proc *, void *, register_t *)); diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c index b391c254b31..b92ffec0415 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscalls.c,v 1.17 2000/03/18 21:39:16 ian Exp $ */ +/* $OpenBSD: linux_syscalls.c,v 1.18 2000/03/27 22:38:44 jasoni Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.18 2000/03/18 21:36:02 ian Exp + * created from OpenBSD: syscalls.master,v 1.19 2000/03/27 22:38:12 jasoni Exp */ char *linux_syscallnames[] = { @@ -203,7 +203,7 @@ char *linux_syscallnames[] = { "#180 (unimplemented pread)", /* 180 = unimplemented pread */ "#181 (unimplemented pwrite)", /* 181 = unimplemented pwrite */ "chown", /* 182 = chown */ - "#183 (unimplemented getcwd)", /* 183 = unimplemented getcwd */ + "getcwd", /* 183 = getcwd */ "#184 (unimplemented capget)", /* 184 = unimplemented capget */ "#185 (unimplemented capset)", /* 185 = unimplemented capset */ "#186 (unimplemented sigaltstack)", /* 186 = unimplemented sigaltstack */ diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c index 66e97489a8f..9a024a51725 100644 --- a/sys/compat/linux/linux_sysent.c +++ b/sys/compat/linux/linux_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_sysent.c,v 1.18 2000/03/18 21:39:16 ian Exp $ */ +/* $OpenBSD: linux_sysent.c,v 1.19 2000/03/27 22:38:44 jasoni Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.18 2000/03/18 21:36:02 ian Exp + * created from OpenBSD: syscalls.master,v 1.19 2000/03/27 22:38:12 jasoni Exp */ #include <sys/param.h> @@ -401,8 +401,8 @@ struct sysent linux_sysent[] = { sys_nosys }, /* 181 = unimplemented pwrite */ { 3, s(struct linux_sys_chown_args), linux_sys_chown }, /* 182 = chown */ - { 0, 0, - sys_nosys }, /* 183 = unimplemented getcwd */ + { 2, s(struct linux_sys_getcwd_args), + linux_sys_getcwd }, /* 183 = getcwd */ { 0, 0, sys_nosys }, /* 184 = unimplemented capget */ { 0, 0, |