From 9cedd4d52c52b7d4511fb969386e788a62e49b84 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 19 Nov 2011 06:35:15 +0000 Subject: Improve *access*() parameter name consistency. The current code mixes the use of `flags' and `mode'. This is a bit confusing, since the faccessat() function as a `flag' parameter to store the AT_ flag. Make this less confusing by using the same name as used in the POSIX specification -- `amode'. --- sys/compat/svr4/svr4_fcntl.c | 2 +- sys/compat/svr4/syscalls.master | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/compat/svr4') diff --git a/sys/compat/svr4/svr4_fcntl.c b/sys/compat/svr4/svr4_fcntl.c index cbca7e2..b9d3ace 100644 --- a/sys/compat/svr4/svr4_fcntl.c +++ b/sys/compat/svr4/svr4_fcntl.c @@ -488,7 +488,7 @@ svr4_sys_access(td, uap) int error; CHECKALTEXIST(td, uap->path, &newpath); - error = kern_access(td, newpath, UIO_SYSSPACE, uap->flags); + error = kern_access(td, newpath, UIO_SYSSPACE, uap->amode); free(newpath, M_TEMP); return (error); } diff --git a/sys/compat/svr4/syscalls.master b/sys/compat/svr4/syscalls.master index 2d6afee..0997ab7 100644 --- a/sys/compat/svr4/syscalls.master +++ b/sys/compat/svr4/syscalls.master @@ -77,7 +77,7 @@ 31 AUE_NULL UNIMPL stty 32 AUE_NULL UNIMPL gtty 33 AUE_NULL STD { int svr4_sys_access(char *path, \ - int flags); } + int amode); } 34 AUE_NULL STD { int svr4_sys_nice(int prio); } 35 AUE_NULL UNIMPL statfs 36 AUE_NULL NOPROTO { int sync(void); } -- cgit v1.1