mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* fhandler.h (class fhandler_fifo): Rename read/write methods to
raw_read/raw_write. * fhandler_fifo.cc: Ditto.
This commit is contained in:
parent
c465a371ea
commit
52e26dc2ab
@ -1,3 +1,9 @@
|
||||
2009-03-27 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler.h (class fhandler_fifo): Rename read/write methods to
|
||||
raw_read/raw_write.
|
||||
* fhandler_fifo.cc: Ditto.
|
||||
|
||||
2009-03-27 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* syscalls.cc (pathconf): Fix memory leak.
|
||||
|
@ -576,8 +576,8 @@ class fhandler_fifo: public fhandler_base
|
||||
bool wait (bool) __attribute__ ((regparm (1)));
|
||||
public:
|
||||
fhandler_fifo ();
|
||||
void __stdcall read (void *, size_t&) __attribute__ ((regparm (3)));
|
||||
int write (const void *, size_t);
|
||||
void raw_read (void *, size_t&);
|
||||
int raw_write (const void *, size_t);
|
||||
int open (int, mode_t);
|
||||
bool isfifo () { return true; }
|
||||
int __stdcall fstatvfs (struct statvfs *buf) __attribute__ ((regparm (2)));
|
||||
|
@ -166,7 +166,7 @@ fhandler_fifo::wait (bool iswrite)
|
||||
}
|
||||
|
||||
void
|
||||
fhandler_fifo::read (void *in_ptr, size_t& len)
|
||||
fhandler_fifo::raw_read (void *in_ptr, size_t& len)
|
||||
{
|
||||
if (!wait (false))
|
||||
len = 0;
|
||||
@ -175,7 +175,7 @@ fhandler_fifo::read (void *in_ptr, size_t& len)
|
||||
}
|
||||
|
||||
int
|
||||
fhandler_fifo::write (const void *ptr, size_t len)
|
||||
fhandler_fifo::raw_write (const void *ptr, size_t len)
|
||||
{
|
||||
return wait (true) ? write_overlapped (ptr, len) : -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user