mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-08 07:42:09 +03:00
fix eventfd and inotify nonblock/cloexec flags to match arch values
This commit is contained in:
parent
56c6943efe
commit
b4d8a16c1a
@ -6,12 +6,13 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
typedef uint64_t eventfd_t;
|
typedef uint64_t eventfd_t;
|
||||||
|
|
||||||
#define EFD_SEMAPHORE 1
|
#define EFD_SEMAPHORE 1
|
||||||
#define EFD_CLOEXEC 02000000
|
#define EFD_CLOEXEC O_CLOEXEC
|
||||||
#define EFD_NONBLOCK 04000
|
#define EFD_NONBLOCK O_NONBLOCK
|
||||||
|
|
||||||
int eventfd(unsigned int, int);
|
int eventfd(unsigned int, int);
|
||||||
int eventfd_read(int, eventfd_t *);
|
int eventfd_read(int, eventfd_t *);
|
||||||
|
@ -6,6 +6,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
struct inotify_event {
|
struct inotify_event {
|
||||||
int wd;
|
int wd;
|
||||||
@ -13,8 +14,8 @@ struct inotify_event {
|
|||||||
char name[];
|
char name[];
|
||||||
};
|
};
|
||||||
|
|
||||||
#define IN_CLOEXEC 02000000
|
#define IN_CLOEXEC O_CLOEXEC
|
||||||
#define IN_NONBLOCK 04000
|
#define IN_NONBLOCK O_NONBLOCK
|
||||||
|
|
||||||
#define IN_ACCESS 0x00000001
|
#define IN_ACCESS 0x00000001
|
||||||
#define IN_MODIFY 0x00000002
|
#define IN_MODIFY 0x00000002
|
||||||
|
Loading…
Reference in New Issue
Block a user