file locking: check return value of fcntl ()

This commit is contained in:
philsmd
2017-02-14 15:15:50 +01:00
parent cdfabe333f
commit c440dec867
5 changed files with 19 additions and 7 deletions

View File

@@ -13,7 +13,7 @@
#include <errno.h>
#include <fcntl.h>
int lock_file (FILE *fp);
void unlock_file (FILE *fp);
int lock_file (FILE *fp);
int unlock_file (FILE *fp);
#endif // _LOCKING_H