Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

flock.h File Reference

#include <sys/file.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

Go to the source code of this file.

Functions

int lock_file (int fd)
 Lock a file. More...

int unlock_file (int fd)
 Unlock a file. More...


Detailed Description

Header file for the file 'flock.c'.

Definition in file flock.h.


Function Documentation

int lock_file int    fd
 

Lock a file.

Author:
Denis BEURIVE
Parameters:
fd  File descriptor that identifies the file to lock.
Returns:
If the lock succed, the function returns 0. Otherwise the function returns 1.

Definition at line 13 of file flock.c.

Referenced by packet_dump().

int unlock_file int    fd
 

Unlock a file.

Author:
Denis BEURIVE
Parameters:
fd  File descriptor that identifies the file to unlock.
Returns:
If the operation succed, the function returns 0. Otherwise the function returns 1.

Definition at line 28 of file flock.c.

Referenced by packet_dump().


Generated on Mon Jun 19 12:31:06 2006 for MyDhcp_V2 by doxygen1.2.15