2 * Written by Arno Bakker
3 * see LICENSE.txt for license information
12 size_t pread(int fildes, void *buf, size_t nbyte, long offset)
14 _lseek(fildes,offset,SEEK_SET);
15 return read(fildes,buf,nbyte);
18 size_t pwrite(int fildes, const void *buf, size_t nbyte, long offset)
20 _lseek(fildes,offset,SEEK_SET);
21 return write(fildes,buf,nbyte);
25 int inet_aton(const char *cp, struct in_addr *inp)
27 inp->S_un.S_addr = inet_addr(cp);