diff options
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_syscall.h | 5 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscallargs.h | 8 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscalls.c | 4 | ||||
-rw-r--r-- | sys/compat/linux/linux_sysent.c | 6 |
4 files changed, 16 insertions, 7 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index 7d36e11148d..1f6887602bf 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_syscall.h,v 1.69 2011/12/14 08:33:54 robert Exp $ */ +/* $OpenBSD: linux_syscall.h,v 1.70 2012/05/23 11:12:46 pirofti Exp $ */ /* * System call numbers. @@ -742,6 +742,9 @@ /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct l_timespec *" */ #define LINUX_SYS_clock_getres 266 +/* syscall: "statfs64" ret: "int" args: "char *" "struct linux_statfs64 *" */ +#define LINUX_SYS_statfs64 268 + /* syscall: "set_robust_list" ret: "int" args: "struct linux_robust_list_head *" "size_t" */ #define LINUX_SYS_set_robust_list 311 diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index 03088c06403..23404366a8e 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_syscallargs.h,v 1.71 2011/12/14 08:33:54 robert Exp $ */ +/* $OpenBSD: linux_syscallargs.h,v 1.72 2012/05/23 11:12:46 pirofti Exp $ */ /* * System call argument lists. @@ -613,6 +613,11 @@ struct linux_sys_clock_getres_args { syscallarg(struct l_timespec *) tp; }; +struct linux_sys_statfs64_args { + syscallarg(char *) path; + syscallarg(struct linux_statfs64 *) sp; +}; + struct linux_sys_set_robust_list_args { syscallarg(struct linux_robust_list_head *) head; syscallarg(size_t) len; @@ -893,6 +898,7 @@ int sys_exit(struct proc *, void *, register_t *); int linux_sys_set_tid_address(struct proc *, void *, register_t *); int linux_sys_clock_gettime(struct proc *, void *, register_t *); int linux_sys_clock_getres(struct proc *, void *, register_t *); +int linux_sys_statfs64(struct proc *, void *, register_t *); int linux_sys_set_robust_list(struct proc *, void *, register_t *); int linux_sys_get_robust_list(struct proc *, void *, register_t *); int linux_sys_pipe2(struct proc *, void *, register_t *); diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c index 72b23328e6a..ce29273bf42 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_syscalls.c,v 1.69 2011/12/14 08:33:54 robert Exp $ */ +/* $OpenBSD: linux_syscalls.c,v 1.70 2012/05/23 11:12:46 pirofti Exp $ */ /* * System call names. @@ -296,7 +296,7 @@ char *linux_syscallnames[] = { "clock_gettime", /* 265 = clock_gettime */ "clock_getres", /* 266 = clock_getres */ "#267 (unimplemented linux_sys_clock_nanosleep)", /* 267 = unimplemented linux_sys_clock_nanosleep */ - "#268 (unimplemented linux_sys_statfs64)", /* 268 = unimplemented linux_sys_statfs64 */ + "statfs64", /* 268 = statfs64 */ "#269 (unimplemented linux_sys_fstatfs64)", /* 269 = unimplemented linux_sys_fstatfs64 */ "#270 (unimplemented linux_sys_tgkill)", /* 270 = unimplemented linux_sys_tgkill */ "#271 (unimplemented linux_sys_utimes)", /* 271 = unimplemented linux_sys_utimes */ diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c index d521485e358..da2d0999c04 100644 --- a/sys/compat/linux/linux_sysent.c +++ b/sys/compat/linux/linux_sysent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_sysent.c,v 1.70 2011/12/14 08:33:54 robert Exp $ */ +/* $OpenBSD: linux_sysent.c,v 1.71 2012/05/23 11:12:46 pirofti Exp $ */ /* * System call switch table. @@ -582,8 +582,8 @@ struct sysent linux_sysent[] = { linux_sys_clock_getres }, /* 266 = clock_getres */ { 0, 0, 0, sys_nosys }, /* 267 = unimplemented linux_sys_clock_nanosleep */ - { 0, 0, 0, - sys_nosys }, /* 268 = unimplemented linux_sys_statfs64 */ + { 2, s(struct linux_sys_statfs64_args), 0, + linux_sys_statfs64 }, /* 268 = statfs64 */ { 0, 0, 0, sys_nosys }, /* 269 = unimplemented linux_sys_fstatfs64 */ { 0, 0, 0, |