summaryrefslogtreecommitdiff
path: root/lib/libc/sys/lseek.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/lseek.c')
-rw-r--r--lib/libc/sys/lseek.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/libc/sys/lseek.c b/lib/libc/sys/lseek.c
index 8896ad8d3567..52208d137a93 100644
--- a/lib/libc/sys/lseek.c
+++ b/lib/libc/sys/lseek.c
@@ -37,11 +37,6 @@ static char sccsid[] = "@(#)lseek.c 8.1 (Berkeley) 6/17/93";
#include <sys/types.h>
#include <sys/syscall.h>
-#include <unistd.h>
-#ifdef _THREAD_SAFE
-#include <pthread.h>
-#include "pthread_private.h"
-#endif
/*
* This function provides 64-bit offset padding that
@@ -53,17 +48,7 @@ lseek(fd, offset, whence)
off_t offset;
int whence;
{
-#ifdef _THREAD_SAFE
- off_t offs;
- if (_thread_fd_lock(fd, FD_RDWR, NULL,__FILE__,__LINE__) != 0) {
- offs = -1;
- } else {
- offs = __syscall((quad_t) SYS_lseek,fd, 0, offset, whence);
- _thread_fd_unlock(fd, FD_RDWR);
- }
- return(offs);
+ extern off_t __syscall();
-#else
return(__syscall((quad_t)SYS_lseek, fd, 0, offset, whence));
-#endif
}