D
Dale
I came across some code that had this in it:
#ifdef CYGWIN
ssize_t pread( int d, void *buf, size_t nbytes, off_t offset) {
lseek( d, offset, SEEK_SET );
read( d, buf, nbytes );
}
#endif
I wondered if the lseek and read methods (with these method
signatures) are standard, or would this code be looking for a dll?
I was thinking of trying to build this function in Java, but if it's
going to depend on a dll for which I do not have the source, that
would stop me in my tracks.
--Dale--
#ifdef CYGWIN
ssize_t pread( int d, void *buf, size_t nbytes, off_t offset) {
lseek( d, offset, SEEK_SET );
read( d, buf, nbytes );
}
#endif
I wondered if the lseek and read methods (with these method
signatures) are standard, or would this code be looking for a dll?
I was thinking of trying to build this function in Java, but if it's
going to depend on a dll for which I do not have the source, that
would stop me in my tracks.
--Dale--