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 /libgloss/cr16
parent44276afe2a0365d655425702205604640829668d (diff)
ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'libgloss/cr16')
-rw-r--r--libgloss/cr16/fstat.c3
-rw-r--r--libgloss/cr16/getpid.c3
-rw-r--r--libgloss/cr16/isatty.c3
-rw-r--r--libgloss/cr16/kill.c3
-rw-r--r--libgloss/cr16/putnum.c3
-rw-r--r--libgloss/cr16/stat.c3
6 files changed, 6 insertions, 12 deletions
diff --git a/libgloss/cr16/fstat.c b/libgloss/cr16/fstat.c
index 73e1fa248..781b2a208 100644
--- a/libgloss/cr16/fstat.c
+++ b/libgloss/cr16/fstat.c
@@ -19,8 +19,7 @@
* fstat -- Since we have no file system, we just return an error.
*/
int
-_DEFUN (_fstat, (fd, buf),
- int fd,
+_fstat (int fd,
struct stat *buf)
{
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */
diff --git a/libgloss/cr16/getpid.c b/libgloss/cr16/getpid.c
index d254c9b0d..efe190098 100644
--- a/libgloss/cr16/getpid.c
+++ b/libgloss/cr16/getpid.c
@@ -19,8 +19,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (_getpid, (),
- )
+_getpid (void)
{
return __MYPID;
}
diff --git a/libgloss/cr16/isatty.c b/libgloss/cr16/isatty.c
index 604e8f097..fa3cd038c 100644
--- a/libgloss/cr16/isatty.c
+++ b/libgloss/cr16/isatty.c
@@ -20,8 +20,7 @@
* serial port, we'll say yes and return a 1.
*/
int
-_DEFUN (_isatty, (fd),
- int fd)
+_isatty (int fd)
{
return (1);
}
diff --git a/libgloss/cr16/kill.c b/libgloss/cr16/kill.c
index 43c3ec554..f51ddb5f5 100644
--- a/libgloss/cr16/kill.c
+++ b/libgloss/cr16/kill.c
@@ -20,8 +20,7 @@ extern void _exit (int) __attribute__((__noreturn__));
* kill -- go out via exit...
*/
int
-_DEFUN (_kill, (pid, sig),
- int pid,
+_kill (int pid,
int sig)
{
if(pid == __MYPID)
diff --git a/libgloss/cr16/putnum.c b/libgloss/cr16/putnum.c
index 3317bbf0a..af7232205 100644
--- a/libgloss/cr16/putnum.c
+++ b/libgloss/cr16/putnum.c
@@ -18,8 +18,7 @@
* putnum -- print a 32 bit number in hex
*/
void
-_DEFUN (putnum, (num),
- unsigned int num)
+putnum (unsigned int num)
{
char buf[9];
int cnt;
diff --git a/libgloss/cr16/stat.c b/libgloss/cr16/stat.c
index 743fc94a9..3900a1bce 100644
--- a/libgloss/cr16/stat.c
+++ b/libgloss/cr16/stat.c
@@ -20,8 +20,7 @@
* stat -- Since we have no file system, we just return an error.
*/
int
-_DEFUN (_stat, (path, buf),
- const char *path,
+_stat (const char *path,
struct stat *buf)
{
errno = EIO;