1 #ifndef ULINUX_NAMESPACE_H
2 #define ULINUX_NAMESPACE_H
3 #define rt_sigprocmask(a,b,c,d) ulinux_sysc(rt_sigprocmask,4,a,b,c,d)
4 #define SIG_BLOCK ULINUX_SIG_BLOCK
5 #define SIG_UNBLOCK ULINUX_SIG_UNBLOCK
6 #define exit_group(a) ulinux_sysc(exit_group,1,a)
7 #define MS_NOATIME ULINUX_MS_NOATIME
8 #define MS_NODIRATIME ULINUX_MS_NODIRATIME
9 #define MS_MOVE ULINUX_MS_MOVE
10 #define mount(a,b,c,d,e) ulinux_sysc(mount,5,a,b,c,d,e)
11 #define umount(a) ulinux_sysc(umount2,2,a,0)
12 #define chdir(a) ulinux_sysc(chdir,1,a)
13 #define chroot(a) ulinux_sysc(chroot,1,a)
14 #define ISERR ULINUX_ISERR
15 #define execve(a) ulinux_sysc(execve,4,a,0,0,0)
16 #define RDONLY ULINUX_O_RDONLY
17 #define mmap(a,b,c,d,e) ulinux_sysc(mmap,6,a,b,c,d,e,0)
18 #define PROT_READ ULINUX_PROT_READ
19 #define close(a) ulinux_sysc(close,1,a)
20 #define EINTR ULINUX_EINTR
21 /*avoid namespace conflict with libmod header dependencies*/
23 #define S_IFBLK ULINUX_S_IFBLK
24 #define S_IRUSR ULINUX_S_IRUSR
25 #define S_IWUSR ULINUX_S_IWUSR
26 #define S_IRGRP ULINUX_S_IRGRP
27 #define S_IWGRP ULINUX_S_IWGRP
28 #define AT_REMOVEDIR ULINUX_AT_REMOVEDIR
29 #define openat(a,b,c) ulinux_sysc(openat,4,a,b,c,0)
30 #define open(a,b) ulinux_sysc(open,3,a,b,0)
32 #define ul_openat(a,b,c) ulinux_sysc(openat,4,a,b,c,0)
34 #define memcmp(a,b,c) ulinux_memcmp((ulinux_u8*)(a),(ulinux_u8*)(b),\
36 #define memset(a,b,c) ulinux_memset((ulinux_u8*)(a),b,c)
37 #define dec2u16 ulinux_dec2u16
38 #define dec2u32 ulinux_dec2u32
39 #define epoll_create1(a) ulinux_sysc(epoll_create1,1,a)
40 #define socket(a,b,c) ulinux_sysc(socket,3,a,b,c)
41 #define PF_NETLINK ULINUX_PF_NETLINK
42 #define SOCK_RAW ULINUX_SOCK_RAW
43 #define NETLINK_KOBJECT_UEVENT ULINUX_NETLINK_KOBJECT_UEVENT
44 #define setsockopt(a,b,c,d,e) ulinux_sysc(setsockopt,5,a,b,c,d,e)
45 #define SOL_SOCKET ULINUX_SOL_SOCKET
46 #define SO_RCVBUFFORCE ULINUX_SO_RCVBUFFORCE
47 #define sockaddr_nl ulinux_sockaddr_nl
48 #define AF_NETLINK ULINUX_AF_NETLINK
49 #define bind(a,b,c) ulinux_sysc(bind,3,a,b,c)
50 #define epoll_ctl(a,b,c,d) ulinux_sysc(epoll_ctl,4,a,b,c,d)
51 #define EPOLLIN ULINUX_EPOLLIN
52 #define EAGAIN ULINUX_EAGAIN
53 #define EPOLL_CTL_ADD ULINUX_EPOLL_CTL_ADD
54 #define io_vec ulinux_io_vec
55 #define msg_hdr ulinux_msg_hdr
56 #define recvmsg(a,b,c) ulinux_sysc(recvmsg,3,a,b,c)
57 #define MSG_TRUNC ULINUX_MSG_TRUNC
58 #define epoll_event ulinux_epoll_event
59 #define epoll_wait(a,b,c,d) ulinux_sysc(epoll_wait,4,a,b,c,d)
60 #define strcat ulinux_strcat
61 #define strncmp(a,b,c) ulinux_strncmp((ulinux_u8*)(a),(ulinux_u8*)(b),(ulinux_u64)(c))
62 #define strcpy(a,b) ulinux_strcpy((ulinux_u8*)(a),(ulinux_u8*)(b))
63 #define strcmp(a,b) ulinux_strcmp((ulinux_u8*)(a),(ulinux_u8*)(b))
64 #define unlinkat(a,b,c) ulinux_sysc(unlinkat,3,a,b,c)
65 #define dirent64 ulinux_dirent64
66 #define DT_DIR ULINUX_DT_DIR
67 #define NONBLOCK ULINUX_O_NONBLOCK
68 #define getdents64(a,b,c) ulinux_sysc(getdents64,3,a,b,c)
69 #define read(a,b,c) ulinux_sysc(read,3,a,b,c)
70 #define PAGE_SZ ULINUX_PAGE_SZ
73 #define u16 ulinux_u16
74 #define u32 ulinux_u32
78 #define ul unsigned long