~mdw
/
ezmlm
/ blame_incremental
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(non-incremental) |
history
|
HEAD
Import ezmlm-idx 0.40
[ezmlm]
/
lock_ex.c
This page requires JavaScript to run. Use
this page
instead.
... / ...
Commit
Line
Data
1
#include <sys/types.h>
2
#include <sys/file.h>
3
#include <fcntl.h>
4
#include "hasflock.h"
5
#include "lock.h"
6
7
#ifdef HASFLOCK
8
int lock_ex(fd) int fd; { return flock(fd,LOCK_EX); }
9
#else
10
int lock_ex(fd) int fd; { return lockf(fd,1,0); }
11
#endif