Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-12-04 06:43:30 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2018-01-17 20:47:26 +0300
commit9087163804df8af6dc2ec1f675a2341c25f7795f (patch)
tree86fcb38236347d0e97a16c957e41dca597b8e8a8 /newlib/libc/unix
parent44276afe2a0365d655425702205604640829668d (diff)
ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/unix')
-rw-r--r--newlib/libc/unix/basename.c3
-rw-r--r--newlib/libc/unix/dirname.c3
-rw-r--r--newlib/libc/unix/pread.c6
-rw-r--r--newlib/libc/unix/pwrite.c6
-rw-r--r--newlib/libc/unix/ttyname.c3
-rw-r--r--newlib/libc/unix/ttyname_r.c3
6 files changed, 8 insertions, 16 deletions
diff --git a/newlib/libc/unix/basename.c b/newlib/libc/unix/basename.c
index 3a9cc0c19..7a28ac51b 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 164da7f78..7d8d6f024 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 54efe29fe..61daac3b4 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 939d186d4..60166c9f9 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 b36bb7408..a9a4a5bb4 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 673e7f543..fd3b504a7 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)
{