waitid WALL and build script convolution removal
[muinit.git] / ulinux / fcntl.h
blobfc6376863c288d9982c7b657b16c5f628194a916
1 #ifndef ULINUX_FCNTL_H
2 #define ULINUX_FCNTL_H
3 /*******************************************************************************
4 this code is protected by the GNU affero GPLv3
5 author:Sylvain BERTRAND (sylvain.bertrand AT gmail dot com)
6 *******************************************************************************/
7 /*some commands may be already defined for some archs*/
8 #define ULINUX_F_DUPFD 0/*dup*/
9 #define ULINUX_F_GETFD 1/*get close_on_exec*/
10 #define ULINUX_F_SETFD 2/*set/clear close_on_exec*/
11 #define ULINUX_F_GETFL 3/*get file->f_flags*/
12 #define ULINUX_F_SETFL 4/*set file->f_flags*/
13 #ifndef ULINUX_F_GETLK
14 #define ULINUX_F_GETLK 5
15 #define ULINUX_F_SETLK 6
16 #define ULINUX_F_SETLKW 7
17 #endif
18 #ifndef ULINUX_F_SETOWN
19 #define ULINUX_F_SETOWN 8/*for sockets*/
20 #define ULINUX_F_GETOWN 9/*for sockets*/
21 #endif
22 #ifndef ULINUX_F_SETSIG
23 #define ULINUX_F_SETSIG 10/*for sockets*/
24 #define ULINUX_F_GETSIG 11/*for sockets*/
25 #endif
26 #ifndef ULINUX_F_SETOWN_EX
27 #define ULINUX_F_SETOWN_EX 15
28 #define ULINUX_F_GETOWN_EX 16
29 #endif
30 #endif