Re: _pread() _pwrite

2003-06-26 Thread Ronald Landheer-Cieslak
Ah, yes, "the file offset is not changed".. I forgot about that.. Thanks for correcting me :) rlc On Thu, 26 Jun 2003, Brian Dessent wrote: > Ronald Landheer-Cieslak wrote: > > > > pread and pwrite are not in Cygwin (or at least are not exported by > > cygwin1.dll). They are hardly the most por

Re: _pread() _pwrite

2003-06-26 Thread Brian Dessent
Ronald Landheer-Cieslak wrote: > > pread and pwrite are not in Cygwin (or at least are not exported by > cygwin1.dll). They are hardly the most portable functions in the world. I > suggest you write a wrapper. Something like: > > > ssize_t pread(int fd, void *buf, size_t count, off_t offset) > {

Re: _pread() _pwrite

2003-06-26 Thread Ronald Landheer-Cieslak
pread and pwrite are not in Cygwin (or at least are not exported by cygwin1.dll). They are hardly the most portable functions in the world. I suggest you write a wrapper. Something like: ssize_t pread(int fd, void *buf, size_t count, off_t offset) { if (lseek(fd, offset, SEEK_SET) == (o

_pread() _pwrite

2003-06-26 Thread Vikram Mehta
Hi folks, I am compiling some files which need functions like -pread(), pwrite() which shud be in libc.a. But they are not. This file was actually mean to be complied on linux. Any ideas how can I overcome this problem Vikram -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple P