summaryrefslogtreecommitdiffstats
path: root/sys/sys/syscallsubr.h
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2015-07-10 11:01:30 +0000
committermjg <mjg@FreeBSD.org>2015-07-10 11:01:30 +0000
commitb3aa72d2a3afd8802add40beef8863175fbb206e (patch)
treebd9f2571a32c9b100987261c39476143e32011ee /sys/sys/syscallsubr.h
parent04c0ab7814347e46757a387cae991a572fbf6bee (diff)
downloadFreeBSD-src-b3aa72d2a3afd8802add40beef8863175fbb206e.zip
FreeBSD-src-b3aa72d2a3afd8802add40beef8863175fbb206e.tar.gz
fd: split kern_dup flags argument into actual flags and a mode
Tidy up the code inside to switch on the mode.
Diffstat (limited to 'sys/sys/syscallsubr.h')
-rw-r--r--sys/sys/syscallsubr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index 625f834..3e2b2c8 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -85,7 +85,7 @@ int kern_clock_settime(struct thread *td, clockid_t clock_id,
int kern_close(struct thread *td, int fd);
int kern_connectat(struct thread *td, int dirfd, int fd,
struct sockaddr *sa);
-int kern_dup(struct thread *td, int flags, int old, int new);
+int kern_dup(struct thread *td, u_int mode, int flags, int old, int new);
int kern_execve(struct thread *td, struct image_args *args,
struct mac *mac_p);
int kern_fchmodat(struct thread *td, int fd, char *path,
OpenPOWER on IntegriCloud