Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 238 Bytes

lock_un.c

File metadata and controls

11 lines (10 loc) · 238 Bytes
 
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