version 1.98, 2019/12/13 20:25:16 |
version 1.99, 2020/03/20 01:08:42 |
|
|
#include <sys/featuretest.h> |
#include <sys/featuretest.h> |
#include <sys/ansi.h> |
#include <sys/ansi.h> |
|
|
|
#if (!defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ |
|
!defined(_XOPEN_SOURCE)) || ((_POSIX_C_SOURCE - 0) >= 200809L || \ |
|
defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \ |
|
(__cplusplus - 0) >= 201103L || defined(_NETBSD_SOURCE)) |
|
#define __STDIO_C99_FEATURES |
|
#endif |
|
|
#ifdef _BSD_SIZE_T_ |
#ifdef _BSD_SIZE_T_ |
typedef _BSD_SIZE_T_ size_t; |
typedef _BSD_SIZE_T_ size_t; |
#undef _BSD_SIZE_T_ |
#undef _BSD_SIZE_T_ |
|
|
/* |
/* |
* IEEE Std 1003.1c-95, also adopted by X/Open CAE Spec Issue 5 Version 2 |
* IEEE Std 1003.1c-95, also adopted by X/Open CAE Spec Issue 5 Version 2 |
*/ |
*/ |
#if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ |
#if defined(__STDIO_C99_FEATURES) || (_POSIX_C_SOURCE - 0) >= 199506L || \ |
defined(_REENTRANT) || defined(_NETBSD_SOURCE) |
(_XOPEN_SOURCE - 0) >= 500 || defined(_REENTRANT) |
__BEGIN_DECLS |
__BEGIN_DECLS |
void flockfile(FILE *); |
void flockfile(FILE *); |
int ftrylockfile(FILE *); |
int ftrylockfile(FILE *); |
Line 318 int getchar_unlocked(void); |
|
Line 325 int getchar_unlocked(void); |
|
int putc_unlocked(int, FILE *); |
int putc_unlocked(int, FILE *); |
int putchar_unlocked(int); |
int putchar_unlocked(int); |
__END_DECLS |
__END_DECLS |
#endif /* _POSIX_C_SOURCE >= 1995056 || _XOPEN_SOURCE >= 500 || ... */ |
#endif /* C99 || _POSIX_C_SOURCE >= 1995056 || _XOPEN_SOURCE >= 500 || ... */ |
|
|
/* |
/* |
* Functions defined in POSIX 1003.2 and XPG2 or later. |
* Functions defined in POSIX 1003.2 and XPG2 or later. |
|
|
/* |
/* |
* Functions defined in ISO XPG4.2, ISO C99, POSIX 1003.1-2001 or later. |
* Functions defined in ISO XPG4.2, ISO C99, POSIX 1003.1-2001 or later. |
*/ |
*/ |
#if ((__STDC_VERSION__ - 0) >= 199901L) || \ |
#if defined(__STDIO_C99_FEATURES) || (_POSIX_C_SOURCE - 0) >= 200112L || \ |
((_POSIX_C_SOURCE - 0) >= 200112L) || \ |
|
(defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ |
(defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ |
((_XOPEN_SOURCE - 0) >= 500) || \ |
(_XOPEN_SOURCE - 0) >= 500 |
defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) |
|
__BEGIN_DECLS |
__BEGIN_DECLS |
int snprintf(char * __restrict, size_t, const char * __restrict, ...) |
int snprintf(char * __restrict, size_t, const char * __restrict, ...) |
__printflike(3, 4); |
__printflike(3, 4); |
|
|
* Functions defined in ISO C99. Still put under _NETBSD_SOURCE due to |
* Functions defined in ISO C99. Still put under _NETBSD_SOURCE due to |
* backward compatible. |
* backward compatible. |
*/ |
*/ |
#if defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) |
#if defined(__STDIO_C99_FEATURES) |
__BEGIN_DECLS |
__BEGIN_DECLS |
int vscanf(const char * __restrict, __va_list) |
int vscanf(const char * __restrict, __va_list) |
__scanflike(1, 0); |
__scanflike(1, 0); |
Line 397 int vsscanf(const char * __restrict, co |
|
Line 402 int vsscanf(const char * __restrict, co |
|
__va_list) |
__va_list) |
__scanflike(2, 0); |
__scanflike(2, 0); |
__END_DECLS |
__END_DECLS |
#endif /* _ISOC99_SOURCE || _NETBSD_SOURCE */ |
#endif /* C99 */ |
|
|
/* |
/* |
* Routines that are purely local. |
* Routines that are purely local. |