revert between 56095 -> 55830 in arch
[AROS.git] / workbench / network / common / include / sys / file.h
blob333e4a44362b713d08179e180135d18daa4bded3
1 #ifndef _SYS__FILE_H_
2 #define _SYS__FILE_H_
3 /*
4 Copyright © 2008-2012, The AROS Development Team. All rights reserved.
5 $Id$
7 Desc: 4.4BSD header file sys/file.h
8 This file is not part of POSIX.1-2008 standard
9 */
11 #ifndef _POSIX_SOURCE
13 #include <aros/system.h>
15 /* flock() operations */
17 #define LOCK_SH 1 /* Shared lock. */
18 #define LOCK_EX 2 /* Exclusive lock. */
19 #define LOCK_UN 8 /* Unlock. */
21 /* operation modifiers (combined with OR) */
23 #define LOCK_NB 4 /* Non-blocking operation */
25 /* function declarations */
27 __BEGIN_DECLS
29 int flock (int fd, int operation);
31 __END_DECLS
33 #endif /* !_POSIX_SOURCE */
35 #endif /* _SYS__FILE_H_ */