Back to index

glibc  2.9
Defines | Functions
file.h File Reference
#include <features.h>
#include <fcntl.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define L_SET   0 /* Seek from beginning of file. */
#define L_INCR   1 /* Seek from current position. */
#define L_XTND   2 /* Seek from end of file. */
#define LOCK_SH   1 /* Shared lock. */
#define LOCK_EX   2 /* Exclusive lock. */
#define LOCK_UN   8 /* Unlock. */
#define LOCK_NB   4 /* Don't block when locking. */

Functions

int flock (int __fd, int __operation) __THROW

Define Documentation

#define L_INCR   1 /* Seek from current position. */

Definition at line 35 of file file.h.

#define L_SET   0 /* Seek from beginning of file. */

Definition at line 34 of file file.h.

#define L_XTND   2 /* Seek from end of file. */

Definition at line 36 of file file.h.

#define LOCK_EX   2 /* Exclusive lock. */

Definition at line 42 of file file.h.

#define LOCK_NB   4 /* Don't block when locking. */

Definition at line 46 of file file.h.

#define LOCK_SH   1 /* Shared lock. */

Definition at line 41 of file file.h.

#define LOCK_UN   8 /* Unlock. */

Definition at line 43 of file file.h.


Function Documentation

int flock ( int  __fd,
int  __operation 
)