Rename the 'flags' argument to getfsstat() to 'mode' and validate it.
authorjhb <jhb@FreeBSD.org>
Tue, 27 Dec 2016 20:21:11 +0000 (20:21 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 27 Dec 2016 20:21:11 +0000 (20:21 +0000)
commit9105298a664ba30e978d6c55a2d796db0ce325e0
treea57b0b23f31ae0835ce59df06e1ba584b56738cc
parent9309836141e0ae133f85d3a70d6a811e57834f1f
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
lib/libc/gen/getmntinfo.3
lib/libc/gen/getmntinfo.c
lib/libc/sys/getfsstat.2
sys/compat/freebsd32/freebsd32_misc.c
sys/compat/freebsd32/syscalls.master
sys/kern/syscalls.master
sys/kern/vfs_syscalls.c
sys/sys/syscallsubr.h