home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Serving the Web
/
ServingTheWeb1995.disc1of1.iso
/
linux
/
slacksrce
/
d
/
libc
/
libc-4.6
/
libc-4
/
libc-linux
/
dirent
/
seekdir.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-10-18
|
296 b
|
18 lines
#include <dirent.h>
#include <unistd.h>
#include <errno.h>
#include <syscall.h>
#undef lseek
static inline
_syscall3(off_t,lseek,int,fildes,off_t,offset,int,origin)
void seekdir(DIR * dir, off_t offset)
{
if (!dir) {
errno = EBADF;
return;
}
lseek(dir->dd_fd,offset,SEEK_SET);
}