#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
Go to the source code of this file.
Defines | |
#define | F_AUTOLCK 512 |
Functions | |
int | dsLock (int fd, int what, int mode=F_AUTOLCK) |
int | dsLock (FILE *f, int what, int mode=F_AUTOLCK) |
void | dsUnLock (int fd) |
void | dsUnLock (FILE *f) |
|
|
|
|
|
Interface to fcntl(2) lock function see: fcntl(2) what : F_SETLK F_SETLKW, F_GETLK mode : F_WRLCK, F_RDLCK, F_UNLCK |
|
|
|
|