this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add libkqueue wrapper for kevent64 (#288)

+31
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 43 43 mman/msync.c 44 44 kqueue/kqueue.c 45 45 kqueue/kevent.c 46 + kqueue/kevent64.c 46 47 unistd/getsid.c 47 48 unistd/fsync.c 48 49 unistd/sync.c
+16
src/kernel/emulation/linux/kqueue/kevent64.c
··· 1 + #include "kevent.h" 2 + #include "../base.h" 3 + #include "../errno.h" 4 + #include <linux-syscalls/linux.h> 5 + #include <stddef.h> 6 + #include "../../../../../platform-include/sys/errno.h" 7 + 8 + int __attribute__((weak)) __attribute__((visibility("default"))) kevent64_impl(int kq, ...) { return -ENOSYS; } 9 + 10 + long sys_kevent64(int kq, const struct kevent64 *changelist, int nchanges, 11 + struct kevent64 *eventlist, int nevents, unsigned int flags, 12 + const struct timespec *timeout); 13 + { 14 + return kevent64_impl(kq, changelist, nchanges, eventlist, nevents, flags, timeout); 15 + } 16 +
+12
src/kernel/emulation/linux/kqueue/kevent64.h
··· 1 + #ifndef LINUX_KEVENT64_H 2 + #define LINUX_KEVENT64_H 3 + 4 + struct kevent64; 5 + struct timespec; 6 + 7 + long sys_kevent64(int kq, const struct kevent64 *changelist, int nchanges, 8 + struct kevent64 *eventlist, int nevents, unsigned int flags, 9 + const struct timespec *timeout); 10 + 11 + #endif 12 +
+2
src/kernel/emulation/linux/syscalls.c
··· 2 2 3 3 #include "kqueue/kqueue.h" 4 4 #include "kqueue/kevent.h" 5 + #include "kqueue/kevent64.h" 5 6 #include "unistd/write.h" 6 7 #include "unistd/read.h" 7 8 #include "guarded/guarded_open_np.h" ··· 339 340 [366] = sys_bsdthread_register, 340 341 [367] = sys_workq_open, 341 342 [368] = sys_workq_kernreturn, 343 + [369] = sys_kevent64, 342 344 [372] = sys_thread_selfid, 343 345 [394] = sys_pselect, 344 346 [395] = sys_pselect_nocancel,