5 Copyright © 1995-2009, The AROS Development Team. All rights reserved.
8 Desc: file descriptors handling internals - header file
14 /* file control block - one per file handle */
19 unsigned int opencount
;
21 unsigned char privflags
;
25 #define _FCB_DONTCLOSE_FH 1
27 /* file descriptor structure - one per descriptor */
34 int __register_init_fdarray(fdesc
**fdarray
, int numslots
);
35 fdesc
*__getfdesc(register int fd
);
36 void __setfdesc(register int fd
, fdesc
*fdesc
);
37 int __getfdslot(int wanted_fd
);
38 int __getfirstfd(register int startfd
);
39 int __open(int wanted_fd
, const char *pathname
, int flags
, int mode
);
40 void __updatestdio(void);
41 LONG
__oflags2amode(int flags
);
42 fdesc
*__alloc_fdesc(void);
43 void __free_fdesc(fdesc
*fdesc
);