* fhandler_procsys.cc (fhandler_procsys::read): Just call
fhandler_base::raw_read from here. Drop comment. (fhandler_procsys::write): Drop comment.
This commit is contained in:
parent
ef05ad03f2
commit
b09e6ec935
|
@ -1,3 +1,9 @@
|
||||||
|
2013-05-28 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_procsys.cc (fhandler_procsys::read): Just call
|
||||||
|
fhandler_base::raw_read from here. Drop comment.
|
||||||
|
(fhandler_procsys::write): Drop comment.
|
||||||
|
|
||||||
2013-05-27 Corinna Vinschen <corinna@vinschen.de>
|
2013-05-27 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* dll_init.cc (dll_list::topsort): Fix early-return condition to
|
* dll_init.cc (dll_list::topsort): Fix early-return condition to
|
||||||
|
|
|
@ -394,26 +394,12 @@ fhandler_procsys::closedir (DIR *dir)
|
||||||
void __reg3
|
void __reg3
|
||||||
fhandler_procsys::read (void *ptr, size_t& len)
|
fhandler_procsys::read (void *ptr, size_t& len)
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
fhandler_base::raw_read (ptr, len);
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t __stdcall
|
ssize_t __stdcall
|
||||||
fhandler_procsys::write (const void *ptr, size_t len)
|
fhandler_procsys::write (const void *ptr, size_t len)
|
||||||
{
|
{
|
||||||
/* FIXME: Implement nonblocking I/O, interruptibility and cancelability. */
|
|
||||||
return fhandler_base::raw_write (ptr, len);
|
return fhandler_base::raw_write (ptr, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,3 +31,6 @@ Bug fixes:
|
||||||
- Fix an incorrect condition which breaks fork after all dlopen'ed DLLs
|
- Fix an incorrect condition which breaks fork after all dlopen'ed DLLs
|
||||||
have already been dlclose'd.
|
have already been dlclose'd.
|
||||||
Fixes: http://cygwin.com/ml/cygwin/2013-05/msg00376.html
|
Fixes: http://cygwin.com/ml/cygwin/2013-05/msg00376.html
|
||||||
|
|
||||||
|
- Fix buggy usage of NtReadFile when reading from device under /proc/sys.
|
||||||
|
Fixes: http://cygwin.com/ml/cygwin/2013-05/msg00392.html
|
||||||
|
|
Loading…
Reference in New Issue