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/crx
parent44276afe2a0365d655425702205604640829668d (diff)
ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'libgloss/crx')
-rw-r--r--libgloss/crx/fstat.c3
-rw-r--r--libgloss/crx/getpid.c3
-rw-r--r--libgloss/crx/isatty.c3
-rw-r--r--libgloss/crx/kill.c3
-rw-r--r--libgloss/crx/putnum.c3
-rw-r--r--libgloss/crx/stat.c3
6 files changed, 6 insertions, 12 deletions
diff --git a/libgloss/crx/fstat.c b/libgloss/crx/fstat.c
index 75f863583..e96cc07d1 100644
--- a/libgloss/crx/fstat.c
+++ b/libgloss/crx/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/crx/getpid.c b/libgloss/crx/getpid.c
index 3c1a7b8b8..912ca18a5 100644
--- a/libgloss/crx/getpid.c
+++ b/libgloss/crx/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/crx/isatty.c b/libgloss/crx/isatty.c
index ac3d041e7..c0039a59e 100644
--- a/libgloss/crx/isatty.c
+++ b/libgloss/crx/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/crx/kill.c b/libgloss/crx/kill.c
index db5018cfc..98cd3c40e 100644
--- a/libgloss/crx/kill.c
+++ b/libgloss/crx/kill.c
@@ -19,8 +19,7 @@
* kill -- go out via exit...
*/
int
-_DEFUN (kill, (pid, sig),
- int pid,
+kill (int pid,
int sig)
{
if(pid == __MYPID)
diff --git a/libgloss/crx/putnum.c b/libgloss/crx/putnum.c
index 3317bbf0a..af7232205 100644
--- a/libgloss/crx/putnum.c
+++ b/libgloss/crx/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/crx/stat.c b/libgloss/crx/stat.c
index 9562b9097..497ef83c0 100644
--- a/libgloss/crx/stat.c
+++ b/libgloss/crx/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;