home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
emacs-19.28-src.tgz
/
tar.out
/
fsf
/
emacs
/
unixlib
/
src
/
lseek.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
|
1996-09-28
|
334 b
|
24 lines
#include "amiga.h"
#include "files.h"
#include <fcntl.h>
#undef lseek
int __lseek(int fd, long rpos, int mode)
{
struct fileinfo *fi;
chkabort();
if (fi = _find_fd(fd))
{
return fi->lseek(fi->userinfo, rpos, mode);
}
return -1;
}
int lseek(int fd, long rpos, int mode)
{
return __lseek(fd, rpos, mode);
}