* syscalls.cc (_read): Change definition to return ssize_t to be consistent
with read. (_write): Change definition to return ssize_t to be consistent with write.
This commit is contained in:
parent
8f98585d51
commit
6ebccdc110
|
@ -1,3 +1,10 @@
|
||||||
|
Wed Mar 7 15:49:47 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* syscalls.cc (_read): Change definition to return ssize_t to be
|
||||||
|
consistent with read.
|
||||||
|
(_write): Change definition to return ssize_t to be consistent with
|
||||||
|
write.
|
||||||
|
|
||||||
Wed Mar 7 01:08:21 2001 Christopher Faylor <cgf@cygnus.com>
|
Wed Mar 7 01:08:21 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* sigproc.h (sigthread): Declare new methods. Create new winapi_lock
|
* sigproc.h (sigthread): Declare new methods. Create new winapi_lock
|
||||||
|
|
|
@ -226,7 +226,7 @@ setsid (void)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" int
|
extern "C" ssize_t
|
||||||
_read (int fd, void *ptr, size_t len)
|
_read (int fd, void *ptr, size_t len)
|
||||||
{
|
{
|
||||||
sigframe thisframe (mainthread);
|
sigframe thisframe (mainthread);
|
||||||
|
@ -280,7 +280,7 @@ out:
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" int
|
extern "C" ssize_t
|
||||||
_write (int fd, const void *ptr, size_t len)
|
_write (int fd, const void *ptr, size_t len)
|
||||||
{
|
{
|
||||||
int res = -1;
|
int res = -1;
|
||||||
|
|
Loading…
Reference in New Issue