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