* 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>
|
2009-03-27 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* syscalls.cc (pathconf): Fix memory leak.
|
* syscalls.cc (pathconf): Fix memory leak.
|
||||||
|
@ -576,8 +576,8 @@ class fhandler_fifo: public fhandler_base
|
|||||||
bool wait (bool) __attribute__ ((regparm (1)));
|
bool wait (bool) __attribute__ ((regparm (1)));
|
||||||
public:
|
public:
|
||||||
fhandler_fifo ();
|
fhandler_fifo ();
|
||||||
void __stdcall read (void *, size_t&) __attribute__ ((regparm (3)));
|
void raw_read (void *, size_t&);
|
||||||
int write (const void *, size_t);
|
int raw_write (const void *, size_t);
|
||||||
int open (int, mode_t);
|
int open (int, mode_t);
|
||||||
bool isfifo () { return true; }
|
bool isfifo () { return true; }
|
||||||
int __stdcall fstatvfs (struct statvfs *buf) __attribute__ ((regparm (2)));
|
int __stdcall fstatvfs (struct statvfs *buf) __attribute__ ((regparm (2)));
|
||||||
|
@ -166,7 +166,7 @@ fhandler_fifo::wait (bool iswrite)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
fhandler_fifo::read (void *in_ptr, size_t& len)
|
fhandler_fifo::raw_read (void *in_ptr, size_t& len)
|
||||||
{
|
{
|
||||||
if (!wait (false))
|
if (!wait (false))
|
||||||
len = 0;
|
len = 0;
|
||||||
@ -175,7 +175,7 @@ fhandler_fifo::read (void *in_ptr, size_t& len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
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;
|
return wait (true) ? write_overlapped (ptr, len) : -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user