From 6fe173c87b901b71d279206d311a14eefa247d0f Mon Sep 17 00:00:00 2001 From: John Birrell Date: Tue, 9 Jun 1998 08:37:35 +0000 Subject: Implement compile time thread lock debug. --- lib/libc/sys/lseek.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/sys/lseek.c') diff --git a/lib/libc/sys/lseek.c b/lib/libc/sys/lseek.c index 8896ad8d3567..284885f597b1 100644 --- a/lib/libc/sys/lseek.c +++ b/lib/libc/sys/lseek.c @@ -55,11 +55,11 @@ lseek(fd, offset, whence) { #ifdef _THREAD_SAFE off_t offs; - if (_thread_fd_lock(fd, FD_RDWR, NULL,__FILE__,__LINE__) != 0) { + if (_FD_LOCK(fd, FD_RDWR, NULL) != 0) { offs = -1; } else { offs = __syscall((quad_t) SYS_lseek,fd, 0, offset, whence); - _thread_fd_unlock(fd, FD_RDWR); + _FD_UNLOCK(fd, FD_RDWR); } return(offs); -- cgit v1.2.3