h/file.h

06400 /* 06401 * One file structure is allocated 06402 * for each open/creat/pipe call. 06403 * Main use is to hold the read/write 06404 * pointer associated with each open 06405 * file. 06406 */ 06407 struct file 06408 { 06409 char f_flag; 06410 char f_count; /* reference count */ 06411 struct inode *f_inode; /* pointer to inode structure */ 06412 union { 06413 off_t f_offset; /* read/write character pointer */ 06414 struct chan *f_chan; /* mpx channel pointer */ 06415 } f_un; 06416 }; 06417 06418 extern struct file file[]; /* The file table itself */ 06419 06420 /* flags */ 06421 #define FREAD 01 06422 #define FWRITE 02 06423 #define FPIPE 04 06424 #define FMPX 010 06425 #define FMPY 020 06426 #define FMP 030 06427 #define FKERNEL 040 06428 06429 06430 06431 06432 06433 06434 06435 06436 06437 06438 06439 06440 06441 06442 06443 06444 06445 06446 06447 06448 06449