Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4921 Serge 1
 
2
#define _WRITE  0x0002  /* file opened for writing */
3
#define _UNGET  0x0004  /* ungetc has been done */
4
#define _BIGBUF 0x0008  /* big buffer allocated */
5
#define _EOF    0x0010  /* EOF has occurred */
6
#define _SFERR  0x0020  /* error has occurred on this file */
7
#define _APPEND 0x0080  /* file opened for append */
8
#define _BINARY 0x0040  /* file is binary, skip CRLF processing */
9
#define _TMPFIL 0x0800  /* this is a temporary file */
10
#define _DIRTY  0x1000  /* buffer has been modified */
11
#define _ISTTY  0x2000  /* is console device */
12
#define _DYNAMIC 0x4000 /* FILE is dynamically allocated   */
13
#define _FILEEXT 0x8000 /* lseek with positive offset has been done */
14
#define _COMMIT 0x0001  /* extended flag: commit OS buffers on flush */
15
16
 
17
{
18
    char *name;
19
    unsigned int offset;
20
    int mode;
21
    int lock;
22
    int (*read)(const char *, void *, size_t, size_t, size_t *);
23
    int (*write)(const char*, const void *, size_t, size_t, size_t*);
24
}__io_handle;
25
26
 
27
28
 
29
void __io_free(int handle);
30