xref: /haiku/headers/posix/sys/file.h (revision 74252cefbcf266291fb069466189b4734eb05455)
1 /*
2  * Copyright 2008-2012 Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _SYS_FILE_H
6 #define _SYS_FILE_H
7 
8 
9 #include <sys/types.h>
10 
11 
12 /* for use with flock() */
13 #define	LOCK_SH		0x01	/* shared file lock */
14 #define	LOCK_EX		0x02	/* exclusive file lock */
15 #define	LOCK_NB		0x04	/* don't block when locking */
16 #define	LOCK_UN		0x08	/* unlock file */
17 
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 extern int	flock(int fd, int op);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif	/* _SYS_FILE_H */
30