blob: 16e2f17ce9ba1b9d9c99feae1c1042dab9f3f209 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <sys/types.h>
#include <sys/file.h>
#include <fcntl.h>
#include "hasflock.h"
#include "lock.h"
#ifdef HASFLOCK
int lock_un(fd) int fd; { return flock(fd,LOCK_UN); }
#else
int lock_un(fd) int fd; { return lockf(fd,0,0); }
#endif
|