Allow the creation of polling descriptors (kqueues) on CloudABI.
This commit is contained in:
parent
a2034cc98a
commit
4958fab8cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286310
@ -104,6 +104,9 @@ cloudabi_sys_fd_create1(struct thread *td,
|
||||
};
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user