diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-07-09 05:46:27 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-07-09 05:46:27 +0000 |
commit | 7f060b1bfc4d5b75a832544e92ed060710fc2043 (patch) | |
tree | 0361ee28b19fac27b4973a197f10182a20019f85 /sys/kern/vfs_syscalls.c | |
parent | 57c352f0970dfab25dca4b72438aff877c2f6e31 (diff) |
Fix up previous diff: use COMPAT_O48 instead of COMPAT_48, add option
to GENERIC, wrap compat_o48_sys_getdirentries() with an appropriate
#ifdef, and use struct compat_o48_sys_getdirentries_args instead of
struct sys_getdirentries_args.
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index b3ea6b28e85..cac2668f5be 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.173 2011/07/09 05:31:26 matthew Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.174 2011/07/09 05:46:26 matthew Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -2730,10 +2730,11 @@ sys_getdirentries(struct proc *p, void *v, register_t *retval) return error; } +#ifdef COMPAT_O48 int -compat_48_sys_getdirentries(struct proc *p, void *v, register_t *retval) +compat_o48_sys_getdirentries(struct proc *p, void *v, register_t *retval) { - struct sys_getdirentries_args /* { + struct compat_o48_sys_getdirentries_args /* { syscallarg(int) fd; syscallarg(char *) buf; syscallarg(int) count; @@ -2750,6 +2751,7 @@ compat_48_sys_getdirentries(struct proc *p, void *v, register_t *retval) } return error; } +#endif /* * Set the mode mask for creation of filesystem nodes. |