summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/sys/file.h
blob: 93787fd42323f461438521dfc63da2da3b1166c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _SYS_FILE_H
#define _SYS_FILE_H

#include <sys/cdefs.h>

extern int fcntl(int fd, int cmd, ...) __THROW;
extern int flock(int fd, int operation) __THROW;

/* Operations for the `flock' call.  */
#define	LOCK_SH	1	/* Shared lock.  */
#define	LOCK_EX	2 	/* Exclusive lock.  */
#define	LOCK_UN	8	/* Unlock.  */

/* Can be OR'd in to one of the above.  */
#define	LOCK_NB	4	/* Don't block when locking.  */



#endif	/* _SYS_FILE_H */