diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-09-18 02:15:05 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-09-18 02:15:05 +0000 |
commit | 08b7e4ce36c15b7aecac4bb60e35a89bacc74867 (patch) | |
tree | 98ab15c72a5acfbe98e4f75f62de4b9aa8df5dd4 /sys | |
parent | ba8b3f3e32dcd258742a04aeb1b32c1a6510c4e6 (diff) |
Correct argument name (int flags -> int amode) in sys_access().
OK guenther@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/syscalls.master | 4 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index a29e2200ff7..1190119445c 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.146 2014/09/17 19:26:06 millert Exp $ +; $OpenBSD: syscalls.master,v 1.147 2014/09/18 02:15:04 uebayasi Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -101,7 +101,7 @@ socklen_t *alen); } 32 STD { int sys_getsockname(int fdes, struct sockaddr *asa, \ socklen_t *alen); } -33 STD { int sys_access(const char *path, int flags); } +33 STD { int sys_access(const char *path, int amode); } 34 STD { int sys_chflags(const char *path, u_int flags); } 35 STD { int sys_fchflags(int fd, u_int flags); } 36 STD { void sys_sync(void); } diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 11d1afba894..941b40f08ae 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.208 2014/07/12 18:43:32 tedu Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.209 2014/09/18 02:15:04 uebayasi Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -1600,11 +1600,11 @@ sys_access(struct proc *p, void *v, register_t *retval) { struct sys_access_args /* { syscallarg(const char *) path; - syscallarg(int) flags; + syscallarg(int) amode; } */ *uap = v; return (dofaccessat(p, AT_FDCWD, SCARG(uap, path), - SCARG(uap, flags), 0)); + SCARG(uap, amode), 0)); } int |