Ruby  2.5.0dev(2017-10-22revision60238)
file.h
Go to the documentation of this file.
1 /* This is file FILE.H */
2 
3 #ifndef _FILE_H_
4 #define _FILE_H_
5 
6 #include <fcntl.h>
7 
8 #ifndef L_SET
9 # define L_SET 0 /* seek from beginning. */
10 # define L_CURR 1 /* seek from current position. */
11 # define L_INCR 1 /* ditto. */
12 # define L_XTND 2 /* seek from end. */
13 #endif
14 
15 #ifndef R_OK
16 # define R_OK 4 /* test whether readable. */
17 # define W_OK 2 /* test whether writable. */
18 # define X_OK 1 /* test whether executable. */
19 # define F_OK 0 /* test whether exist. */
20 #endif
21 
22 #endif