ansification: remove _VOID

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz 2017-12-03 21:12:33 -06:00
parent fff27f8429
commit 67ee0cac4c
41 changed files with 104 additions and 106 deletions

View File

@ -16,7 +16,7 @@
#include <_ansi.h> #include <_ansi.h>
_VOID void
_DEFUN (_exit, (rc), _DEFUN (_exit, (rc),
int rc) int rc)
{ {

View File

@ -5,7 +5,7 @@
#include <_ansi.h> #include <_ansi.h>
#include <_syslist.h> #include <_syslist.h>
_VOID void
_DEFUN (_exit, (rc), _DEFUN (_exit, (rc),
int rc) int rc)
{ {

View File

@ -135,7 +135,7 @@ typedef struct
* If 'direction' is 0, "from" encoding is tested, else * If 'direction' is 0, "from" encoding is tested, else
* "to" encoding is tested. * "to" encoding is tested.
*/ */
_VOID _EXFNPTR(get_state, (void *data, void _EXFNPTR(get_state, (void *data,
mbstate_t *state, mbstate_t *state,
int direction)); int direction));

View File

@ -219,7 +219,7 @@ _DEFUN(_iconv_nls_conv, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
* shift state if 'direction' is 0 and "to" encodings's shift state * shift state if 'direction' is 0 and "to" encodings's shift state
* if 'direction' isn't 0. * if 'direction' isn't 0.
*/ */
_VOID void
_DEFUN(_iconv_nls_get_state, (cd, ps, direction), _DEFUN(_iconv_nls_get_state, (cd, ps, direction),
iconv_t cd, iconv_t cd,
mbstate_t *ps, mbstate_t *ps,

View File

@ -101,7 +101,7 @@ _DEFUN(null_conversion_get_mb_cur_max, (data, direction),
} }
static _VOID static void
_DEFUN(null_conversion_get_state, (data, state, size), _DEFUN(null_conversion_get_state, (data, state, size),
void *data, void *data,
mbstate_t *state, mbstate_t *state,

View File

@ -251,7 +251,7 @@ _DEFUN(ucs_based_conversion_get_mb_cur_max, (data, direction),
} }
static _VOID static void
_DEFUN(ucs_based_conversion_get_state, (data, state, direction), _DEFUN(ucs_based_conversion_get_state, (data, state, direction),
void *data, void *data,
mbstate_t *state, mbstate_t *state,

View File

@ -108,7 +108,7 @@ typedef struct
* DESCRIPTION: * DESCRIPTION:
* Returns encoding's current shift sequence. * Returns encoding's current shift sequence.
*/ */
_VOID _EXFNPTR(get_state, (void *data, void _EXFNPTR(get_state, (void *data,
mbstate_t *state)); mbstate_t *state));
/* /*
@ -183,7 +183,7 @@ typedef struct
int _EXFNPTR(get_mb_cur_max, (void *data)); int _EXFNPTR(get_mb_cur_max, (void *data));
/* Same as in iconv_to_ucs_ces_handlers_t */ /* Same as in iconv_to_ucs_ces_handlers_t */
_VOID _EXFNPTR(get_state, (void *data, void _EXFNPTR(get_state, (void *data,
mbstate_t *state)); mbstate_t *state));
/* Same as in iconv_to_ucs_ces_handlers_t */ /* Same as in iconv_to_ucs_ces_handlers_t */

View File

@ -49,7 +49,6 @@
#ifdef _HAVE_STDC #ifdef _HAVE_STDC
#define _VOLATILE volatile #define _VOLATILE volatile
#define _SIGNED signed #define _SIGNED signed
#define _VOID void
#ifdef __CYGWIN__ #ifdef __CYGWIN__
#define _EXFUN_NOTHROW(name, proto) __cdecl name proto _NOTHROW #define _EXFUN_NOTHROW(name, proto) __cdecl name proto _NOTHROW
#define _EXFUN(name, proto) __cdecl name proto #define _EXFUN(name, proto) __cdecl name proto
@ -68,7 +67,6 @@
#else #else
#define _VOLATILE #define _VOLATILE
#define _SIGNED #define _SIGNED
#define _VOID void
#define _EXFUN(name, proto) name() #define _EXFUN(name, proto) name()
#define _EXFUN_NOTHROW(name, proto) name() #define _EXFUN_NOTHROW(name, proto) name()
#define _DEFUN(name, arglist, args) name arglist args; #define _DEFUN(name, arglist, args) name arglist args;

View File

@ -42,12 +42,12 @@ extern void *malloc (size_t);
extern void *_malloc_r (struct _reent *, size_t); extern void *_malloc_r (struct _reent *, size_t);
#endif #endif
extern _VOID free (void *); extern void free (void *);
#ifdef __CYGWIN__ #ifdef __CYGWIN__
#undef _free_r #undef _free_r
#define _free_r(r, p) free (p) #define _free_r(r, p) free (p)
#else #else
extern _VOID _free_r (struct _reent *, void *); extern void _free_r (struct _reent *, void *);
#endif #endif
extern void *realloc (void *, size_t); extern void *realloc (void *, size_t);
@ -135,12 +135,12 @@ extern int _malloc_trim_r (struct _reent *, size_t);
/* A compatibility routine for an earlier version of the allocator. */ /* A compatibility routine for an earlier version of the allocator. */
extern _VOID mstats (char *); extern void mstats (char *);
#ifdef __CYGWIN__ #ifdef __CYGWIN__
#undef _mstats_r #undef _mstats_r
#define _mstats_r(r, p) mstats (p) #define _mstats_r(r, p) mstats (p)
#else #else
extern _VOID _mstats_r (struct _reent *, char *); extern void _mstats_r (struct _reent *, char *);
#endif #endif
/* SVID2/XPG mallopt options */ /* SVID2/XPG mallopt options */

View File

@ -259,7 +259,7 @@ off_t _EXFUN(ftello, ( FILE *));
#endif #endif
#endif #endif
#if __GNU_VISIBLE #if __GNU_VISIBLE
int _EXFUN(fcloseall, (_VOID)); int _EXFUN(fcloseall, (void));
#endif #endif
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
#if __ISO_C_VISIBLE >= 1999 #if __ISO_C_VISIBLE >= 1999

View File

@ -62,18 +62,18 @@ typedef int (*__compar_fn_t) (const void *, const void *);
#define RAND_MAX __RAND_MAX #define RAND_MAX __RAND_MAX
int _EXFUN(__locale_mb_cur_max,(_VOID)); int _EXFUN(__locale_mb_cur_max,(void));
#define MB_CUR_MAX __locale_mb_cur_max() #define MB_CUR_MAX __locale_mb_cur_max()
_VOID _EXFUN(abort,(_VOID) _ATTRIBUTE ((__noreturn__))); void _EXFUN(abort,(void) _ATTRIBUTE ((__noreturn__)));
int _EXFUN(abs,(int)); int _EXFUN(abs,(int));
#if __BSD_VISIBLE #if __BSD_VISIBLE
__uint32_t _EXFUN(arc4random, (void)); __uint32_t _EXFUN(arc4random, (void));
__uint32_t _EXFUN(arc4random_uniform, (__uint32_t)); __uint32_t _EXFUN(arc4random_uniform, (__uint32_t));
void _EXFUN(arc4random_buf, (void *, size_t)); void _EXFUN(arc4random_buf, (void *, size_t));
#endif #endif
int _EXFUN(atexit,(_VOID (*__func)(_VOID))); int _EXFUN(atexit,(void (*__func)(void)));
double _EXFUN(atof,(const char *__nptr)); double _EXFUN(atof,(const char *__nptr));
#if __MISC_VISIBLE #if __MISC_VISIBLE
float _EXFUN(atoff,(const char *__nptr)); float _EXFUN(atoff,(const char *__nptr));
@ -89,8 +89,8 @@ void * _EXFUN(bsearch,(const void *__key,
__compar_fn_t _compar)); __compar_fn_t _compar));
void * _EXFUN_NOTHROW(calloc,(size_t __nmemb, size_t __size)); void * _EXFUN_NOTHROW(calloc,(size_t __nmemb, size_t __size));
div_t _EXFUN(div,(int __numer, int __denom)); div_t _EXFUN(div,(int __numer, int __denom));
_VOID _EXFUN(exit,(int __status) _ATTRIBUTE ((__noreturn__))); void _EXFUN(exit,(int __status) _ATTRIBUTE ((__noreturn__)));
_VOID _EXFUN_NOTHROW(free,(void *)); void _EXFUN_NOTHROW(free,(void *));
char * _EXFUN(getenv,(const char *__string)); char * _EXFUN(getenv,(const char *__string));
char * _EXFUN(_getenv_r,(struct _reent *, const char *__string)); char * _EXFUN(_getenv_r,(struct _reent *, const char *__string));
char * _EXFUN(_findenv,(const char *, int *)); char * _EXFUN(_findenv,(const char *, int *));
@ -136,8 +136,8 @@ int _EXFUN(_mkostemps_r, (struct _reent *, char *, int, int));
int _EXFUN(_mkstemp_r, (struct _reent *, char *)); int _EXFUN(_mkstemp_r, (struct _reent *, char *));
int _EXFUN(_mkstemps_r, (struct _reent *, char *, int)); int _EXFUN(_mkstemps_r, (struct _reent *, char *, int));
char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__deprecated__("the use of `mktemp' is dangerous; use `mkstemp' instead")))); char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__deprecated__("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
_VOID _EXFUN(qsort,(void *__base, size_t __nmemb, size_t __size, __compar_fn_t _compar)); void _EXFUN(qsort,(void *__base, size_t __nmemb, size_t __size, __compar_fn_t _compar));
int _EXFUN(rand,(_VOID)); int _EXFUN(rand,(void));
void * _EXFUN_NOTHROW(realloc,(void *__r, size_t __size)); void * _EXFUN_NOTHROW(realloc,(void *__r, size_t __size));
#if __BSD_VISIBLE #if __BSD_VISIBLE
void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size(2) void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size(2)
@ -151,9 +151,9 @@ char * _EXFUN(realpath, (const char *__restrict path, char *__restrict resolved_
int _EXFUN(rpmatch, (const char *response)); int _EXFUN(rpmatch, (const char *response));
#endif #endif
#if __XSI_VISIBLE #if __XSI_VISIBLE
_VOID _EXFUN(setkey, (const char *__key)); void _EXFUN(setkey, (const char *__key));
#endif #endif
_VOID _EXFUN(srand,(unsigned __seed)); void _EXFUN(srand,(unsigned __seed));
double _EXFUN(strtod,(const char *__restrict __n, char **__restrict __end_PTR)); double _EXFUN(strtod,(const char *__restrict __n, char **__restrict __end_PTR));
double _EXFUN(_strtod_r,(struct _reent *,const char *__restrict __n, char **__restrict __end_PTR)); double _EXFUN(_strtod_r,(struct _reent *,const char *__restrict __n, char **__restrict __end_PTR));
#if __ISO_C_VISIBLE >= 1999 #if __ISO_C_VISIBLE >= 1999
@ -193,10 +193,10 @@ char * _EXFUN(l64a,(long __input));
char * _EXFUN(_l64a_r,(struct _reent *,long __input)); char * _EXFUN(_l64a_r,(struct _reent *,long __input));
#endif #endif
#if __MISC_VISIBLE #if __MISC_VISIBLE
int _EXFUN(on_exit,(_VOID (*__func)(int, void *),void *__arg)); int _EXFUN(on_exit,(void (*__func)(int, void *),void *__arg));
#endif #endif
#if __ISO_C_VISIBLE >= 1999 #if __ISO_C_VISIBLE >= 1999
_VOID _EXFUN(_Exit,(int __status) _ATTRIBUTE ((__noreturn__))); void _EXFUN(_Exit,(int __status) _ATTRIBUTE ((__noreturn__)));
#endif #endif
#if __SVID_VISIBLE || __XSI_VISIBLE #if __SVID_VISIBLE || __XSI_VISIBLE
int _EXFUN(putenv,(char *__string)); int _EXFUN(putenv,(char *__string));
@ -229,17 +229,17 @@ int _EXFUN(rand_r,(unsigned *__seed));
#endif #endif
#if __SVID_VISIBLE || __XSI_VISIBLE #if __SVID_VISIBLE || __XSI_VISIBLE
double _EXFUN(drand48,(_VOID)); double _EXFUN(drand48,(void));
double _EXFUN(_drand48_r,(struct _reent *)); double _EXFUN(_drand48_r,(struct _reent *));
double _EXFUN(erand48,(unsigned short [3])); double _EXFUN(erand48,(unsigned short [3]));
double _EXFUN(_erand48_r,(struct _reent *, unsigned short [3])); double _EXFUN(_erand48_r,(struct _reent *, unsigned short [3]));
long _EXFUN(jrand48,(unsigned short [3])); long _EXFUN(jrand48,(unsigned short [3]));
long _EXFUN(_jrand48_r,(struct _reent *, unsigned short [3])); long _EXFUN(_jrand48_r,(struct _reent *, unsigned short [3]));
_VOID _EXFUN(lcong48,(unsigned short [7])); void _EXFUN(lcong48,(unsigned short [7]));
_VOID _EXFUN(_lcong48_r,(struct _reent *, unsigned short [7])); void _EXFUN(_lcong48_r,(struct _reent *, unsigned short [7]));
long _EXFUN(lrand48,(_VOID)); long _EXFUN(lrand48,(void));
long _EXFUN(_lrand48_r,(struct _reent *)); long _EXFUN(_lrand48_r,(struct _reent *));
long _EXFUN(mrand48,(_VOID)); long _EXFUN(mrand48,(void));
long _EXFUN(_mrand48_r,(struct _reent *)); long _EXFUN(_mrand48_r,(struct _reent *));
long _EXFUN(nrand48,(unsigned short [3])); long _EXFUN(nrand48,(unsigned short [3]));
long _EXFUN(_nrand48_r,(struct _reent *, unsigned short [3])); long _EXFUN(_nrand48_r,(struct _reent *, unsigned short [3]));
@ -247,14 +247,14 @@ unsigned short *
_EXFUN(seed48,(unsigned short [3])); _EXFUN(seed48,(unsigned short [3]));
unsigned short * unsigned short *
_EXFUN(_seed48_r,(struct _reent *, unsigned short [3])); _EXFUN(_seed48_r,(struct _reent *, unsigned short [3]));
_VOID _EXFUN(srand48,(long)); void _EXFUN(srand48,(long));
_VOID _EXFUN(_srand48_r,(struct _reent *, long)); void _EXFUN(_srand48_r,(struct _reent *, long));
#endif /* __SVID_VISIBLE || __XSI_VISIBLE */ #endif /* __SVID_VISIBLE || __XSI_VISIBLE */
#if __SVID_VISIBLE || __XSI_VISIBLE >= 4 || __BSD_VISIBLE #if __SVID_VISIBLE || __XSI_VISIBLE >= 4 || __BSD_VISIBLE
char * _EXFUN(initstate,(unsigned, char *, size_t)); char * _EXFUN(initstate,(unsigned, char *, size_t));
long _EXFUN(random,(_VOID)); long _EXFUN(random,(void));
char * _EXFUN(setstate,(char *)); char * _EXFUN(setstate,(char *));
_VOID _EXFUN(srandom,(unsigned)); void _EXFUN(srandom,(unsigned));
#endif #endif
#if __ISO_C_VISIBLE >= 1999 #if __ISO_C_VISIBLE >= 1999
long long _EXFUN(atoll,(const char *__nptr)); long long _EXFUN(atoll,(const char *__nptr));
@ -273,7 +273,7 @@ unsigned long long _EXFUN(_strtoull_r,(struct _reent *, const char *__restrict _
#ifndef __CYGWIN__ #ifndef __CYGWIN__
#if __MISC_VISIBLE #if __MISC_VISIBLE
_VOID _EXFUN(cfree,(void *)); void _EXFUN(cfree,(void *));
#endif #endif
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 #if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
int _EXFUN(unsetenv,(const char *__string)); int _EXFUN(unsetenv,(const char *__string));
@ -289,26 +289,26 @@ char * _EXFUN(_dtoa_r,(struct _reent *, double, int, int, int *, int*, char**));
#ifndef __CYGWIN__ #ifndef __CYGWIN__
void * _EXFUN_NOTHROW(_malloc_r,(struct _reent *, size_t)); void * _EXFUN_NOTHROW(_malloc_r,(struct _reent *, size_t));
void * _EXFUN_NOTHROW(_calloc_r,(struct _reent *, size_t, size_t)); void * _EXFUN_NOTHROW(_calloc_r,(struct _reent *, size_t, size_t));
_VOID _EXFUN_NOTHROW(_free_r,(struct _reent *, void *)); void _EXFUN_NOTHROW(_free_r,(struct _reent *, void *));
void * _EXFUN_NOTHROW(_realloc_r,(struct _reent *, void *, size_t)); void * _EXFUN_NOTHROW(_realloc_r,(struct _reent *, void *, size_t));
_VOID _EXFUN(_mstats_r,(struct _reent *, char *)); void _EXFUN(_mstats_r,(struct _reent *, char *));
#endif #endif
int _EXFUN(_system_r,(struct _reent *, const char *)); int _EXFUN(_system_r,(struct _reent *, const char *));
_VOID _EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *)); void _EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *));
/* There are two common qsort_r variants. If you request /* There are two common qsort_r variants. If you request
_BSD_SOURCE, you get the BSD version; otherwise you get the GNU _BSD_SOURCE, you get the BSD version; otherwise you get the GNU
version. We want that #undef qsort_r will still let you version. We want that #undef qsort_r will still let you
invoke the underlying function, but that requires gcc support. */ invoke the underlying function, but that requires gcc support. */
#if __GNU_VISIBLE #if __GNU_VISIBLE
_VOID _EXFUN(qsort_r,(void *__base, size_t __nmemb, size_t __size, int (*_compar)(const void *, const void *, void *), void *__thunk)); void _EXFUN(qsort_r,(void *__base, size_t __nmemb, size_t __size, int (*_compar)(const void *, const void *, void *), void *__thunk));
#elif __BSD_VISIBLE #elif __BSD_VISIBLE
# ifdef __GNUC__ # ifdef __GNUC__
_VOID _EXFUN(qsort_r,(void *__base, size_t __nmemb, size_t __size, void *__thunk, int (*_compar)(void *, const void *, const void *))) void _EXFUN(qsort_r,(void *__base, size_t __nmemb, size_t __size, void *__thunk, int (*_compar)(void *, const void *, const void *)))
__asm__ (__ASMNAME ("__bsd_qsort_r")); __asm__ (__ASMNAME ("__bsd_qsort_r"));
# else # else
_VOID _EXFUN(__bsd_qsort_r,(void *__base, size_t __nmemb, size_t __size, void *__thunk, int (*_compar)(void *, const void *, const void *))); void _EXFUN(__bsd_qsort_r,(void *__base, size_t __nmemb, size_t __size, void *__thunk, int (*_compar)(void *, const void *, const void *)));
# define qsort_r __bsd_qsort_r # define qsort_r __bsd_qsort_r
# endif # endif
#endif #endif

View File

@ -44,7 +44,7 @@
#define ICONV_NLS_FROM 0 #define ICONV_NLS_FROM 0
#define ICONV_NLS_TO 1 #define ICONV_NLS_TO 1
_VOID void
_EXFUN(_iconv_nls_get_state, (iconv_t cd, mbstate_t *ps, int direction)); _EXFUN(_iconv_nls_get_state, (iconv_t cd, mbstate_t *ps, int direction));
int int

View File

@ -165,7 +165,7 @@ struct __sFILE_fake {
/* Following is needed both in libc/stdio and libc/stdlib so we put it /* Following is needed both in libc/stdio and libc/stdlib so we put it
* here instead of libc/stdio/local.h where it was previously. */ * here instead of libc/stdio/local.h where it was previously. */
extern _VOID _EXFUN(__sinit,(struct _reent *)); extern void _EXFUN(__sinit,(struct _reent *));
# define _REENT_SMALL_CHECK_INIT(ptr) \ # define _REENT_SMALL_CHECK_INIT(ptr) \
do \ do \

View File

@ -98,9 +98,9 @@ char *strptime_l (const char *__restrict, const char *__restrict,
#endif #endif
#if __POSIX_VISIBLE #if __POSIX_VISIBLE
_VOID _EXFUN(tzset, (_VOID)); void _EXFUN(tzset, (void));
#endif #endif
_VOID _EXFUN(_tzset_r, (struct _reent *)); void _EXFUN(_tzset_r, (struct _reent *));
typedef struct __tzrule_struct typedef struct __tzrule_struct
{ {
@ -120,7 +120,7 @@ typedef struct __tzinfo_struct
__tzrule_type __tzrule[2]; __tzrule_type __tzrule[2];
} __tzinfo_type; } __tzinfo_type;
__tzinfo_type *_EXFUN (__gettzinfo, (_VOID)); __tzinfo_type *_EXFUN (__gettzinfo, (void));
/* getdate functions */ /* getdate functions */
@ -128,7 +128,7 @@ __tzinfo_type *_EXFUN (__gettzinfo, (_VOID));
#if __XSI_VISIBLE >= 4 #if __XSI_VISIBLE >= 4
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
#define getdate_err (*__getdate_err()) #define getdate_err (*__getdate_err())
int *_EXFUN(__getdate_err,(_VOID)); int *_EXFUN(__getdate_err,(void));
struct tm * _EXFUN(getdate, (const char *)); struct tm * _EXFUN(getdate, (const char *));
/* getdate_err is set to one of the following values to indicate the error. /* getdate_err is set to one of the following values to indicate the error.

View File

@ -46,7 +46,7 @@ Supporting OS subroutines required: <<_exit>> and optionally, <<write>>.
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
_VOID void
abort (void) abort (void)
{ {
#ifdef ABORT_MESSAGE #ifdef ABORT_MESSAGE

View File

@ -28,7 +28,7 @@ Supporting OS subroutines required: <<_exit>>.
#include <unistd.h> #include <unistd.h>
_VOID void
abort (void) abort (void)
{ {
while (1) while (1)

View File

@ -5,7 +5,7 @@
void *_EXFUN(vec_calloc,(size_t __nmemb, size_t __size)); void *_EXFUN(vec_calloc,(size_t __nmemb, size_t __size));
void *_EXFUN(_vec_calloc_r,(struct _reent *, size_t __nmemb, size_t __size)); void *_EXFUN(_vec_calloc_r,(struct _reent *, size_t __nmemb, size_t __size));
_VOID _EXFUN(vec_free,(void *)); void _EXFUN(vec_free,(void *));
#define _vec_freer _freer #define _vec_freer _freer
void *_EXFUN(vec_malloc,(size_t __size)); void *_EXFUN(vec_malloc,(size_t __size));
#define _vec_mallocr _memalign_r #define _vec_mallocr _memalign_r

View File

@ -7,7 +7,7 @@
void *_EXFUN(vec_calloc,(size_t __nmemb, size_t __size)); void *_EXFUN(vec_calloc,(size_t __nmemb, size_t __size));
void *_EXFUN(_vec_calloc_r,(struct _reent *, size_t __nmemb, size_t __size)); void *_EXFUN(_vec_calloc_r,(struct _reent *, size_t __nmemb, size_t __size));
_VOID _EXFUN(vec_free,(void *)); void _EXFUN(vec_free,(void *));
#define _vec_freer _freer #define _vec_freer _freer
void *_EXFUN(vec_malloc,(size_t __size)); void *_EXFUN(vec_malloc,(size_t __size));
#define _vec_mallocr _memalign_r #define _vec_mallocr _memalign_r

View File

@ -36,7 +36,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
_VOID void
_DEFUN (clearerr, (fp), _DEFUN (clearerr, (fp),
FILE * fp) FILE * fp)

View File

@ -52,7 +52,7 @@ _DEFUN (__sfp, (d),
return NULL; return NULL;
} }
static _VOID static void
_DEFUN (__cleanup, (s), _DEFUN (__cleanup, (s),
struct _reent *s) struct _reent *s)
{ {
@ -64,7 +64,7 @@ _DEFUN (__cleanup, (s),
} }
} }
_VOID void
_DEFUN (__sinit, (s), _DEFUN (__sinit, (s),
struct _reent *s) struct _reent *s)
{ {
@ -81,7 +81,7 @@ _DEFUN (__sinit, (s),
s->_stderr->_fp = SPE_STDERR; s->_stderr->_fp = SPE_STDERR;
} }
_VOID void
__check_init (void) __check_init (void)
{ {
CHECK_INIT(_REENT); CHECK_INIT(_REENT);

View File

@ -33,7 +33,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
_VOID void
_DEFUN(psignal, (sig, s), _DEFUN(psignal, (sig, s),
int sig, int sig,
const char *s) const char *s)

View File

@ -71,7 +71,7 @@ No supporting OS subroutines are required.
#undef clearerr #undef clearerr
_VOID void
_DEFUN(clearerr, (fp), _DEFUN(clearerr, (fp),
FILE * fp) FILE * fp)
{ {

View File

@ -32,7 +32,7 @@
#undef clearerr_unlocked #undef clearerr_unlocked
_VOID void
_DEFUN(clearerr_unlocked, (fp), _DEFUN(clearerr_unlocked, (fp),
FILE * fp) FILE * fp)
{ {

View File

@ -40,9 +40,9 @@ __FILE __sf[3];
#endif #endif
#if (defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED)) #if (defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED))
_NOINLINE_STATIC _VOID _NOINLINE_STATIC void
#else #else
static _VOID static void
#endif #endif
_DEFUN(std, (ptr, flags, file), _DEFUN(std, (ptr, flags, file),
FILE *ptr, FILE *ptr,
@ -203,7 +203,7 @@ found:
* The name `_cleanup' is, alas, fairly well known outside stdio. * The name `_cleanup' is, alas, fairly well known outside stdio.
*/ */
_VOID void
_DEFUN(_cleanup_r, (ptr), _DEFUN(_cleanup_r, (ptr),
struct _reent *ptr) struct _reent *ptr)
{ {
@ -234,7 +234,7 @@ _DEFUN(_cleanup_r, (ptr),
} }
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
_VOID void
_cleanup (void) _cleanup (void)
{ {
_cleanup_r (_GLOBAL_REENT); _cleanup_r (_GLOBAL_REENT);
@ -245,7 +245,7 @@ _cleanup (void)
* __sinit() is called whenever stdio's internal variables must be set up. * __sinit() is called whenever stdio's internal variables must be set up.
*/ */
_VOID void
_DEFUN(__sinit, (s), _DEFUN(__sinit, (s),
struct _reent *s) struct _reent *s)
{ {
@ -303,25 +303,25 @@ _DEFUN(__sinit, (s),
__LOCK_INIT_RECURSIVE(static, __sfp_recursive_mutex); __LOCK_INIT_RECURSIVE(static, __sfp_recursive_mutex);
__LOCK_INIT_RECURSIVE(static, __sinit_recursive_mutex); __LOCK_INIT_RECURSIVE(static, __sinit_recursive_mutex);
_VOID void
__sfp_lock_acquire (void) __sfp_lock_acquire (void)
{ {
__lock_acquire_recursive (__sfp_recursive_mutex); __lock_acquire_recursive (__sfp_recursive_mutex);
} }
_VOID void
__sfp_lock_release (void) __sfp_lock_release (void)
{ {
__lock_release_recursive (__sfp_recursive_mutex); __lock_release_recursive (__sfp_recursive_mutex);
} }
_VOID void
__sinit_lock_acquire (void) __sinit_lock_acquire (void)
{ {
__lock_acquire_recursive (__sinit_recursive_mutex); __lock_acquire_recursive (__sinit_recursive_mutex);
} }
_VOID void
__sinit_lock_release (void) __sinit_lock_release (void)
{ {
__lock_release_recursive (__sinit_recursive_mutex); __lock_release_recursive (__sinit_recursive_mutex);
@ -349,7 +349,7 @@ _DEFUN(__fp_unlock, (ptr),
return 0; return 0;
} }
_VOID void
__fp_lock_all (void) __fp_lock_all (void)
{ {
__sfp_lock_acquire (); __sfp_lock_acquire ();
@ -357,7 +357,7 @@ __fp_lock_all (void)
(void) _fwalk (_REENT, __fp_lock); (void) _fwalk (_REENT, __fp_lock);
} }
_VOID void
__fp_unlock_all (void) __fp_unlock_all (void)
{ {
(void) _fwalk (_REENT, __fp_unlock); (void) _fwalk (_REENT, __fp_unlock);

View File

@ -179,9 +179,9 @@ extern _READ_WRITE_RETURN_TYPE _EXFUN(__swrite,(struct _reent *, void *,
extern _fpos_t _EXFUN(__sseek,(struct _reent *, void *, _fpos_t, int)); extern _fpos_t _EXFUN(__sseek,(struct _reent *, void *, _fpos_t, int));
extern int _EXFUN(__sclose,(struct _reent *, void *)); extern int _EXFUN(__sclose,(struct _reent *, void *));
extern int _EXFUN(__stextmode,(int)); extern int _EXFUN(__stextmode,(int));
extern _VOID _EXFUN(__sinit,(struct _reent *)); extern void _EXFUN(__sinit,(struct _reent *));
extern _VOID _EXFUN(_cleanup_r,(struct _reent *)); extern void _EXFUN(_cleanup_r,(struct _reent *));
extern _VOID _EXFUN(__smakebuf_r,(struct _reent *, FILE *)); extern void _EXFUN(__smakebuf_r,(struct _reent *, FILE *));
extern int _EXFUN(__swhatbuf_r,(struct _reent *, FILE *, size_t *, int *)); extern int _EXFUN(__swhatbuf_r,(struct _reent *, FILE *, size_t *, int *));
extern int _EXFUN(_fwalk,(struct _reent *, int (*)(FILE *))); extern int _EXFUN(_fwalk,(struct _reent *, int (*)(FILE *)));
extern int _EXFUN(_fwalk_reent,(struct _reent *, int (*)(struct _reent *, FILE *))); extern int _EXFUN(_fwalk_reent,(struct _reent *, int (*)(struct _reent *, FILE *)));
@ -297,10 +297,10 @@ char *_EXFUN(_llicvt,(char *, long long, char));
#define __sinit_lock_acquire() #define __sinit_lock_acquire()
#define __sinit_lock_release() #define __sinit_lock_release()
#else #else
_VOID _EXFUN(__sfp_lock_acquire,(_VOID)); void _EXFUN(__sfp_lock_acquire,(void));
_VOID _EXFUN(__sfp_lock_release,(_VOID)); void _EXFUN(__sfp_lock_release,(void));
_VOID _EXFUN(__sinit_lock_acquire,(_VOID)); void _EXFUN(__sinit_lock_acquire,(void));
_VOID _EXFUN(__sinit_lock_release,(_VOID)); void _EXFUN(__sinit_lock_release,(void));
#endif #endif
/* Types used in positional argument support in vfprinf/vfwprintf. /* Types used in positional argument support in vfprinf/vfwprintf.

View File

@ -34,7 +34,7 @@
* optimization) right after the _fstat() that finds the buffer size. * optimization) right after the _fstat() that finds the buffer size.
*/ */
_VOID void
_DEFUN(__smakebuf_r, (ptr, fp), _DEFUN(__smakebuf_r, (ptr, fp),
struct _reent *ptr, struct _reent *ptr,
register FILE *fp) register FILE *fp)

View File

@ -58,7 +58,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include <string.h> #include <string.h>
#include "local.h" #include "local.h"
_VOID void
_DEFUN(_perror_r, (ptr, s), _DEFUN(_perror_r, (ptr, s),
struct _reent *ptr, struct _reent *ptr,
const char *s) const char *s)
@ -81,7 +81,7 @@ _DEFUN(_perror_r, (ptr, s),
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
_VOID void
_DEFUN(perror, (s), _DEFUN(perror, (s),
const char *s) const char *s)
{ {

View File

@ -51,7 +51,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include <reent.h> #include <reent.h>
#include <stdio.h> #include <stdio.h>
_VOID void
_DEFUN(_rewind_r, (ptr, fp), _DEFUN(_rewind_r, (ptr, fp),
struct _reent * ptr, struct _reent * ptr,
register FILE * fp) register FILE * fp)
@ -62,7 +62,7 @@ _DEFUN(_rewind_r, (ptr, fp),
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
_VOID void
_DEFUN(rewind, (fp), _DEFUN(rewind, (fp),
register FILE * fp) register FILE * fp)
{ {

View File

@ -64,7 +64,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include <stdio.h> #include <stdio.h>
#include "local.h" #include "local.h"
_VOID void
_DEFUN(setbuf, (fp, buf), _DEFUN(setbuf, (fp, buf),
FILE *__restrict fp, FILE *__restrict fp,
char *__restrict buf) char *__restrict buf)

View File

@ -64,7 +64,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include <stdio.h> #include <stdio.h>
#include "local.h" #include "local.h"
_VOID void
_DEFUN(setbuffer, (fp, buf, size), _DEFUN(setbuffer, (fp, buf, size),
FILE * fp, FILE * fp,
char *buf, char *buf,

View File

@ -46,7 +46,7 @@ Supporting OS subroutines required: <<_exit>> and optionally, <<write>>.
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
_VOID void
abort (void) abort (void)
{ {
#ifdef ABORT_MESSAGE #ifdef ABORT_MESSAGE

View File

@ -55,7 +55,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
int int
_DEFUN (atexit, _DEFUN (atexit,
(fn), (fn),
_VOID _EXFNPTR(fn, (_VOID))) void _EXFNPTR(fn, (void)))
{ {
return __register_exitproc (__et_atexit, fn, NULL, NULL); return __register_exitproc (__et_atexit, fn, NULL, NULL);
} }

View File

@ -13,7 +13,7 @@
#include "rand48.h" #include "rand48.h"
_VOID void
_DEFUN (_lcong48_r, (r, p), _DEFUN (_lcong48_r, (r, p),
struct _reent *r, struct _reent *r,
unsigned short p[7]) unsigned short p[7])
@ -29,7 +29,7 @@ _DEFUN (_lcong48_r, (r, p),
} }
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
_VOID void
_DEFUN (lcong48, (p), _DEFUN (lcong48, (p),
unsigned short p[7]) unsigned short p[7])
{ {

View File

@ -68,7 +68,7 @@ const void * const __on_exit_dummy = &__on_exit_args;
int int
_DEFUN (on_exit, _DEFUN (on_exit,
(fn, arg), (fn, arg),
_VOID _EXFNPTR(fn, (int, void *)), void _EXFNPTR(fn, (int, void *)),
void *arg) void *arg)
{ {
return __register_exitproc (__et_onexit, (void (*)(void)) fn, arg, NULL); return __register_exitproc (__et_onexit, (void (*)(void)) fn, arg, NULL);

View File

@ -13,7 +13,7 @@
#include "rand48.h" #include "rand48.h"
_VOID void
_DEFUN (_srand48_r, (r, seed), _DEFUN (_srand48_r, (r, seed),
struct _reent *r, struct _reent *r,
long seed) long seed)
@ -29,7 +29,7 @@ _DEFUN (_srand48_r, (r, seed),
} }
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
_VOID void
_DEFUN (srand48, (seed), _DEFUN (srand48, (seed),
long seed) long seed)
{ {

View File

@ -81,8 +81,8 @@ struct tm *_EXFUN(localtime_r, (const time_t *, struct tm *));
#ifndef __STRICT_ANSI__ #ifndef __STRICT_ANSI__
char *_EXFUN(strptime, (const char *, const char *, struct tm *)); char *_EXFUN(strptime, (const char *, const char *, struct tm *));
_VOID _EXFUN(tzset, (_VOID)); void _EXFUN(tzset, (void));
_VOID _EXFUN(_tzset_r, (struct _reent *)); void _EXFUN(_tzset_r, (struct _reent *));
typedef struct __tzrule_struct typedef struct __tzrule_struct
{ {
@ -102,13 +102,13 @@ typedef struct __tzinfo_struct
__tzrule_type __tzrule[2]; __tzrule_type __tzrule[2];
} __tzinfo_type; } __tzinfo_type;
__tzinfo_type *_EXFUN (__gettzinfo, (_VOID)); __tzinfo_type *_EXFUN (__gettzinfo, (void));
/* getdate functions */ /* getdate functions */
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
#define getdate_err (*__getdate_err()) #define getdate_err (*__getdate_err())
int *_EXFUN(__getdate_err,(_VOID)); int *_EXFUN(__getdate_err,(void));
struct tm * _EXFUN(getdate, (const char *)); struct tm * _EXFUN(getdate, (const char *));
/* getdate_err is set to one of the following values to indicate the error. /* getdate_err is set to one of the following values to indicate the error.

View File

@ -189,7 +189,7 @@ RTEMS_STUB(int, issetugid (void), { return 0; })
RTEMS_STUB(void *, _realloc_r(struct _reent *r, void *p, size_t s), { return 0; }) RTEMS_STUB(void *, _realloc_r(struct _reent *r, void *p, size_t s), { return 0; })
RTEMS_STUB(void *, _calloc_r(struct _reent *r, size_t s1, size_t s2), { return 0; }) RTEMS_STUB(void *, _calloc_r(struct _reent *r, size_t s1, size_t s2), { return 0; })
RTEMS_STUB(void *, _malloc_r(struct _reent * r, size_t s), { return 0; }) RTEMS_STUB(void *, _malloc_r(struct _reent * r, size_t s), { return 0; })
RTEMS_STUB(_VOID, _free_r(struct _reent *r, void **p), { }) RTEMS_STUB(void, _free_r(struct _reent *r, void **p), { })
/* stubs for functions required by libc/stdlib */ /* stubs for functions required by libc/stdlib */
RTEMS_STUB(void, __assert_func(const char *file, int line, const char *failedexpr), { }) RTEMS_STUB(void, __assert_func(const char *file, int line, const char *failedexpr), { })

View File

@ -23,8 +23,8 @@ int _EXFUN (__tzcalc_limits, (int __year));
extern const int __month_lengths[2][MONSPERYEAR]; extern const int __month_lengths[2][MONSPERYEAR];
_VOID _EXFUN(_tzset_unlocked_r, (struct _reent *)); void _EXFUN(_tzset_unlocked_r, (struct _reent *));
_VOID _EXFUN(_tzset_unlocked, (_VOID)); void _EXFUN(_tzset_unlocked, (void));
/* locks for multi-threading */ /* locks for multi-threading */
#ifdef __SINGLE_THREAD__ #ifdef __SINGLE_THREAD__
@ -35,6 +35,6 @@ _VOID _EXFUN(_tzset_unlocked, (_VOID));
#define TZ_UNLOCK __tz_unlock() #define TZ_UNLOCK __tz_unlock()
#endif #endif
void _EXFUN(__tz_lock,(_VOID)); void _EXFUN(__tz_lock,(void));
void _EXFUN(__tz_unlock,(_VOID)); void _EXFUN(__tz_unlock,(void));

View File

@ -35,7 +35,7 @@ until the corresponding <<__tz_unlock>> call on the same thread is made.
__LOCK_INIT(static, __tz_mutex); __LOCK_INIT(static, __tz_mutex);
#endif #endif
_VOID void
__tz_lock (void) __tz_lock (void)
{ {
#ifndef __SINGLE_THREAD__ #ifndef __SINGLE_THREAD__
@ -43,7 +43,7 @@ __tz_lock (void)
#endif #endif
} }
_VOID void
__tz_unlock (void) __tz_unlock (void)
{ {
#ifndef __SINGLE_THREAD__ #ifndef __SINGLE_THREAD__

View File

@ -61,13 +61,13 @@ Supporting OS subroutine required: None
#include <time.h> #include <time.h>
#include "local.h" #include "local.h"
_VOID void
_tzset_unlocked (void) _tzset_unlocked (void)
{ {
_tzset_unlocked_r (_REENT); _tzset_unlocked_r (_REENT);
} }
_VOID void
tzset (void) tzset (void)
{ {
TZ_LOCK; TZ_LOCK;

View File

@ -13,7 +13,7 @@ static char __tzname_std[11];
static char __tzname_dst[11]; static char __tzname_dst[11];
static char *prev_tzenv = NULL; static char *prev_tzenv = NULL;
_VOID void
_DEFUN (_tzset_unlocked_r, (reent_ptr), _DEFUN (_tzset_unlocked_r, (reent_ptr),
struct _reent *reent_ptr) struct _reent *reent_ptr)
{ {
@ -183,7 +183,7 @@ _DEFUN (_tzset_unlocked_r, (reent_ptr),
_daylight = tz->__tzrule[0].offset != tz->__tzrule[1].offset; _daylight = tz->__tzrule[0].offset != tz->__tzrule[1].offset;
} }
_VOID void
_DEFUN (_tzset_r, (reent_ptr), _DEFUN (_tzset_r, (reent_ptr),
struct _reent *reent_ptr) struct _reent *reent_ptr)
{ {