diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-03-06 01:04:43 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-03-06 01:04:43 +0000 |
commit | cfc05d9675436a157ea959a5fb06da60722234c7 (patch) | |
tree | dfd096db23b4c24f2be67e69276e7b10c9cc04d6 /newlib/libc/include/sys/reent.h | |
parent | a887211b0012ee3ce20e1327bb0a6ed49719edf5 (diff) | |
download | cygnal-cfc05d9675436a157ea959a5fb06da60722234c7.tar.gz cygnal-cfc05d9675436a157ea959a5fb06da60722234c7.tar.bz2 cygnal-cfc05d9675436a157ea959a5fb06da60722234c7.zip |
Mon Mar 5 21:48:54 2001 J"orn Rennecke <amylaar@redhat.com>
* libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
For RTEMS, define to be ssize_t. Default to int if not defined.
* libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
* libc/stdio/stdio.c (__sread, __swrite): Likewise.
* libc/stdio/local.h (__sread, __swrite): Likewise.
* libc/include/sys/reent.h (_read, _write): Likewise.
* libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
* libc/syscalls/sysread.c (read): Likewise.
* libc/syscalls/syswrite.c (write): Likewise.
Diffstat (limited to 'newlib/libc/include/sys/reent.h')
-rw-r--r-- | newlib/libc/include/sys/reent.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h index 8a0fb7f12..7aae3f47b 100644 --- a/newlib/libc/include/sys/reent.h +++ b/newlib/libc/include/sys/reent.h @@ -111,8 +111,9 @@ struct __sFILE { /* operations */ _PTR _cookie; /* cookie passed to io functions */ - int _EXFUN((*_read),(_PTR _cookie, char *_buf, int _n)); - int _EXFUN((*_write),(_PTR _cookie, const char *_buf, int _n)); + _READ_WRITE_RETURN_TYPE _EXFUN((*_read),(_PTR _cookie, char *_buf, int _n)); + _READ_WRITE_RETURN_TYPE _EXFUN((*_write),(_PTR _cookie, const char *_buf, + int _n)); _fpos_t _EXFUN((*_seek),(_PTR _cookie, _fpos_t _offset, int _whence)); int _EXFUN((*_close),(_PTR _cookie)); |