/************************************************************************************** Copyright (c) 2002 The UbixOS Project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are prohibited. $Id$ **************************************************************************************/ #ifndef _FILE_H #define _FILE_H #include <ubixos/types.h> #define maxFd 32 #define fdAvail 1 #define fdOpen 2 #define fdRead 3 #define fdEof 4 struct fileDescriptorTable { uShort id; uShort status; uShort mode; uShort offset; uShort size; uShort length; uLong start; uChar fileName[22]; uChar buffer[512]; }; extern struct fileDescriptorTable fdTable[maxFd]; int fopen(char *file,int mode); int fclose(int fd); int feof(int fd); int fgetc(int fd); #endif