diff options
author | Christopher Faylor <me@cgf.cx> | 2005-07-29 17:04:46 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-07-29 17:04:46 +0000 |
commit | 7d7d09aee8fa09aab03d14b0b672a34805ce50b9 (patch) | |
tree | 1cb66c9528cb38296d698e2bbd03ad2dd68632e1 /winsup/cygwin/fhandler.cc | |
parent | 728b9af5c9abb690e0510916b38caf26360d4af9 (diff) | |
download | cygnal-7d7d09aee8fa09aab03d14b0b672a34805ce50b9.tar.gz cygnal-7d7d09aee8fa09aab03d14b0b672a34805ce50b9.tar.bz2 cygnal-7d7d09aee8fa09aab03d14b0b672a34805ce50b9.zip |
* fhandler.h (fhandler_base::pread): Declare new function.
(fhandler_base::pwrite): Ditto.
(fhandler_disk_file::pread): Ditto.
(fhandler_disk_file::pwrite): Ditto.
* fhandler.cc (fhandler_base::pread): Define new function.
(fhandler_base::pwrite): Ditto.
* fhandler_disk_file.cc (fhandler_base::pread): Ditto.
(fhandler_base::pwrite): Ditto.
* syscalls.cc (pread): Define new function.
(pwrite): Ditto.
* cygwin.din: Export pread, pwrite.
* include/sys/ioctl.h: Guard some _IO* declarations to avoid conflict with
socket.h.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index e5e14fc92..60ea7a62a 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1116,6 +1116,20 @@ fhandler_base::lseek (_off64_t offset, int whence) return res; } +ssize_t __stdcall +fhandler_base::pread (void *, size_t, _off64_t) +{ + set_errno (ESPIPE); + return -1; +} + +ssize_t __stdcall +fhandler_base::pwrite (void *, size_t, _off64_t) +{ + set_errno (ESPIPE); + return -1; +} + int fhandler_base::close () { |