comparison packages/io/common/current/include/file.h @ 76:435cced73e2f ecos-v1_3_1-release

eCos v1.3.1 merged from eCos master repository on 2000-03-27-23:22:51-BST
author jlarmour
date Tue, 28 Mar 2000 14:10:45 +0000
parents bf00f99aec69
children 6ed91473a1cd
comparison
equal deleted inserted replaced
75:41bf073c0c32 76:435cced73e2f
98 }; 98 };
99 99
100 // File states 100 // File states
101 #define FREAD 0x01 101 #define FREAD 0x01
102 #define FWRITE 0x02 102 #define FWRITE 0x02
103 #define FNONBLOCK 0x10
104 #define FASYNC 0x20
103 #define FALLOC 0x80 // File is "busy", i.e. allocated 105 #define FALLOC 0x80 // File is "busy", i.e. allocated
104 106
105 // Type of "file" 107 // Type of "file"
106 #define DTYPE_VNODE 1 /* file */ 108 #define DTYPE_VNODE 1 /* file */
107 #define DTYPE_SOCKET 2 /* communications endpoint */ 109 #define DTYPE_SOCKET 2 /* communications endpoint */
108 #define DTYPE_PIPE 3 /* pipe */ 110 #define DTYPE_PIPE 3 /* pipe */
109 111
110 externC cyg_bool getfp(int fdes, struct file **fp); 112 externC cyg_bool getfp(int fdes, struct file **fp);
113 externC int falloc(struct file **fp, int *fd);
114 externC void ffree(struct file *fp);
111 115
112 #endif // _CYG_IO_FILE_H_ 116 #endif // _CYG_IO_FILE_H_