fcntl flock stubs to support Python fcntl module

This commit is contained in:
K. Lange 2018-10-03 09:17:24 +09:00
parent 29f36ae6a2
commit ffe0aa2448

View File

@ -24,6 +24,24 @@
#define F_GETFL 3
#define F_SETFL 4
/* Advisory locks are not currently supported;
* these definitions are stubs. */
#define F_GETLK 5
#define F_SETLK 6
#define F_SETLKW 7
#define F_RDLCK 0
#define F_WRLCK 1
#define F_UNLCK 2
struct flock {
short l_type;
short l_whence;
off_t l_start;
off_t l_len;
pid_t l_pid;
};
#define FD_CLOEXEC (1 << 0)
extern int open (const char *, int, ...);