summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index d896398f..37d15870 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -5,21 +5,6 @@
#undef HAVE_MMAP
#define BUFSIZE 512
-static void
-PttLock(int fd, int start, int size, int mode)
-{
- static struct flock lock_it;
- int ret;
-
- lock_it.l_whence = SEEK_CUR;/* from current point */
- lock_it.l_start = start; /* -"- */
- lock_it.l_len = size; /* length of data */
- lock_it.l_type = mode; /* set exclusive/write lock */
- lock_it.l_pid = 0; /* pid not actually interesting */
- while ((ret = fcntl(fd, F_SETLKW, &lock_it)) < 0 && errno == EINTR)
- sleep(1);
-}
-
#define safewrite write
int