From cfc05d9675436a157ea959a5fb06da60722234c7 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 6 Mar 2001 01:04:43 +0000 Subject: Mon Mar 5 21:48:54 2001 J"orn Rennecke * 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. --- newlib/libc/include/sys/reent.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'newlib/libc/include/sys/reent.h') 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)); -- cgit v1.2.3