diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-01-09 16:39:15 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-01-09 16:39:15 +0000 |
commit | b6688c70e9ec109f6468205ab8e4bf8a760871f8 (patch) | |
tree | 63a6225c9b71adb9b52d77576dfc9d55d1c615f9 /sys/sys | |
parent | a95b158e60a1b9ea3ee39e786c0afae59fe94f5e (diff) | |
download | FreeBSD-src-b6688c70e9ec109f6468205ab8e4bf8a760871f8.zip FreeBSD-src-b6688c70e9ec109f6468205ab8e4bf8a760871f8.tar.gz |
MFC r283440:
For future use in the Linuxulator:
1. Add a kern_kqueue() counterpart for kqueue() with flags parameter.
2. Be a bit secure. To avoid a double fp lookup add a kern_kevent_fp()
counterpart for kern_kevent() with file pointer parameter instead
of file descriptor an pass the buck to it.
Suggested by: mjg [2]
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/syscallsubr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h index deeac83..e038c98 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -128,6 +128,10 @@ int kern_jail_get(struct thread *td, struct uio *options, int flags); int kern_jail_set(struct thread *td, struct uio *options, int flags); int kern_kevent(struct thread *td, int fd, int nchanges, int nevents, struct kevent_copyops *k_ops, const struct timespec *timeout); +int kern_kevent_fp(struct thread *td, struct file *fp, int nchanges, + int nevents, struct kevent_copyops *k_ops, + const struct timespec *timeout); +int kern_kqueue(struct thread *td, int flags); int kern_kldload(struct thread *td, const char *file, int *fileid); int kern_kldstat(struct thread *td, int fileid, struct kld_file_stat *stat); int kern_kldunload(struct thread *td, int fileid, int flags); |