stdio.h (72394) | stdio.h (72472) |
---|---|
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 72394 2001-02-12 03:31:23Z peter $ | 37 * $FreeBSD: head/include/stdio.h 72472 2001-02-14 05:00:20Z peter $ |
38 */ 39 40#ifndef _STDIO_H_ 41#define _STDIO_H_ 42 43#include <sys/cdefs.h> 44#include <machine/ansi.h> 45 --- 80 unchanged lines hidden (view full) --- 126 127 /* Unix stdio files get aligned to block boundaries on fseek() */ 128 int _blksize; /* stat.st_blksize (may be != _bf._size) */ 129 fpos_t _offset; /* current lseek offset (see WARNING) */ 130 struct __file_lock *_lock; /* used for MT-safety */ 131} FILE; 132 133__BEGIN_DECLS | 38 */ 39 40#ifndef _STDIO_H_ 41#define _STDIO_H_ 42 43#include <sys/cdefs.h> 44#include <machine/ansi.h> 45 --- 80 unchanged lines hidden (view full) --- 126 127 /* Unix stdio files get aligned to block boundaries on fseek() */ 128 int _blksize; /* stat.st_blksize (may be != _bf._size) */ 129 fpos_t _offset; /* current lseek offset (see WARNING) */ 130 struct __file_lock *_lock; /* used for MT-safety */ 131} FILE; 132 133__BEGIN_DECLS |
134extern FILE __sF[]; | 134extern FILE __stdin; 135extern FILE __stdout; 136extern FILE __stderr; |
135__END_DECLS 136 137#define __SLBF 0x0001 /* line buffered */ 138#define __SNBF 0x0002 /* unbuffered */ 139#define __SRD 0x0004 /* OK to read */ 140#define __SWR 0x0008 /* OK to write */ 141 /* RD and WR are never simultaneously asserted */ 142#define __SRW 0x0010 /* open for reading & writing */ --- 46 unchanged lines hidden (view full) --- 189#endif 190#ifndef SEEK_CUR 191#define SEEK_CUR 1 /* set file offset to current plus offset */ 192#endif 193#ifndef SEEK_END 194#define SEEK_END 2 /* set file offset to EOF plus offset */ 195#endif 196 | 137__END_DECLS 138 139#define __SLBF 0x0001 /* line buffered */ 140#define __SNBF 0x0002 /* unbuffered */ 141#define __SRD 0x0004 /* OK to read */ 142#define __SWR 0x0008 /* OK to write */ 143 /* RD and WR are never simultaneously asserted */ 144#define __SRW 0x0010 /* open for reading & writing */ --- 46 unchanged lines hidden (view full) --- 191#endif 192#ifndef SEEK_CUR 193#define SEEK_CUR 1 /* set file offset to current plus offset */ 194#endif 195#ifndef SEEK_END 196#define SEEK_END 2 /* set file offset to EOF plus offset */ 197#endif 198 |
197#define stdin (&__sF[0]) 198#define stdout (&__sF[1]) 199#define stderr (&__sF[2]) | 199#define stdin (&__stdin) 200#define stdout (&__stdout) 201#define stderr (&__stderr) |
200 201/* 202 * Functions defined in ANSI C standard. 203 */ 204__BEGIN_DECLS 205void clearerr __P((FILE *)); 206int fclose __P((FILE *)); 207int feof __P((FILE *)); --- 196 unchanged lines hidden --- | 202 203/* 204 * Functions defined in ANSI C standard. 205 */ 206__BEGIN_DECLS 207void clearerr __P((FILE *)); 208int fclose __P((FILE *)); 209int feof __P((FILE *)); --- 196 unchanged lines hidden --- |