X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/41306318777a942420bc4feadbfacf662ea179dc..c619527c15d2c0c88d5e73f102588f6c3d44ab73:/src/sysdep.c diff --git a/src/sysdep.c b/src/sysdep.c index 6439697501..f78a8fbb2e 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -19,8 +19,6 @@ along with GNU Emacs. If not, see . */ #include -#define SYSTIME_INLINE EXTERN_INLINE - #include #include "sysstdio.h" #ifdef HAVE_PWD_H @@ -2259,9 +2257,9 @@ emacs_close (int fd) Return the number of bytes read, which might be less than NBYTE. On error, set errno and return -1. */ ptrdiff_t -emacs_read (int fildes, char *buf, ptrdiff_t nbyte) +emacs_read (int fildes, void *buf, ptrdiff_t nbyte) { - register ssize_t rtnval; + ssize_t rtnval; /* There is no need to check against MAX_RW_COUNT, since no caller ever passes a size that large to emacs_read. */ @@ -2312,14 +2310,14 @@ emacs_full_write (int fildes, char const *buf, ptrdiff_t nbyte, interrupted or if a partial write occurs. Return the number of bytes written, setting errno if this is less than NBYTE. */ ptrdiff_t -emacs_write (int fildes, char const *buf, ptrdiff_t nbyte) +emacs_write (int fildes, void const *buf, ptrdiff_t nbyte) { return emacs_full_write (fildes, buf, nbyte, 0); } /* Like emacs_write, but also process pending signals if interrupted. */ ptrdiff_t -emacs_write_sig (int fildes, char const *buf, ptrdiff_t nbyte) +emacs_write_sig (int fildes, void const *buf, ptrdiff_t nbyte) { return emacs_full_write (fildes, buf, nbyte, 1); }