diff options
author | ed <ed@FreeBSD.org> | 2011-11-19 06:35:15 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-19 06:35:15 +0000 |
commit | 9cedd4d52c52b7d4511fb969386e788a62e49b84 (patch) | |
tree | 5afd09d03606293b75fe136df777b33a9dfe8703 /sys/compat/svr4 | |
parent | f0a67116809a4da6e49f05917afce94700cdf014 (diff) | |
download | FreeBSD-src-9cedd4d52c52b7d4511fb969386e788a62e49b84.zip FreeBSD-src-9cedd4d52c52b7d4511fb969386e788a62e49b84.tar.gz |
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'.
Diffstat (limited to 'sys/compat/svr4')
-rw-r--r-- | sys/compat/svr4/svr4_fcntl.c | 2 | ||||
-rw-r--r-- | sys/compat/svr4/syscalls.master | 2 |
2 files changed, 2 insertions, 2 deletions
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); } |