Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1408 serge 1
/*
2
 * stdio.h - input/output definitions
3
 *
4
 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
5
 * See the copyright notice in the ACK home directory, in the file "Copyright".
6
 */
7
/* $Header$ */
8
 
9
#ifndef _STDIO_H
10
#define	_STDIO_H
11
 
12
/*
13
 * Focus point of all stdio activity.
14
 */
15
typedef struct __iobuf {
16
	int		_count;
17
	int		_fd;
18
	int		_flags;
19
	int		_bufsiz;
20
	unsigned char	*_buf;
21
	unsigned char	*_ptr;
22
} FILE;
23
 
24
#define	_IOFBF		0x000
25
#define	_IOREAD		0x001
26
#define	_IOWRITE	0x002
27
#define	_IONBF		0x004
28
#define	_IOMYBUF	0x008
29
#define	_IOEOF		0x010
30
#define	_IOERR		0x020
31
#define	_IOLBF		0x040
32
#define	_IOREADING	0x080
33
#define	_IOWRITING	0x100
34
#define	_IOAPPEND	0x200
35
#define _IOFIFO		0x400
36
 
37
/* The following definitions are also in . They should not
38
 * conflict.
39
 */
40
#define	SEEK_SET	0
41
#define	SEEK_CUR	1
42
#define	SEEK_END	2
43
 
44
#define	EOF		(-1)
45
 
46
#endif /* _STDIO_H */