libtools
flock.h
Go to the documentation of this file.
1 
20 #ifndef __TOOLS_FLOCK_H
21 #define __TOOLS_FLOCK_H
22 
23 #include <stdio.h>
24 
42 FILE *flopen(const char *path, const char *mode, FILE **fp);
43 
55 FILE *fltryopen(const char *path, const char *mode, FILE **fp);
56 
66 int flclose(FILE *fp);
67 
70 #endif /* __TOOLS_FLOCK_H */
int flclose(FILE *fp)
close file openned by flopen() or fltryopen()
FILE * flopen(const char *path, const char *mode, FILE **fp)
open and lock file
FILE * fltryopen(const char *path, const char *mode, FILE **fp)
open and try lock file