svn commit: r286310 - head/sys/compat/cloudabi
Ed Schouten
ed at FreeBSD.org
Wed Aug 5 07:37:07 UTC 2015
Author: ed
Date: Wed Aug 5 07:37:06 2015
New Revision: 286310
URL: https://svnweb.freebsd.org/changeset/base/286310
Log:
Allow the creation of polling descriptors (kqueues) on CloudABI.
Modified:
head/sys/compat/cloudabi/cloudabi_fd.c
Modified: head/sys/compat/cloudabi/cloudabi_fd.c
==============================================================================
--- head/sys/compat/cloudabi/cloudabi_fd.c Wed Aug 5 07:36:50 2015 (r286309)
+++ head/sys/compat/cloudabi/cloudabi_fd.c Wed Aug 5 07:37:06 2015 (r286310)
@@ -104,6 +104,9 @@ cloudabi_sys_fd_create1(struct thread *t
};
switch (uap->type) {
+ case CLOUDABI_FILETYPE_POLL:
+ cap_rights_init(&fcaps.fc_rights, CAP_FSTAT, CAP_KQUEUE);
+ return (kern_kqueue(td, 0, &fcaps));
case CLOUDABI_FILETYPE_SHARED_MEMORY:
cap_rights_init(&fcaps.fc_rights, CAP_FSTAT, CAP_FTRUNCATE,
CAP_MMAP_RWX);
More information about the svn-src-all
mailing list