aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-12-03 21:43:30 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2018-01-17 11:47:26 -0600
commit9087163804df8af6dc2ec1f675a2341c25f7795f (patch)
tree86fcb38236347d0e97a16c957e41dca597b8e8a8 /newlib/libc/stdio
parent44276afe2a0365d655425702205604640829668d (diff)
downloadnewlib-9087163804df8af6dc2ec1f675a2341c25f7795f.zip
newlib-9087163804df8af6dc2ec1f675a2341c25f7795f.tar.gz
newlib-9087163804df8af6dc2ec1f675a2341c25f7795f.tar.bz2
ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r--newlib/libc/stdio/asiprintf.c6
-rw-r--r--newlib/libc/stdio/asniprintf.c6
-rw-r--r--newlib/libc/stdio/asnprintf.c6
-rw-r--r--newlib/libc/stdio/asprintf.c6
-rw-r--r--newlib/libc/stdio/clearerr.c3
-rw-r--r--newlib/libc/stdio/clearerr_u.c3
-rw-r--r--newlib/libc/stdio/diprintf.c6
-rw-r--r--newlib/libc/stdio/dprintf.c6
-rw-r--r--newlib/libc/stdio/fclose.c6
-rw-r--r--newlib/libc/stdio/fcloseall.c3
-rw-r--r--newlib/libc/stdio/fdopen.c6
-rw-r--r--newlib/libc/stdio/feof.c3
-rw-r--r--newlib/libc/stdio/feof_u.c3
-rw-r--r--newlib/libc/stdio/ferror.c3
-rw-r--r--newlib/libc/stdio/ferror_u.c3
-rw-r--r--newlib/libc/stdio/fflush.c12
-rw-r--r--newlib/libc/stdio/fgetc.c6
-rw-r--r--newlib/libc/stdio/fgetc_u.c6
-rw-r--r--newlib/libc/stdio/fgetpos.c6
-rw-r--r--newlib/libc/stdio/fgets.c6
-rw-r--r--newlib/libc/stdio/fgetwc.c9
-rw-r--r--newlib/libc/stdio/fgetwc_u.c6
-rw-r--r--newlib/libc/stdio/fgetws.c6
-rw-r--r--newlib/libc/stdio/fileno.c3
-rw-r--r--newlib/libc/stdio/fileno_u.c3
-rw-r--r--newlib/libc/stdio/findfp.c21
-rw-r--r--newlib/libc/stdio/fiprintf.c6
-rw-r--r--newlib/libc/stdio/flags.c3
-rw-r--r--newlib/libc/stdio/fmemopen.c21
-rw-r--r--newlib/libc/stdio/fopen.c6
-rw-r--r--newlib/libc/stdio/fopencookie.c21
-rw-r--r--newlib/libc/stdio/fprintf.c6
-rw-r--r--newlib/libc/stdio/fpurge.c9
-rw-r--r--newlib/libc/stdio/fputc.c6
-rw-r--r--newlib/libc/stdio/fputc_u.c6
-rw-r--r--newlib/libc/stdio/fputs.c6
-rw-r--r--newlib/libc/stdio/fputwc.c9
-rw-r--r--newlib/libc/stdio/fputwc_u.c6
-rw-r--r--newlib/libc/stdio/fputws.c6
-rw-r--r--newlib/libc/stdio/fread.c9
-rw-r--r--newlib/libc/stdio/freopen.c6
-rw-r--r--newlib/libc/stdio/fseek.c6
-rw-r--r--newlib/libc/stdio/fseeko.c6
-rw-r--r--newlib/libc/stdio/fsetlocking.c3
-rw-r--r--newlib/libc/stdio/fsetpos.c6
-rw-r--r--newlib/libc/stdio/ftell.c6
-rw-r--r--newlib/libc/stdio/ftello.c6
-rw-r--r--newlib/libc/stdio/funopen.c21
-rw-r--r--newlib/libc/stdio/fvwrite.c3
-rw-r--r--newlib/libc/stdio/fwalk.c6
-rw-r--r--newlib/libc/stdio/fwide.c6
-rw-r--r--newlib/libc/stdio/fwprintf.c6
-rw-r--r--newlib/libc/stdio/fwrite.c6
-rw-r--r--newlib/libc/stdio/getc.c6
-rw-r--r--newlib/libc/stdio/getc_u.c6
-rw-r--r--newlib/libc/stdio/getchar.c3
-rw-r--r--newlib/libc/stdio/getchar_u.c3
-rw-r--r--newlib/libc/stdio/getdelim.c3
-rw-r--r--newlib/libc/stdio/getline.c3
-rw-r--r--newlib/libc/stdio/gets.c6
-rw-r--r--newlib/libc/stdio/getw.c3
-rw-r--r--newlib/libc/stdio/getwc.c6
-rw-r--r--newlib/libc/stdio/getwc_u.c6
-rw-r--r--newlib/libc/stdio/getwchar.c3
-rw-r--r--newlib/libc/stdio/getwchar_u.c3
-rw-r--r--newlib/libc/stdio/iprintf.c6
-rw-r--r--newlib/libc/stdio/makebuf.c6
-rw-r--r--newlib/libc/stdio/mktemp.c39
-rw-r--r--newlib/libc/stdio/nano-vfprintf.c21
-rw-r--r--newlib/libc/stdio/nano-vfscanf.c18
-rw-r--r--newlib/libc/stdio/open_memstream.c27
-rw-r--r--newlib/libc/stdio/perror.c6
-rw-r--r--newlib/libc/stdio/printf.c6
-rw-r--r--newlib/libc/stdio/putc.c6
-rw-r--r--newlib/libc/stdio/putc_u.c6
-rw-r--r--newlib/libc/stdio/putchar.c6
-rw-r--r--newlib/libc/stdio/putchar_u.c6
-rw-r--r--newlib/libc/stdio/puts.c6
-rw-r--r--newlib/libc/stdio/putw.c3
-rw-r--r--newlib/libc/stdio/putwc.c6
-rw-r--r--newlib/libc/stdio/putwc_u.c6
-rw-r--r--newlib/libc/stdio/putwchar.c6
-rw-r--r--newlib/libc/stdio/putwchar_u.c6
-rw-r--r--newlib/libc/stdio/refill.c6
-rw-r--r--newlib/libc/stdio/remove.c6
-rw-r--r--newlib/libc/stdio/rename.c3
-rw-r--r--newlib/libc/stdio/rewind.c6
-rw-r--r--newlib/libc/stdio/rget.c6
-rw-r--r--newlib/libc/stdio/sccl.c3
-rw-r--r--newlib/libc/stdio/setbuf.c3
-rw-r--r--newlib/libc/stdio/setbuffer.c3
-rw-r--r--newlib/libc/stdio/setlinebuf.c3
-rw-r--r--newlib/libc/stdio/setvbuf.c3
-rw-r--r--newlib/libc/stdio/siprintf.c6
-rw-r--r--newlib/libc/stdio/siscanf.c6
-rw-r--r--newlib/libc/stdio/sniprintf.c6
-rw-r--r--newlib/libc/stdio/snprintf.c6
-rw-r--r--newlib/libc/stdio/sprintf.c6
-rw-r--r--newlib/libc/stdio/sscanf.c6
-rw-r--r--newlib/libc/stdio/stdio.c18
-rw-r--r--newlib/libc/stdio/stdio_ext.c21
-rw-r--r--newlib/libc/stdio/swprintf.c6
-rw-r--r--newlib/libc/stdio/tmpfile.c3
-rw-r--r--newlib/libc/stdio/tmpnam.c15
-rw-r--r--newlib/libc/stdio/ungetc.c9
-rw-r--r--newlib/libc/stdio/ungetwc.c6
-rw-r--r--newlib/libc/stdio/vasiprintf.c6
-rw-r--r--newlib/libc/stdio/vasniprintf.c6
-rw-r--r--newlib/libc/stdio/vasnprintf.c6
-rw-r--r--newlib/libc/stdio/vasprintf.c6
-rw-r--r--newlib/libc/stdio/vdiprintf.c6
-rw-r--r--newlib/libc/stdio/vdprintf.c6
-rw-r--r--newlib/libc/stdio/vfprintf.c24
-rw-r--r--newlib/libc/stdio/vfscanf.c21
-rw-r--r--newlib/libc/stdio/vfwprintf.c12
-rw-r--r--newlib/libc/stdio/vfwscanf.c18
-rw-r--r--newlib/libc/stdio/viprintf.c6
-rw-r--r--newlib/libc/stdio/viscanf.c6
-rw-r--r--newlib/libc/stdio/vprintf.c6
-rw-r--r--newlib/libc/stdio/vscanf.c6
-rw-r--r--newlib/libc/stdio/vsiprintf.c6
-rw-r--r--newlib/libc/stdio/vsiscanf.c6
-rw-r--r--newlib/libc/stdio/vsniprintf.c6
-rw-r--r--newlib/libc/stdio/vsnprintf.c6
-rw-r--r--newlib/libc/stdio/vsprintf.c6
-rw-r--r--newlib/libc/stdio/vsscanf.c6
-rw-r--r--newlib/libc/stdio/vswprintf.c6
-rw-r--r--newlib/libc/stdio/vwprintf.c6
-rw-r--r--newlib/libc/stdio/wbuf.c6
-rw-r--r--newlib/libc/stdio/wprintf.c6
-rw-r--r--newlib/libc/stdio/wsetup.c3
131 files changed, 317 insertions, 634 deletions
diff --git a/newlib/libc/stdio/asiprintf.c b/newlib/libc/stdio/asiprintf.c
index ec60e3e..ce6d0a9 100644
--- a/newlib/libc/stdio/asiprintf.c
+++ b/newlib/libc/stdio/asiprintf.c
@@ -25,8 +25,7 @@
#include "local.h"
int
-_DEFUN(_asiprintf_r, (ptr, strp, fmt),
- struct _reent *ptr,
+_asiprintf_r (struct _reent *ptr,
char **strp,
const char *fmt, ...)
{
@@ -53,8 +52,7 @@ _DEFUN(_asiprintf_r, (ptr, strp, fmt),
#ifndef _REENT_ONLY
int
-_DEFUN(asiprintf, (strp, fmt),
- char **strp,
+asiprintf (char **strp,
const char *fmt, ...)
{
int ret;
diff --git a/newlib/libc/stdio/asniprintf.c b/newlib/libc/stdio/asniprintf.c
index ba4772f..0bfe00d 100644
--- a/newlib/libc/stdio/asniprintf.c
+++ b/newlib/libc/stdio/asniprintf.c
@@ -14,8 +14,7 @@
#include "local.h"
char *
-_DEFUN(_asniprintf_r, (ptr, buf, lenp, fmt),
- struct _reent *ptr,
+_asniprintf_r (struct _reent *ptr,
char *buf,
size_t *lenp,
const char *fmt, ...)
@@ -61,8 +60,7 @@ _DEFUN(_asniprintf_r, (ptr, buf, lenp, fmt),
#ifndef _REENT_ONLY
char *
-_DEFUN(asniprintf, (buf, lenp, fmt),
- char *buf,
+asniprintf (char *buf,
size_t *lenp,
const char *fmt, ...)
{
diff --git a/newlib/libc/stdio/asnprintf.c b/newlib/libc/stdio/asnprintf.c
index c9a37db..34639dc 100644
--- a/newlib/libc/stdio/asnprintf.c
+++ b/newlib/libc/stdio/asnprintf.c
@@ -14,8 +14,7 @@
#include "local.h"
char *
-_DEFUN(_asnprintf_r, (ptr, buf, lenp, fmt),
- struct _reent *__restrict ptr,
+_asnprintf_r (struct _reent *__restrict ptr,
char *buf,
size_t *lenp,
const char *__restrict fmt, ...)
@@ -67,8 +66,7 @@ _EXFUN(_asniprintf_r, (struct _reent *, char *, size_t *, const char *, ...)
#ifndef _REENT_ONLY
char *
-_DEFUN(asnprintf, (buf, lenp, fmt),
- char *__restrict buf,
+asnprintf (char *__restrict buf,
size_t *__restrict lenp,
const char *__restrict fmt, ...)
{
diff --git a/newlib/libc/stdio/asprintf.c b/newlib/libc/stdio/asprintf.c
index b3d9122..330491e 100644
--- a/newlib/libc/stdio/asprintf.c
+++ b/newlib/libc/stdio/asprintf.c
@@ -25,8 +25,7 @@
#include "local.h"
int
-_DEFUN(_asprintf_r, (ptr, strp, fmt),
- struct _reent *ptr,
+_asprintf_r (struct _reent *ptr,
char **__restrict strp,
const char *__restrict fmt, ...)
{
@@ -59,8 +58,7 @@ _EXFUN(_asiprintf_r, (struct _reent *, char **, const char *, ...)
#ifndef _REENT_ONLY
int
-_DEFUN(asprintf, (strp, fmt),
- char **__restrict strp,
+asprintf (char **__restrict strp,
const char *__restrict fmt, ...)
{
int ret;
diff --git a/newlib/libc/stdio/clearerr.c b/newlib/libc/stdio/clearerr.c
index 23e3c18..be83d6d 100644
--- a/newlib/libc/stdio/clearerr.c
+++ b/newlib/libc/stdio/clearerr.c
@@ -72,8 +72,7 @@ No supporting OS subroutines are required.
#undef clearerr
void
-_DEFUN(clearerr, (fp),
- FILE * fp)
+clearerr (FILE * fp)
{
CHECK_INIT(_REENT, fp);
_newlib_flockfile_start (fp);
diff --git a/newlib/libc/stdio/clearerr_u.c b/newlib/libc/stdio/clearerr_u.c
index 7514fa2..4952f77 100644
--- a/newlib/libc/stdio/clearerr_u.c
+++ b/newlib/libc/stdio/clearerr_u.c
@@ -33,8 +33,7 @@
#undef clearerr_unlocked
void
-_DEFUN(clearerr_unlocked, (fp),
- FILE * fp)
+clearerr_unlocked (FILE * fp)
{
CHECK_INIT(_REENT, fp);
__sclearerr (fp);
diff --git a/newlib/libc/stdio/diprintf.c b/newlib/libc/stdio/diprintf.c
index 0059e04..8ac5835 100644
--- a/newlib/libc/stdio/diprintf.c
+++ b/newlib/libc/stdio/diprintf.c
@@ -49,8 +49,7 @@ Supporting OS subroutines required: <<sbrk>>, <<write>>.
#include <stdarg.h>
int
-_DEFUN(_diprintf_r, (ptr, fd, format),
- struct _reent *ptr,
+_diprintf_r (struct _reent *ptr,
int fd,
const char *format, ...)
{
@@ -66,8 +65,7 @@ _DEFUN(_diprintf_r, (ptr, fd, format),
#ifndef _REENT_ONLY
int
-_DEFUN(diprintf, (fd, format),
- int fd,
+diprintf (int fd,
const char *format, ...)
{
va_list ap;
diff --git a/newlib/libc/stdio/dprintf.c b/newlib/libc/stdio/dprintf.c
index 5fd4504..1493e1f 100644
--- a/newlib/libc/stdio/dprintf.c
+++ b/newlib/libc/stdio/dprintf.c
@@ -53,8 +53,7 @@ Supporting OS subroutines required: <<sbrk>>, <<write>>.
#include "local.h"
int
-_DEFUN(_dprintf_r, (ptr, fd, format),
- struct _reent *ptr,
+_dprintf_r (struct _reent *ptr,
int fd,
const char *__restrict format, ...)
{
@@ -76,8 +75,7 @@ _EXFUN(_diprintf_r, (struct _reent *, int, const char *, ...)
#ifndef _REENT_ONLY
int
-_DEFUN(dprintf, (fd, format),
- int fd,
+dprintf (int fd,
const char *__restrict format, ...)
{
va_list ap;
diff --git a/newlib/libc/stdio/fclose.c b/newlib/libc/stdio/fclose.c
index 264d2e4..1c36057 100644
--- a/newlib/libc/stdio/fclose.c
+++ b/newlib/libc/stdio/fclose.c
@@ -56,8 +56,7 @@ Required OS subroutines: <<close>>, <<fstat>>, <<isatty>>, <<lseek>>,
#include "local.h"
int
-_DEFUN(_fclose_r, (rptr, fp),
- struct _reent *rptr,
+_fclose_r (struct _reent *rptr,
register FILE * fp)
{
int r;
@@ -121,8 +120,7 @@ _DEFUN(_fclose_r, (rptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(fclose, (fp),
- register FILE * fp)
+fclose (register FILE * fp)
{
return _fclose_r(_REENT, fp);
}
diff --git a/newlib/libc/stdio/fcloseall.c b/newlib/libc/stdio/fcloseall.c
index 659172b..2e78b4b 100644
--- a/newlib/libc/stdio/fcloseall.c
+++ b/newlib/libc/stdio/fcloseall.c
@@ -57,8 +57,7 @@ Required OS subroutines: <<close>>, <<fstat>>, <<isatty>>, <<lseek>>,
#include "local.h"
int
-_DEFUN(_fcloseall_r, (ptr),
- struct _reent *ptr)
+_fcloseall_r (struct _reent *ptr)
{
return _fwalk_reent (ptr, _fclose_r);
}
diff --git a/newlib/libc/stdio/fdopen.c b/newlib/libc/stdio/fdopen.c
index 876a941..854c018 100644
--- a/newlib/libc/stdio/fdopen.c
+++ b/newlib/libc/stdio/fdopen.c
@@ -53,8 +53,7 @@ PORTABILITY
#include <_syslist.h>
FILE *
-_DEFUN(_fdopen_r, (ptr, fd, mode),
- struct _reent *ptr,
+_fdopen_r (struct _reent *ptr,
int fd,
const char *mode)
{
@@ -123,8 +122,7 @@ _DEFUN(_fdopen_r, (ptr, fd, mode),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(fdopen, (fd, mode),
- int fd,
+fdopen (int fd,
const char *mode)
{
return _fdopen_r (_REENT, fd, mode);
diff --git a/newlib/libc/stdio/feof.c b/newlib/libc/stdio/feof.c
index 617ce58..8794179 100644
--- a/newlib/libc/stdio/feof.c
+++ b/newlib/libc/stdio/feof.c
@@ -65,8 +65,7 @@ No supporting OS subroutines are required.
#undef feof
int
-_DEFUN(feof, (fp),
- FILE * fp)
+feof (FILE * fp)
{
int result;
CHECK_INIT(_REENT, fp);
diff --git a/newlib/libc/stdio/feof_u.c b/newlib/libc/stdio/feof_u.c
index 48fc4af..e9238e1 100644
--- a/newlib/libc/stdio/feof_u.c
+++ b/newlib/libc/stdio/feof_u.c
@@ -32,8 +32,7 @@
#undef feof_unlocked
int
-_DEFUN(feof_unlocked, (fp),
- FILE * fp)
+feof_unlocked (FILE * fp)
{
CHECK_INIT(_REENT, fp);
return __sfeof (fp);
diff --git a/newlib/libc/stdio/ferror.c b/newlib/libc/stdio/ferror.c
index f99df23..3bff520 100644
--- a/newlib/libc/stdio/ferror.c
+++ b/newlib/libc/stdio/ferror.c
@@ -74,8 +74,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef ferror
int
-_DEFUN(ferror, (fp),
- FILE * fp)
+ferror (FILE * fp)
{
int result;
CHECK_INIT(_REENT, fp);
diff --git a/newlib/libc/stdio/ferror_u.c b/newlib/libc/stdio/ferror_u.c
index 9b9edba..ae1e278 100644
--- a/newlib/libc/stdio/ferror_u.c
+++ b/newlib/libc/stdio/ferror_u.c
@@ -33,8 +33,7 @@
#undef ferror_unlocked
int
-_DEFUN(ferror_unlocked, (fp),
- FILE * fp)
+ferror_unlocked (FILE * fp)
{
CHECK_INIT(_REENT, fp);
return __sferror (fp);
diff --git a/newlib/libc/stdio/fflush.c b/newlib/libc/stdio/fflush.c
index 18d6d3e..e958af9 100644
--- a/newlib/libc/stdio/fflush.c
+++ b/newlib/libc/stdio/fflush.c
@@ -100,8 +100,7 @@ No supporting OS subroutines are required.
/* Core function which does not lock file pointer. This gets called
directly from __srefill. */
int
-_DEFUN(__sflush_r, (ptr, fp),
- struct _reent *ptr,
+__sflush_r (struct _reent *ptr,
register FILE * fp)
{
register unsigned char *p;
@@ -239,8 +238,7 @@ _DEFUN(__sflush_r, (ptr, fp),
and we don't want to move the underlying file pointer unless we're
writing. */
int
-_DEFUN(__sflushw_r, (ptr, fp),
- struct _reent *ptr,
+__sflushw_r (struct _reent *ptr,
register FILE *fp)
{
return (fp->_flags & __SWR) ? __sflush_r (ptr, fp) : 0;
@@ -250,8 +248,7 @@ _DEFUN(__sflushw_r, (ptr, fp),
#endif /* __IMPL_UNLOCKED__ */
int
-_DEFUN(_fflush_r, (ptr, fp),
- struct _reent *ptr,
+_fflush_r (struct _reent *ptr,
register FILE * fp)
{
int ret;
@@ -286,8 +283,7 @@ _DEFUN(_fflush_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(fflush, (fp),
- register FILE * fp)
+fflush (register FILE * fp)
{
if (fp == NULL)
return _fwalk_reent (_GLOBAL_REENT, _fflush_r);
diff --git a/newlib/libc/stdio/fgetc.c b/newlib/libc/stdio/fgetc.c
index 45404d3..7d0d484 100644
--- a/newlib/libc/stdio/fgetc.c
+++ b/newlib/libc/stdio/fgetc.c
@@ -85,8 +85,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
int
-_DEFUN(_fgetc_r, (ptr, fp),
- struct _reent * ptr,
+_fgetc_r (struct _reent * ptr,
FILE * fp)
{
int result;
@@ -100,8 +99,7 @@ _DEFUN(_fgetc_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(fgetc, (fp),
- FILE * fp)
+fgetc (FILE * fp)
{
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
int result;
diff --git a/newlib/libc/stdio/fgetc_u.c b/newlib/libc/stdio/fgetc_u.c
index 45ee3b1..9a5719c 100644
--- a/newlib/libc/stdio/fgetc_u.c
+++ b/newlib/libc/stdio/fgetc_u.c
@@ -29,8 +29,7 @@
#include "local.h"
int
-_DEFUN(_fgetc_unlocked_r, (ptr, fp),
- struct _reent * ptr,
+_fgetc_unlocked_r (struct _reent * ptr,
FILE * fp)
{
CHECK_INIT(ptr, fp);
@@ -40,8 +39,7 @@ _DEFUN(_fgetc_unlocked_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(fgetc_unlocked, (fp),
- FILE * fp)
+fgetc_unlocked (FILE * fp)
{
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
struct _reent *reent = _REENT;
diff --git a/newlib/libc/stdio/fgetpos.c b/newlib/libc/stdio/fgetpos.c
index 373adfd..b4f6812 100644
--- a/newlib/libc/stdio/fgetpos.c
+++ b/newlib/libc/stdio/fgetpos.c
@@ -65,8 +65,7 @@ No supporting OS subroutines are required.
#include <stdio.h>
int
-_DEFUN(_fgetpos_r, (ptr, fp, pos),
- struct _reent * ptr,
+_fgetpos_r (struct _reent * ptr,
FILE *__restrict fp,
_fpos_t *__restrict pos)
{
@@ -82,8 +81,7 @@ _DEFUN(_fgetpos_r, (ptr, fp, pos),
#ifndef _REENT_ONLY
int
-_DEFUN(fgetpos, (fp, pos),
- FILE *__restrict fp,
+fgetpos (FILE *__restrict fp,
_fpos_t *__restrict pos)
{
return _fgetpos_r (_REENT, fp, pos);
diff --git a/newlib/libc/stdio/fgets.c b/newlib/libc/stdio/fgets.c
index c6ef6d3..7adfb21 100644
--- a/newlib/libc/stdio/fgets.c
+++ b/newlib/libc/stdio/fgets.c
@@ -94,8 +94,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
*/
char *
-_DEFUN(_fgets_r, (ptr, buf, n, fp),
- struct _reent * ptr,
+_fgets_r (struct _reent * ptr,
char *__restrict buf,
int n,
FILE *__restrict fp)
@@ -189,8 +188,7 @@ _DEFUN(_fgets_r, (ptr, buf, n, fp),
#ifndef _REENT_ONLY
char *
-_DEFUN(fgets, (buf, n, fp),
- char *__restrict buf,
+fgets (char *__restrict buf,
int n,
FILE *__restrict fp)
{
diff --git a/newlib/libc/stdio/fgetwc.c b/newlib/libc/stdio/fgetwc.c
index 718b53a..522697e 100644
--- a/newlib/libc/stdio/fgetwc.c
+++ b/newlib/libc/stdio/fgetwc.c
@@ -125,8 +125,7 @@ PORTABILITY
#include "local.h"
wint_t
-_DEFUN(__fgetwc, (ptr, fp),
- struct _reent *ptr,
+__fgetwc (struct _reent *ptr,
register FILE *fp)
{
wchar_t wc;
@@ -172,8 +171,7 @@ _DEFUN(__fgetwc, (ptr, fp),
}
wint_t
-_DEFUN(_fgetwc_r, (ptr, fp),
- struct _reent *ptr,
+_fgetwc_r (struct _reent *ptr,
register FILE *fp)
{
wint_t r;
@@ -186,8 +184,7 @@ _DEFUN(_fgetwc_r, (ptr, fp),
}
wint_t
-_DEFUN(fgetwc, (fp),
- FILE *fp)
+fgetwc (FILE *fp)
{
struct _reent *reent = _REENT;
diff --git a/newlib/libc/stdio/fgetwc_u.c b/newlib/libc/stdio/fgetwc_u.c
index f3a4fea..cbb9736 100644
--- a/newlib/libc/stdio/fgetwc_u.c
+++ b/newlib/libc/stdio/fgetwc_u.c
@@ -30,8 +30,7 @@
#include "local.h"
wint_t
-_DEFUN(_fgetwc_unlocked_r, (ptr, fp),
- struct _reent *ptr,
+_fgetwc_unlocked_r (struct _reent *ptr,
register FILE *fp)
{
ORIENT(fp, 1);
@@ -39,8 +38,7 @@ _DEFUN(_fgetwc_unlocked_r, (ptr, fp),
}
wint_t
-_DEFUN(fgetwc_unlocked, (fp),
- FILE *fp)
+fgetwc_unlocked (FILE *fp)
{
struct _reent *reent = _REENT;
diff --git a/newlib/libc/stdio/fgetws.c b/newlib/libc/stdio/fgetws.c
index 8ca95d1..c942806 100644
--- a/newlib/libc/stdio/fgetws.c
+++ b/newlib/libc/stdio/fgetws.c
@@ -99,8 +99,7 @@ PORTABILITY
#endif
wchar_t *
-_DEFUN(_fgetws_r, (ptr, ws, n, fp),
- struct _reent *ptr,
+_fgetws_r (struct _reent *ptr,
wchar_t * ws,
int n,
FILE * fp)
@@ -172,8 +171,7 @@ error:
}
wchar_t *
-_DEFUN(fgetws, (ws, n, fp),
- wchar_t *__restrict ws,
+fgetws (wchar_t *__restrict ws,
int n,
FILE *__restrict fp)
{
diff --git a/newlib/libc/stdio/fileno.c b/newlib/libc/stdio/fileno.c
index 949a381..ceb83f8 100644
--- a/newlib/libc/stdio/fileno.c
+++ b/newlib/libc/stdio/fileno.c
@@ -63,8 +63,7 @@ Supporting OS subroutines required: none.
#include "local.h"
int
-_DEFUN(fileno, (f),
- FILE * f)
+fileno (FILE * f)
{
int result;
CHECK_INIT (_REENT, f);
diff --git a/newlib/libc/stdio/fileno_u.c b/newlib/libc/stdio/fileno_u.c
index 468d112..830a07d 100644
--- a/newlib/libc/stdio/fileno_u.c
+++ b/newlib/libc/stdio/fileno_u.c
@@ -30,8 +30,7 @@
#include "local.h"
int
-_DEFUN(fileno_unlocked, (f),
- FILE * f)
+fileno_unlocked (FILE * f)
{
int result;
CHECK_INIT (_REENT, f);
diff --git a/newlib/libc/stdio/findfp.c b/newlib/libc/stdio/findfp.c
index 031b98b..cf92453 100644
--- a/newlib/libc/stdio/findfp.c
+++ b/newlib/libc/stdio/findfp.c
@@ -44,8 +44,7 @@ _NOINLINE_STATIC void
#else
static void
#endif
-_DEFUN(std, (ptr, flags, file),
- FILE *ptr,
+std (FILE *ptr,
int flags,
int file)
{
@@ -124,8 +123,7 @@ struct glue_with_file {
};
struct _glue *
-_DEFUN(__sfmoreglue, (d, n),
- struct _reent *d,
+__sfmoreglue (struct _reent *d,
register int n)
{
struct glue_with_file *g;
@@ -146,8 +144,7 @@ _DEFUN(__sfmoreglue, (d, n),
*/
FILE *
-_DEFUN(__sfp, (d),
- struct _reent *d)
+__sfp (struct _reent *d)
{
FILE *fp;
int n;
@@ -204,8 +201,7 @@ found:
*/
void
-_DEFUN(_cleanup_r, (ptr),
- struct _reent *ptr)
+_cleanup_r (struct _reent *ptr)
{
int (*cleanup_func) (struct _reent *, FILE *);
#ifdef _STDIO_BSD_SEMANTICS
@@ -246,8 +242,7 @@ _cleanup (void)
*/
void
-_DEFUN(__sinit, (s),
- struct _reent *s)
+__sinit (struct _reent *s)
{
__sinit_lock_acquire ();
@@ -329,8 +324,7 @@ __sinit_lock_release (void)
/* Walkable file locking routine. */
static int
-_DEFUN(__fp_lock, (ptr),
- FILE * ptr)
+__fp_lock (FILE * ptr)
{
if (!(ptr->_flags2 & __SNLK))
_flockfile (ptr);
@@ -340,8 +334,7 @@ _DEFUN(__fp_lock, (ptr),
/* Walkable file unlocking routine. */
static int
-_DEFUN(__fp_unlock, (ptr),
- FILE * ptr)
+__fp_unlock (FILE * ptr)
{
if (!(ptr->_flags2 & __SNLK))
_funlockfile (ptr);
diff --git a/newlib/libc/stdio/fiprintf.c b/newlib/libc/stdio/fiprintf.c
index e86bf86..ff09462 100644
--- a/newlib/libc/stdio/fiprintf.c
+++ b/newlib/libc/stdio/fiprintf.c
@@ -22,8 +22,7 @@
#include <stdarg.h>
int
-_DEFUN(_fiprintf_r, (ptr, fp, fmt),
- struct _reent *ptr,
+_fiprintf_r (struct _reent *ptr,
FILE * fp,
const char *fmt, ...)
{
@@ -39,8 +38,7 @@ _DEFUN(_fiprintf_r, (ptr, fp, fmt),
#ifndef _REENT_ONLY
int
-_DEFUN(fiprintf, (fp, fmt),
- FILE * fp,
+fiprintf (FILE * fp,
const char *fmt, ...)
{
int ret;
diff --git a/newlib/libc/stdio/flags.c b/newlib/libc/stdio/flags.c
index b8f660e..71fc1f6 100644
--- a/newlib/libc/stdio/flags.c
+++ b/newlib/libc/stdio/flags.c
@@ -30,8 +30,7 @@
*/
int
-_DEFUN(__sflags, (ptr, mode, optr),
- struct _reent *ptr,
+__sflags (struct _reent *ptr,
register char *mode,
int *optr)
{
diff --git a/newlib/libc/stdio/fmemopen.c b/newlib/libc/stdio/fmemopen.c
index 6a6153f..0d04352 100644
--- a/newlib/libc/stdio/fmemopen.c
+++ b/newlib/libc/stdio/fmemopen.c
@@ -83,8 +83,7 @@ typedef struct fmemcookie {
/* Read up to non-zero N bytes into BUF from stream described by
COOKIE; return number of bytes read (0 on EOF). */
static _READ_WRITE_RETURN_TYPE
-_DEFUN(fmemreader, (ptr, cookie, buf, n),
- struct _reent *ptr,
+fmemreader (struct _reent *ptr,
void *cookie,
char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -103,8 +102,7 @@ _DEFUN(fmemreader, (ptr, cookie, buf, n),
/* Write up to non-zero N bytes of BUF into the stream described by COOKIE,
returning the number of bytes written or EOF on failure. */
static _READ_WRITE_RETURN_TYPE
-_DEFUN(fmemwriter, (ptr, cookie, buf, n),
- struct _reent *ptr,
+fmemwriter (struct _reent *ptr,
void *cookie,
const char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -159,8 +157,7 @@ _DEFUN(fmemwriter, (ptr, cookie, buf, n),
/* Seek to position POS relative to WHENCE within stream described by
COOKIE; return resulting position or fail with EOF. */
static _fpos_t
-_DEFUN(fmemseeker, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+fmemseeker (struct _reent *ptr,
void *cookie,
_fpos_t pos,
int whence)
@@ -214,8 +211,7 @@ _DEFUN(fmemseeker, (ptr, cookie, pos, whence),
COOKIE; return resulting position or fail with EOF. */
#ifdef __LARGE64_FILES
static _fpos64_t
-_DEFUN(fmemseeker64, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+fmemseeker64 (struct _reent *ptr,
void *cookie,
_fpos64_t pos,
int whence)
@@ -256,8 +252,7 @@ _DEFUN(fmemseeker64, (ptr, cookie, pos, whence),
/* Reclaim resources used by stream described by COOKIE. */
static int
-_DEFUN(fmemcloser, (ptr, cookie),
- struct _reent *ptr,
+fmemcloser (struct _reent *ptr,
void *cookie)
{
fmemcookie *c = (fmemcookie *) cookie;
@@ -268,8 +263,7 @@ _DEFUN(fmemcloser, (ptr, cookie),
/* Open a memstream around buffer BUF of SIZE bytes, using MODE.
Return the new stream, or fail with NULL. */
FILE *
-_DEFUN(_fmemopen_r, (ptr, buf, size, mode),
- struct _reent *ptr,
+_fmemopen_r (struct _reent *ptr,
void *__restrict buf,
size_t size,
const char *__restrict mode)
@@ -361,8 +355,7 @@ _DEFUN(_fmemopen_r, (ptr, buf, size, mode),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(fmemopen, (buf, size, mode),
- void *__restrict buf,
+fmemopen (void *__restrict buf,
size_t size,
const char *__restrict mode)
{
diff --git a/newlib/libc/stdio/fopen.c b/newlib/libc/stdio/fopen.c
index 5726894..022992b 100644
--- a/newlib/libc/stdio/fopen.c
+++ b/newlib/libc/stdio/fopen.c
@@ -113,8 +113,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include "local.h"
FILE *
-_DEFUN(_fopen_r, (ptr, file, mode),
- struct _reent *ptr,
+_fopen_r (struct _reent *ptr,
const char *__restrict file,
const char *__restrict mode)
{
@@ -163,8 +162,7 @@ _DEFUN(_fopen_r, (ptr, file, mode),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(fopen, (file, mode),
- const char *file,
+fopen (const char *file,
const char *mode)
{
return _fopen_r (_REENT, file, mode);
diff --git a/newlib/libc/stdio/fopencookie.c b/newlib/libc/stdio/fopencookie.c
index 4ea1ab1..0861528 100644
--- a/newlib/libc/stdio/fopencookie.c
+++ b/newlib/libc/stdio/fopencookie.c
@@ -98,8 +98,7 @@ typedef struct fccookie {
} fccookie;
static _READ_WRITE_RETURN_TYPE
-_DEFUN(fcreader, (ptr, cookie, buf, n),
- struct _reent *ptr,
+fcreader (struct _reent *ptr,
void *cookie,
char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -113,8 +112,7 @@ _DEFUN(fcreader, (ptr, cookie, buf, n),
}
static _READ_WRITE_RETURN_TYPE
-_DEFUN(fcwriter, (ptr, cookie, buf, n),
- struct _reent *ptr,
+fcwriter (struct _reent *ptr,
void *cookie,
const char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -136,8 +134,7 @@ _DEFUN(fcwriter, (ptr, cookie, buf, n),
}
static _fpos_t
-_DEFUN(fcseeker, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+fcseeker (struct _reent *ptr,
void *cookie,
_fpos_t pos,
int whence)
@@ -164,8 +161,7 @@ _DEFUN(fcseeker, (ptr, cookie, pos, whence),
#ifdef __LARGE64_FILES
static _fpos64_t
-_DEFUN(fcseeker64, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+fcseeker64 (struct _reent *ptr,
void *cookie,
_fpos64_t pos,
int whence)
@@ -180,8 +176,7 @@ _DEFUN(fcseeker64, (ptr, cookie, pos, whence),
#endif /* __LARGE64_FILES */
static int
-_DEFUN(fccloser, (ptr, cookie),
- struct _reent *ptr,
+fccloser (struct _reent *ptr,
void *cookie)
{
int result = 0;
@@ -197,8 +192,7 @@ _DEFUN(fccloser, (ptr, cookie),
}
FILE *
-_DEFUN(_fopencookie_r, (ptr, cookie, mode, functions),
- struct _reent *ptr,
+_fopencookie_r (struct _reent *ptr,
void *cookie,
const char *mode,
cookie_io_functions_t functions)
@@ -253,8 +247,7 @@ _DEFUN(_fopencookie_r, (ptr, cookie, mode, functions),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(fopencookie, (cookie, mode, functions),
- void *cookie,
+fopencookie (void *cookie,
const char *mode,
cookie_io_functions_t functions)
{
diff --git a/newlib/libc/stdio/fprintf.c b/newlib/libc/stdio/fprintf.c
index 9dab2cd..4c03b1a 100644
--- a/newlib/libc/stdio/fprintf.c
+++ b/newlib/libc/stdio/fprintf.c
@@ -22,8 +22,7 @@
#include <stdarg.h>
int
-_DEFUN(_fprintf_r, (ptr, fp, fmt),
- struct _reent *ptr,
+_fprintf_r (struct _reent *ptr,
FILE *__restrict fp,
const char *__restrict fmt, ...)
{
@@ -45,8 +44,7 @@ _EXFUN(_fiprintf_r, (struct _reent *, FILE *, const char *, ...)
#ifndef _REENT_ONLY
int
-_DEFUN(fprintf, (fp, fmt),
- FILE *__restrict fp,
+fprintf (FILE *__restrict fp,
const char *__restrict fmt, ...)
{
int ret;
diff --git a/newlib/libc/stdio/fpurge.c b/newlib/libc/stdio/fpurge.c
index acd177a..2e4f61e 100644
--- a/newlib/libc/stdio/fpurge.c
+++ b/newlib/libc/stdio/fpurge.c
@@ -60,8 +60,7 @@ No supporting OS subroutines are required.
/* Discard I/O from a single file. */
int
-_DEFUN(_fpurge_r, (ptr, fp),
- struct _reent *ptr,
+_fpurge_r (struct _reent *ptr,
register FILE * fp)
{
int t;
@@ -93,8 +92,7 @@ _DEFUN(_fpurge_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(fpurge, (fp),
- register FILE * fp)
+fpurge (register FILE * fp)
{
return _fpurge_r (_REENT, fp);
}
@@ -102,8 +100,7 @@ _DEFUN(fpurge, (fp),
#ifndef __rtems__
void
-_DEFUN(__fpurge, (fp),
- register FILE * fp)
+__fpurge (register FILE * fp)
{
_fpurge_r (_REENT, fp);
}
diff --git a/newlib/libc/stdio/fputc.c b/newlib/libc/stdio/fputc.c
index 452bb29..1385cad 100644
--- a/newlib/libc/stdio/fputc.c
+++ b/newlib/libc/stdio/fputc.c
@@ -87,8 +87,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
int
-_DEFUN(_fputc_r, (ptr, ch, file),
- struct _reent *ptr,
+_fputc_r (struct _reent *ptr,
int ch,
FILE * file)
{
@@ -102,8 +101,7 @@ _DEFUN(_fputc_r, (ptr, ch, file),
#ifndef _REENT_ONLY
int
-_DEFUN(fputc, (ch, file),
- int ch,
+fputc (int ch,
FILE * file)
{
#if !defined(__OPTIMIZE_SIZE__) && !defined(PREFER_SIZE_OVER_SPEED)
diff --git a/newlib/libc/stdio/fputc_u.c b/newlib/libc/stdio/fputc_u.c
index 27690e2..9e16069 100644
--- a/newlib/libc/stdio/fputc_u.c
+++ b/newlib/libc/stdio/fputc_u.c
@@ -29,8 +29,7 @@
#include "local.h"
int
-_DEFUN(_fputc_unlocked_r, (ptr, ch, file),
- struct _reent *ptr,
+_fputc_unlocked_r (struct _reent *ptr,
int ch,
FILE * file)
{
@@ -40,8 +39,7 @@ _DEFUN(_fputc_unlocked_r, (ptr, ch, file),
#ifndef _REENT_ONLY
int
-_DEFUN(fputc_unlocked, (ch, file),
- int ch,
+fputc_unlocked (int ch,
FILE * file)
{
#if !defined(__OPTIMIZE_SIZE__) && !defined(PREFER_SIZE_OVER_SPEED)
diff --git a/newlib/libc/stdio/fputs.c b/newlib/libc/stdio/fputs.c
index 0fd051b..7a1eadb 100644
--- a/newlib/libc/stdio/fputs.c
+++ b/newlib/libc/stdio/fputs.c
@@ -86,8 +86,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
* Write the given string to the given file.
*/
int
-_DEFUN(_fputs_r, (ptr, s, fp),
- struct _reent * ptr,
+_fputs_r (struct _reent * ptr,
char const *__restrict s,
FILE *__restrict fp)
{
@@ -135,8 +134,7 @@ error:
#ifndef _REENT_ONLY
int
-_DEFUN(fputs, (s, fp),
- char const *__restrict s,
+fputs (char const *__restrict s,
FILE *__restrict fp)
{
return _fputs_r (_REENT, s, fp);
diff --git a/newlib/libc/stdio/fputwc.c b/newlib/libc/stdio/fputwc.c
index 4943cef..9a4e80d 100644
--- a/newlib/libc/stdio/fputwc.c
+++ b/newlib/libc/stdio/fputwc.c
@@ -128,8 +128,7 @@ PORTABILITY
#include "local.h"
wint_t
-_DEFUN(__fputwc, (ptr, wc, fp),
- struct _reent *ptr,
+__fputwc (struct _reent *ptr,
wchar_t wc,
FILE *fp)
{
@@ -163,8 +162,7 @@ _DEFUN(__fputwc, (ptr, wc, fp),
}
wint_t
-_DEFUN(_fputwc_r, (ptr, wc, fp),
- struct _reent *ptr,
+_fputwc_r (struct _reent *ptr,
wchar_t wc,
FILE *fp)
{
@@ -178,8 +176,7 @@ _DEFUN(_fputwc_r, (ptr, wc, fp),
}
wint_t
-_DEFUN(fputwc, (wc, fp),
- wchar_t wc,
+fputwc (wchar_t wc,
FILE *fp)
{
struct _reent *reent = _REENT;
diff --git a/newlib/libc/stdio/fputwc_u.c b/newlib/libc/stdio/fputwc_u.c
index 4d4f07a..d4e5153 100644
--- a/newlib/libc/stdio/fputwc_u.c
+++ b/newlib/libc/stdio/fputwc_u.c
@@ -30,8 +30,7 @@
#include "local.h"
wint_t
-_DEFUN(_fputwc_unlocked_r, (ptr, wc, fp),
- struct _reent *ptr,
+_fputwc_unlocked_r (struct _reent *ptr,
wchar_t wc,
FILE *fp)
{
@@ -40,8 +39,7 @@ _DEFUN(_fputwc_unlocked_r, (ptr, wc, fp),
}
wint_t
-_DEFUN(fputwc_unlocked, (wc, fp),
- wchar_t wc,
+fputwc_unlocked (wchar_t wc,
FILE *fp)
{
struct _reent *reent = _REENT;
diff --git a/newlib/libc/stdio/fputws.c b/newlib/libc/stdio/fputws.c
index 8a470fc..92f2cbf 100644
--- a/newlib/libc/stdio/fputws.c
+++ b/newlib/libc/stdio/fputws.c
@@ -94,8 +94,7 @@ PORTABILITY
#endif
int
-_DEFUN(_fputws_r, (ptr, ws, fp),
- struct _reent *ptr,
+_fputws_r (struct _reent *ptr,
const wchar_t *ws,
FILE *fp)
{
@@ -158,8 +157,7 @@ error:
}
int
-_DEFUN(fputws, (ws, fp),
- const wchar_t *__restrict ws,
+fputws (const wchar_t *__restrict ws,
FILE *__restrict fp)
{
struct _reent *reent = _REENT;
diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c
index c9180b8..b358d2b 100644
--- a/newlib/libc/stdio/fread.c
+++ b/newlib/libc/stdio/fread.c
@@ -93,8 +93,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifdef __SCLE
static size_t
-_DEFUN(crlf_r, (ptr, fp, buf, count, eof),
- struct _reent * ptr,
+crlf_r (struct _reent * ptr,
FILE * fp,
char * buf,
size_t count,
@@ -142,8 +141,7 @@ _DEFUN(crlf_r, (ptr, fp, buf, count, eof),
#endif
size_t
-_DEFUN(_fread_r, (ptr, buf, size, count, fp),
- struct _reent * ptr,
+_fread_r (struct _reent * ptr,
void *__restrict buf,
size_t size,
size_t count,
@@ -260,8 +258,7 @@ _DEFUN(_fread_r, (ptr, buf, size, count, fp),
#ifndef _REENT_ONLY
size_t
-_DEFUN(fread, (buf, size, count, fp),
- void *__restrict buf,
+fread (void *__restrict buf,
size_t size,
size_t count,
FILE *__restrict fp)
diff --git a/newlib/libc/stdio/freopen.c b/newlib/libc/stdio/freopen.c
index 46cbd81..0af1c1e 100644
--- a/newlib/libc/stdio/freopen.c
+++ b/newlib/libc/stdio/freopen.c
@@ -75,8 +75,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
*/
FILE *
-_DEFUN(_freopen_r, (ptr, file, mode, fp),
- struct _reent *ptr,
+_freopen_r (struct _reent *ptr,
const char *__restrict file,
const char *__restrict mode,
register FILE *__restrict fp)
@@ -243,8 +242,7 @@ _DEFUN(_freopen_r, (ptr, file, mode, fp),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(freopen, (file, mode, fp),
- const char *__restrict file,
+freopen (const char *__restrict file,
const char *__restrict mode,
register FILE *__restrict fp)
{
diff --git a/newlib/libc/stdio/fseek.c b/newlib/libc/stdio/fseek.c
index 4b8a1e0..9b3ea98 100644
--- a/newlib/libc/stdio/fseek.c
+++ b/newlib/libc/stdio/fseek.c
@@ -81,8 +81,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
int
-_DEFUN(_fseek_r, (ptr, fp, offset, whence),
- struct _reent *ptr,
+_fseek_r (struct _reent *ptr,
register FILE *fp,
long offset,
int whence)
@@ -93,8 +92,7 @@ _DEFUN(_fseek_r, (ptr, fp, offset, whence),
#ifndef _REENT_ONLY
int
-_DEFUN(fseek, (fp, offset, whence),
- register FILE *fp,
+fseek (register FILE *fp,
long offset,
int whence)
{
diff --git a/newlib/libc/stdio/fseeko.c b/newlib/libc/stdio/fseeko.c
index a2ed1b5..7ca8616 100644
--- a/newlib/libc/stdio/fseeko.c
+++ b/newlib/libc/stdio/fseeko.c
@@ -93,8 +93,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
*/
int
-_DEFUN(_fseeko_r, (ptr, fp, offset, whence),
- struct _reent *ptr,
+_fseeko_r (struct _reent *ptr,
register FILE *fp,
_off_t offset,
int whence)
@@ -359,8 +358,7 @@ dumb:
#ifndef _REENT_ONLY
int
-_DEFUN(fseeko, (fp, offset, whence),
- register FILE *fp,
+fseeko (register FILE *fp,
_off_t offset,
int whence)
{
diff --git a/newlib/libc/stdio/fsetlocking.c b/newlib/libc/stdio/fsetlocking.c
index e27aa42..062b93a 100644
--- a/newlib/libc/stdio/fsetlocking.c
+++ b/newlib/libc/stdio/fsetlocking.c
@@ -65,8 +65,7 @@ No supporting OS subroutines are required.
#include "local.h"
int
-_DEFUN(__fsetlocking, (fp, type),
- FILE * fp,
+__fsetlocking (FILE * fp,
int type)
{
int result;
diff --git a/newlib/libc/stdio/fsetpos.c b/newlib/libc/stdio/fsetpos.c
index d765081..b5334e2 100644
--- a/newlib/libc/stdio/fsetpos.c
+++ b/newlib/libc/stdio/fsetpos.c
@@ -59,8 +59,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include <stdio.h>
int
-_DEFUN(_fsetpos_r, (ptr, iop, pos),
- struct _reent * ptr,
+_fsetpos_r (struct _reent * ptr,
FILE * iop,
const _fpos_t * pos)
{
@@ -74,8 +73,7 @@ _DEFUN(_fsetpos_r, (ptr, iop, pos),
#ifndef _REENT_ONLY
int
-_DEFUN(fsetpos, (iop, pos),
- FILE * iop,
+fsetpos (FILE * iop,
const _fpos_t * pos)
{
return _fsetpos_r (_REENT, iop, pos);
diff --git a/newlib/libc/stdio/ftell.c b/newlib/libc/stdio/ftell.c
index 1260d5e..e4a2461 100644
--- a/newlib/libc/stdio/ftell.c
+++ b/newlib/libc/stdio/ftell.c
@@ -83,8 +83,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include "local.h"
long
-_DEFUN(_ftell_r, (ptr, fp),
- struct _reent *ptr,
+_ftell_r (struct _reent *ptr,
register FILE * fp)
{
_fpos_t pos;
@@ -101,8 +100,7 @@ _DEFUN(_ftell_r, (ptr, fp),
#ifndef _REENT_ONLY
long
-_DEFUN(ftell, (fp),
- register FILE * fp)
+ftell (register FILE * fp)
{
return _ftell_r (_REENT, fp);
}
diff --git a/newlib/libc/stdio/ftello.c b/newlib/libc/stdio/ftello.c
index 9d04a45..d083b93 100644
--- a/newlib/libc/stdio/ftello.c
+++ b/newlib/libc/stdio/ftello.c
@@ -83,8 +83,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include "local.h"
_off_t
-_DEFUN(_ftello_r, (ptr, fp),
- struct _reent * ptr,
+_ftello_r (struct _reent * ptr,
register FILE * fp)
{
_fpos_t pos;
@@ -153,8 +152,7 @@ _DEFUN(_ftello_r, (ptr, fp),
#ifndef _REENT_ONLY
_off_t
-_DEFUN(ftello, (fp),
- register FILE * fp)
+ftello (register FILE * fp)
{
return _ftello_r (_REENT, fp);
}
diff --git a/newlib/libc/stdio/funopen.c b/newlib/libc/stdio/funopen.c
index 23bed7b..a1c0d76 100644
--- a/newlib/libc/stdio/funopen.c
+++ b/newlib/libc/stdio/funopen.c
@@ -104,8 +104,7 @@ typedef struct funcookie {
} funcookie;
static _READ_WRITE_RETURN_TYPE
-_DEFUN(funreader, (ptr, cookie, buf, n),
- struct _reent *ptr,
+funreader (struct _reent *ptr,
void *cookie,
char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -119,8 +118,7 @@ _DEFUN(funreader, (ptr, cookie, buf, n),
}
static _READ_WRITE_RETURN_TYPE
-_DEFUN(funwriter, (ptr, cookie, buf, n),
- struct _reent *ptr,
+funwriter (struct _reent *ptr,
void *cookie,
const char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -134,8 +132,7 @@ _DEFUN(funwriter, (ptr, cookie, buf, n),
}
static _fpos_t
-_DEFUN(funseeker, (ptr, cookie, off, whence),
- struct _reent *ptr,
+funseeker (struct _reent *ptr,
void *cookie,
_fpos_t off,
int whence)
@@ -162,8 +159,7 @@ _DEFUN(funseeker, (ptr, cookie, off, whence),
#ifdef __LARGE64_FILES
static _fpos64_t
-_DEFUN(funseeker64, (ptr, cookie, off, whence),
- struct _reent *ptr,
+funseeker64 (struct _reent *ptr,
void *cookie,
_fpos64_t off,
int whence)
@@ -178,8 +174,7 @@ _DEFUN(funseeker64, (ptr, cookie, off, whence),
#endif /* __LARGE64_FILES */
static int
-_DEFUN(funcloser, (ptr, cookie),
- struct _reent *ptr,
+funcloser (struct _reent *ptr,
void *cookie)
{
int result = 0;
@@ -195,8 +190,7 @@ _DEFUN(funcloser, (ptr, cookie),
}
FILE *
-_DEFUN(_funopen_r, (ptr, cookie, readfn, writefn, seekfn, closefn),
- struct _reent *ptr,
+_funopen_r (struct _reent *ptr,
const void *cookie,
funread readfn,
funwrite writefn,
@@ -267,8 +261,7 @@ _DEFUN(_funopen_r, (ptr, cookie, readfn, writefn, seekfn, closefn),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(funopen, (cookie, readfn, writefn, seekfn, closefn),
- const void *cookie,
+funopen (const void *cookie,
funread readfn,
funwrite writefn,
funseek seekfn,
diff --git a/newlib/libc/stdio/fvwrite.c b/newlib/libc/stdio/fvwrite.c
index d742784..3e3a0c6 100644
--- a/newlib/libc/stdio/fvwrite.c
+++ b/newlib/libc/stdio/fvwrite.c
@@ -45,8 +45,7 @@
*/
int
-_DEFUN(__sfvwrite_r, (ptr, fp, uio),
- struct _reent *ptr,
+__sfvwrite_r (struct _reent *ptr,
register FILE *fp,
register struct __suio *uio)
{
diff --git a/newlib/libc/stdio/fwalk.c b/newlib/libc/stdio/fwalk.c
index 8b7b5b0..b4b285a 100644
--- a/newlib/libc/stdio/fwalk.c
+++ b/newlib/libc/stdio/fwalk.c
@@ -28,8 +28,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include "local.h"
int
-_DEFUN(_fwalk, (ptr, function),
- struct _reent *ptr,
+_fwalk (struct _reent *ptr,
register int (*function) (FILE *))
{
register FILE *fp;
@@ -55,8 +54,7 @@ _DEFUN(_fwalk, (ptr, function),
/* Special version of __fwalk where the function pointer is a reentrant
I/O function (e.g. _fclose_r). */
int
-_DEFUN(_fwalk_reent, (ptr, reent_function),
- struct _reent *ptr,
+_fwalk_reent (struct _reent *ptr,
register int (*reent_function) (struct _reent *, FILE *))
{
register FILE *fp;
diff --git a/newlib/libc/stdio/fwide.c b/newlib/libc/stdio/fwide.c
index 719a58a..9b5a3d1 100644
--- a/newlib/libc/stdio/fwide.c
+++ b/newlib/libc/stdio/fwide.c
@@ -48,8 +48,7 @@ C99, POSIX.1-2001.
#include "local.h"
int
-_DEFUN(_fwide_r, (ptr, fp, mode),
- struct _reent *ptr,
+_fwide_r (struct _reent *ptr,
FILE *fp,
int mode)
{
@@ -70,8 +69,7 @@ _DEFUN(_fwide_r, (ptr, fp, mode),
}
int
-_DEFUN(fwide, (fp, mode),
- FILE *fp,
+fwide (FILE *fp,
int mode)
{
return _fwide_r (_REENT, fp, mode);
diff --git a/newlib/libc/stdio/fwprintf.c b/newlib/libc/stdio/fwprintf.c
index b7604aa..d4047dc 100644
--- a/newlib/libc/stdio/fwprintf.c
+++ b/newlib/libc/stdio/fwprintf.c
@@ -23,8 +23,7 @@
#include <stdarg.h>
int
-_DEFUN(_fwprintf_r, (ptr, fp, fmt),
- struct _reent *ptr,
+_fwprintf_r (struct _reent *ptr,
FILE *fp,
const wchar_t *fmt, ...)
{
@@ -40,8 +39,7 @@ _DEFUN(_fwprintf_r, (ptr, fp, fmt),
#ifndef _REENT_ONLY
int
-_DEFUN(fwprintf, (fp, fmt),
- FILE *__restrict fp,
+fwprintf (FILE *__restrict fp,
const wchar_t *__restrict fmt, ...)
{
int ret;
diff --git a/newlib/libc/stdio/fwrite.c b/newlib/libc/stdio/fwrite.c
index 7dec80c..aa14421 100644
--- a/newlib/libc/stdio/fwrite.c
+++ b/newlib/libc/stdio/fwrite.c
@@ -108,8 +108,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
*/
size_t
-_DEFUN(_fwrite_r, (ptr, buf, size, count, fp),
- struct _reent * ptr,
+_fwrite_r (struct _reent * ptr,
const void *__restrict buf,
size_t size,
size_t count,
@@ -170,8 +169,7 @@ ret:
#ifndef _REENT_ONLY
size_t
-_DEFUN(fwrite, (buf, size, count, fp),
- const void *__restrict buf,
+fwrite (const void *__restrict buf,
size_t size,
size_t count,
FILE * fp)
diff --git a/newlib/libc/stdio/getc.c b/newlib/libc/stdio/getc.c
index 269bfb1..3c62f0b 100644
--- a/newlib/libc/stdio/getc.c
+++ b/newlib/libc/stdio/getc.c
@@ -76,8 +76,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef getc
int
-_DEFUN(_getc_r, (ptr, fp),
- struct _reent *ptr,
+_getc_r (struct _reent *ptr,
register FILE *fp)
{
int result;
@@ -91,8 +90,7 @@ _DEFUN(_getc_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(getc, (fp),
- register FILE *fp)
+getc (register FILE *fp)
{
int result;
struct _reent *reent = _REENT;
diff --git a/newlib/libc/stdio/getc_u.c b/newlib/libc/stdio/getc_u.c
index 2f9f0e8..fb37ba4 100644
--- a/newlib/libc/stdio/getc_u.c
+++ b/newlib/libc/stdio/getc_u.c
@@ -69,8 +69,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef getc_unlocked
int
-_DEFUN(_getc_unlocked_r, (ptr, fp),
- struct _reent *ptr,
+_getc_unlocked_r (struct _reent *ptr,
register FILE *fp)
{
/* CHECK_INIT is called (eventually) by __srefill_r. */
@@ -81,8 +80,7 @@ _DEFUN(_getc_unlocked_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(getc_unlocked, (fp),
- register FILE *fp)
+getc_unlocked (register FILE *fp)
{
return __sgetc_r (_REENT, fp);
}
diff --git a/newlib/libc/stdio/getchar.c b/newlib/libc/stdio/getchar.c
index b3ca289..7e0b748 100644
--- a/newlib/libc/stdio/getchar.c
+++ b/newlib/libc/stdio/getchar.c
@@ -72,8 +72,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef getchar
int
-_DEFUN(_getchar_r, (reent),
- struct _reent *reent)
+_getchar_r (struct _reent *reent)
{
_REENT_SMALL_CHECK_INIT (reent);
return _getc_r (reent, _stdin_r (reent));
diff --git a/newlib/libc/stdio/getchar_u.c b/newlib/libc/stdio/getchar_u.c
index 5848d47..e45176d 100644
--- a/newlib/libc/stdio/getchar_u.c
+++ b/newlib/libc/stdio/getchar_u.c
@@ -70,8 +70,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef getchar_unlocked
int
-_DEFUN(_getchar_unlocked_r, (ptr),
- struct _reent *ptr)
+_getchar_unlocked_r (struct _reent *ptr)
{
return _getc_unlocked_r (ptr, _stdin_r (ptr));
}
diff --git a/newlib/libc/stdio/getdelim.c b/newlib/libc/stdio/getdelim.c
index 4164be5..90cd5d4 100644
--- a/newlib/libc/stdio/getdelim.c
+++ b/newlib/libc/stdio/getdelim.c
@@ -40,8 +40,7 @@ No supporting OS subroutines are directly required.
#define DEFAULT_LINE_SIZE 128
ssize_t
-_DEFUN(__getdelim, (bufptr, n, delim, fp),
- char **bufptr,
+__getdelim (char **bufptr,
size_t *n,
int delim,
FILE *fp)
diff --git a/newlib/libc/stdio/getline.c b/newlib/libc/stdio/getline.c
index b212a8c..857e980 100644
--- a/newlib/libc/stdio/getline.c
+++ b/newlib/libc/stdio/getline.c
@@ -37,8 +37,7 @@ No supporting OS subroutines are directly required.
extern ssize_t _EXFUN(__getdelim, (char **, size_t *, int, FILE *));
ssize_t
-_DEFUN(__getline, (lptr, n, fp),
- char **lptr,
+__getline (char **lptr,
size_t *n,
FILE *fp)
{
diff --git a/newlib/libc/stdio/gets.c b/newlib/libc/stdio/gets.c
index 4e951ef..a510ec0 100644
--- a/newlib/libc/stdio/gets.c
+++ b/newlib/libc/stdio/gets.c
@@ -63,8 +63,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
char *
-_DEFUN(_gets_r, (ptr, buf),
- struct _reent *ptr,
+_gets_r (struct _reent *ptr,
char *buf)
{
register int c;
@@ -94,8 +93,7 @@ _DEFUN(_gets_r, (ptr, buf),
#ifndef _REENT_ONLY
char *
-_DEFUN(gets, (buf),
- char *buf)
+gets (char *buf)
{
return _gets_r (_REENT, buf);
}
diff --git a/newlib/libc/stdio/getw.c b/newlib/libc/stdio/getw.c
index 4585d9f..a1b72e4 100644
--- a/newlib/libc/stdio/getw.c
+++ b/newlib/libc/stdio/getw.c
@@ -54,8 +54,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include <stdio.h>
int
-_DEFUN(getw, (fp),
- register FILE *fp)
+getw (register FILE *fp)
{
int result;
if (fread ((char*)&result, sizeof (result), 1, fp) != 1)
diff --git a/newlib/libc/stdio/getwc.c b/newlib/libc/stdio/getwc.c
index db9a437..15b3974 100644
--- a/newlib/libc/stdio/getwc.c
+++ b/newlib/libc/stdio/getwc.c
@@ -33,8 +33,7 @@
#undef getwc
wint_t
-_DEFUN(_getwc_r, (ptr, fp),
- struct _reent *ptr,
+_getwc_r (struct _reent *ptr,
FILE *fp)
{
return _fgetwc_r (ptr, fp);
@@ -45,8 +44,7 @@ _DEFUN(_getwc_r, (ptr, fp),
* macro, may evaluate `fp' more than once.
*/
wint_t
-_DEFUN(getwc, (fp),
- FILE *fp)
+getwc (FILE *fp)
{
return fgetwc(fp);
}
diff --git a/newlib/libc/stdio/getwc_u.c b/newlib/libc/stdio/getwc_u.c
index 913c3e0..366ab0f 100644
--- a/newlib/libc/stdio/getwc_u.c
+++ b/newlib/libc/stdio/getwc_u.c
@@ -34,8 +34,7 @@
#undef getwc_unlocked
wint_t
-_DEFUN(_getwc_unlocked_r, (ptr, fp),
- struct _reent *ptr,
+_getwc_unlocked_r (struct _reent *ptr,
FILE *fp)
{
return _fgetwc_unlocked_r (ptr, fp);
@@ -46,8 +45,7 @@ _DEFUN(_getwc_unlocked_r, (ptr, fp),
* a macro, may evaluate `fp' more than once.
*/
wint_t
-_DEFUN(getwc_unlocked, (fp),
- FILE *fp)
+getwc_unlocked (FILE *fp)
{
return fgetwc_unlocked(fp);
}
diff --git a/newlib/libc/stdio/getwchar.c b/newlib/libc/stdio/getwchar.c
index f432755..1485392 100644
--- a/newlib/libc/stdio/getwchar.c
+++ b/newlib/libc/stdio/getwchar.c
@@ -93,8 +93,7 @@ PORTABILITY
#undef getwchar
wint_t
-_DEFUN (_getwchar_r, (ptr),
- struct _reent *ptr)
+_getwchar_r (struct _reent *ptr)
{
return _fgetwc_r (ptr, stdin);
}
diff --git a/newlib/libc/stdio/getwchar_u.c b/newlib/libc/stdio/getwchar_u.c
index 4c854f2..c1f8d2d 100644
--- a/newlib/libc/stdio/getwchar_u.c
+++ b/newlib/libc/stdio/getwchar_u.c
@@ -34,8 +34,7 @@
#undef getwchar_unlocked
wint_t
-_DEFUN (_getwchar_unlocked_r, (ptr),
- struct _reent *ptr)
+_getwchar_unlocked_r (struct _reent *ptr)
{
return _fgetwc_unlocked_r (ptr, stdin);
}
diff --git a/newlib/libc/stdio/iprintf.c b/newlib/libc/stdio/iprintf.c
index 571d826..507d154 100644
--- a/newlib/libc/stdio/iprintf.c
+++ b/newlib/libc/stdio/iprintf.c
@@ -25,8 +25,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(iprintf, (fmt),
- const char *fmt, ...)
+iprintf (const char *fmt, ...)
{
int ret;
va_list ap;
@@ -42,8 +41,7 @@ _DEFUN(iprintf, (fmt),
#endif /* ! _REENT_ONLY */
int
-_DEFUN(_iprintf_r, (ptr, fmt),
- struct _reent *ptr,
+_iprintf_r (struct _reent *ptr,
const char *fmt, ...)
{
int ret;
diff --git a/newlib/libc/stdio/makebuf.c b/newlib/libc/stdio/makebuf.c
index 37a50d4..f2da70a 100644
--- a/newlib/libc/stdio/makebuf.c
+++ b/newlib/libc/stdio/makebuf.c
@@ -35,8 +35,7 @@
*/
void
-_DEFUN(__smakebuf_r, (ptr, fp),
- struct _reent *ptr,
+__smakebuf_r (struct _reent *ptr,
register FILE *fp)
{
register void *p;
@@ -76,8 +75,7 @@ _DEFUN(__smakebuf_r, (ptr, fp),
* Internal routine to determine `proper' buffering for a file.
*/
int
-_DEFUN(__swhatbuf_r, (ptr, fp, bufsize, couldbetty),
- struct _reent *ptr,
+__swhatbuf_r (struct _reent *ptr,
FILE *fp,
size_t *bufsize,
int *couldbetty)
diff --git a/newlib/libc/stdio/mktemp.c b/newlib/libc/stdio/mktemp.c
index 3709249..9b85eb9 100644
--- a/newlib/libc/stdio/mktemp.c
+++ b/newlib/libc/stdio/mktemp.c
@@ -139,8 +139,7 @@ Supporting OS subroutines required: <<getpid>>, <<mkdir>>, <<open>>, <<stat>>.
#include <ctype.h>
static int
-_DEFUN(_gettemp, (ptr, path, doopen, domkdir, suffixlen, flags),
- struct _reent *ptr,
+_gettemp (struct _reent *ptr,
char *path,
register int *doopen,
int domkdir,
@@ -263,8 +262,7 @@ _DEFUN(_gettemp, (ptr, path, doopen, domkdir, suffixlen, flags),
#endif
int
-_DEFUN(_mkstemp_r, (ptr, path),
- struct _reent *ptr,
+_mkstemp_r (struct _reent *ptr,
char *path)
{
int fd;
@@ -274,16 +272,14 @@ _DEFUN(_mkstemp_r, (ptr, path),
#if !defined _ELIX_LEVEL || _ELIX_LEVEL >= 4
char *
-_DEFUN(_mkdtemp_r, (ptr, path),
- struct _reent *ptr,
+_mkdtemp_r (struct _reent *ptr,
char *path)
{
return (_gettemp (ptr, path, (int *) NULL, 1, 0, 0) ? path : NULL);
}
int
-_DEFUN(_mkstemps_r, (ptr, path, len),
- struct _reent *ptr,
+_mkstemps_r (struct _reent *ptr,
char *path,
int len)
{
@@ -293,8 +289,7 @@ _DEFUN(_mkstemps_r, (ptr, path, len),
}
int
-_DEFUN(_mkostemp_r, (ptr, path, flags),
- struct _reent *ptr,
+_mkostemp_r (struct _reent *ptr,
char *path,
int flags)
{
@@ -304,8 +299,7 @@ _DEFUN(_mkostemp_r, (ptr, path, flags),
}
int
-_DEFUN(_mkostemps_r, (ptr, path, len, flags),
- struct _reent *ptr,
+_mkostemps_r (struct _reent *ptr,
char *path,
int len,
int flags)
@@ -317,8 +311,7 @@ _DEFUN(_mkostemps_r, (ptr, path, len, flags),
#endif /* _ELIX_LEVEL */
char *
-_DEFUN(_mktemp_r, (ptr, path),
- struct _reent *ptr,
+_mktemp_r (struct _reent *ptr,
char *path)
{
return (_gettemp (ptr, path, (int *) NULL, 0, 0, 0) ? path : (char *) NULL);
@@ -327,8 +320,7 @@ _DEFUN(_mktemp_r, (ptr, path),
#ifndef _REENT_ONLY
int
-_DEFUN(mkstemp, (path),
- char *path)
+mkstemp (char *path)
{
int fd;
@@ -337,15 +329,13 @@ _DEFUN(mkstemp, (path),
# if !defined _ELIX_LEVEL || _ELIX_LEVEL >= 4
char *
-_DEFUN(mkdtemp, (path),
- char *path)
+mkdtemp (char *path)
{
return (_gettemp (_REENT, path, (int *) NULL, 1, 0, 0) ? path : NULL);
}
int
-_DEFUN(mkstemps, (path, len),
- char *path,
+mkstemps (char *path,
int len)
{
int fd;
@@ -354,8 +344,7 @@ _DEFUN(mkstemps, (path, len),
}
int
-_DEFUN(mkostemp, (path, flags),
- char *path,
+mkostemp (char *path,
int flags)
{
int fd;
@@ -364,8 +353,7 @@ _DEFUN(mkostemp, (path, flags),
}
int
-_DEFUN(mkostemps, (path, len, flags),
- char *path,
+mkostemps (char *path,
int len,
int flags)
{
@@ -376,8 +364,7 @@ _DEFUN(mkostemps, (path, len, flags),
# endif /* _ELIX_LEVEL */
char *
-_DEFUN(mktemp, (path),
- char *path)
+mktemp (char *path)
{
return (_gettemp (_REENT, path, (int *) NULL, 0, 0, 0) ? path : (char *) NULL);
}
diff --git a/newlib/libc/stdio/nano-vfprintf.c b/newlib/libc/stdio/nano-vfprintf.c
index e87f374..1c5a075 100644
--- a/newlib/libc/stdio/nano-vfprintf.c
+++ b/newlib/libc/stdio/nano-vfprintf.c
@@ -182,8 +182,7 @@ static char *rcsid = "$Id$";
and vfwprintf. */
#ifdef STRING_ONLY
int
-_DEFUN(__ssputs_r, (ptr, fp, buf, len),
- struct _reent *ptr,
+__ssputs_r (struct _reent *ptr,
FILE *fp,
const char *buf,
size_t len)
@@ -253,8 +252,7 @@ err:
char output, but __ssprint_r cannot be discarded because it is used
by a serial of functions like svfwprintf for wide char output. */
int
-_DEFUN(__ssprint_r, (ptr, fp, uio),
- struct _reent *ptr,
+__ssprint_r (struct _reent *ptr,
FILE *fp,
register struct __suio *uio)
{
@@ -357,8 +355,7 @@ err:
/* Flush out all the vectors defined by the given uio,
then reset it so that it can be reused. */
int
-_DEFUN(__sprint_r, (ptr, fp, uio),
- struct _reent *ptr,
+__sprint_r (struct _reent *ptr,
FILE *fp,
register struct __suio *uio)
{
@@ -402,8 +399,7 @@ out:
}
_NOINLINE_STATIC int
-_DEFUN(__sfputc_r, (ptr, c, fp),
- struct _reent *ptr,
+__sfputc_r (struct _reent *ptr,
int c,
FILE *fp)
{
@@ -414,8 +410,7 @@ _DEFUN(__sfputc_r, (ptr, c, fp),
}
int
-_DEFUN(__sfputs_r, (ptr, fp, buf, len),
- struct _reent *ptr,
+__sfputs_r (struct _reent *ptr,
FILE *fp,
const char *buf,
size_t len)
@@ -452,8 +447,7 @@ int _EXFUN(_VFPRINTF_R, (struct _reent *, FILE *, const char *, va_list));
#ifndef STRING_ONLY
int
-_DEFUN(VFPRINTF, (fp, fmt0, ap),
- FILE * fp,
+VFPRINTF (FILE * fp,
const char *fmt0,
va_list ap)
{
@@ -481,8 +475,7 @@ _EXFUN(vfiprintf, (FILE *, const char *, __VALIST)
#endif
int
-_DEFUN(_VFPRINTF_R, (data, fp, fmt0, ap),
- struct _reent *data,
+_VFPRINTF_R (struct _reent *data,
FILE * fp,
const char *fmt0,
va_list ap)
diff --git a/newlib/libc/stdio/nano-vfscanf.c b/newlib/libc/stdio/nano-vfscanf.c
index 15e0a5e..e8a9325 100644
--- a/newlib/libc/stdio/nano-vfscanf.c
+++ b/newlib/libc/stdio/nano-vfscanf.c
@@ -144,8 +144,7 @@ Supporting OS subroutines required:
#ifndef _REENT_ONLY
int
-_DEFUN(VFSCANF, (fp, fmt, ap),
- register FILE *fp,
+VFSCANF (register FILE *fp,
const char *fmt,
va_list ap)
{
@@ -158,8 +157,7 @@ _EXFUN(vfiscanf, (FILE *, const char *, __VALIST)
_ATTRIBUTE ((__alias__("vfscanf"))));
int
-_DEFUN(__SVFSCANF, (fp, fmt0, ap),
- register FILE *fp,
+__SVFSCANF (register FILE *fp,
char const *fmt0,
va_list ap)
{
@@ -169,8 +167,7 @@ _DEFUN(__SVFSCANF, (fp, fmt0, ap),
#endif
int
-_DEFUN(_VFSCANF_R, (data, fp, fmt, ap),
- struct _reent *data,
+_VFSCANF_R (struct _reent *data,
register FILE *fp,
const char *fmt,
va_list ap)
@@ -189,8 +186,7 @@ _EXFUN(_vfiscanf_r, (struct _reent *, FILE *, const char *, __VALIST)
regular ungetc which will drag in file I/O items we don't need.
So, we create our own trimmed-down version. */
int
-_DEFUN(_sungetc_r, (data, fp, ch),
- struct _reent *data,
+_sungetc_r (struct _reent *data,
int c,
register FILE *fp)
{
@@ -238,8 +234,7 @@ _DEFUN(_sungetc_r, (data, fp, ch),
/* String only version of __srefill_r for sscanf family. */
int
-_DEFUN(__ssrefill_r, (ptr, fp),
- struct _reent * ptr,
+__ssrefill_r (struct _reent * ptr,
register FILE * fp)
{
/* Our only hope of further input is the ungetc buffer.
@@ -268,8 +263,7 @@ size_t _EXFUN (_sfread_r, (struct _reent *, void *buf, size_t, size_t, FILE *));
#endif /* !STRING_ONLY. */
int
-_DEFUN(__SVFSCANF_R, (rptr, fp, fmt0, ap),
- struct _reent *rptr,
+__SVFSCANF_R (struct _reent *rptr,
register FILE *fp,
char const *fmt0,
va_list ap)
diff --git a/newlib/libc/stdio/open_memstream.c b/newlib/libc/stdio/open_memstream.c
index 5dd6411..afa4a6d 100644
--- a/newlib/libc/stdio/open_memstream.c
+++ b/newlib/libc/stdio/open_memstream.c
@@ -93,8 +93,7 @@ typedef struct memstream {
/* Write up to non-zero N bytes of BUF into the stream described by COOKIE,
returning the number of bytes written or EOF on failure. */
static _READ_WRITE_RETURN_TYPE
-_DEFUN(memwriter, (ptr, cookie, buf, n),
- struct _reent *ptr,
+memwriter (struct _reent *ptr,
void *cookie,
const char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -147,8 +146,7 @@ _DEFUN(memwriter, (ptr, cookie, buf, n),
/* Seek to position POS relative to WHENCE within stream described by
COOKIE; return resulting position or fail with EOF. */
static _fpos_t
-_DEFUN(memseeker, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+memseeker (struct _reent *ptr,
void *cookie,
_fpos_t pos,
int whence)
@@ -215,8 +213,7 @@ _DEFUN(memseeker, (ptr, cookie, pos, whence),
COOKIE; return resulting position or fail with EOF. */
#ifdef __LARGE64_FILES
static _fpos64_t
-_DEFUN(memseeker64, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+memseeker64 (struct _reent *ptr,
void *cookie,
_fpos64_t pos,
int whence)
@@ -275,8 +272,7 @@ _DEFUN(memseeker64, (ptr, cookie, pos, whence),
/* Reclaim resources used by stream described by COOKIE. */
static int
-_DEFUN(memcloser, (ptr, cookie),
- struct _reent *ptr,
+memcloser (struct _reent *ptr,
void *cookie)
{
memstream *c = (memstream *) cookie;
@@ -295,8 +291,7 @@ _DEFUN(memcloser, (ptr, cookie),
/* Open a memstream that tracks a dynamic buffer in BUF and SIZE.
Return the new stream, or fail with NULL. */
static FILE *
-_DEFUN(internal_open_memstream_r, (ptr, buf, size, wide),
- struct _reent *ptr,
+internal_open_memstream_r (struct _reent *ptr,
char **buf,
size_t *size,
int wide)
@@ -378,8 +373,7 @@ _DEFUN(internal_open_memstream_r, (ptr, buf, size, wide),
}
FILE *
-_DEFUN(_open_memstream_r, (ptr, buf, size),
- struct _reent *ptr,
+_open_memstream_r (struct _reent *ptr,
char **buf,
size_t *size)
{
@@ -387,8 +381,7 @@ _DEFUN(_open_memstream_r, (ptr, buf, size),
}
FILE *
-_DEFUN(_open_wmemstream_r, (ptr, buf, size),
- struct _reent *ptr,
+_open_wmemstream_r (struct _reent *ptr,
wchar_t **buf,
size_t *size)
{
@@ -397,16 +390,14 @@ _DEFUN(_open_wmemstream_r, (ptr, buf, size),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(open_memstream, (buf, size),
- char **buf,
+open_memstream (char **buf,
size_t *size)
{
return _open_memstream_r (_REENT, buf, size);
}
FILE *
-_DEFUN(open_wmemstream, (buf, size),
- wchar_t **buf,
+open_wmemstream (wchar_t **buf,
size_t *size)
{
return _open_wmemstream_r (_REENT, buf, size);
diff --git a/newlib/libc/stdio/perror.c b/newlib/libc/stdio/perror.c
index e3e70a6..d98e17e 100644
--- a/newlib/libc/stdio/perror.c
+++ b/newlib/libc/stdio/perror.c
@@ -59,8 +59,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
void
-_DEFUN(_perror_r, (ptr, s),
- struct _reent *ptr,
+_perror_r (struct _reent *ptr,
const char *s)
{
char *error;
@@ -82,8 +81,7 @@ _DEFUN(_perror_r, (ptr, s),
#ifndef _REENT_ONLY
void
-_DEFUN(perror, (s),
- const char *s)
+perror (const char *s)
{
_perror_r (_REENT, s);
}
diff --git a/newlib/libc/stdio/printf.c b/newlib/libc/stdio/printf.c
index 7398677..a323f5a 100644
--- a/newlib/libc/stdio/printf.c
+++ b/newlib/libc/stdio/printf.c
@@ -23,8 +23,7 @@
#include "local.h"
int
-_DEFUN(_printf_r, (ptr, fmt),
- struct _reent *ptr,
+_printf_r (struct _reent *ptr,
const char *__restrict fmt, ...)
{
int ret;
@@ -46,8 +45,7 @@ _EXFUN(_iprintf_r, (struct _reent *, const char *, ...)
#ifndef _REENT_ONLY
int
-_DEFUN(printf, (fmt),
- const char *__restrict fmt, ...)
+printf (const char *__restrict fmt, ...)
{
int ret;
va_list ap;
diff --git a/newlib/libc/stdio/putc.c b/newlib/libc/stdio/putc.c
index e69841d..d4adc5a 100644
--- a/newlib/libc/stdio/putc.c
+++ b/newlib/libc/stdio/putc.c
@@ -78,8 +78,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef putc
int
-_DEFUN(_putc_r, (ptr, c, fp),
- struct _reent *ptr,
+_putc_r (struct _reent *ptr,
int c,
register FILE *fp)
{
@@ -93,8 +92,7 @@ _DEFUN(_putc_r, (ptr, c, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(putc, (c, fp),
- int c,
+putc (int c,
register FILE *fp)
{
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
diff --git a/newlib/libc/stdio/putc_u.c b/newlib/libc/stdio/putc_u.c
index b53060b..de4ac28 100644
--- a/newlib/libc/stdio/putc_u.c
+++ b/newlib/libc/stdio/putc_u.c
@@ -70,8 +70,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef putc_unlocked
int
-_DEFUN(_putc_unlocked_r, (ptr, c, fp),
- struct _reent *ptr,
+_putc_unlocked_r (struct _reent *ptr,
int c,
register FILE *fp)
{
@@ -82,8 +81,7 @@ _DEFUN(_putc_unlocked_r, (ptr, c, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(putc_unlocked, (c, fp),
- int c,
+putc_unlocked (int c,
register FILE *fp)
{
/* CHECK_INIT is (eventually) called by __swbuf. */
diff --git a/newlib/libc/stdio/putchar.c b/newlib/libc/stdio/putchar.c
index 813144a..c52d387 100644
--- a/newlib/libc/stdio/putchar.c
+++ b/newlib/libc/stdio/putchar.c
@@ -67,8 +67,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef putchar
int
-_DEFUN(_putchar_r, (ptr, c),
- struct _reent *ptr,
+_putchar_r (struct _reent *ptr,
int c)
{
_REENT_SMALL_CHECK_INIT (ptr);
@@ -78,8 +77,7 @@ _DEFUN(_putchar_r, (ptr, c),
#ifndef _REENT_ONLY
int
-_DEFUN(putchar, (c),
- int c)
+putchar (int c)
{
struct _reent *reent = _REENT;
diff --git a/newlib/libc/stdio/putchar_u.c b/newlib/libc/stdio/putchar_u.c
index e0ed8f7..8f16bfb 100644
--- a/newlib/libc/stdio/putchar_u.c
+++ b/newlib/libc/stdio/putchar_u.c
@@ -61,8 +61,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef putchar_unlocked
int
-_DEFUN(_putchar_unlocked_r, (ptr, c),
- struct _reent *ptr,
+_putchar_unlocked_r (struct _reent *ptr,
int c)
{
return putc_unlocked (c, _stdout_r (ptr));
@@ -71,8 +70,7 @@ _DEFUN(_putchar_unlocked_r, (ptr, c),
#ifndef _REENT_ONLY
int
-_DEFUN(putchar_unlocked, (c),
- int c)
+putchar_unlocked (int c)
{
/* CHECK_INIT is (eventually) called by __swbuf. */
diff --git a/newlib/libc/stdio/puts.c b/newlib/libc/stdio/puts.c
index 89a9485..f612ece 100644
--- a/newlib/libc/stdio/puts.c
+++ b/newlib/libc/stdio/puts.c
@@ -65,8 +65,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
*/
int
-_DEFUN(_puts_r, (ptr, s),
- struct _reent *ptr,
+_puts_r (struct _reent *ptr,
const char * s)
{
#ifdef _FVWRITE_IN_STREAMIO
@@ -125,8 +124,7 @@ err:
#ifndef _REENT_ONLY
int
-_DEFUN(puts, (s),
- char const * s)
+puts (char const * s)
{
return _puts_r (_REENT, s);
}
diff --git a/newlib/libc/stdio/putw.c b/newlib/libc/stdio/putw.c
index 5377d87..a7907be 100644
--- a/newlib/libc/stdio/putw.c
+++ b/newlib/libc/stdio/putw.c
@@ -49,8 +49,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include <stdio.h>
int
-_DEFUN(putw, (w, fp),
- int w,
+putw (int w,
register FILE *fp)
{
if (fwrite ((const char*)&w, sizeof (w), 1, fp) != 1)
diff --git a/newlib/libc/stdio/putwc.c b/newlib/libc/stdio/putwc.c
index 7c31d23..a6c3100 100644
--- a/newlib/libc/stdio/putwc.c
+++ b/newlib/libc/stdio/putwc.c
@@ -33,8 +33,7 @@
#undef putwc
wint_t
-_DEFUN(_putwc_r, (ptr, wc, fp),
- struct _reent *ptr,
+_putwc_r (struct _reent *ptr,
wchar_t wc,
FILE *fp)
{
@@ -45,8 +44,7 @@ _DEFUN(_putwc_r, (ptr, wc, fp),
* macro, may evaluate `fp' more than once.
*/
wint_t
-_DEFUN(putwc, (wc, fp),
- wchar_t wc,
+putwc (wchar_t wc,
FILE *fp)
{
return fputwc (wc, fp);
diff --git a/newlib/libc/stdio/putwc_u.c b/newlib/libc/stdio/putwc_u.c
index cb09fd2..0ec11f0 100644
--- a/newlib/libc/stdio/putwc_u.c
+++ b/newlib/libc/stdio/putwc_u.c
@@ -34,8 +34,7 @@
#undef putwc_unlocked
wint_t
-_DEFUN(_putwc_unlocked_r, (ptr, wc, fp),
- struct _reent *ptr,
+_putwc_unlocked_r (struct _reent *ptr,
wchar_t wc,
FILE *fp)
{
@@ -46,8 +45,7 @@ _DEFUN(_putwc_unlocked_r, (ptr, wc, fp),
* if it is a macro, may evaluate `fp' more than once.
*/
wint_t
-_DEFUN(putwc_unlocked, (wc, fp),
- wchar_t wc,
+putwc_unlocked (wchar_t wc,
FILE *fp)
{
return fputwc_unlocked (wc, fp);
diff --git a/newlib/libc/stdio/putwchar.c b/newlib/libc/stdio/putwchar.c
index 66ed30a..238cb50 100644
--- a/newlib/libc/stdio/putwchar.c
+++ b/newlib/libc/stdio/putwchar.c
@@ -87,8 +87,7 @@ PORTABILITY
#undef putwchar
wint_t
-_DEFUN(_putwchar_r, (ptr, wc),
- struct _reent *ptr,
+_putwchar_r (struct _reent *ptr,
wchar_t wc)
{
return _fputwc_r (ptr, wc, stdout);
@@ -98,8 +97,7 @@ _DEFUN(_putwchar_r, (ptr, wc),
* Synonym for fputwc(wc, stdout).
*/
wint_t
-_DEFUN(putwchar, (wc),
- wchar_t wc)
+putwchar (wchar_t wc)
{
_REENT_SMALL_CHECK_INIT (_REENT);
return fputwc (wc, stdout);
diff --git a/newlib/libc/stdio/putwchar_u.c b/newlib/libc/stdio/putwchar_u.c
index 68c5abe..a5e6a57 100644
--- a/newlib/libc/stdio/putwchar_u.c
+++ b/newlib/libc/stdio/putwchar_u.c
@@ -34,8 +34,7 @@
#undef putwchar_unlocked
wint_t
-_DEFUN(_putwchar_unlocked_r, (ptr, wc),
- struct _reent *ptr,
+_putwchar_unlocked_r (struct _reent *ptr,
wchar_t wc)
{
return _fputwc_unlocked_r (ptr, wc, stdout);
@@ -45,8 +44,7 @@ _DEFUN(_putwchar_unlocked_r, (ptr, wc),
* Synonym for fputwc_unlocked(wc, stdout).
*/
wint_t
-_DEFUN(putwchar_unlocked, (wc),
- wchar_t wc)
+putwchar_unlocked (wchar_t wc)
{
_REENT_SMALL_CHECK_INIT (_REENT);
return fputwc_unlocked (wc, stdout);
diff --git a/newlib/libc/stdio/refill.c b/newlib/libc/stdio/refill.c
index 6158f3e..87a715b 100644
--- a/newlib/libc/stdio/refill.c
+++ b/newlib/libc/stdio/refill.c
@@ -23,8 +23,7 @@
#include "local.h"
static int
-_DEFUN(lflush, (fp),
- FILE *fp)
+lflush (FILE *fp)
{
if ((fp->_flags & (__SLBF | __SWR)) == (__SLBF | __SWR))
return fflush (fp);
@@ -37,8 +36,7 @@ _DEFUN(lflush, (fp),
*/
int
-_DEFUN(__srefill_r, (ptr, fp),
- struct _reent * ptr,
+__srefill_r (struct _reent * ptr,
register FILE * fp)
{
/* make sure stdio is set up */
diff --git a/newlib/libc/stdio/remove.c b/newlib/libc/stdio/remove.c
index 810b282..a105828 100644
--- a/newlib/libc/stdio/remove.c
+++ b/newlib/libc/stdio/remove.c
@@ -59,8 +59,7 @@ Supporting OS subroutine required: <<unlink>>.
#include <stdio.h>
int
-_DEFUN(_remove_r, (ptr, filename),
- struct _reent *ptr,
+_remove_r (struct _reent *ptr,
const char *filename)
{
if (_unlink_r (ptr, filename) == -1)
@@ -72,8 +71,7 @@ _DEFUN(_remove_r, (ptr, filename),
#ifndef _REENT_ONLY
int
-_DEFUN(remove, (filename),
- const char *filename)
+remove (const char *filename)
{
return _remove_r (_REENT, filename);
}
diff --git a/newlib/libc/stdio/rename.c b/newlib/libc/stdio/rename.c
index a327708..b3c745a 100644
--- a/newlib/libc/stdio/rename.c
+++ b/newlib/libc/stdio/rename.c
@@ -54,8 +54,7 @@ Supporting OS subroutines required: <<link>>, <<unlink>>, or <<rename>>.
#ifndef _REENT_ONLY
int
-_DEFUN(rename, (old, new),
- const char *old,
+rename (const char *old,
const char *new)
{
return _rename_r (_REENT, old, new);
diff --git a/newlib/libc/stdio/rewind.c b/newlib/libc/stdio/rewind.c
index 745c939..a65847d 100644
--- a/newlib/libc/stdio/rewind.c
+++ b/newlib/libc/stdio/rewind.c
@@ -52,8 +52,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include <stdio.h>
void
-_DEFUN(_rewind_r, (ptr, fp),
- struct _reent * ptr,
+_rewind_r (struct _reent * ptr,
register FILE * fp)
{
(void) _fseek_r (ptr, fp, 0L, SEEK_SET);
@@ -63,8 +62,7 @@ _DEFUN(_rewind_r, (ptr, fp),
#ifndef _REENT_ONLY
void
-_DEFUN(rewind, (fp),
- register FILE * fp)
+rewind (register FILE * fp)
{
_rewind_r (_REENT, fp);
}
diff --git a/newlib/libc/stdio/rget.c b/newlib/libc/stdio/rget.c
index d76f307..656e566 100644
--- a/newlib/libc/stdio/rget.c
+++ b/newlib/libc/stdio/rget.c
@@ -32,8 +32,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
*/
int
-_DEFUN(__srget_r, (ptr, fp),
- struct _reent *ptr,
+__srget_r (struct _reent *ptr,
register FILE *fp)
{
/* Ensure that any fake std stream is resolved before
@@ -52,8 +51,7 @@ _DEFUN(__srget_r, (ptr, fp),
required for backward compatibility with applications built against
earlier dynamically built newlib libraries. */
int
-_DEFUN(__srget, (fp),
- register FILE *fp)
+__srget (register FILE *fp)
{
return __srget_r (_REENT, fp);
}
diff --git a/newlib/libc/stdio/sccl.c b/newlib/libc/stdio/sccl.c
index d0bdfd9..c1bf2b1 100644
--- a/newlib/libc/stdio/sccl.c
+++ b/newlib/libc/stdio/sccl.c
@@ -31,8 +31,7 @@
*/
u_char *
-_DEFUN(__sccl, (tab, fmt),
- register char *tab,
+__sccl (register char *tab,
register u_char *fmt)
{
register int c, n, v;
diff --git a/newlib/libc/stdio/setbuf.c b/newlib/libc/stdio/setbuf.c
index 1538762..f547186 100644
--- a/newlib/libc/stdio/setbuf.c
+++ b/newlib/libc/stdio/setbuf.c
@@ -65,8 +65,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
void
-_DEFUN(setbuf, (fp, buf),
- FILE *__restrict fp,
+setbuf (FILE *__restrict fp,
char *__restrict buf)
{
(void) setvbuf (fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
diff --git a/newlib/libc/stdio/setbuffer.c b/newlib/libc/stdio/setbuffer.c
index 2b93e7d..35d17da 100644
--- a/newlib/libc/stdio/setbuffer.c
+++ b/newlib/libc/stdio/setbuffer.c
@@ -65,8 +65,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
void
-_DEFUN(setbuffer, (fp, buf, size),
- FILE * fp,
+setbuffer (FILE * fp,
char *buf,
int size)
{
diff --git a/newlib/libc/stdio/setlinebuf.c b/newlib/libc/stdio/setlinebuf.c
index d8cb013..d623b30 100644
--- a/newlib/libc/stdio/setlinebuf.c
+++ b/newlib/libc/stdio/setlinebuf.c
@@ -56,8 +56,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
int
-_DEFUN(setlinebuf, (fp),
- FILE * fp)
+setlinebuf (FILE * fp)
{
return (setvbuf (fp, (char *) NULL, _IOLBF, (size_t) 0));
}
diff --git a/newlib/libc/stdio/setvbuf.c b/newlib/libc/stdio/setvbuf.c
index 6ce0ee1..63c9970 100644
--- a/newlib/libc/stdio/setvbuf.c
+++ b/newlib/libc/stdio/setvbuf.c
@@ -88,8 +88,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
*/
int
-_DEFUN(setvbuf, (fp, buf, mode, size),
- register FILE * fp,
+setvbuf (register FILE * fp,
char *buf,
register int mode,
register size_t size)
diff --git a/newlib/libc/stdio/siprintf.c b/newlib/libc/stdio/siprintf.c
index 2251e09..6ec2477 100644
--- a/newlib/libc/stdio/siprintf.c
+++ b/newlib/libc/stdio/siprintf.c
@@ -104,8 +104,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
int
#ifdef _HAVE_STDC
-_DEFUN(_siprintf_r, (ptr, str, fmt),
- struct _reent *ptr,
+_siprintf_r (struct _reent *ptr,
char *str,
const char *fmt, ...)
#else
@@ -139,8 +138,7 @@ _siprintf_r(ptr, str, fmt, va_alist)
int
#ifdef _HAVE_STDC
-_DEFUN(siprintf, (str, fmt),
- char *str,
+siprintf (char *str,
const char *fmt, ...)
#else
siprintf(str, fmt, va_alist)
diff --git a/newlib/libc/stdio/siscanf.c b/newlib/libc/stdio/siscanf.c
index bd1528b..9b45ecd 100644
--- a/newlib/libc/stdio/siscanf.c
+++ b/newlib/libc/stdio/siscanf.c
@@ -87,8 +87,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifdef _HAVE_STDC
int
-_DEFUN(siscanf, (str, fmt),
- const char *str,
+siscanf (const char *str,
const char *fmt, ...)
#else
int
@@ -123,8 +122,7 @@ siscanf(str, fmt, va_alist)
#ifdef _HAVE_STDC
int
-_DEFUN(_siscanf_r, (ptr, str, fmt),
- struct _reent *ptr,
+_siscanf_r (struct _reent *ptr,
const char *str,
const char *fmt, ...)
#else
diff --git a/newlib/libc/stdio/sniprintf.c b/newlib/libc/stdio/sniprintf.c
index d7bb9a4..d132784 100644
--- a/newlib/libc/stdio/sniprintf.c
+++ b/newlib/libc/stdio/sniprintf.c
@@ -32,8 +32,7 @@
int
#ifdef _HAVE_STDC
-_DEFUN (_sniprintf_r, (ptr, str, size, fmt),
- struct _reent *ptr,
+_sniprintf_r (struct _reent *ptr,
char *str,
size_t size,
const char *fmt, ...)
@@ -77,8 +76,7 @@ _sniprintf_r (ptr, str, size, fmt, va_alist)
int
#ifdef _HAVE_STDC
-_DEFUN (sniprintf, (str, size, fmt),
- char *str,
+sniprintf (char *str,
size_t size,
const char *fmt, ...)
#else
diff --git a/newlib/libc/stdio/snprintf.c b/newlib/libc/stdio/snprintf.c
index ab33dfb..d5ba708 100644
--- a/newlib/libc/stdio/snprintf.c
+++ b/newlib/libc/stdio/snprintf.c
@@ -31,8 +31,7 @@
int
#ifdef _HAVE_STDC
-_DEFUN(_snprintf_r, (ptr, str, size, fmt),
- struct _reent *ptr,
+_snprintf_r (struct _reent *ptr,
char *__restrict str,
size_t size,
const char *__restrict fmt, ...)
@@ -82,8 +81,7 @@ _EXFUN(_sniprintf_r, (struct _reent *, char *, size_t, const char *, ...)
int
#ifdef _HAVE_STDC
-_DEFUN(snprintf, (str, size, fmt),
- char *__restrict str,
+snprintf (char *__restrict str,
size_t size,
const char *__restrict fmt, ...)
#else
diff --git a/newlib/libc/stdio/sprintf.c b/newlib/libc/stdio/sprintf.c
index 35d3961..bbb9753 100644
--- a/newlib/libc/stdio/sprintf.c
+++ b/newlib/libc/stdio/sprintf.c
@@ -580,8 +580,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
int
#ifdef _HAVE_STDC
-_DEFUN(_sprintf_r, (ptr, str, fmt),
- struct _reent *ptr,
+_sprintf_r (struct _reent *ptr,
char *__restrict str,
const char *__restrict fmt, ...)
#else
@@ -621,8 +620,7 @@ _EXFUN(_siprintf_r, (struct _reent *, char *, const char *, ...)
int
#ifdef _HAVE_STDC
-_DEFUN(sprintf, (str, fmt),
- char *__restrict str,
+sprintf (char *__restrict str,
const char *__restrict fmt, ...)
#else
sprintf(str, fmt, va_alist)
diff --git a/newlib/libc/stdio/sscanf.c b/newlib/libc/stdio/sscanf.c
index 92983b1..a04f9b6 100644
--- a/newlib/libc/stdio/sscanf.c
+++ b/newlib/libc/stdio/sscanf.c
@@ -426,8 +426,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifdef _HAVE_STDC
int
-_DEFUN(sscanf, (str, fmt),
- const char *__restrict str,
+sscanf (const char *__restrict str,
const char * fmt, ...)
#else
int
@@ -468,8 +467,7 @@ _EXFUN(siscanf, (const char *, const char *, ...)
#ifdef _HAVE_STDC
int
-_DEFUN(_sscanf_r, (ptr, str, fmt),
- struct _reent *ptr,
+_sscanf_r (struct _reent *ptr,
const char *__restrict str,
const char *__restrict fmt, ...)
#else
diff --git a/newlib/libc/stdio/stdio.c b/newlib/libc/stdio/stdio.c
index 0e8016b..a72fb74 100644
--- a/newlib/libc/stdio/stdio.c
+++ b/newlib/libc/stdio/stdio.c
@@ -30,8 +30,7 @@
*/
_READ_WRITE_RETURN_TYPE
-_DEFUN(__sread, (ptr, cookie, buf, n),
- struct _reent *ptr,
+__sread (struct _reent *ptr,
void *cookie,
char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -63,8 +62,7 @@ _DEFUN(__sread, (ptr, cookie, buf, n),
/* Dummy function used in sscanf/swscanf. */
_READ_WRITE_RETURN_TYPE
-_DEFUN(__seofread, (ptr, cookie, buf, len),
- struct _reent *_ptr,
+__seofread (struct _reent *_ptr,
void *cookie,
char *buf,
_READ_WRITE_BUFSIZE_TYPE len)
@@ -73,8 +71,7 @@ _DEFUN(__seofread, (ptr, cookie, buf, len),
}
_READ_WRITE_RETURN_TYPE
-_DEFUN(__swrite, (ptr, cookie, buf, n),
- struct _reent *ptr,
+__swrite (struct _reent *ptr,
void *cookie,
char const *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -105,8 +102,7 @@ _DEFUN(__swrite, (ptr, cookie, buf, n),
}
_fpos_t
-_DEFUN(__sseek, (ptr, cookie, offset, whence),
- struct _reent *ptr,
+__sseek (struct _reent *ptr,
void *cookie,
_fpos_t offset,
int whence)
@@ -126,8 +122,7 @@ _DEFUN(__sseek, (ptr, cookie, offset, whence),
}
int
-_DEFUN(__sclose, (ptr, cookie),
- struct _reent *ptr,
+__sclose (struct _reent *ptr,
void *cookie)
{
FILE *fp = (FILE *) cookie;
@@ -137,8 +132,7 @@ _DEFUN(__sclose, (ptr, cookie),
#ifdef __SCLE
int
-_DEFUN(__stextmode, (fd),
- int fd)
+__stextmode (int fd)
{
#ifdef __CYGWIN__
extern int _cygwin_istext_for_stdio (int);
diff --git a/newlib/libc/stdio/stdio_ext.c b/newlib/libc/stdio/stdio_ext.c
index 98f2cca..857091f 100644
--- a/newlib/libc/stdio/stdio_ext.c
+++ b/newlib/libc/stdio/stdio_ext.c
@@ -62,50 +62,43 @@ No supporting OS subroutines are required.
/* Subroutine versions of the inline or macro functions. */
size_t
-_DEFUN(__fbufsize, (fp),
- FILE * fp)
+__fbufsize (FILE * fp)
{
return (size_t) fp->_bf._size;
}
size_t
-_DEFUN(__fpending, (fp),
- FILE * fp)
+__fpending (FILE * fp)
{
return fp->_p - fp->_bf._base;
}
int
-_DEFUN(__flbf, (fp),
- FILE * fp)
+__flbf (FILE * fp)
{
return (fp->_flags & __SLBF) != 0;
}
int
-_DEFUN(__freadable, (fp),
- FILE * fp)
+__freadable (FILE * fp)
{
return (fp->_flags & (__SRD | __SRW)) != 0;
}
int
-_DEFUN(__fwritable, (fp),
- FILE * fp)
+__fwritable (FILE * fp)
{
return (fp->_flags & (__SWR | __SRW)) != 0;
}
int
-_DEFUN(__freading, (fp),
- FILE * fp)
+__freading (FILE * fp)
{
return (fp->_flags & __SRD) != 0;
}
int
-_DEFUN(__fwriting, (fp),
- FILE * fp)
+__fwriting (FILE * fp)
{
return (fp->_flags & __SWR) != 0;
}
diff --git a/newlib/libc/stdio/swprintf.c b/newlib/libc/stdio/swprintf.c
index 427e03e..fa3b43e 100644
--- a/newlib/libc/stdio/swprintf.c
+++ b/newlib/libc/stdio/swprintf.c
@@ -553,8 +553,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
* a variable set to _REENT. */
int
-_DEFUN(_swprintf_r, (ptr, str, size, fmt),
- struct _reent *ptr,
+_swprintf_r (struct _reent *ptr,
wchar_t *str,
size_t size,
const wchar_t *fmt, ...)
@@ -594,8 +593,7 @@ _DEFUN(_swprintf_r, (ptr, str, size, fmt),
#ifndef _REENT_ONLY
int
-_DEFUN(swprintf, (str, size, fmt),
- wchar_t *__restrict str,
+swprintf (wchar_t *__restrict str,
size_t size,
const wchar_t *__restrict fmt, ...)
{
diff --git a/newlib/libc/stdio/tmpfile.c b/newlib/libc/stdio/tmpfile.c
index ee30523..f209a3e 100644
--- a/newlib/libc/stdio/tmpfile.c
+++ b/newlib/libc/stdio/tmpfile.c
@@ -50,8 +50,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<getpid>>,
#endif
FILE *
-_DEFUN(_tmpfile_r, (ptr),
- struct _reent *ptr)
+_tmpfile_r (struct _reent *ptr)
{
FILE *fp;
int e;
diff --git a/newlib/libc/stdio/tmpnam.c b/newlib/libc/stdio/tmpnam.c
index d794a98..3bd5b6a 100644
--- a/newlib/libc/stdio/tmpnam.c
+++ b/newlib/libc/stdio/tmpnam.c
@@ -86,8 +86,7 @@ The global pointer <<environ>> is also required.
another one. Return nonzero if successful, otherwise zero. */
static int
-_DEFUN(worker, (ptr, result, part1, part2, part3, part4),
- struct _reent *ptr,
+worker (struct _reent *ptr,
char *result,
const char *part1,
const char *part2,
@@ -118,8 +117,7 @@ _DEFUN(worker, (ptr, result, part1, part2, part3, part4),
}
char *
-_DEFUN(_tmpnam_r, (p, s),
- struct _reent *p,
+_tmpnam_r (struct _reent *p,
char *s)
{
char *result;
@@ -147,8 +145,7 @@ _DEFUN(_tmpnam_r, (p, s),
}
char *
-_DEFUN(_tempnam_r, (p, dir, pfx),
- struct _reent *p,
+_tempnam_r (struct _reent *p,
const char *dir,
const char *pfx)
{
@@ -174,16 +171,14 @@ _DEFUN(_tempnam_r, (p, dir, pfx),
#ifndef _REENT_ONLY
char *
-_DEFUN(tempnam, (dir, pfx),
- const char *dir,
+tempnam (const char *dir,
const char *pfx)
{
return _tempnam_r (_REENT, dir, pfx);
}
char *
-_DEFUN(tmpnam, (s),
- char *s)
+tmpnam (char *s)
{
return _tmpnam_r (_REENT, s);
}
diff --git a/newlib/libc/stdio/ungetc.c b/newlib/libc/stdio/ungetc.c
index c673365..4445775 100644
--- a/newlib/libc/stdio/ungetc.c
+++ b/newlib/libc/stdio/ungetc.c
@@ -77,8 +77,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
/*static*/
int
-_DEFUN(__submore, (rptr, fp),
- struct _reent *rptr,
+__submore (struct _reent *rptr,
register FILE *fp)
{
register int i;
@@ -111,8 +110,7 @@ _DEFUN(__submore, (rptr, fp),
}
int
-_DEFUN(_ungetc_r, (rptr, c, fp),
- struct _reent *rptr,
+_ungetc_r (struct _reent *rptr,
int c,
register FILE *fp)
{
@@ -208,8 +206,7 @@ _DEFUN(_ungetc_r, (rptr, c, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(ungetc, (c, fp),
- int c,
+ungetc (int c,
register FILE *fp)
{
return _ungetc_r (_REENT, c, fp);
diff --git a/newlib/libc/stdio/ungetwc.c b/newlib/libc/stdio/ungetwc.c
index 60f3e5b..16d37f2 100644
--- a/newlib/libc/stdio/ungetwc.c
+++ b/newlib/libc/stdio/ungetwc.c
@@ -74,8 +74,7 @@ C99
#include "local.h"
wint_t
-_DEFUN(_ungetwc_r, (ptr, wc, fp),
- struct _reent *ptr,
+_ungetwc_r (struct _reent *ptr,
wint_t wc,
register FILE *fp)
{
@@ -106,8 +105,7 @@ _DEFUN(_ungetwc_r, (ptr, wc, fp),
* MT-safe version.
*/
wint_t
-_DEFUN(ungetwc, (wint_t wc, FILE *fp),
- wint_t wc,
+ungetwc (wint_t wc,
FILE *fp)
{
struct _reent *reent = _REENT;
diff --git a/newlib/libc/stdio/vasiprintf.c b/newlib/libc/stdio/vasiprintf.c
index 259d44b..c7c5e35 100644
--- a/newlib/libc/stdio/vasiprintf.c
+++ b/newlib/libc/stdio/vasiprintf.c
@@ -31,8 +31,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vasiprintf, (strp, fmt, ap),
- char **strp,
+vasiprintf (char **strp,
const char *fmt,
va_list ap)
{
@@ -42,8 +41,7 @@ _DEFUN(vasiprintf, (strp, fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vasiprintf_r, (ptr, strp, fmt, ap),
- struct _reent *ptr,
+_vasiprintf_r (struct _reent *ptr,
char **strp,
const char *fmt,
va_list ap)
diff --git a/newlib/libc/stdio/vasniprintf.c b/newlib/libc/stdio/vasniprintf.c
index 9bbe30c..edfbd22 100644
--- a/newlib/libc/stdio/vasniprintf.c
+++ b/newlib/libc/stdio/vasniprintf.c
@@ -14,8 +14,7 @@
#include "local.h"
char *
-_DEFUN(_vasniprintf_r, (ptr, buf, lenp, fmt, ap),
- struct _reent *ptr,
+_vasniprintf_r (struct _reent *ptr,
char *buf,
size_t *lenp,
const char *fmt,
@@ -59,8 +58,7 @@ _DEFUN(_vasniprintf_r, (ptr, buf, lenp, fmt, ap),
#ifndef _REENT_ONLY
char *
-_DEFUN(vasniprintf, (buf, lenp, fmt, ap),
- char *buf,
+vasniprintf (char *buf,
size_t *lenp,
const char *fmt,
va_list ap)
diff --git a/newlib/libc/stdio/vasnprintf.c b/newlib/libc/stdio/vasnprintf.c
index 6edb473..5bc0ec6 100644
--- a/newlib/libc/stdio/vasnprintf.c
+++ b/newlib/libc/stdio/vasnprintf.c
@@ -14,8 +14,7 @@
#include "local.h"
char *
-_DEFUN(_vasnprintf_r, (ptr, buf, lenp, fmt, ap),
- struct _reent *ptr,
+_vasnprintf_r (struct _reent *ptr,
char *buf,
size_t *lenp,
const char *fmt,
@@ -66,8 +65,7 @@ _EXFUN(_vasniprintf_r, (struct _reent*, char *, size_t *,
#ifndef _REENT_ONLY
char *
-_DEFUN(vasnprintf, (buf, lenp, fmt, ap),
- char *buf,
+vasnprintf (char *buf,
size_t *lenp,
const char *fmt,
va_list ap)
diff --git a/newlib/libc/stdio/vasprintf.c b/newlib/libc/stdio/vasprintf.c
index c0961de..4acbc04 100644
--- a/newlib/libc/stdio/vasprintf.c
+++ b/newlib/libc/stdio/vasprintf.c
@@ -31,8 +31,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vasprintf, (strp, fmt, ap),
- char **strp,
+vasprintf (char **strp,
const char *fmt,
va_list ap)
{
@@ -48,8 +47,7 @@ _EXFUN(vasiprintf, (char **, const char *, __VALIST)
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vasprintf_r, (ptr, strp, fmt, ap),
- struct _reent *ptr,
+_vasprintf_r (struct _reent *ptr,
char **strp,
const char *fmt,
va_list ap)
diff --git a/newlib/libc/stdio/vdiprintf.c b/newlib/libc/stdio/vdiprintf.c
index 73a3b19..22a71b3 100644
--- a/newlib/libc/stdio/vdiprintf.c
+++ b/newlib/libc/stdio/vdiprintf.c
@@ -13,8 +13,7 @@
#include "local.h"
int
-_DEFUN(_vdiprintf_r, (ptr, fd, format, ap),
- struct _reent *ptr,
+_vdiprintf_r (struct _reent *ptr,
int fd,
const char *format,
va_list ap)
@@ -36,8 +35,7 @@ _DEFUN(_vdiprintf_r, (ptr, fd, format, ap),
#ifndef _REENT_ONLY
int
-_DEFUN(vdiprintf, (fd, format, ap),
- int fd,
+vdiprintf (int fd,
const char *format,
va_list ap)
{
diff --git a/newlib/libc/stdio/vdprintf.c b/newlib/libc/stdio/vdprintf.c
index 1b50e88..6261f62 100644
--- a/newlib/libc/stdio/vdprintf.c
+++ b/newlib/libc/stdio/vdprintf.c
@@ -13,8 +13,7 @@
#include "local.h"
int
-_DEFUN(_vdprintf_r, (ptr, fd, format, ap),
- struct _reent *ptr,
+_vdprintf_r (struct _reent *ptr,
int fd,
const char *__restrict format,
va_list ap)
@@ -42,8 +41,7 @@ _EXFUN(_vdiprintf_r, (struct _reent *, int, const char *, __VALIST)
#ifndef _REENT_ONLY
int
-_DEFUN(vdprintf, (fd, format, ap),
- int fd,
+vdprintf (int fd,
const char *__restrict format,
va_list ap)
{
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index 4fbac05..6649e2b 100644
--- a/newlib/libc/stdio/vfprintf.c
+++ b/newlib/libc/stdio/vfprintf.c
@@ -198,8 +198,7 @@ static char *rcsid = "$Id$";
#ifdef INTEGER_ONLY
#ifndef _FVWRITE_IN_STREAMIO
int
-_DEFUN(__ssputs_r, (ptr, fp, buf, len),
- struct _reent *ptr,
+__ssputs_r (struct _reent *ptr,
FILE *fp,
const char *buf,
size_t len)
@@ -267,8 +266,7 @@ err:
#endif
int
-_DEFUN(__ssprint_r, (ptr, fp, uio),
- struct _reent *ptr,
+__ssprint_r (struct _reent *ptr,
FILE *fp,
register struct __suio *uio)
{
@@ -369,8 +367,7 @@ int __ssprint_r (struct _reent *, FILE *, register struct __suio *);
#ifndef _FVWRITE_IN_STREAMIO
int
-_DEFUN(__sfputs_r, (ptr, fp, buf, len),
- struct _reent *ptr,
+__sfputs_r (struct _reent *ptr,
FILE *fp,
const char *buf,
size_t len)
@@ -403,8 +400,7 @@ _DEFUN(__sfputs_r, (ptr, fp, buf, len),
* then reset it so that it can be reused.
*/
int
-_DEFUN(__sprint_r, (ptr, fp, uio),
- struct _reent *ptr,
+__sprint_r (struct _reent *ptr,
FILE *fp,
register struct __suio *uio)
{
@@ -456,8 +452,7 @@ int __sprint_r (struct _reent *, FILE *, register struct __suio *);
* Make sure to avoid inlining.
*/
_NOINLINE_STATIC int
-_DEFUN(__sbprintf, (rptr, fp, fmt, ap),
- struct _reent *rptr,
+__sbprintf (struct _reent *rptr,
register FILE *fp,
const char *fmt,
va_list ap)
@@ -648,8 +643,7 @@ int _EXFUN(_VFPRINTF_R, (struct _reent *, FILE *, const char *, va_list));
#ifndef STRING_ONLY
int
-_DEFUN(VFPRINTF, (fp, fmt0, ap),
- FILE * fp,
+VFPRINTF (FILE * fp,
const char *fmt0,
va_list ap)
{
@@ -660,8 +654,7 @@ _DEFUN(VFPRINTF, (fp, fmt0, ap),
#endif /* STRING_ONLY */
int
-_DEFUN(_VFPRINTF_R, (data, fp, fmt0, ap),
- struct _reent *data,
+_VFPRINTF_R (struct _reent *data,
FILE * fp,
const char *fmt0,
va_list ap)
@@ -2043,8 +2036,7 @@ const __ACTION __action_table[MAX_STATE][MAX_CH_CLASS] = {
/* function to get positional parameter N where n = N - 1 */
static union arg_val *
-_DEFUN(get_arg, (data, n, fmt, ap, numargs_p, args, arg_type, last_fmt),
- struct _reent *data,
+get_arg (struct _reent *data,
int n,
char *fmt,
va_list *ap,
diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c
index d76d94b..097fd80 100644
--- a/newlib/libc/stdio/vfscanf.c
+++ b/newlib/libc/stdio/vfscanf.c
@@ -224,8 +224,7 @@ typedef unsigned long long u_long_long;
#ifndef _REENT_ONLY
int
-_DEFUN(VFSCANF, (fp, fmt, ap),
- register FILE *fp,
+VFSCANF (register FILE *fp,
const char *fmt,
va_list ap)
{
@@ -236,8 +235,7 @@ _DEFUN(VFSCANF, (fp, fmt, ap),
}
int
-_DEFUN(__SVFSCANF, (fp, fmt0, ap),
- register FILE *fp,
+__SVFSCANF (register FILE *fp,
char const *fmt0,
va_list ap)
{
@@ -247,8 +245,7 @@ _DEFUN(__SVFSCANF, (fp, fmt0, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_VFSCANF_R, (data, fp, fmt, ap),
- struct _reent *data,
+_VFSCANF_R (struct _reent *data,
register FILE *fp,
const char *fmt,
va_list ap)
@@ -263,8 +260,7 @@ _DEFUN(_VFSCANF_R, (data, fp, fmt, ap),
* regular ungetc which will drag in file I/O items we don't need.
* So, we create our own trimmed-down version. */
int
-_DEFUN(_sungetc_r, (data, fp, ch),
- struct _reent *data,
+_sungetc_r (struct _reent *data,
int c,
register FILE *fp)
{
@@ -321,8 +317,7 @@ _DEFUN(_sungetc_r, (data, fp, ch),
/* String only version of __srefill_r for sscanf family. */
int
-_DEFUN(__ssrefill_r, (ptr, fp),
- struct _reent * ptr,
+__ssrefill_r (struct _reent * ptr,
register FILE * fp)
{
/*
@@ -347,8 +342,7 @@ _DEFUN(__ssrefill_r, (ptr, fp),
}
size_t
-_DEFUN(_sfread_r, (ptr, buf, size, count, fp),
- struct _reent * ptr,
+_sfread_r (struct _reent * ptr,
void *buf,
size_t size,
size_t count,
@@ -402,8 +396,7 @@ __wctob (struct _reent *rptr, wint_t wc)
}
int
-_DEFUN(__SVFSCANF_R, (rptr, fp, fmt0, ap),
- struct _reent *rptr,
+__SVFSCANF_R (struct _reent *rptr,
register FILE *fp,
char const *fmt0,
va_list ap)
diff --git a/newlib/libc/stdio/vfwprintf.c b/newlib/libc/stdio/vfwprintf.c
index 449b628..dd78eb0 100644
--- a/newlib/libc/stdio/vfwprintf.c
+++ b/newlib/libc/stdio/vfwprintf.c
@@ -174,8 +174,7 @@ int _EXFUN(__SPRINT, (struct _reent *, FILE *, const char *, size_t));
* worries about ungetc buffers and so forth.
*/
static int
-_DEFUN(__sbwprintf, (rptr, fp, fmt, ap),
- struct _reent *rptr,
+__sbwprintf (struct _reent *rptr,
register FILE *fp,
const wchar_t *fmt,
va_list ap)
@@ -366,8 +365,7 @@ _EXFUN(get_arg, (struct _reent *data, int n, wchar_t *fmt,
#ifndef STRING_ONLY
int
-_DEFUN(VFWPRINTF, (fp, fmt0, ap),
- FILE *__restrict fp,
+VFWPRINTF (FILE *__restrict fp,
const wchar_t *__restrict fmt0,
va_list ap)
{
@@ -378,8 +376,7 @@ _DEFUN(VFWPRINTF, (fp, fmt0, ap),
#endif /* STRING_ONLY */
int
-_DEFUN(_VFWPRINTF_R, (data, fp, fmt0, ap),
- struct _reent *data,
+_VFWPRINTF_R (struct _reent *data,
FILE * fp,
const wchar_t *fmt0,
va_list ap)
@@ -1734,8 +1731,7 @@ wexponent(wchar_t *p0, int exp, int fmtch)
/* function to get positional parameter N where n = N - 1 */
static union arg_val *
-_DEFUN(get_arg, (data, n, fmt, ap, numargs_p, args, arg_type, last_fmt),
- struct _reent *data,
+get_arg (struct _reent *data,
int n,
wchar_t *fmt,
va_list *ap,
diff --git a/newlib/libc/stdio/vfwscanf.c b/newlib/libc/stdio/vfwscanf.c
index 3ac6ecc..c3470a1 100644
--- a/newlib/libc/stdio/vfwscanf.c
+++ b/newlib/libc/stdio/vfwscanf.c
@@ -226,8 +226,7 @@ static void * get_arg (int, va_list *, int *, void **);
#ifndef _REENT_ONLY
int
-_DEFUN(VFWSCANF, (fp, fmt, ap),
- register FILE *__restrict fp,
+VFWSCANF (register FILE *__restrict fp,
const wchar_t *__restrict fmt,
va_list ap)
{
@@ -238,8 +237,7 @@ _DEFUN(VFWSCANF, (fp, fmt, ap),
}
int
-_DEFUN(__SVFWSCANF, (fp, fmt0, ap),
- register FILE *fp,
+__SVFWSCANF (register FILE *fp,
wchar_t const *fmt0,
va_list ap)
{
@@ -249,8 +247,7 @@ _DEFUN(__SVFWSCANF, (fp, fmt0, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_VFWSCANF_R, (data, fp, fmt, ap),
- struct _reent *data,
+_VFWSCANF_R (struct _reent *data,
register FILE *fp,
const wchar_t *fmt,
va_list ap)
@@ -265,8 +262,7 @@ _DEFUN(_VFWSCANF_R, (data, fp, fmt, ap),
* regular ungetwc which will drag in file I/O items we don't need.
* So, we create our own trimmed-down version. */
static wint_t
-_DEFUN(_sungetwc_r, (data, fp, ch),
- struct _reent *data,
+_sungetwc_r (struct _reent *data,
wint_t wc,
register FILE *fp)
{
@@ -325,8 +321,7 @@ _DEFUN(_sungetwc_r, (data, fp, ch),
extern int __ssrefill_r (struct _reent *ptr, register FILE * fp);
static size_t
-_DEFUN(_sfgetwc_r, (ptr, fp),
- struct _reent * ptr,
+_sfgetwc_r (struct _reent * ptr,
FILE * fp)
{
wchar_t wc;
@@ -341,8 +336,7 @@ _DEFUN(_sfgetwc_r, (ptr, fp),
#endif /* STRING_ONLY */
int
-_DEFUN(__SVFWSCANF_R, (rptr, fp, fmt0, ap),
- struct _reent *rptr,
+__SVFWSCANF_R (struct _reent *rptr,
register FILE *fp,
wchar_t const *fmt0,
va_list ap)
diff --git a/newlib/libc/stdio/viprintf.c b/newlib/libc/stdio/viprintf.c
index 950009d..9678815 100644
--- a/newlib/libc/stdio/viprintf.c
+++ b/newlib/libc/stdio/viprintf.c
@@ -105,8 +105,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifndef _REENT_ONLY
int
-_DEFUN(viprintf, (fmt, ap),
- const char *fmt,
+viprintf (const char *fmt,
va_list ap)
{
struct _reent *reent = _REENT;
@@ -118,8 +117,7 @@ _DEFUN(viprintf, (fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_viprintf_r, (ptr, fmt, ap),
- struct _reent *ptr,
+_viprintf_r (struct _reent *ptr,
const char *fmt,
va_list ap)
{
diff --git a/newlib/libc/stdio/viscanf.c b/newlib/libc/stdio/viscanf.c
index 0c9b13f..e5ad1db 100644
--- a/newlib/libc/stdio/viscanf.c
+++ b/newlib/libc/stdio/viscanf.c
@@ -89,8 +89,7 @@ Supporting OS subroutines required:
#ifndef _REENT_ONLY
int
-_DEFUN(viscanf, (fmt, ap),
- const char *fmt,
+viscanf (const char *fmt,
va_list ap)
{
struct _reent *reent = _REENT;
@@ -102,8 +101,7 @@ _DEFUN(viscanf, (fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_viscanf_r, (ptr, fmt, ap),
- struct _reent *ptr,
+_viscanf_r (struct _reent *ptr,
const char *fmt,
va_list ap)
{
diff --git a/newlib/libc/stdio/vprintf.c b/newlib/libc/stdio/vprintf.c
index 289c46c..79c324d 100644
--- a/newlib/libc/stdio/vprintf.c
+++ b/newlib/libc/stdio/vprintf.c
@@ -29,8 +29,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(vprintf, (fmt, ap),
- const char *fmt,
+vprintf (const char *fmt,
va_list ap)
{
struct _reent *reent = _REENT;
@@ -47,8 +46,7 @@ _EXFUN(viprintf, (const char *, __VALIST) _ATTRIBUTE ((__alias__("vprintf"))));
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vprintf_r, (ptr, fmt, ap),
- struct _reent *ptr,
+_vprintf_r (struct _reent *ptr,
const char *__restrict fmt,
va_list ap)
{
diff --git a/newlib/libc/stdio/vscanf.c b/newlib/libc/stdio/vscanf.c
index 260359a..be329de 100644
--- a/newlib/libc/stdio/vscanf.c
+++ b/newlib/libc/stdio/vscanf.c
@@ -30,8 +30,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(vscanf, (fmt, ap),
- const char *fmt,
+vscanf (const char *fmt,
va_list ap)
{
struct _reent *reent = _REENT;
@@ -48,8 +47,7 @@ _EXFUN(viscanf, (const char *, __VALIST) _ATTRIBUTE ((__alias__("vscanf"))));
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vscanf_r, (ptr, fmt, ap),
- struct _reent *ptr,
+_vscanf_r (struct _reent *ptr,
const char *__restrict fmt,
va_list ap)
{
diff --git a/newlib/libc/stdio/vsiprintf.c b/newlib/libc/stdio/vsiprintf.c
index ff83b78..74eae02 100644
--- a/newlib/libc/stdio/vsiprintf.c
+++ b/newlib/libc/stdio/vsiprintf.c
@@ -31,8 +31,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vsiprintf, (str, fmt, ap),
- char *str,
+vsiprintf (char *str,
const char *fmt,
va_list ap)
{
@@ -42,8 +41,7 @@ _DEFUN(vsiprintf, (str, fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsiprintf_r, (ptr, str, fmt, ap),
- struct _reent *ptr,
+_vsiprintf_r (struct _reent *ptr,
char *str,
const char *fmt,
va_list ap)
diff --git a/newlib/libc/stdio/vsiscanf.c b/newlib/libc/stdio/vsiscanf.c
index 6ad0f4a..5679df0 100644
--- a/newlib/libc/stdio/vsiscanf.c
+++ b/newlib/libc/stdio/vsiscanf.c
@@ -35,8 +35,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(vsiscanf, (str, fmt, ap),
- const char *str,
+vsiscanf (const char *str,
const char *fmt,
va_list ap)
{
@@ -46,8 +45,7 @@ _DEFUN(vsiscanf, (str, fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsiscanf_r, (ptr, str, fmt, ap),
- struct _reent *ptr,
+_vsiscanf_r (struct _reent *ptr,
const char *str,
const char *fmt,
va_list ap)
diff --git a/newlib/libc/stdio/vsniprintf.c b/newlib/libc/stdio/vsniprintf.c
index e60f779..6036c8c 100644
--- a/newlib/libc/stdio/vsniprintf.c
+++ b/newlib/libc/stdio/vsniprintf.c
@@ -32,8 +32,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vsniprintf, (str, size, fmt, ap),
- char *str,
+vsniprintf (char *str,
size_t size,
const char *fmt,
va_list ap)
@@ -44,8 +43,7 @@ _DEFUN(vsniprintf, (str, size, fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsniprintf_r, (ptr, str, size, fmt, ap),
- struct _reent *ptr,
+_vsniprintf_r (struct _reent *ptr,
char *str,
size_t size,
const char *fmt,
diff --git a/newlib/libc/stdio/vsnprintf.c b/newlib/libc/stdio/vsnprintf.c
index dda4525..02b5443 100644
--- a/newlib/libc/stdio/vsnprintf.c
+++ b/newlib/libc/stdio/vsnprintf.c
@@ -32,8 +32,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vsnprintf, (str, size, fmt, ap),
- char *__restrict str,
+vsnprintf (char *__restrict str,
size_t size,
const char *__restrict fmt,
va_list ap)
@@ -50,8 +49,7 @@ _EXFUN(vsniprintf, (char *, size_t, const char *, __VALIST)
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsnprintf_r, (ptr, str, size, fmt, ap),
- struct _reent *ptr,
+_vsnprintf_r (struct _reent *ptr,
char *__restrict str,
size_t size,
const char *__restrict fmt,
diff --git a/newlib/libc/stdio/vsprintf.c b/newlib/libc/stdio/vsprintf.c
index 4940b97..7344a38 100644
--- a/newlib/libc/stdio/vsprintf.c
+++ b/newlib/libc/stdio/vsprintf.c
@@ -31,8 +31,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vsprintf, (str, fmt, ap),
- char *__restrict str,
+vsprintf (char *__restrict str,
const char *__restrict fmt,
va_list ap)
{
@@ -48,8 +47,7 @@ _EXFUN(vsiprintf, (char *, const char *, __VALIST)
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsprintf_r, (ptr, str, fmt, ap),
- struct _reent *ptr,
+_vsprintf_r (struct _reent *ptr,
char *__restrict str,
const char *__restrict fmt,
va_list ap)
diff --git a/newlib/libc/stdio/vsscanf.c b/newlib/libc/stdio/vsscanf.c
index 87d4cd1..61c65cd 100644
--- a/newlib/libc/stdio/vsscanf.c
+++ b/newlib/libc/stdio/vsscanf.c
@@ -35,8 +35,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(vsscanf, (str, fmt, ap),
- const char *__restrict str,
+vsscanf (const char *__restrict str,
const char *__restrict fmt,
va_list ap)
{
@@ -52,8 +51,7 @@ _EXFUN(vsiscanf, (const char *, const char *, __VALIST)
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsscanf_r, (ptr, str, fmt, ap),
- struct _reent *ptr,
+_vsscanf_r (struct _reent *ptr,
const char *__restrict str,
const char *__restrict fmt,
va_list ap)
diff --git a/newlib/libc/stdio/vswprintf.c b/newlib/libc/stdio/vswprintf.c
index 9c9127c..5297a27 100644
--- a/newlib/libc/stdio/vswprintf.c
+++ b/newlib/libc/stdio/vswprintf.c
@@ -31,8 +31,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include "local.h"
int
-_DEFUN(_vswprintf_r, (ptr, str, size, fmt, ap),
- struct _reent *ptr,
+_vswprintf_r (struct _reent *ptr,
wchar_t *str,
size_t size,
const wchar_t *fmt,
@@ -70,8 +69,7 @@ _DEFUN(_vswprintf_r, (ptr, str, size, fmt, ap),
#ifndef _REENT_ONLY
int
-_DEFUN(vswprintf, (str, size, fmt, ap),
- wchar_t *__restrict str,
+vswprintf (wchar_t *__restrict str,
size_t size,
const wchar_t *__restrict fmt,
va_list ap)
diff --git a/newlib/libc/stdio/vwprintf.c b/newlib/libc/stdio/vwprintf.c
index 2838136..d1b7d4c 100644
--- a/newlib/libc/stdio/vwprintf.c
+++ b/newlib/libc/stdio/vwprintf.c
@@ -26,8 +26,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(vwprintf, (fmt, ap),
- const wchar_t *__restrict fmt,
+vwprintf (const wchar_t *__restrict fmt,
va_list ap)
{
struct _reent *reent = _REENT;
@@ -39,8 +38,7 @@ _DEFUN(vwprintf, (fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vwprintf_r, (ptr, fmt, ap),
- struct _reent *ptr,
+_vwprintf_r (struct _reent *ptr,
const wchar_t *fmt,
va_list ap)
{
diff --git a/newlib/libc/stdio/wbuf.c b/newlib/libc/stdio/wbuf.c
index 13578ea..034d8eb 100644
--- a/newlib/libc/stdio/wbuf.c
+++ b/newlib/libc/stdio/wbuf.c
@@ -33,8 +33,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
*/
int
-_DEFUN(__swbuf_r, (ptr, c, fp),
- struct _reent *ptr,
+__swbuf_r (struct _reent *ptr,
register int c,
register FILE *fp)
{
@@ -88,8 +87,7 @@ _DEFUN(__swbuf_r, (ptr, c, fp),
required for backward compatibility with applications built against
earlier dynamically built newlib libraries. */
int
-_DEFUN(__swbuf, (c, fp),
- register int c,
+__swbuf (register int c,
register FILE *fp)
{
return __swbuf_r (_REENT, c, fp);
diff --git a/newlib/libc/stdio/wprintf.c b/newlib/libc/stdio/wprintf.c
index ef212d8..176b16a 100644
--- a/newlib/libc/stdio/wprintf.c
+++ b/newlib/libc/stdio/wprintf.c
@@ -24,8 +24,7 @@
#include "local.h"
int
-_DEFUN(_wprintf_r, (ptr, fmt),
- struct _reent *ptr,
+_wprintf_r (struct _reent *ptr,
const wchar_t *fmt, ...)
{
int ret;
@@ -41,8 +40,7 @@ _DEFUN(_wprintf_r, (ptr, fmt),
#ifndef _REENT_ONLY
int
-_DEFUN(wprintf, (fmt),
- const wchar_t *__restrict fmt, ...)
+wprintf (const wchar_t *__restrict fmt, ...)
{
int ret;
va_list ap;
diff --git a/newlib/libc/stdio/wsetup.c b/newlib/libc/stdio/wsetup.c
index 72280d2..5a4fc0a 100644
--- a/newlib/libc/stdio/wsetup.c
+++ b/newlib/libc/stdio/wsetup.c
@@ -30,8 +30,7 @@
*/
int
-_DEFUN(__swsetup_r, (ptr, fp),
- struct _reent *ptr,
+__swsetup_r (struct _reent *ptr,
register FILE * fp)
{
/* Make sure stdio is set up. */