this repo has no description
1
fork

Configure Feed

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

Add proper kqueue/kevent wrappers

+54
+16
src/kernel/emulation/linux/kqueue/kevent.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"))) kevent_impl(int kq, ...) { return -ENOSYS; } 9 + 10 + long sys_kevent(int kq, const struct kevent *changelist, int nchanges, 11 + struct kevent *eventlist, int nevents, 12 + const struct timespec *timeout) 13 + { 14 + return kevent_impl(kq, changelist, nchanges, eventlist, nevents, timeout); 15 + } 16 +
+12
src/kernel/emulation/linux/kqueue/kevent.h
··· 1 + #ifndef LINUX_KEVENT_H 2 + #define LINUX_KEVENT_H 3 + 4 + struct kevent; 5 + struct timespec; 6 + 7 + long sys_kevent(int kq, const struct kevent *changelist, int nchanges, 8 + struct kevent *eventlist, int nevents, 9 + const struct timespec *timeout); 10 + 11 + #endif 12 +
+19
src/kernel/emulation/linux/kqueue/kqueue.c
··· 1 + #include "kqueue.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 + #include "../simple.h" 8 + 9 + int __attribute__((weak)) __attribute__((visibility("default"))) kqueue_impl(void) 10 + { 11 + __simple_printf("No kqueue implementation?!\n"); 12 + return -ENOSYS; 13 + } 14 + 15 + long sys_kqueue(void) 16 + { 17 + return kqueue_impl(); 18 + } 19 +
+7
src/kernel/emulation/linux/kqueue/kqueue.h
··· 1 + #ifndef LINUX_KQUEUE_H 2 + #define LINUX_KQUEUE_H 3 + 4 + long sys_kqueue(void); 5 + 6 + #endif 7 +