stdio.h (178829) | stdio.h (189136) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)stdio.h 8.5 (Berkeley) 4/29/95 | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)stdio.h 8.5 (Berkeley) 4/29/95 |
37 * $FreeBSD: head/include/stdio.h 178829 2008-05-07 15:12:45Z jhb $ | 37 * $FreeBSD: head/include/stdio.h 189136 2009-02-28 06:00:58Z das $ |
38 */ 39 40#ifndef _STDIO_H_ 41#define _STDIO_H_ 42 43#include <sys/cdefs.h> 44#include <sys/_null.h> 45#include <sys/_types.h> 46 47typedef __off_t fpos_t; 48 49#ifndef _SIZE_T_DECLARED 50typedef __size_t size_t; 51#define _SIZE_T_DECLARED 52#endif 53 | 38 */ 39 40#ifndef _STDIO_H_ 41#define _STDIO_H_ 42 43#include <sys/cdefs.h> 44#include <sys/_null.h> 45#include <sys/_types.h> 46 47typedef __off_t fpos_t; 48 49#ifndef _SIZE_T_DECLARED 50typedef __size_t size_t; 51#define _SIZE_T_DECLARED 52#endif 53 |
54#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 55#ifndef _OFF_T_DECLARED 56#define _OFF_T_DECLARED 57typedef __off_t off_t; 58#endif 59#ifndef _SSIZE_T_DECLARED 60#define _SSIZE_T_DECLARED 61typedef __ssize_t ssize_t; 62#endif 63#endif 64 |
|
54#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE 55#ifndef _VA_LIST_DECLARED 56typedef __va_list va_list; 57#define _VA_LIST_DECLARED 58#endif 59#endif 60 61#define _FSTDIO /* Define for new stdio with functions. */ --- 263 unchanged lines hidden (view full) --- 325int getw(FILE *); 326int putw(int, FILE *); 327#endif /* BSD or X/Open before issue 6 */ 328 329#if __XSI_VISIBLE 330char *tempnam(const char *, const char *); 331#endif 332 | 65#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE 66#ifndef _VA_LIST_DECLARED 67typedef __va_list va_list; 68#define _VA_LIST_DECLARED 69#endif 70#endif 71 72#define _FSTDIO /* Define for new stdio with functions. */ --- 263 unchanged lines hidden (view full) --- 336int getw(FILE *); 337int putw(int, FILE *); 338#endif /* BSD or X/Open before issue 6 */ 339 340#if __XSI_VISIBLE 341char *tempnam(const char *, const char *); 342#endif 343 |
344#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 345ssize_t getdelim(char ** __restrict, size_t * __restrict, int, 346 FILE * __restrict); 347 |
|
333/* | 348/* |
349 * Every programmer and his dog wrote functions called getline() 350 * before POSIX.1-2008 came along and decided to usurp the name, so we 351 * don't prototype getline() by default unless one of the following is true: 352 * a) the app has requested it specifically by defining _WITH_GETLINE 353 * b) the app has requested a POSIX.1-2008 environment via _POSIX_C_SOURCE 354 * c) the app defines a GNUism such as _BSD_SOURCE or _GNU_SOURCE 355 */ 356#ifndef _WITH_GETLINE 357#if defined(_BSD_SOURCE) || defined(_GNU_SOURCE) 358#define _WITH_GETLINE 359#elif defined(_POSIX_C_SOURCE) 360#if _POSIX_C_SOURCE > 200809 361#define _WITH_GETLINE 362#endif 363#endif 364#endif 365 366#ifdef _WITH_GETLINE 367ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict); 368#endif 369 370#endif /* __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 */ 371 372/* |
|
334 * Routines that are purely local. 335 */ 336#if __BSD_VISIBLE 337int asprintf(char **, const char *, ...) __printflike(2, 3); 338char *ctermid_r(char *); 339void fcloseall(void); 340char *fgetln(FILE *, size_t *); 341__const char *fmtcheck(const char *, const char *) __format_arg(2); --- 120 unchanged lines hidden --- | 373 * Routines that are purely local. 374 */ 375#if __BSD_VISIBLE 376int asprintf(char **, const char *, ...) __printflike(2, 3); 377char *ctermid_r(char *); 378void fcloseall(void); 379char *fgetln(FILE *, size_t *); 380__const char *fmtcheck(const char *, const char *) __format_arg(2); --- 120 unchanged lines hidden --- |