Browse Source

ansification: remove _EXFUN, _EXFUN_NOTHROW

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
sh3port_dev
Yaakov Selkowitz 4 years ago
parent
commit
70ee6b17df
  1. 2
      libgloss/aarch64/syscalls.c
  2. 2
      libgloss/arm/syscalls.c
  3. 2
      libgloss/mcore/write.c
  4. 4
      libgloss/sparc_leon/asm-leon/clock.h
  5. 2
      libgloss/write.c
  6. 2
      newlib/libc/ctype/local.h
  7. 8
      newlib/libc/iconv/ces/table.c
  8. 4
      newlib/libc/iconv/lib/ucsconv.c
  9. 9
      newlib/libc/include/_ansi.h
  10. 2
      newlib/libc/include/alloca.h
  11. 8
      newlib/libc/include/assert.h
  12. 32
      newlib/libc/include/ctype.h
  13. 4
      newlib/libc/include/envlock.h
  14. 28
      newlib/libc/include/getopt.h
  15. 16
      newlib/libc/include/iconv.h
  16. 16
      newlib/libc/include/ieeefp.h
  17. 4
      newlib/libc/include/libgen.h
  18. 8
      newlib/libc/include/locale.h
  19. 352
      newlib/libc/include/pthread.h
  20. 102
      newlib/libc/include/rpc/xdr.h
  21. 6
      newlib/libc/include/setjmp.h
  22. 10
      newlib/libc/include/signal.h
  23. 81
      newlib/libc/include/spawn.h
  24. 638
      newlib/libc/include/stdio.h
  25. 18
      newlib/libc/include/stdio_ext.h
  26. 270
      newlib/libc/include/stdlib.h
  27. 104
      newlib/libc/include/string.h
  28. 22
      newlib/libc/include/sys/iconvnls.h
  29. 4
      newlib/libc/include/sys/reent.h
  30. 2
      newlib/libc/include/sys/resource.h
  31. 47
      newlib/libc/include/sys/signal.h
  32. 42
      newlib/libc/include/sys/stat.h
  33. 24
      newlib/libc/include/sys/time.h
  34. 4
      newlib/libc/include/sys/times.h
  35. 266
      newlib/libc/include/sys/unistd.h
  36. 85
      newlib/libc/include/time.h
  37. 326
      newlib/libc/include/wchar.h
  38. 36
      newlib/libc/include/wctype.h
  39. 12
      newlib/libc/machine/powerpc/machine/malloc.h
  40. 78
      newlib/libc/machine/powerpc/machine/stdlib.h
  41. 4
      newlib/libc/machine/spu/c99ppe.h
  42. 8
      newlib/libc/misc/__dprintf.c
  43. 8
      newlib/libc/stdio/asnprintf.c
  44. 8
      newlib/libc/stdio/asprintf.c
  45. 8
      newlib/libc/stdio/dprintf.c
  46. 8
      newlib/libc/stdio/fprintf.c
  47. 8
      newlib/libc/stdio/fscanf.c
  48. 4
      newlib/libc/stdio/fvwrite.h
  49. 2
      newlib/libc/stdio/getline.c
  50. 106
      newlib/libc/stdio/local.h
  51. 14
      newlib/libc/stdio/nano-vfprintf.c
  52. 22
      newlib/libc/stdio/nano-vfscanf.c
  53. 8
      newlib/libc/stdio/printf.c
  54. 8
      newlib/libc/stdio/scanf.c
  55. 8
      newlib/libc/stdio/snprintf.c
  56. 8
      newlib/libc/stdio/sprintf.c
  57. 8
      newlib/libc/stdio/sscanf.c
  58. 8
      newlib/libc/stdio/vasnprintf.c
  59. 8
      newlib/libc/stdio/vasprintf.c
  60. 8
      newlib/libc/stdio/vdprintf.c
  61. 8
      newlib/libc/stdio/vfprintf.c
  62. 6
      newlib/libc/stdio/vfscanf.c
  63. 12
      newlib/libc/stdio/vfwprintf.c
  64. 6
      newlib/libc/stdio/vprintf.c
  65. 6
      newlib/libc/stdio/vscanf.c
  66. 8
      newlib/libc/stdio/vsnprintf.c
  67. 8
      newlib/libc/stdio/vsprintf.c
  68. 8
      newlib/libc/stdio/vsscanf.c
  69. 2
      newlib/libc/stdlib/local.h
  70. 8
      newlib/libc/stdlib/mbctype.h
  71. 46
      newlib/libc/stdlib/mprec.h
  72. 2
      newlib/libc/stdlib/rand48.h
  73. 2
      newlib/libc/stdlib/system.c
  74. 2
      newlib/libc/string/local.h
  75. 2
      newlib/libc/sys/arm/syscalls.c
  76. 8
      newlib/libc/sys/linux/include/setjmp.h
  77. 68
      newlib/libc/sys/linux/include/time.h
  78. 20
      newlib/libc/sys/linux/sys/signal.h
  79. 18
      newlib/libc/sys/linux/sys/stat.h
  80. 2
      newlib/libc/sys/linux/sys/stdio.h
  81. 2
      newlib/libc/sys/linux/sys/string.h
  82. 12
      newlib/libc/sys/linux/sys/time.h
  83. 178
      newlib/libc/sys/linux/sys/unistd.h
  84. 2
      newlib/libc/sys/linux/sys/utime.h
  85. 12
      newlib/libc/sys/sparc64/sys/stat.h
  86. 10
      newlib/libc/time/local.h
  87. 30
      newlib/libc/xdr/xdr_mem.c
  88. 10
      newlib/libc/xdr/xdr_private.h
  89. 24
      newlib/libc/xdr/xdr_rec.c
  90. 20
      newlib/libc/xdr/xdr_stdio.c
  91. 24
      newlib/libm/mathfp/zmath.h
  92. 2
      newlib/libm/test/convert.c
  93. 12
      newlib/libm/test/math.c
  94. 28
      newlib/libm/test/test.h
  95. 24
      winsup/cygwin/include/attr/xattr.h
  96. 8
      winsup/cygwin/include/pty.h
  97. 4
      winsup/cygwin/include/sys/stdio.h
  98. 2
      winsup/cygwin/include/sys/utime.h

2
libgloss/aarch64/syscalls.c

@ -120,7 +120,7 @@ register char * stack_ptr asm ("sp");
/* following is copied from libc/stdio/local.h to check std streams */
extern void _EXFUN (__sinit, (struct _reent *));
extern void __sinit (struct _reent *);
#define CHECK_INIT(ptr) \
do \
{ \

2
libgloss/arm/syscalls.c

@ -85,7 +85,7 @@ register char * stack_ptr asm ("sp");
/* following is copied from libc/stdio/local.h to check std streams */
extern void _EXFUN(__sinit,(struct _reent *));
extern void __sinit (struct _reent *);
#define CHECK_INIT(ptr) \
do \
{ \

2
libgloss/mcore/write.c

@ -14,7 +14,7 @@
*/
#include "glue.h"
extern int _EXFUN (outbyte, (char x));
extern int outbyte (char x);
/*
* write -- write bytes to the serial port. Ignore fd, since

4
libgloss/sparc_leon/asm-leon/clock.h

@ -30,8 +30,8 @@
#include <asm-leon/param.h>
#ifndef __ASSEMBLER__
int _EXFUN (gettimeofday, (struct timeval * __p, void *__tz));
int _EXFUN (settimeofday, (const struct timeval *, const struct timezone *));
int gettimeofday (struct timeval * __p, void *__tz);
int settimeofday (const struct timeval *, const struct timezone *);
void do_gettimeofday (struct timeval *tv);
#endif

2
libgloss/write.c

@ -14,7 +14,7 @@
*/
#include "glue.h"
extern int _EXFUN (outbyte, (char x));
extern int outbyte (char x);
/*
* write -- write bytes to the serial port. Ignore fd, since

2
newlib/libc/ctype/local.h

@ -27,5 +27,5 @@
to the requirements of the underlying OS. */
#define _jp2uc(c) (c)
#else
wint_t _EXFUN (_jp2uc, (wint_t));
wint_t _jp2uc (wint_t);
#endif

8
newlib/libc/iconv/ces/table.c

@ -57,17 +57,17 @@
*/
static ucs2_t
_EXFUN(find_code_size, (ucs2_t code, const __uint16_t *tblp));
find_code_size (ucs2_t code, const __uint16_t *tblp);
static __inline ucs2_t
_EXFUN(find_code_speed, (ucs2_t code, const __uint16_t *tblp));
find_code_speed (ucs2_t code, const __uint16_t *tblp);
static __inline ucs2_t
_EXFUN(find_code_speed_8bit, (ucs2_t code, const unsigned char *tblp));
find_code_speed_8bit (ucs2_t code, const unsigned char *tblp);
#ifdef _ICONV_ENABLE_EXTERNAL_CCS
static const iconv_ccs_desc_t *
_EXFUN(load_file, (struct _reent *rptr, const char *name, int direction));
load_file (struct _reent *rptr, const char *name, int direction);
#endif
/*

4
newlib/libc/iconv/lib/ucsconv.c

@ -36,8 +36,8 @@
static int fake_data;
static int
_EXFUN(find_encoding_name, (const char *searchee,
const char **names));
find_encoding_name (const char *searchee,
const char **names);
/*

9
newlib/libc/include/_ansi.h

@ -47,19 +47,10 @@
#endif
#ifdef _HAVE_STDC
#ifdef __CYGWIN__
#define _EXFUN_NOTHROW(name, proto) __cdecl name proto _NOTHROW
#define _EXFUN(name, proto) __cdecl name proto
#else
#define _EXFUN_NOTHROW(name, proto) name proto _NOTHROW
#define _EXFUN(name, proto) name proto
#endif
#ifndef _LONG_DOUBLE
#define _LONG_DOUBLE long double
#endif
#else
#define _EXFUN(name, proto) name()
#define _EXFUN_NOTHROW(name, proto) name()
#define _LONG_DOUBLE double
#endif

2
newlib/libc/include/alloca.h

@ -15,7 +15,7 @@
#ifdef __GNUC__
#define alloca(size) __builtin_alloca(size)
#else
void * _EXFUN(alloca,(size_t));
void * alloca (size_t);
#endif
#endif

8
newlib/libc/include/assert.h

@ -36,10 +36,10 @@ extern "C" {
# endif /* !__ASSERT_FUNC */
#endif /* !NDEBUG */
void _EXFUN(__assert, (const char *, int, const char *)
_ATTRIBUTE ((__noreturn__)));
void _EXFUN(__assert_func, (const char *, int, const char *, const char *)
_ATTRIBUTE ((__noreturn__)));
void __assert (const char *, int, const char *)
_ATTRIBUTE ((__noreturn__));
void __assert_func (const char *, int, const char *, const char *)
_ATTRIBUTE ((__noreturn__));
#if __STDC_VERSION__ >= 201112L && !defined __cplusplus
# define static_assert _Static_assert

32
newlib/libc/include/ctype.h

@ -10,27 +10,27 @@
_BEGIN_STD_C
int _EXFUN(isalnum, (int __c));
int _EXFUN(isalpha, (int __c));
int _EXFUN(iscntrl, (int __c));
int _EXFUN(isdigit, (int __c));
int _EXFUN(isgraph, (int __c));
int _EXFUN(islower, (int __c));
int _EXFUN(isprint, (int __c));
int _EXFUN(ispunct, (int __c));
int _EXFUN(isspace, (int __c));
int _EXFUN(isupper, (int __c));
int _EXFUN(isxdigit,(int __c));
int _EXFUN(tolower, (int __c));
int _EXFUN(toupper, (int __c));
int isalnum (int __c);
int isalpha (int __c);
int iscntrl (int __c);
int isdigit (int __c);
int isgraph (int __c);
int islower (int __c);
int isprint (int __c);
int ispunct (int __c);
int isspace (int __c);
int isupper (int __c);
int isxdigit (int __c);
int tolower (int __c);
int toupper (int __c);
#if __ISO_C_VISIBLE >= 1999
int _EXFUN(isblank, (int __c));
int isblank (int __c);
#endif
#if __MISC_VISIBLE || __XSI_VISIBLE
int _EXFUN(isascii, (int __c));
int _EXFUN(toascii, (int __c));
int isascii (int __c);
int toascii (int __c);
#define _tolower(__c) ((unsigned char)(__c) - 'A' + 'a')
#define _toupper(__c) ((unsigned char)(__c) - 'a' + 'A')
#endif

4
newlib/libc/include/envlock.h

@ -9,7 +9,7 @@
#define ENV_LOCK __env_lock(reent_ptr)
#define ENV_UNLOCK __env_unlock(reent_ptr)
void _EXFUN(__env_lock,(struct _reent *reent));
void _EXFUN(__env_unlock,(struct _reent *reent));
void __env_lock (struct _reent *reent);
void __env_unlock (struct _reent *reent);
#endif /* _INCLUDE_ENVLOCK_H_ */

28
newlib/libc/include/getopt.h

@ -153,31 +153,25 @@ extern "C"
extern int optopt;
/* function prototypes */
int _EXFUN (getopt,
(int __argc, char *const __argv[], const char *__optstring));
int getopt (int __argc, char *const __argv[], const char *__optstring);
int _EXFUN (getopt_long,
(int __argc, char *const __argv[], const char *__shortopts,
const struct option * __longopts, int *__longind));
int getopt_long (int __argc, char *const __argv[], const char *__shortopts,
const struct option * __longopts, int *__longind);
int _EXFUN (getopt_long_only,
(int __argc, char *const __argv[], const char *__shortopts,
const struct option * __longopts, int *__longind));
int getopt_long_only (int __argc, char *const __argv[], const char *__shortopts,
const struct option * __longopts, int *__longind);
#ifdef __need_getopt_newlib
int _EXFUN (__getopt_r,
(int __argc, char *const __argv[], const char *__optstring,
struct getopt_data * __data));
int __getopt_r (int __argc, char *const __argv[], const char *__optstring,
struct getopt_data * __data);
int _EXFUN (__getopt_long_r,
(int __argc, char *const __argv[], const char *__shortopts,
int __getopt_long_r (int __argc, char *const __argv[], const char *__shortopts,
const struct option * __longopts, int *__longind,
struct getopt_data * __data));
struct getopt_data * __data);
int _EXFUN (__getopt_long_only_r,
(int __argc, char *const __argv[], const char *__shortopts,
int __getopt_long_only_r (int __argc, char *const __argv[], const char *__shortopts,
const struct option * __longopts, int *__longind,
struct getopt_data * __data));
struct getopt_data * __data);
#endif /* __need_getopt_newlib */
#ifdef __cplusplus

16
newlib/libc/include/iconv.h

@ -38,25 +38,25 @@ _BEGIN_STD_C
#ifndef _REENT_ONLY
iconv_t
_EXFUN(iconv_open, (const char *, const char *));
iconv_open (const char *, const char *);
size_t
_EXFUN(iconv, (iconv_t, char **__restrict, size_t *__restrict,
char **__restrict, size_t *__restrict));
iconv (iconv_t, char **__restrict, size_t *__restrict,
char **__restrict, size_t *__restrict);
int
_EXFUN(iconv_close, (iconv_t));
iconv_close (iconv_t);
#endif
iconv_t
_EXFUN(_iconv_open_r, (struct _reent *, const char *, const char *));
_iconv_open_r (struct _reent *, const char *, const char *);
size_t
_EXFUN(_iconv_r, (struct _reent *, iconv_t, const char **,
size_t *, char **, size_t *));
_iconv_r (struct _reent *, iconv_t, const char **,
size_t *, char **, size_t *);
int
_EXFUN(_iconv_close_r, (struct _reent *, iconv_t));
_iconv_close_r (struct _reent *, iconv_t);
_END_STD_C

16
newlib/libc/include/ieeefp.h

@ -215,8 +215,8 @@ typedef int fp_rnd;
#define FP_RP 2 /* Round up */
#define FP_RZ 3 /* Round to zero (trunate) */
fp_rnd _EXFUN(fpgetround,(void));
fp_rnd _EXFUN(fpsetround, (fp_rnd));
fp_rnd fpgetround (void);
fp_rnd fpsetround (fp_rnd);
/* EXCEPTIONS */
@ -227,10 +227,10 @@ typedef int fp_except;
#define FP_X_UFL 0x02 /* Underflow exception */
#define FP_X_IMP 0x01 /* imprecise exception */
fp_except _EXFUN(fpgetmask,(void));
fp_except _EXFUN(fpsetmask,(fp_except));
fp_except _EXFUN(fpgetsticky,(void));
fp_except _EXFUN(fpsetsticky, (fp_except));
fp_except fpgetmask (void);
fp_except fpsetmask (fp_except);
fp_except fpgetsticky (void);
fp_except fpsetsticky (fp_except);
/* INTEGER ROUNDING */
@ -238,8 +238,8 @@ typedef int fp_rdi;
#define FP_RDI_TOZ 0 /* Round to Zero */
#define FP_RDI_RD 1 /* Follow float mode */
fp_rdi _EXFUN(fpgetroundtoi,(void));
fp_rdi _EXFUN(fpsetroundtoi,(fp_rdi));
fp_rdi fpgetroundtoi (void);
fp_rdi fpsetroundtoi (fp_rdi);
#define __IEEE_DBL_EXPBIAS 1023
#define __IEEE_FLT_EXPBIAS 127

4
newlib/libc/include/libgen.h

@ -26,8 +26,8 @@ extern "C" {
sure here. */
#undef basename
#define basename __xpg_basename
char *_EXFUN(basename, (char *)) __asm__(__ASMNAME("basename"));
char *_EXFUN(dirname, (char *));
char *basename (char *) __asm__(__ASMNAME("basename"));
char *dirname (char *);
#ifdef __cplusplus
}

8
newlib/libc/include/locale.h

@ -68,8 +68,8 @@ struct lconv
};
struct _reent;
char *_EXFUN(_setlocale_r,(struct _reent *, int, const char *));
struct lconv *_EXFUN(_localeconv_r,(struct _reent *));
char *_setlocale_r (struct _reent *, int, const char *);
struct lconv *_localeconv_r (struct _reent *);
struct __locale_t *_newlocale_r (struct _reent *, int, const char *,
struct __locale_t *);
@ -79,8 +79,8 @@ struct __locale_t *_uselocale_r (struct _reent *, struct __locale_t *);
#ifndef _REENT_ONLY
char *_EXFUN(setlocale,(int, const char *));
struct lconv *_EXFUN(localeconv,(void));
char *setlocale (int, const char *);
struct lconv *localeconv (void);
#if __POSIX_VISIBLE >= 200809
locale_t newlocale (int, const char *, locale_t);

352
newlib/libc/include/pthread.h

@ -39,34 +39,32 @@ struct _pthread_cleanup_context {
};
/* Register Fork Handlers */
int _EXFUN(pthread_atfork,(void (*prepare)(void), void (*parent)(void),
void (*child)(void)));
int pthread_atfork (void (*prepare)(void), void (*parent)(void),
void (*child)(void));
/* Mutex Initialization Attributes, P1003.1c/Draft 10, p. 81 */
int _EXFUN(pthread_mutexattr_init, (pthread_mutexattr_t *__attr));
int _EXFUN(pthread_mutexattr_destroy, (pthread_mutexattr_t *__attr));
int _EXFUN(pthread_mutexattr_getpshared,
(const pthread_mutexattr_t *__attr, int *__pshared));
int _EXFUN(pthread_mutexattr_setpshared,
(pthread_mutexattr_t *__attr, int __pshared));
int pthread_mutexattr_init (pthread_mutexattr_t *__attr);
int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr);
int pthread_mutexattr_getpshared (const pthread_mutexattr_t *__attr,
int *__pshared);
int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
int __pshared);
#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
/* Single UNIX Specification 2 Mutex Attributes types */
int _EXFUN(pthread_mutexattr_gettype,
(const pthread_mutexattr_t *__attr, int *__kind));
int _EXFUN(pthread_mutexattr_settype,
(pthread_mutexattr_t *__attr, int __kind));
int pthread_mutexattr_gettype (const pthread_mutexattr_t *__attr, int *__kind);
int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind);
#endif
/* Initializing and Destroying a Mutex, P1003.1c/Draft 10, p. 87 */
int _EXFUN(pthread_mutex_init,
(pthread_mutex_t *__mutex, const pthread_mutexattr_t *__attr));
int _EXFUN(pthread_mutex_destroy, (pthread_mutex_t *__mutex));
int pthread_mutex_init (pthread_mutex_t *__mutex,
const pthread_mutexattr_t *__attr);
int pthread_mutex_destroy (pthread_mutex_t *__mutex);
/* This is used to statically initialize a pthread_mutex_t. Example:
@ -78,38 +76,36 @@ int _EXFUN(pthread_mutex_destroy, (pthread_mutex_t *__mutex));
/* Locking and Unlocking a Mutex, P1003.1c/Draft 10, p. 93
NOTE: P1003.4b/D8 adds pthread_mutex_timedlock(), p. 29 */
int _EXFUN(pthread_mutex_lock, (pthread_mutex_t *__mutex));
int _EXFUN(pthread_mutex_trylock, (pthread_mutex_t *__mutex));
int _EXFUN(pthread_mutex_unlock, (pthread_mutex_t *__mutex));
int pthread_mutex_lock (pthread_mutex_t *__mutex);
int pthread_mutex_trylock (pthread_mutex_t *__mutex);
int pthread_mutex_unlock (pthread_mutex_t *__mutex);
#if defined(_POSIX_TIMEOUTS)
int _EXFUN(pthread_mutex_timedlock,
(pthread_mutex_t *__mutex, const struct timespec *__timeout));
int pthread_mutex_timedlock (pthread_mutex_t *__mutex,
const struct timespec *__timeout);
#endif /* _POSIX_TIMEOUTS */
/* Condition Variable Initialization Attributes, P1003.1c/Draft 10, p. 96 */
int _EXFUN(pthread_condattr_init, (pthread_condattr_t *__attr));
int _EXFUN(pthread_condattr_destroy, (pthread_condattr_t *__attr));
int _EXFUN(pthread_condattr_getclock,
(const pthread_condattr_t *__restrict __attr,
clockid_t *__restrict __clock_id));
int _EXFUN(pthread_condattr_setclock,
(pthread_condattr_t *__attr, clockid_t __clock_id));
int _EXFUN(pthread_condattr_getpshared,
(const pthread_condattr_t *__attr, int *__pshared));
int _EXFUN(pthread_condattr_setpshared,
(pthread_condattr_t *__attr, int __pshared));
int pthread_condattr_init (pthread_condattr_t *__attr);
int pthread_condattr_destroy (pthread_condattr_t *__attr);
int pthread_condattr_getclock (const pthread_condattr_t *__restrict __attr,
clockid_t *__restrict __clock_id);
int pthread_condattr_setclock (pthread_condattr_t *__attr,
clockid_t __clock_id);
int pthread_condattr_getpshared (const pthread_condattr_t *__attr,
int *__pshared);
int pthread_condattr_setpshared (pthread_condattr_t *__attr, int __pshared);
/* Initializing and Destroying a Condition Variable, P1003.1c/Draft 10, p. 87 */
int _EXFUN(pthread_cond_init,
(pthread_cond_t *__cond, const pthread_condattr_t *__attr));
int _EXFUN(pthread_cond_destroy, (pthread_cond_t *__mutex));
int pthread_cond_init (pthread_cond_t *__cond,
const pthread_condattr_t *__attr);
int pthread_cond_destroy (pthread_cond_t *__mutex);
/* This is used to statically initialize a pthread_cond_t. Example:
@ -120,53 +116,50 @@ int _EXFUN(pthread_cond_destroy, (pthread_cond_t *__mutex));
/* Broadcasting and Signaling a Condition, P1003.1c/Draft 10, p. 101 */
int _EXFUN(pthread_cond_signal, (pthread_cond_t *__cond));
int _EXFUN(pthread_cond_broadcast, (pthread_cond_t *__cond));
int pthread_cond_signal (pthread_cond_t *__cond);
int pthread_cond_broadcast (pthread_cond_t *__cond);
/* Waiting on a Condition, P1003.1c/Draft 10, p. 105 */
int _EXFUN(pthread_cond_wait,
(pthread_cond_t *__cond, pthread_mutex_t *__mutex));
int pthread_cond_wait (pthread_cond_t *__cond, pthread_mutex_t *__mutex);
int _EXFUN(pthread_cond_timedwait,
(pthread_cond_t *__cond, pthread_mutex_t *__mutex,
const struct timespec *__abstime));
int pthread_cond_timedwait (pthread_cond_t *__cond,
pthread_mutex_t *__mutex,
const struct timespec *__abstime);
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
/* Thread Creation Scheduling Attributes, P1003.1c/Draft 10, p. 120 */
int _EXFUN(pthread_attr_setscope,
(pthread_attr_t *__attr, int __contentionscope));
int _EXFUN(pthread_attr_getscope,
(const pthread_attr_t *__attr, int *__contentionscope));
int _EXFUN(pthread_attr_setinheritsched,
(pthread_attr_t *__attr, int __inheritsched));
int _EXFUN(pthread_attr_getinheritsched,
(const pthread_attr_t *__attr, int *__inheritsched));
int _EXFUN(pthread_attr_setschedpolicy,
(pthread_attr_t *__attr, int __policy));
int _EXFUN(pthread_attr_getschedpolicy,
(const pthread_attr_t *__attr, int *__policy));
int pthread_attr_setscope (pthread_attr_t *__attr, int __contentionscope);
int pthread_attr_getscope (const pthread_attr_t *__attr,
int *__contentionscope);
int pthread_attr_setinheritsched (pthread_attr_t *__attr,
int __inheritsched);
int pthread_attr_getinheritsched (const pthread_attr_t *__attr,
int *__inheritsched);
int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy);
int pthread_attr_getschedpolicy (const pthread_attr_t *__attr,
int *__policy);
#endif /* defined(_POSIX_THREAD_PRIORITY_SCHEDULING) */
int _EXFUN(pthread_attr_setschedparam,
(pthread_attr_t *__attr, const struct sched_param *__param));
int _EXFUN(pthread_attr_getschedparam,
(const pthread_attr_t *__attr, struct sched_param *__param));
int pthread_attr_setschedparam (pthread_attr_t *__attr,
const struct sched_param *__param);
int pthread_attr_getschedparam (const pthread_attr_t *__attr,
struct sched_param *__param);
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
/* Dynamic Thread Scheduling Parameters Access, P1003.1c/Draft 10, p. 124 */
int _EXFUN(pthread_getschedparam,
(pthread_t __pthread, int *__policy, struct sched_param *__param));
int _EXFUN(pthread_setschedparam,
(pthread_t __pthread, int __policy, struct sched_param *__param));
int pthread_getschedparam (pthread_t __pthread, int *__policy,
struct sched_param *__param);
int pthread_setschedparam (pthread_t __pthread, int __policy,
struct sched_param *__param);
/* Set Scheduling Priority of a Thread */
int _EXFUN(pthread_setschedprio, (pthread_t thread, int prio));
int pthread_setschedprio (pthread_t thread, int prio);
#endif /* defined(_POSIX_THREAD_PRIORITY_SCHEDULING) */
@ -180,14 +173,14 @@ int pthread_setname_np(pthread_t, const char *) __nonnull((2));
/* Mutex Initialization Scheduling Attributes, P1003.1c/Draft 10, p. 128 */
int _EXFUN(pthread_mutexattr_setprotocol,
(pthread_mutexattr_t *__attr, int __protocol));
int _EXFUN(pthread_mutexattr_getprotocol,
(const pthread_mutexattr_t *__attr, int *__protocol));
int _EXFUN(pthread_mutexattr_setprioceiling,
(pthread_mutexattr_t *__attr, int __prioceiling));
int _EXFUN(pthread_mutexattr_getprioceiling,
(const pthread_mutexattr_t *__attr, int *__prioceiling));
int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,
int __protocol);
int pthread_mutexattr_getprotocol (const pthread_mutexattr_t *__attr,
int *__protocol);
int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
int __prioceiling);
int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t *__attr,
int *__prioceiling);
#endif /* _POSIX_THREAD_PRIO_INHERIT || _POSIX_THREAD_PRIO_PROTECT */
@ -195,37 +188,33 @@ int _EXFUN(pthread_mutexattr_getprioceiling,
/* Change the Priority Ceiling of a Mutex, P1003.1c/Draft 10, p. 131 */
int _EXFUN(pthread_mutex_setprioceiling,
(pthread_mutex_t *__mutex, int __prioceiling, int *__old_ceiling));
int _EXFUN(pthread_mutex_getprioceiling,
(pthread_mutex_t *__mutex, int *__prioceiling));
int pthread_mutex_setprioceiling (pthread_mutex_t *__mutex,
int __prioceiling, int *__old_ceiling);
int pthread_mutex_getprioceiling (pthread_mutex_t *__mutex,
int *__prioceiling);
#endif /* _POSIX_THREAD_PRIO_PROTECT */
/* Thread Creation Attributes, P1003.1c/Draft 10, p, 140 */
int _EXFUN(pthread_attr_init, (pthread_attr_t *__attr));
int _EXFUN(pthread_attr_destroy, (pthread_attr_t *__attr));
int _EXFUN(pthread_attr_setstack, (pthread_attr_t *attr,
void *__stackaddr, size_t __stacksize));
int _EXFUN(pthread_attr_getstack, (const pthread_attr_t *attr,
void **__stackaddr, size_t *__stacksize));
int _EXFUN(pthread_attr_getstacksize,
(const pthread_attr_t *__attr, size_t *__stacksize));
int _EXFUN(pthread_attr_setstacksize,
(pthread_attr_t *__attr, size_t __stacksize));
int _EXFUN(pthread_attr_getstackaddr,
(const pthread_attr_t *__attr, void **__stackaddr));
int _EXFUN(pthread_attr_setstackaddr,
(pthread_attr_t *__attr, void *__stackaddr));
int _EXFUN(pthread_attr_getdetachstate,
(const pthread_attr_t *__attr, int *__detachstate));
int _EXFUN(pthread_attr_setdetachstate,
(pthread_attr_t *__attr, int __detachstate));
int _EXFUN(pthread_attr_getguardsize,
(const pthread_attr_t *__attr, size_t *__guardsize));
int _EXFUN(pthread_attr_setguardsize,
(pthread_attr_t *__attr, size_t __guardsize));
int pthread_attr_init (pthread_attr_t *__attr);
int pthread_attr_destroy (pthread_attr_t *__attr);
int pthread_attr_setstack (pthread_attr_t *attr,
void *__stackaddr, size_t __stacksize);
int pthread_attr_getstack (const pthread_attr_t *attr,
void **__stackaddr, size_t *__stacksize);
int pthread_attr_getstacksize (const pthread_attr_t *__attr,
size_t *__stacksize);
int pthread_attr_setstacksize (pthread_attr_t *__attr, size_t __stacksize);
int pthread_attr_getstackaddr (const pthread_attr_t *__attr,
void **__stackaddr);
int pthread_attr_setstackaddr (pthread_attr_t *__attr, void *__stackaddr);
int pthread_attr_getdetachstate (const pthread_attr_t *__attr,
int *__detachstate);
int pthread_attr_setdetachstate (pthread_attr_t *__attr, int __detachstate);
int pthread_attr_getguardsize (const pthread_attr_t *__attr,
size_t *__guardsize);
int pthread_attr_setguardsize (pthread_attr_t *__attr, size_t __guardsize);
/* POSIX thread APIs beyond the POSIX standard but provided
* in GNU/Linux. They may be provided by other OSes for
@ -233,59 +222,55 @@ int _EXFUN(pthread_attr_setguardsize,
*/
#if __GNU_VISIBLE
#if defined(__rtems__)
int _EXFUN(pthread_attr_setaffinity_np,
(pthread_attr_t *__attr, size_t __cpusetsize,
const cpu_set_t *__cpuset));
int _EXFUN(pthread_attr_getaffinity_np,
(const pthread_attr_t *__attr, size_t __cpusetsize,
cpu_set_t *__cpuset));
int _EXFUN(pthread_setaffinity_np,
(pthread_t __id, size_t __cpusetsize, const cpu_set_t *__cpuset));
int _EXFUN(pthread_getaffinity_np,
(const pthread_t __id, size_t __cpusetsize, cpu_set_t *__cpuset));
int _EXFUN(pthread_getattr_np,
(pthread_t __id, pthread_attr_t *__attr));
int pthread_attr_setaffinity_np (pthread_attr_t *__attr,
size_t __cpusetsize,
const cpu_set_t *__cpuset);
int pthread_attr_getaffinity_np (const pthread_attr_t *__attr,
size_t __cpusetsize, cpu_set_t *__cpuset);
int pthread_setaffinity_np (pthread_t __id, size_t __cpusetsize,
const cpu_set_t *__cpuset);
int pthread_getaffinity_np (const pthread_t __id, size_t __cpusetsize,
cpu_set_t *__cpuset);
int pthread_getattr_np (pthread_t __id, pthread_attr_t *__attr);
#endif /* defined(__rtems__) */
#endif /* __GNU_VISIBLE */
/* Thread Creation, P1003.1c/Draft 10, p. 144 */
int _EXFUN(pthread_create,
(pthread_t *__pthread, const pthread_attr_t *__attr,
void *(*__start_routine)( void * ), void *__arg));
int pthread_create (pthread_t *__pthread, const pthread_attr_t *__attr,
void *(*__start_routine)(void *), void *__arg);
/* Wait for Thread Termination, P1003.1c/Draft 10, p. 147 */
int _EXFUN(pthread_join, (pthread_t __pthread, void **__value_ptr));
int pthread_join (pthread_t __pthread, void **__value_ptr);
/* Detaching a Thread, P1003.1c/Draft 10, p. 149 */
int _EXFUN(pthread_detach, (pthread_t __pthread));
int pthread_detach (pthread_t __pthread);
/* Thread Termination, p1003.1c/Draft 10, p. 150 */
void _EXFUN(pthread_exit, (void *__value_ptr)) __dead2;
void pthread_exit (void *__value_ptr) __dead2;
/* Get Calling Thread's ID, p1003.1c/Draft 10, p. XXX */
pthread_t _EXFUN(pthread_self, (void));
pthread_t pthread_self (void);
/* Compare Thread IDs, p1003.1c/Draft 10, p. 153 */
int _EXFUN(pthread_equal, (pthread_t __t1, pthread_t __t2));
int pthread_equal (pthread_t __t1, pthread_t __t2);
/* Retrieve ID of a Thread's CPU Time Clock */
int _EXFUN(pthread_getcpuclockid,
(pthread_t thread, clockid_t *clock_id));
int pthread_getcpuclockid (pthread_t thread, clockid_t *clock_id);
/* Get/Set Current Thread's Concurrency Level */
int _EXFUN(pthread_setconcurrency, (int new_level));
int _EXFUN(pthread_getconcurrency, (void));
int pthread_setconcurrency (int new_level);
int pthread_getconcurrency (void);
#if __BSD_VISIBLE || __GNU_VISIBLE
void _EXFUN(pthread_yield, (void));
void pthread_yield (void);
#endif
/* Dynamic Package Initialization */
@ -298,23 +283,22 @@ void _EXFUN(pthread_yield, (void));
#define PTHREAD_ONCE_INIT _PTHREAD_ONCE_INIT
int _EXFUN(pthread_once,
(pthread_once_t *__once_control, void (*__init_routine)(void)));
int pthread_once (pthread_once_t *__once_control,
void (*__init_routine)(void));
/* Thread-Specific Data Key Create, P1003.1c/Draft 10, p. 163 */
int _EXFUN(pthread_key_create,
(pthread_key_t *__key, void (*__destructor)( void * )));
int pthread_key_create (pthread_key_t *__key,
void (*__destructor)(void *));
/* Thread-Specific Data Management, P1003.1c/Draft 10, p. 165 */
int _EXFUN(pthread_setspecific,
(pthread_key_t __key, const void *__value));
void * _EXFUN(pthread_getspecific, (pthread_key_t __key));
int pthread_setspecific (pthread_key_t __key, const void *__value);
void * pthread_getspecific (pthread_key_t __key);
/* Thread-Specific Data Key Deletion, P1003.1c/Draft 10, p. 167 */
int _EXFUN(pthread_key_delete, (pthread_key_t __key));
int pthread_key_delete (pthread_key_t __key);
/* Execution of a Thread, P1003.1c/Draft 10, p. 181 */
@ -326,23 +310,21 @@ int _EXFUN(pthread_key_delete, (pthread_key_t __key));
#define PTHREAD_CANCELED ((void *) -1)
int _EXFUN(pthread_cancel, (pthread_t __pthread));
int pthread_cancel (pthread_t __pthread);
/* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */
int _EXFUN(pthread_setcancelstate, (int __state, int *__oldstate));
int _EXFUN(pthread_setcanceltype, (int __type, int *__oldtype));
void _EXFUN(pthread_testcancel, (void));
int pthread_setcancelstate (int __state, int *__oldstate);
int pthread_setcanceltype (int __type, int *__oldtype);
void pthread_testcancel (void);
/* Establishing Cancellation Handlers, P1003.1c/Draft 10, p. 184 */
void _EXFUN(_pthread_cleanup_push,
(struct _pthread_cleanup_context *_context,
void (*_routine)(void *), void *_arg));
void _pthread_cleanup_push (struct _pthread_cleanup_context *_context,
void (*_routine)(void *), void *_arg);
void _EXFUN(_pthread_cleanup_pop,
(struct _pthread_cleanup_context *_context,
int _execute));
void _pthread_cleanup_pop (struct _pthread_cleanup_context *_context,
int _execute);
/* It is intentional to open and close the scope in two different macros */
#define pthread_cleanup_push(_routine, _arg) \
@ -355,13 +337,11 @@ void _EXFUN(_pthread_cleanup_pop,
} while (0)
#if __GNU_VISIBLE
void _EXFUN(_pthread_cleanup_push_defer,
(struct _pthread_cleanup_context *_context,
void (*_routine)(void *), void *_arg));
void _pthread_cleanup_push_defer (struct _pthread_cleanup_context *_context,
void (*_routine)(void *), void *_arg);
void _EXFUN(_pthread_cleanup_pop_restore,
(struct _pthread_cleanup_context *_context,
int _execute));
void _pthread_cleanup_pop_restore (struct _pthread_cleanup_context *_context,
int _execute);
/* It is intentional to open and close the scope in two different macros */
#define pthread_cleanup_push_defer_np(_routine, _arg) \
@ -378,8 +358,7 @@ void _EXFUN(_pthread_cleanup_pop_restore,
/* Accessing a Thread CPU-time Clock, P1003.4b/D8, p. 58 */
int _EXFUN(pthread_getcpuclockid,
(pthread_t __pthread_id, clockid_t *__clock_id));
int pthread_getcpuclockid (pthread_t __pthread_id, clockid_t *__clock_id);
#endif /* defined(_POSIX_THREAD_CPUTIME) */
@ -388,31 +367,30 @@ int _EXFUN(pthread_getcpuclockid,
#if defined(_POSIX_BARRIERS)
int _EXFUN(pthread_barrierattr_init, (pthread_barrierattr_t *__attr));
int _EXFUN(pthread_barrierattr_destroy, (pthread_barrierattr_t *__attr));
int _EXFUN(pthread_barrierattr_getpshared,
(const pthread_barrierattr_t *__attr, int *__pshared));
int _EXFUN(pthread_barrierattr_setpshared,
(pthread_barrierattr_t *__attr, int __pshared));
int pthread_barrierattr_init (pthread_barrierattr_t *__attr);
int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr);
int pthread_barrierattr_getpshared (const pthread_barrierattr_t *__attr,
int *__pshared);
int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
int __pshared);
#define PTHREAD_BARRIER_SERIAL_THREAD -1
int _EXFUN(pthread_barrier_init,
(pthread_barrier_t *__barrier,
const pthread_barrierattr_t *__attr, unsigned __count));
int _EXFUN(pthread_barrier_destroy, (pthread_barrier_t *__barrier));
int _EXFUN(pthread_barrier_wait,(pthread_barrier_t *__barrier));
int pthread_barrier_init (pthread_barrier_t *__barrier,
const pthread_barrierattr_t *__attr,
unsigned __count);
int pthread_barrier_destroy (pthread_barrier_t *__barrier);
int pthread_barrier_wait (pthread_barrier_t *__barrier);
#endif /* defined(_POSIX_BARRIERS) */
#if defined(_POSIX_SPIN_LOCKS)
int _EXFUN(pthread_spin_init,
(pthread_spinlock_t *__spinlock, int __pshared));
int _EXFUN(pthread_spin_destroy, (pthread_spinlock_t *__spinlock));
int _EXFUN(pthread_spin_lock, (pthread_spinlock_t *__spinlock));
int _EXFUN(pthread_spin_trylock, (pthread_spinlock_t *__spinlock));
int _EXFUN(pthread_spin_unlock, (pthread_spinlock_t *__spinlock));
int pthread_spin_init (pthread_spinlock_t *__spinlock, int __pshared);
int pthread_spin_destroy (pthread_spinlock_t *__spinlock);
int pthread_spin_lock (pthread_spinlock_t *__spinlock);
int pthread_spin_trylock (pthread_spinlock_t *__spinlock);
int pthread_spin_unlock (pthread_spinlock_t *__spinlock);
#endif /* defined(_POSIX_SPIN_LOCKS) */
@ -425,25 +403,25 @@ int _EXFUN(pthread_spin_unlock, (pthread_spinlock_t *__spinlock));
#define PTHREAD_RWLOCK_INITIALIZER _PTHREAD_RWLOCK_INITIALIZER
int _EXFUN(pthread_rwlockattr_init, (pthread_rwlockattr_t *__attr));
int _EXFUN(pthread_rwlockattr_destroy, (pthread_rwlockattr_t *__attr));
int _EXFUN(pthread_rwlockattr_getpshared,
(const pthread_rwlockattr_t *__attr, int *__pshared));
int _EXFUN(pthread_rwlockattr_setpshared,
(pthread_rwlockattr_t *__attr, int __pshared));
int _EXFUN(pthread_rwlock_init,
(pthread_rwlock_t *__rwlock, const pthread_rwlockattr_t *__attr));
int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedrdlock,
(pthread_rwlock_t *__rwlock, const struct timespec *__abstime));
int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedwrlock,
(pthread_rwlock_t *__rwlock, const struct timespec *__abstime));
int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr);
int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr);
int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t *__attr,
int *__pshared);
int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr,
int __pshared);
int pthread_rwlock_init (pthread_rwlock_t *__rwlock,
const pthread_rwlockattr_t *__attr);
int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock);
int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock);
int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock);
int pthread_rwlock_timedrdlock (pthread_rwlock_t *__rwlock,
const struct timespec *__abstime);
int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock);
int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock);
int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock);
int pthread_rwlock_timedwrlock (pthread_rwlock_t *__rwlock,
const struct timespec *__abstime);
#endif /* defined(_POSIX_READER_WRITER_LOCKS) */

102
newlib/libc/include/rpc/xdr.h

@ -292,51 +292,51 @@ struct xdr_discrim
/*
* These are the "generic" xdr routines.
*/
extern bool_t _EXFUN (xdr_void, (void));
extern bool_t _EXFUN (xdr_short, (XDR *, short *));
extern bool_t _EXFUN (xdr_u_short, (XDR *, u_short *));
extern bool_t _EXFUN (xdr_int, (XDR *, int *));
extern bool_t _EXFUN (xdr_u_int, (XDR *, u_int *));
extern bool_t _EXFUN (xdr_long, (XDR *, long *));
extern bool_t _EXFUN (xdr_u_long, (XDR *, u_long *));
extern bool_t _EXFUN (xdr_int8_t, (XDR *, int8_t *));
extern bool_t _EXFUN (xdr_uint8_t, (XDR *, uint8_t *));
extern bool_t _EXFUN (xdr_u_int8_t, (XDR *, u_int8_t *));
extern bool_t _EXFUN (xdr_int16_t, (XDR *, int16_t *));
extern bool_t _EXFUN (xdr_uint16_t, (XDR *, uint16_t *));
extern bool_t _EXFUN (xdr_u_int16_t, (XDR *, u_int16_t *));
extern bool_t _EXFUN (xdr_int32_t, (XDR *, int32_t *));
extern bool_t _EXFUN (xdr_uint32_t, (XDR *, uint32_t *));
extern bool_t _EXFUN (xdr_u_int32_t, (XDR *, u_int32_t *));
extern bool_t xdr_void (void);
extern bool_t xdr_short (XDR *, short *);
extern bool_t xdr_u_short (XDR *, u_short *);
extern bool_t xdr_int (XDR *, int *);
extern bool_t xdr_u_int (XDR *, u_int *);
extern bool_t xdr_long (XDR *, long *);
extern bool_t xdr_u_long (XDR *, u_long *);
extern bool_t xdr_int8_t (XDR *, int8_t *);
extern bool_t xdr_uint8_t (XDR *, uint8_t *);
extern bool_t xdr_u_int8_t (XDR *, u_int8_t *);
extern bool_t xdr_int16_t (XDR *, int16_t *);
extern bool_t xdr_uint16_t (XDR *, uint16_t *);
extern bool_t xdr_u_int16_t (XDR *, u_int16_t *);
extern bool_t xdr_int32_t (XDR *, int32_t *);
extern bool_t xdr_uint32_t (XDR *, uint32_t *);
extern bool_t xdr_u_int32_t (XDR *, u_int32_t *);
#if defined(___int64_t_defined)
extern bool_t _EXFUN (xdr_int64_t, (XDR *, int64_t *));
extern bool_t _EXFUN (xdr_uint64_t, (XDR *, uint64_t *));
extern bool_t _EXFUN (xdr_u_int64_t, (XDR *, u_int64_t *));
extern bool_t xdr_int64_t (XDR *, int64_t *);
extern bool_t xdr_uint64_t (XDR *, uint64_t *);
extern bool_t xdr_u_int64_t (XDR *, u_int64_t *);
#endif /* ___int64_t_defined */
extern bool_t _EXFUN (xdr_bool, (XDR *, bool_t *));
extern bool_t _EXFUN (xdr_enum, (XDR *, enum_t *));
extern bool_t _EXFUN (xdr_array, (XDR *, char **, u_int *, u_int, u_int, xdrproc_t));
extern bool_t _EXFUN (xdr_bytes, (XDR *, char **, u_int *, u_int));
extern bool_t _EXFUN (xdr_opaque, (XDR *, char *, u_int));
extern bool_t _EXFUN (xdr_string, (XDR *, char **, u_int));
extern bool_t _EXFUN (xdr_union, (XDR *, enum_t *, char *,
const struct xdr_discrim *, xdrproc_t));
extern bool_t _EXFUN (xdr_char, (XDR *, char *));
extern bool_t _EXFUN (xdr_u_char, (XDR *, u_char *));
extern bool_t _EXFUN (xdr_vector, (XDR *, char *, u_int, u_int, xdrproc_t));
extern bool_t _EXFUN (xdr_float, (XDR *, float *));
extern bool_t _EXFUN (xdr_double, (XDR *, double *));
/* extern bool_t _EXFUN (xdr_quadruple, (XDR *, long double *)); */
extern bool_t _EXFUN (xdr_reference, (XDR *, char **, u_int, xdrproc_t));
extern bool_t _EXFUN (xdr_pointer, (XDR *, char **, u_int, xdrproc_t));
extern bool_t _EXFUN (xdr_wrapstring, (XDR *, char **));
extern bool_t xdr_bool (XDR *, bool_t *);
extern bool_t xdr_enum (XDR *, enum_t *);
extern bool_t xdr_array (XDR *, char **, u_int *, u_int, u_int, xdrproc_t);
extern bool_t xdr_bytes (XDR *, char **, u_int *, u_int);
extern bool_t xdr_opaque (XDR *, char *, u_int);
extern bool_t xdr_string (XDR *, char **, u_int);
extern bool_t xdr_union (XDR *, enum_t *, char *,
const struct xdr_discrim *, xdrproc_t);
extern bool_t xdr_char (XDR *, char *);
extern bool_t xdr_u_char (XDR *, u_char *);
extern bool_t xdr_vector (XDR *, char *, u_int, u_int, xdrproc_t);
extern bool_t xdr_float (XDR *, float *);
extern bool_t xdr_double (XDR *, double *);
/* extern bool_t xdr_quadruple (XDR *, long double *); */
extern bool_t xdr_reference (XDR *, char **, u_int, xdrproc_t);
extern bool_t xdr_pointer (XDR *, char **, u_int, xdrproc_t);
extern bool_t xdr_wrapstring (XDR *, char **);
#if defined(___int64_t_defined)
extern bool_t _EXFUN (xdr_hyper, (XDR *, quad_t *));
extern bool_t _EXFUN (xdr_u_hyper, (XDR *, u_quad_t *));
extern bool_t _EXFUN (xdr_longlong_t, (XDR *, quad_t *));
extern bool_t _EXFUN (xdr_u_longlong_t, (XDR *, u_quad_t *));
extern bool_t xdr_hyper (XDR *, quad_t *);
extern bool_t xdr_u_hyper (XDR *, u_quad_t *);
extern bool_t xdr_longlong_t (XDR *, quad_t *);
extern bool_t xdr_u_longlong_t (XDR *, u_quad_t *);
#endif /* ___int64_t_defined */
extern u_long _EXFUN (xdr_sizeof, (xdrproc_t, void *));
extern u_long xdr_sizeof (xdrproc_t, void *);
/*
* Common opaque bytes objects used by many rpc protocols;
@ -349,7 +349,7 @@ struct netobj
char *n_bytes;
};
typedef struct netobj netobj;
extern bool_t _EXFUN (xdr_netobj, (XDR *, struct netobj *));
extern bool_t xdr_netobj (XDR *, struct netobj *);
/*
* These are the public routines for the various implementations of
@ -357,30 +357,30 @@ extern bool_t _EXFUN (xdr_netobj, (XDR *, struct netobj *));
*/
/* XDR using memory buffers */
extern void _EXFUN (xdrmem_create, (XDR *, char *, u_int, enum xdr_op));
extern void xdrmem_create (XDR *, char *, u_int, enum xdr_op);
/* XDR using stdio library */
#if defined(_STDIO_H_)
extern void _EXFUN (xdrstdio_create, (XDR *, FILE *, enum xdr_op));
extern void xdrstdio_create (XDR *, FILE *, enum xdr_op);
#endif
/* XDR pseudo records for tcp */
extern void _EXFUN (xdrrec_create, (XDR *, u_int, u_int, void *,
extern void xdrrec_create (XDR *, u_int, u_int, void *,
int (*) (void *, void *, int),
int (*) (void *, void *, int)));
int (*) (void *, void *, int));
/* make end of xdr record */
extern bool_t _EXFUN (xdrrec_endofrecord, (XDR *, bool_t));
extern bool_t xdrrec_endofrecord (XDR *, bool_t);
/* move to beginning of next record */
extern bool_t _EXFUN (xdrrec_skiprecord, (XDR *));
extern bool_t xdrrec_skiprecord (XDR *);
/* true if no more input */
extern bool_t _EXFUN (xdrrec_eof, (XDR *));
extern u_int _EXFUN (xdrrec_readbytes, (XDR *, caddr_t, u_int));
extern bool_t xdrrec_eof (XDR *);
extern u_int xdrrec_readbytes (XDR *, caddr_t, u_int);
/* free memory buffers for xdr */
extern void _EXFUN (xdr_free, (xdrproc_t, void *));
extern void xdr_free (xdrproc_t, void *);
#ifdef __cplusplus
}

6
newlib/libc/include/setjmp.h

@ -12,12 +12,12 @@
_BEGIN_STD_C
#ifdef __GNUC__
void _EXFUN(longjmp,(jmp_buf __jmpb, int __retval))
void longjmp (jmp_buf __jmpb, int __retval)
__attribute__ ((__noreturn__));
#else
void _EXFUN(longjmp,(jmp_buf __jmpb, int __retval));
void longjmp (jmp_buf __jmpb, int __retval);
#endif
int _EXFUN(setjmp,(jmp_buf __jmpb));
int setjmp (jmp_buf __jmpb);
_END_STD_C

10
newlib/libc/include/signal.h

@ -21,13 +21,13 @@ typedef _sig_func_ptr sighandler_t; /* glibc naming */
struct _reent;
_sig_func_ptr _EXFUN(_signal_r, (struct _reent *, int, _sig_func_ptr));
int _EXFUN(_raise_r, (struct _reent *, int));
_sig_func_ptr _signal_r (struct _reent *, int, _sig_func_ptr);
int _raise_r (struct _reent *, int);
#ifndef _REENT_ONLY
_sig_func_ptr _EXFUN(signal, (int, _sig_func_ptr));
int _EXFUN(raise, (int));
void _EXFUN(psignal, (int, const char *));
_sig_func_ptr signal (int, _sig_func_ptr);
int raise (int);
void psignal (int, const char *);
#endif
_END_STD_C

81
newlib/libc/include/spawn.h

@ -53,67 +53,52 @@ _BEGIN_STD_C
* XXX both arrays should be __restrict, but this does not work when GCC
* is invoked with -std=c99.
*/
int _EXFUN(posix_spawn, (pid_t * __restrict, const char * __restrict,
int posix_spawn (pid_t * __restrict, const char * __restrict,
const posix_spawn_file_actions_t *, const posix_spawnattr_t * __restrict,
char * const [], char * const [])
);
int _EXFUN(posix_spawnp, (pid_t * __restrict, const char * __restrict,
char * const [], char * const []);
int posix_spawnp (pid_t * __restrict, const char * __restrict,
const posix_spawn_file_actions_t *, const posix_spawnattr_t * __restrict,
char * const [], char * const [])
);
char * const [], char * const []);
/*
* File descriptor actions
*/
int _EXFUN(posix_spawn_file_actions_init, (posix_spawn_file_actions_t *));
int _EXFUN(posix_spawn_file_actions_destroy, (posix_spawn_file_actions_t *));
int posix_spawn_file_actions_init (posix_spawn_file_actions_t *);
int posix_spawn_file_actions_destroy (posix_spawn_file_actions_t *);
int _EXFUN(posix_spawn_file_actions_addopen,
(posix_spawn_file_actions_t * __restrict, int, const char * __restrict, int, mode_t)
);
int _EXFUN(posix_spawn_file_actions_adddup2,
(posix_spawn_file_actions_t *, int, int)
);
int _EXFUN(posix_spawn_file_actions_addclose,
(posix_spawn_file_actions_t *, int)
);
int posix_spawn_file_actions_addopen (posix_spawn_file_actions_t * __restrict,
int, const char * __restrict, int, mode_t);
int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *, int, int);
int posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *, int);
/*
* Spawn attributes
*/
int _EXFUN(posix_spawnattr_init, (posix_spawnattr_t *));
int _EXFUN(posix_spawnattr_destroy, (posix_spawnattr_t *));
int posix_spawnattr_init (posix_spawnattr_t *);
int posix_spawnattr_destroy (posix_spawnattr_t *);
int _EXFUN(posix_spawnattr_getflags,
(const posix_spawnattr_t * __restrict, short * __restrict)
);
int _EXFUN(posix_spawnattr_getpgroup,
(const posix_spawnattr_t * __restrict, pid_t * __restrict));
int _EXFUN(posix_spawnattr_getschedparam,
(const posix_spawnattr_t * __restrict, struct sched_param * __restrict)
);
int _EXFUN(posix_spawnattr_getschedpolicy,
(const posix_spawnattr_t * __restrict, int * __restrict)
);
int _EXFUN(posix_spawnattr_getsigdefault,
(const posix_spawnattr_t * __restrict, sigset_t * __restrict)
);
int _EXFUN(posix_spawnattr_getsigmask,
(const posix_spawnattr_t * __restrict, sigset_t * __restrict)
);
int posix_spawnattr_getflags (const posix_spawnattr_t * __restrict,
short * __restrict);
int posix_spawnattr_getpgroup (const posix_spawnattr_t * __restrict,
pid_t * __restrict);
int posix_spawnattr_getschedparam (const posix_spawnattr_t * __restrict,
struct sched_param * __restrict);
int posix_spawnattr_getschedpolicy (const posix_spawnattr_t * __restrict,
int * __restrict);
int posix_spawnattr_getsigdefault (const posix_spawnattr_t * __restrict,
sigset_t * __restrict);
int posix_spawnattr_getsigmask (const posix_spawnattr_t * __restrict,
sigset_t * __restrict);
int _EXFUN(posix_spawnattr_setflags, (posix_spawnattr_t *, short));
int _EXFUN(posix_spawnattr_setpgroup, (posix_spawnattr_t *, pid_t));
int _EXFUN(posix_spawnattr_setschedparam,
(posix_spawnattr_t * __restrict, const struct sched_param * __restrict)
);
int _EXFUN(posix_spawnattr_setschedpolicy, (posix_spawnattr_t *, int));
int _EXFUN(posix_spawnattr_setsigdefault,
(posix_spawnattr_t * __restrict, const sigset_t * __restrict)
);
int _EXFUN(posix_spawnattr_setsigmask,
(posix_spawnattr_t * __restrict, const sigset_t * __restrict)
);
int posix_spawnattr_setflags (posix_spawnattr_t *, short);
int posix_spawnattr_setpgroup (posix_spawnattr_t *, pid_t);
int posix_spawnattr_setschedparam (posix_spawnattr_t * __restrict,
const struct sched_param * __restrict);
int posix_spawnattr_setschedpolicy (posix_spawnattr_t *, int);
int posix_spawnattr_setsigdefault (posix_spawnattr_t * __restrict,
const sigset_t * __restrict);
int posix_spawnattr_setsigmask (posix_spawnattr_t * __restrict,
const sigset_t * __restrict);
_END_STD_C
#endif /* !_SPAWN_H_ */

638
newlib/libc/include/stdio.h

@ -178,155 +178,155 @@ typedef _fpos64_t fpos64_t;
#endif
#if __POSIX_VISIBLE
char * _EXFUN(ctermid, (char *));
char * ctermid (char *);
#endif
#if __XSI_VISIBLE && __XSI_VISIBLE < 600
char * _EXFUN(cuserid, (char *));
char * cuserid (char *);
#endif
FILE * _EXFUN(tmpfile, (void));
char * _EXFUN(tmpnam, (char *));
FILE * tmpfile (void);
char * tmpnam (char *);
#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
char * _EXFUN(tempnam, (const char *, const char *));
#endif
int _EXFUN(fclose, (FILE *));
int _EXFUN(fflush, (FILE *));
FILE * _EXFUN(freopen, (const char *__restrict, const char *__restrict, FILE *__restrict));
void _EXFUN(setbuf, (FILE *__restrict, char *__restrict));
int _EXFUN(setvbuf, (FILE *__restrict, char *__restrict, int, size_t));
int _EXFUN(fprintf, (FILE *__restrict, const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__printf__, 2, 3))));
int _EXFUN(fscanf, (FILE *__restrict, const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
int _EXFUN(printf, (const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__printf__, 1, 2))));
int _EXFUN(scanf, (const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__scanf__, 1, 2))));
int _EXFUN(sscanf, (const char *__restrict, const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
int _EXFUN(vfprintf, (FILE *__restrict, const char *__restrict, __VALIST)
_ATTRIBUTE ((__format__ (__printf__, 2, 0))));
int _EXFUN(vprintf, (const char *, __VALIST)
_ATTRIBUTE ((__format__ (__printf__, 1, 0))));
int _EXFUN(vsprintf, (char *__restrict, const char *__restrict, __VALIST)
_ATTRIBUTE ((__format__ (__printf__, 2, 0))));
int _EXFUN(fgetc, (FILE *));
char * _EXFUN(fgets, (char *__restrict, int, FILE *__restrict));
int _EXFUN(fputc, (int, FILE *));
int _EXFUN(fputs, (const char *__restrict, FILE *__restrict));
int _EXFUN(getc, (FILE *));
int _EXFUN(getchar, (void));
char * _EXFUN(gets, (char *));
int _EXFUN(putc, (int, FILE *));
int _EXFUN(putchar, (int));
int _EXFUN(puts, (const char *));
int _EXFUN(ungetc, (int, FILE *));
size_t _EXFUN(fread, (void *__restrict, size_t _size, size_t _n, FILE *__restrict));
size_t _EXFUN(fwrite, (const void *__restrict , size_t _size, size_t _n, FILE *));
char * tempnam (const char *, const char *);
#endif
int fclose (FILE *);
int fflush (FILE *);
FILE * freopen (const char *__restrict, const char *__restrict, FILE *__restrict);
void setbuf (FILE *__restrict, char *__restrict);
int setvbuf (FILE *__restrict, char *__restrict, int, size_t);
int fprintf (FILE *__restrict, const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__printf__, 2, 3)));
int fscanf (FILE *__restrict, const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__scanf__, 2, 3)));
int printf (const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__printf__, 1, 2)));
int scanf (const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__scanf__, 1, 2)));
int sscanf (const char *__restrict, const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__scanf__, 2, 3)));
int vfprintf (FILE *__restrict, const char *__restrict, __VALIST)
_ATTRIBUTE ((__format__ (__printf__, 2, 0)));
int vprintf (const char *, __VALIST)
_ATTRIBUTE ((__format__ (__printf__, 1, 0)));
int vsprintf (char *__restrict, const char *__restrict, __VALIST)
_ATTRIBUTE ((__format__ (__printf__, 2, 0)));
int fgetc (FILE *);
char * fgets (char *__restrict, int, FILE *__restrict);
int fputc (int, FILE *);
int fputs (const char *__restrict, FILE *__restrict);
int getc (FILE *);
int getchar (void);
char * gets (char *);
int putc (int, FILE *);
int putchar (int);
int puts (const char *);
int ungetc (int, FILE *);
size_t fread (void *__restrict, size_t _size, size_t _n, FILE *__restrict);
size_t fwrite (const void *__restrict , size_t _size, size_t _n, FILE *);
#ifdef _COMPILING_NEWLIB
int _EXFUN(fgetpos, (FILE *, _fpos_t *