summaryrefslogtreecommitdiffstats
path: root/sys/sys/syscallsubr.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2015-05-24 16:36:29 +0000
committerdchagin <dchagin@FreeBSD.org>2015-05-24 16:36:29 +0000
commite7fb40a8a0408eebda8378dd35f1d806d84a0114 (patch)
tree431808f9761b38df2b0929d3aab59e621f3153e7 /sys/sys/syscallsubr.h
parentafc381ebf7b04eda681277d22c1f70390d1405b1 (diff)
downloadFreeBSD-src-e7fb40a8a0408eebda8378dd35f1d806d84a0114.zip
FreeBSD-src-e7fb40a8a0408eebda8378dd35f1d806d84a0114.tar.gz
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
Diffstat (limited to 'sys/sys/syscallsubr.h')
-rw-r--r--sys/sys/syscallsubr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index a6dca31..4ff111e 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);
OpenPOWER on IntegriCloud