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.
This commit is contained in:
@ -31,8 +31,8 @@ extern int _EXFUN(__svfscanf,(FILE *, _CONST char *,va_list));
|
||||
extern FILE *_EXFUN(__sfp,(struct _reent *));
|
||||
extern int _EXFUN(__sflags,(struct _reent *,_CONST char*, int*));
|
||||
extern int _EXFUN(__srefill,(FILE *));
|
||||
extern int _EXFUN(__sread,(void *, char *, int));
|
||||
extern int _EXFUN(__swrite,(void *, char const *, int));
|
||||
extern _READ_WRITE_RETURN_TYPE _EXFUN(__sread,(void *, char *, int));
|
||||
extern _READ_WRITE_RETURN_TYPE _EXFUN(__swrite,(void *, char const *, int));
|
||||
extern fpos_t _EXFUN(__sseek,(void *, fpos_t, int));
|
||||
extern int _EXFUN(__sclose,(void *));
|
||||
extern int _EXFUN(__stextmode,(int));
|
||||
|
@ -344,7 +344,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
|
||||
/* | ARGSUSED */
|
||||
/*SUPPRESS 590*/
|
||||
static
|
||||
int
|
||||
_READ_WRITE_RETURN_TYPE
|
||||
eofread (cookie, buf, len)
|
||||
_PTR cookie;
|
||||
char *buf;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user