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/stdio/stdio.c | |
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/stdio/stdio.c')
-rw-r--r-- | newlib/libc/stdio/stdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/stdio.c b/newlib/libc/stdio/stdio.c index ddebc8a39..b0c759fdb 100644 --- a/newlib/libc/stdio/stdio.c +++ b/newlib/libc/stdio/stdio.c @@ -28,7 +28,7 @@ * These maintain the `known seek offset' for seek optimisation. */ -int +_READ_WRITE_RETURN_TYPE __sread (cookie, buf, n) _PTR cookie; char *buf; @@ -59,7 +59,7 @@ __sread (cookie, buf, n) return ret; } -int +_READ_WRITE_RETURN_TYPE __swrite (cookie, buf, n) _PTR cookie; char _CONST *buf; |