diff options
author | Dmitry Chagin <dchagin@FreeBSD.org> | 2015-05-24 16:36:29 +0000 |
---|---|---|
committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2015-05-24 16:36:29 +0000 |
commit | 7236f2c2204245cee636e681cfccc666472cc6ed (patch) | |
tree | 431808f9761b38df2b0929d3aab59e621f3153e7 /sys/sys | |
parent | d2b6dbc06f1baccca3c3287f0511216e0d66cc39 (diff) | |
download | src-7236f2c2204245cee636e681cfccc666472cc6ed.tar.gz src-7236f2c2204245cee636e681cfccc666472cc6ed.zip |
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]
Differential Revision: https://reviews.freebsd.org/D1091
Reviewed by: trasz
Notes
Notes:
svn path=/head/; revision=283440
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 a6dca3139308..4ff111ee8a3e 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -121,6 +121,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); |