Kernel: Implement linux's eventfd
This commit is contained in:
16
userspace/libraries/LibC/include/sys/eventfd.h
Normal file
16
userspace/libraries/LibC/include/sys/eventfd.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef _SYS_EVENTFD_H
|
||||
#define _SYS_EVENTFD_H 1
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#define EFD_CLOEXEC 0x1
|
||||
#define EFD_NONBLOCK 0x2
|
||||
#define EFD_SEMAPHORE 0x4
|
||||
|
||||
int eventfd(unsigned int initval, int flags);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user