aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/syscalls.master
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-12-27 20:21:11 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-12-27 20:21:11 +0000
commit34ed0c63c8786dbf3e2241f5a8bac9ae8e76bdc6 (patch)
treea57b0b23f31ae0835ce59df06e1ba584b56738cc /sys/kern/syscalls.master
parent3a48aebfbe91248dadd5042d9e4e6822c85ebf86 (diff)
downloadsrc-34ed0c63c8786dbf3e2241f5a8bac9ae8e76bdc6.tar.gz
src-34ed0c63c8786dbf3e2241f5a8bac9ae8e76bdc6.zip
Rename the 'flags' argument to getfsstat() to 'mode' and validate it.
This argument is not a bitmask of flags, but only accepts a single value. Fail with EINVAL if an invalid value is passed to 'flag'. Rename the 'flags' argument to getmntinfo(3) to 'mode' as well to match. This is a followup to r308088. Reviewed by: kib MFC after: 1 month
Notes
Notes: svn path=/head/; revision=310638
Diffstat (limited to 'sys/kern/syscalls.master')
-rw-r--r--sys/kern/syscalls.master4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index e55d94198576..61b3ffac614f 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -85,7 +85,7 @@
17 AUE_NULL STD { int obreak(char *nsize); } break \
obreak_args int
18 AUE_GETFSSTAT COMPAT4 { int getfsstat(struct ostatfs *buf, \
- long bufsize, int flags); }
+ long bufsize, int mode); }
19 AUE_LSEEK COMPAT { long lseek(int fd, long offset, \
int whence); }
20 AUE_GETPID STD { pid_t getpid(void); }
@@ -706,7 +706,7 @@
394 AUE_NULL STD { int mac_syscall(const char *policy, \
int call, void *arg); }
395 AUE_GETFSSTAT STD { int getfsstat(struct statfs *buf, \
- long bufsize, int flags); }
+ long bufsize, int mode); }
396 AUE_STATFS STD { int statfs(char *path, \
struct statfs *buf); }
397 AUE_FSTATFS STD { int fstatfs(int fd, struct statfs *buf); }