diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-07 20:52:33 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-07 20:52:33 +0000 |
commit | 6ebccdc1107fcccc5466687b2a584c535d48d8c4 (patch) | |
tree | 073dadc87164034df85c96b3ae98bc2f78681a92 | |
parent | 8f98585d511db77f20e361f323c0be2f719e6ab0 (diff) | |
download | cygnal-6ebccdc1107fcccc5466687b2a584c535d48d8c4.tar.gz cygnal-6ebccdc1107fcccc5466687b2a584c535d48d8c4.tar.bz2 cygnal-6ebccdc1107fcccc5466687b2a584c535d48d8c4.zip |
* 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.
-rw-r--r-- | winsup/cygwin/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 55c86d149..cd09e486b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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> * sigproc.h (sigthread): Declare new methods. Create new winapi_lock diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 2497d8bf8..81394f0db 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -226,7 +226,7 @@ setsid (void) return -1; } -extern "C" int +extern "C" ssize_t _read (int fd, void *ptr, size_t len) { sigframe thisframe (mainthread); @@ -280,7 +280,7 @@ out: return res; } -extern "C" int +extern "C" ssize_t _write (int fd, const void *ptr, size_t len) { int res = -1; |