diff options
author | jhb <jhb@FreeBSD.org> | 2017-02-08 18:32:35 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2017-02-08 18:32:35 +0000 |
commit | 35b15de17b53838c6a73dcbb7af21c1d3cac3c11 (patch) | |
tree | 132262bb0c2f8d194e47f5c0f818a8e361c9e4af /sys/sys | |
parent | 9921ea670c139b76859e2dfa7110c594cb0b355e (diff) | |
download | FreeBSD-src-35b15de17b53838c6a73dcbb7af21c1d3cac3c11.zip FreeBSD-src-35b15de17b53838c6a73dcbb7af21c1d3cac3c11.tar.gz |
MFC 310638:
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.
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/syscallsubr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h index 42ee515..eff7aca 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -109,7 +109,7 @@ int kern_futimens(struct thread *td, int fd, struct timespec *tptr, int kern_getdirentries(struct thread *td, int fd, char *buf, u_int count, long *basep, ssize_t *residp, enum uio_seg bufseg); int kern_getfsstat(struct thread *td, struct statfs **buf, size_t bufsize, - size_t *countp, enum uio_seg bufseg, int flags); + size_t *countp, enum uio_seg bufseg, int mode); int kern_getitimer(struct thread *, u_int, struct itimerval *); int kern_getppid(struct thread *); int kern_getpeername(struct thread *td, int fd, struct sockaddr **sa, |