diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-06-09 08:34:35 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-06-09 08:34:35 +0000 |
| commit | 3b6533a0246981ad0690582c41b066cf2faadd4c (patch) | |
| tree | 0af2fbbd484c5f2343cbf1d55e7095e6d3a9defe /lib/libc | |
| parent | 86af3ff9b02305be8809a6d60daf988b5eebe5ca (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/sys/netbsd_getdirentries.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/sys/netbsd_getdirentries.c b/lib/libc/sys/netbsd_getdirentries.c index 816c8a179f4b..63485ad7d115 100644 --- a/lib/libc/sys/netbsd_getdirentries.c +++ b/lib/libc/sys/netbsd_getdirentries.c @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id: netbsd_getdirentries.c,v 1.1 1998/03/09 07:07:20 jb Exp $ */ /* From: NetBSD: getdirentries.c,v 1.1 1997/10/10 02:15:56 fvdl Exp */ /* @@ -34,17 +34,22 @@ */ #include <sys/types.h> +#include <sys/syscall.h> #include <dirent.h> #include <unistd.h> int getdents __P((int, char *, size_t)); int +#ifdef _THREAD_SAFE +_thread_sys_getdirentries(fd, buf, nbytes, basep) +#else getdirentries(fd, buf, nbytes, basep) +#endif int fd, nbytes; char *buf; long *basep; { - *basep = lseek(fd, 0, SEEK_CUR); + *basep = __syscall((quad_t) SYS_lseek,fd, 0, 0, SEEK_CUR); return getdents(fd, buf, nbytes); } |
