5 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
8 Desc: file descriptors handling internals - header file
14 /* file control block - one per file handle */
17 BPTR fh
; // if isdir == TRUE: BCPL pointer to struct FileLock
18 // if isdir == FALSE: BCPL pointer to struct FileHandle
20 unsigned int opencount
;
22 unsigned char privflags
;
26 #define _FCB_DONTCLOSE_FH 1
28 /* file descriptor structure - one per descriptor */
36 int __register_init_fdarray(struct aroscbase
*base
);
37 int __getfdslots(void);
38 void __getfdarray(APTR
*arrayptr
, int *slotsptr
);
39 void __setfdarray(APTR array
, int slots
);
40 void __setfdarraybase(struct aroscbase
*base
);
41 fdesc
*__getfdesc(register int fd
);
42 void __setfdesc(register int fd
, fdesc
*fdesc
);
43 int __getfdslot(int wanted_fd
);
44 int __getfirstfd(register int startfd
);
45 int __open(int wanted_fd
, const char *pathname
, int flags
, int mode
);
46 void __updatestdio(void);
47 LONG
__oflags2amode(int flags
);
48 fdesc
*__alloc_fdesc(void);
49 void __free_fdesc(fdesc
*fdesc
);
50 void __close_on_exec_fdescs(void);
52 #endif /* ___FDESC_H */