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/frv
parent44276afe2a0365d655425702205604640829668d (diff)
ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'libgloss/frv')
-rw-r--r--libgloss/frv/fstat.c3
-rw-r--r--libgloss/frv/getpid.c3
-rw-r--r--libgloss/frv/isatty.c3
-rw-r--r--libgloss/frv/kill.c3
-rw-r--r--libgloss/frv/print.c3
-rw-r--r--libgloss/frv/putnum.c3
-rw-r--r--libgloss/frv/sim-time.c9
-rw-r--r--libgloss/frv/stat.c3
8 files changed, 10 insertions, 20 deletions
diff --git a/libgloss/frv/fstat.c b/libgloss/frv/fstat.c
index 680c4a1c0..99f0abfd6 100644
--- a/libgloss/frv/fstat.c
+++ b/libgloss/frv/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/frv/getpid.c b/libgloss/frv/getpid.c
index e6d568207..1809a2dde 100644
--- a/libgloss/frv/getpid.c
+++ b/libgloss/frv/getpid.c
@@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (_getpid, (),
- )
+_getpid (void)
{
return __MYPID;
}
diff --git a/libgloss/frv/isatty.c b/libgloss/frv/isatty.c
index e4c99065b..65c02b7d6 100644
--- a/libgloss/frv/isatty.c
+++ b/libgloss/frv/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/frv/kill.c b/libgloss/frv/kill.c
index 8dda1e9a6..3be632ead 100644
--- a/libgloss/frv/kill.c
+++ b/libgloss/frv/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/frv/print.c b/libgloss/frv/print.c
index 8c8be847a..3dc3d0fe8 100644
--- a/libgloss/frv/print.c
+++ b/libgloss/frv/print.c
@@ -18,8 +18,7 @@
* print -- do a raw print of a string
*/
void
-_DEFUN (_print, (ptr),
-char *ptr)
+_print (char *ptr)
{
while (*ptr) {
outbyte (*ptr++);
diff --git a/libgloss/frv/putnum.c b/libgloss/frv/putnum.c
index c7fa12114..a07315e13 100644
--- a/libgloss/frv/putnum.c
+++ b/libgloss/frv/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/frv/sim-time.c b/libgloss/frv/sim-time.c
index 196f855ad..7a6af4acb 100644
--- a/libgloss/frv/sim-time.c
+++ b/libgloss/frv/sim-time.c
@@ -38,8 +38,7 @@ extern time_t _sim_time (void) __asm__("_sim_time");
* time -- return current time in seconds.
*/
time_t
-_DEFUN (time, time (t),
- time_t *t)
+time (time_t *t)
{
time_t ret = _sim_time ();
@@ -53,8 +52,7 @@ _DEFUN (time, time (t),
* _times -- no clock, so return an error.
*/
int
-_DEFUN (_times, _times (buf),
- struct tms *buf)
+_times (struct tms *buf)
{
errno = EINVAL;
return (-1);
@@ -65,8 +63,7 @@ _DEFUN (_times, _times (buf),
* microseconds.
*/
int
-_DEFUN (_gettimeofday, _gettimeofday (tv, tz),
- struct timeval *tv,
+_gettimeofday (struct timeval *tv,
void *tzvp)
{
struct timezone *tz = tzvp;
diff --git a/libgloss/frv/stat.c b/libgloss/frv/stat.c
index ceaedc216..b471f542c 100644
--- a/libgloss/frv/stat.c
+++ b/libgloss/frv/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;