Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

flock.c File Reference

#include "flock.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

This file implements file locking facility.

Definition in file flock.c.


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