stdio_c99.h (7c478bd9) | stdio_c99.h (ba3594ba) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 6 unchanged lines hidden (view full) --- 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 6 unchanged lines hidden (view full) --- 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* |
23 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 24 * |
|
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27/* 28 * An application should not include this header directly. Instead it 29 * should be included only through the inclusion of other Sun headers. 30 * 31 * The contents of this header is limited to identifiers specified in 32 * the C99 standard and in conflict with the C++ implementation of the 33 * standard header. The C++ standard may adopt the C99 standard at 34 * which point it is expected that the symbols included here will 35 * become part of the C++ std namespace. 36 */ 37 38#ifndef _ISO_STDIO_C99_H 39#define _ISO_STDIO_C99_H 40 | 25 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 26 * Use is subject to license terms. 27 */ 28 29/* 30 * An application should not include this header directly. Instead it 31 * should be included only through the inclusion of other Sun headers. 32 * 33 * The contents of this header is limited to identifiers specified in 34 * the C99 standard and in conflict with the C++ implementation of the 35 * standard header. The C++ standard may adopt the C99 standard at 36 * which point it is expected that the symbols included here will 37 * become part of the C++ std namespace. 38 */ 39 40#ifndef _ISO_STDIO_C99_H 41#define _ISO_STDIO_C99_H 42 |
41#pragma ident "%Z%%M% %I% %E% SMI" 42 | |
43#ifdef __cplusplus 44extern "C" { 45#endif 46 47/* 48 * The following have been added as a result of the ISO/IEC 9899:1999 49 * standard. For a strictly conforming C application, visibility is 50 * contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h). --- 15 unchanged lines hidden (view full) --- 66#define snprintf _snprintf_c89 67#define vsnprintf _vsnprintf_c89 68#define vfscanf _vfscanf_c89 69#define vscanf _vscanf_c89 70#define vsscanf _vsscanf_c89 71#endif 72#endif /* !defined(_LP64) && !defined(_LONGLONG_TYPE) */ 73 | 43#ifdef __cplusplus 44extern "C" { 45#endif 46 47/* 48 * The following have been added as a result of the ISO/IEC 9899:1999 49 * standard. For a strictly conforming C application, visibility is 50 * contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h). --- 15 unchanged lines hidden (view full) --- 66#define snprintf _snprintf_c89 67#define vsnprintf _vsnprintf_c89 68#define vfscanf _vfscanf_c89 69#define vscanf _vscanf_c89 70#define vsscanf _vsscanf_c89 71#endif 72#endif /* !defined(_LP64) && !defined(_LONGLONG_TYPE) */ 73 |
74#ifdef __STDC__ | |
75extern int vfscanf(FILE *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, __va_list); 76extern int vscanf(const char *_RESTRICT_KYWD, __va_list); 77extern int vsscanf(const char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, 78 __va_list); | 74extern int vfscanf(FILE *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, __va_list); 75extern int vscanf(const char *_RESTRICT_KYWD, __va_list); 76extern int vsscanf(const char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, 77 __va_list); |
79#else 80extern int vfscanf(); 81extern int vscanf(); 82extern int vsscanf(); 83#endif /* __STDC__ */ | |
84#endif /* defined(__EXTENSIONS__) ... */ 85#if defined(__EXTENSIONS__) || defined(_STDC_C99) || \ 86 (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \ 87 defined(_XPG5) | 78#endif /* defined(__EXTENSIONS__) ... */ 79#if defined(__EXTENSIONS__) || defined(_STDC_C99) || \ 80 (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \ 81 defined(_XPG5) |
88#ifdef __STDC__ | |
89extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, 90 ...); 91extern int vsnprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, 92 __va_list); | 82extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, 83 ...); 84extern int vsnprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, 85 __va_list); |
93#else 94extern int snprintf(); 95extern int vsnprintf(); 96#endif /* __STDC__ */ | |
97 98#endif /* defined(__EXTENSIONS__) || defined(_STDC_C99) ... */ 99 100#ifdef __cplusplus 101} 102#endif 103 104#endif /* _ISO_STDIO_C99_H */ | 86 87#endif /* defined(__EXTENSIONS__) || defined(_STDC_C99) ... */ 88 89#ifdef __cplusplus 90} 91#endif 92 93#endif /* _ISO_STDIO_C99_H */ |