diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-05-28 15:07:01 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-05-28 15:07:01 +0000 |
commit | b09e6ec935bf6594eed534f49b73bae60f6d9497 (patch) | |
tree | 761e9767029797afa6326ad22990686556dd692d /winsup/cygwin/fhandler_procsys.cc | |
parent | ef05ad03f2f3b3ad73eed85f9ba63ecf8197daa6 (diff) | |
download | cygnal-b09e6ec935bf6594eed534f49b73bae60f6d9497.tar.gz cygnal-b09e6ec935bf6594eed534f49b73bae60f6d9497.tar.bz2 cygnal-b09e6ec935bf6594eed534f49b73bae60f6d9497.zip |
* fhandler_procsys.cc (fhandler_procsys::read): Just call
fhandler_base::raw_read from here. Drop comment.
(fhandler_procsys::write): Drop comment.
Diffstat (limited to 'winsup/cygwin/fhandler_procsys.cc')
-rw-r--r-- | winsup/cygwin/fhandler_procsys.cc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/winsup/cygwin/fhandler_procsys.cc b/winsup/cygwin/fhandler_procsys.cc index 6bd52da27..759712f04 100644 --- a/winsup/cygwin/fhandler_procsys.cc +++ b/winsup/cygwin/fhandler_procsys.cc @@ -394,26 +394,12 @@ fhandler_procsys::closedir (DIR *dir) void __reg3 fhandler_procsys::read (void *ptr, size_t& len) { - NTSTATUS status; - IO_STATUS_BLOCK io; - LARGE_INTEGER off = { QuadPart:0LL }; - - /* FIXME: Implement nonblocking I/O, interruptibility and cancelability. */ - status = NtReadFile (get_handle (), NULL, NULL, NULL, &io, ptr, len, - &off, NULL); - if (!NT_SUCCESS (status)) - { - __seterrno_from_nt_status (status); - len = -1; - } - else - len = io.Information; + fhandler_base::raw_read (ptr, len); } ssize_t __stdcall fhandler_procsys::write (const void *ptr, size_t len) { - /* FIXME: Implement nonblocking I/O, interruptibility and cancelability. */ return fhandler_base::raw_write (ptr, len); } |