diff options
Diffstat (limited to 'newlib/libc/unix')
-rw-r--r-- | newlib/libc/unix/basename.c | 3 | ||||
-rw-r--r-- | newlib/libc/unix/dirname.c | 3 | ||||
-rw-r--r-- | newlib/libc/unix/pread.c | 6 | ||||
-rw-r--r-- | newlib/libc/unix/pwrite.c | 6 | ||||
-rw-r--r-- | newlib/libc/unix/ttyname.c | 3 | ||||
-rw-r--r-- | newlib/libc/unix/ttyname_r.c | 3 |
6 files changed, 8 insertions, 16 deletions
diff --git a/newlib/libc/unix/basename.c b/newlib/libc/unix/basename.c index 3a9cc0c..7a28ac5 100644 --- a/newlib/libc/unix/basename.c +++ b/newlib/libc/unix/basename.c @@ -8,8 +8,7 @@ #include <string.h> char* -_DEFUN (basename, (path), - char *path) +basename (char *path) { char *p; if( path == NULL || *path == '\0' ) diff --git a/newlib/libc/unix/dirname.c b/newlib/libc/unix/dirname.c index 164da7f..7d8d6f0 100644 --- a/newlib/libc/unix/dirname.c +++ b/newlib/libc/unix/dirname.c @@ -9,8 +9,7 @@ #include <string.h> char * -_DEFUN (dirname, (path), - char *path) +dirname (char *path) { char *p; if( path == NULL || *path == '\0' ) diff --git a/newlib/libc/unix/pread.c b/newlib/libc/unix/pread.c index 54efe29..61daac3 100644 --- a/newlib/libc/unix/pread.c +++ b/newlib/libc/unix/pread.c @@ -38,8 +38,7 @@ Supporting OS subroutine required: <<read>>, <<lseek>>. #include <reent.h> ssize_t -_DEFUN (_pread_r, (rptr, fd, buf, n, off), - struct _reent *rptr, +_pread_r (struct _reent *rptr, int fd, void *buf, size_t n, @@ -65,8 +64,7 @@ _DEFUN (_pread_r, (rptr, fd, buf, n, off), #ifndef _REENT_ONLY ssize_t -_DEFUN (pread, (fd, buf, n, off), - int fd, +pread (int fd, void *buf, size_t n, off_t off) diff --git a/newlib/libc/unix/pwrite.c b/newlib/libc/unix/pwrite.c index 939d186..60166c9 100644 --- a/newlib/libc/unix/pwrite.c +++ b/newlib/libc/unix/pwrite.c @@ -39,8 +39,7 @@ Supporting OS subroutine required: <<write>>, <<lseek>>. #include <reent.h> ssize_t -_DEFUN (_pwrite_r, (rptr, fd, buf, n, off), - struct _reent *rptr, +_pwrite_r (struct _reent *rptr, int fd, const void *buf, size_t n, @@ -66,8 +65,7 @@ _DEFUN (_pwrite_r, (rptr, fd, buf, n, off), #ifndef _REENT_ONLY ssize_t -_DEFUN (pwrite, (fd, buf, n, off), - int fd, +pwrite (int fd, const void *buf, size_t n, off_t off) diff --git a/newlib/libc/unix/ttyname.c b/newlib/libc/unix/ttyname.c index b36bb74..a9a4a5b 100644 --- a/newlib/libc/unix/ttyname.c +++ b/newlib/libc/unix/ttyname.c @@ -41,8 +41,7 @@ static char ttyname_buf[TTYNAME_BUFSIZE] = _PATH_DEV; * ttyname() - POSIX 1003.1b 4.7.2 - Determine Terminal Device Name */ char * -_DEFUN( ttyname,(fd), - int fd) + ttyname (int fd) { register int fail; register char *ret=NULL; diff --git a/newlib/libc/unix/ttyname_r.c b/newlib/libc/unix/ttyname_r.c index 673e7f5..fd3b504 100644 --- a/newlib/libc/unix/ttyname_r.c +++ b/newlib/libc/unix/ttyname_r.c @@ -44,8 +44,7 @@ * ttyname_r() - POSIX 1003.1b 4.7.2 - Determine Terminal Device Name */ int -_DEFUN( ttyname_r,(fd, name, namesize), - int fd, + ttyname_r (int fd, char *name, size_t namesize) { |