?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. #ifndef OSFS_H
  2. #define OSFS_H
  3. extern unsigned char errno;
  4. //extern unsigned char syspath[8];
  5.  
  6. typedef unsigned int FILE;
  7.  
  8. #ifndef FILINFO_TYPE
  9. typedef struct {
  10.         unsigned long int       fsize;                  /* File size */
  11.         unsigned int            fdate;                  /* Last modified date */
  12.         unsigned int            ftime;                  /* Last modified time */
  13.         unsigned char           fattrib;                /* Attribute */
  14.         unsigned char           fname[13];              /* Short file name (8.3 format) */
  15.         unsigned char           lfname[64];                     /* Pointer to the LFN buffer */
  16. } FILINFO;
  17. #endif
  18.  
  19. FILE *                  OS_CREATEHANDLE(unsigned char * path, unsigned char flags);
  20. unsigned int    OS_WRITEHANDLE(unsigned char * buffer, FILE * hnd, unsigned int count);
  21. unsigned int    OS_READHANDLE(unsigned char * buffer, FILE * hnd, unsigned int count);
  22. FILE *                  OS_OPENHANDLE(unsigned char * path, unsigned char flags);
  23. unsigned int    OS_CLOSEHANDLE(FILE * hnd);
  24. unsigned long   OS_GETFILESIZE(FILE * hnd);
  25. void                    OS_SEEKHANDLE(FILE * hnd, unsigned long ofset);
  26. unsigned char   OS_GETFILINFO(unsigned char * path, FILINFO*);
  27. unsigned char * OS_GETPATH(unsigned char * path);
  28. unsigned char   OS_OPENDIR(unsigned char * path);
  29. unsigned char   OS_READDIR(FILINFO*);
  30. unsigned char   OS_CHDIR(const unsigned char * path);
  31. unsigned char   OS_CHDRV(unsigned char drive);
  32. unsigned char   OS_MKDIR(unsigned char * path);
  33. unsigned char   OS_DELETE(unsigned char * path);
  34. void                    OS_SETSYSDRV(void);
  35. unsigned char * fs_get_err_str(void);
  36.  
  37. #endif