diff options
Diffstat (limited to 'newlib/libc/reent/writer.c')
-rw-r--r-- | newlib/libc/reent/writer.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/newlib/libc/reent/writer.c b/newlib/libc/reent/writer.c index 128f7f7ac..ac10286e8 100644 --- a/newlib/libc/reent/writer.c +++ b/newlib/libc/reent/writer.c @@ -28,12 +28,12 @@ INDEX ANSI_SYNOPSIS #include <reent.h> - _ssize_t _write_r(struct _reent *<[ptr]>, - int <[fd]>, const void *<[buf]>, size_t <[cnt]>); + long _write_r(struct _reent *<[ptr]>, + int <[fd]>, const void *<[buf]>, size_t <[cnt]>); TRAD_SYNOPSIS #include <reent.h> - _ssize_t _write_r(<[ptr]>, <[fd]>, <[buf]>, <[cnt]>) + long _write_r(<[ptr]>, <[fd]>, <[buf]>, <[cnt]>) struct _reent *<[ptr]>; int <[fd]>; char *<[buf]>; @@ -45,17 +45,17 @@ DESCRIPTION <<errno>>. */ -_ssize_t -_DEFUN (_write_r, (ptr, fd, buf, cnt), - struct _reent *ptr _AND - int fd _AND - _CONST _PTR buf _AND - size_t cnt) +long +_write_r (ptr, fd, buf, cnt) + struct _reent *ptr; + int fd; + _CONST _PTR buf; + size_t cnt; { - _ssize_t ret; + long ret; errno = 0; - if ((ret = (_ssize_t)_write (fd, buf, cnt)) == -1 && errno != 0) + if ((ret = _write (fd, buf, cnt)) == -1 && errno != 0) ptr->_errno = errno; return ret; } |