Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls.
(aarch64 kernels only have the newer system calls.) Also expose the new functionality that's exposed by glibc in our header files. Change-Id: I45d2d168a03f88723d1f7fbf634701006a4843c5
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#define _SYS_EPOLL_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <asm/fcntl.h> /* For O_CLOEXEC. */
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
@@ -51,7 +52,9 @@ __BEGIN_DECLS
|
||||
#define EPOLL_CTL_DEL 2
|
||||
#define EPOLL_CTL_MOD 3
|
||||
|
||||
typedef union epoll_data
|
||||
#define EPOLL_CLOEXEC O_CLOEXEC
|
||||
|
||||
typedef union epoll_data
|
||||
{
|
||||
void *ptr;
|
||||
int fd;
|
||||
@@ -59,17 +62,17 @@ typedef union epoll_data
|
||||
unsigned long long u64;
|
||||
} epoll_data_t;
|
||||
|
||||
struct epoll_event
|
||||
struct epoll_event
|
||||
{
|
||||
unsigned int events;
|
||||
epoll_data_t data;
|
||||
};
|
||||
|
||||
int epoll_create(int size);
|
||||
int epoll_create1(int flags);
|
||||
int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event);
|
||||
int epoll_wait(int epfd, struct epoll_event *events, int max, int timeout);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _SYS_EPOLL_H_ */
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_EVENTFD_H
|
||||
#define _SYS_EVENTFD_H
|
||||
|
||||
|
||||
@@ -29,14 +29,19 @@
|
||||
#define _SYS_INOTIFY_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <linux/inotify.h>
|
||||
#include <asm/fcntl.h> /* For O_CLOEXEC and O_NONBLOCK. */
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#define IN_CLOEXEC O_CLOEXEC
|
||||
#define IN_NONBLOCK O_NONBLOCK
|
||||
|
||||
extern int inotify_init(void);
|
||||
extern int inotify_add_watch(int, const char *, __u32);
|
||||
extern int inotify_rm_watch(int, __u32);
|
||||
extern int inotify_init1(int);
|
||||
extern int inotify_add_watch(int, const char*, uint32_t);
|
||||
extern int inotify_rm_watch(int, uint32_t);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ extern int chdir(const char *);
|
||||
extern int fchdir(int);
|
||||
extern int rmdir(const char *);
|
||||
extern int pipe(int *);
|
||||
#ifdef _GNU_SOURCE /* GLibc compatibility */
|
||||
#ifdef _GNU_SOURCE
|
||||
extern int pipe2(int *, int);
|
||||
#endif
|
||||
extern int chroot(const char *);
|
||||
@@ -145,6 +145,9 @@ extern ssize_t pwrite64(int, const void *, size_t, off64_t);
|
||||
|
||||
extern int dup(int);
|
||||
extern int dup2(int, int);
|
||||
#ifdef _GNU_SOURCE
|
||||
extern int dup3(int, int, int);
|
||||
#endif
|
||||
extern int fcntl(int, int, ...);
|
||||
extern int ioctl(int, int, ...);
|
||||
extern int flock(int, int);
|
||||
|
||||
Reference in New Issue
Block a user