-/* $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: */
/* 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
-/* $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; }
syscallarg(int) gid;
};
+struct linux_sys_getcwd_args {
+ syscallarg(char *) bufp;
+ syscallarg(size_t) length;
+};
+
/*
* System call prototypes.
*/
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 *));
-/* $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[] = {
"#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 */
-/* $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>
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,