delorie.com/archives/browse.cgi | search |
Chris Faylor wrote: > [...] > That's not quite the same thing. The behavior as I understand it is > something like this: > > #include <sys/types.h> etcetera... > [...] > lseek (fd, (off_t) -2, SEEK_END); > bytes = read (fd, buf1 + (64000 - 2), 40000); > printf ("read: %d, err: %d, %s\n", bytes, errno, strerror(errno)); > [...] > This supposedly works on UNIX and fails on Cygwin. I had checked this either and it's really the same. It doesn't work and it results in error EFAULT. Corinna
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |