Deleted Added
sdiff udiff text old ( 178287 ) new ( 178721 )
full compact
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 178721 2008-05-02 15:25:07Z jhb $
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>

--- 9 unchanged lines hidden (view full) ---

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. */
62
63struct __sFILE;
64typedef struct __sFILE FILE;
65
66#ifndef _STDSTREAM_DECLARED
67__BEGIN_DECLS
68extern FILE *__stdinp;
69extern FILE *__stdoutp;
70extern FILE *__stderrp;
71__END_DECLS
72#define _STDSTREAM_DECLARED
73#endif
74
75/*
76 * The following three definitions are for ANSI C, which took them
77 * from System V, which brilliantly took internal interface macros and
78 * made them official arguments to setvbuf(), without renaming them.
79 * Hence, these ugly _IOxxx names are *supposed* to appear in user code.
80 */
81#define _IOFBF 0 /* setvbuf should set fully buffered */
82#define _IOLBF 1 /* setvbuf should set line buffered */
83#define _IONBF 2 /* setvbuf should set unbuffered */
84
85#define BUFSIZ 1024 /* size of buffer used by setbuf */
86#define EOF (-1)
87

--- 111 unchanged lines hidden (view full) ---

199#endif
200
201#if __POSIX_VISIBLE >= 199506
202int ftrylockfile(FILE *);
203void flockfile(FILE *);
204void funlockfile(FILE *);
205
206/*
207 * See ISO/IEC 9945-1 ANSI/IEEE Std 1003.1 Second Edition 1996-07-12
208 * B.8.2.7 for the rationale behind the *_unlocked() functions.
209 */
210int getc_unlocked(FILE *);
211int getchar_unlocked(void);
212int putc_unlocked(int, FILE *);
213int putchar_unlocked(int);
214#endif
215#if __BSD_VISIBLE
216void clearerr_unlocked(FILE *);

--- 66 unchanged lines hidden (view full) ---

283void *mmap(void *, size_t, int, int, int, __off_t);
284#endif
285#ifndef _TRUNCATE_DECLARED
286#define _TRUNCATE_DECLARED
287int truncate(const char *, __off_t);
288#endif
289#endif /* __BSD_VISIBLE */
290
291#if __BSD_VISIBLE
292int renameat(int, const char *, int, const char *);
293#endif
294__END_DECLS
295#endif /* !_STDIO_H_ */