- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
fsal.h.svn-base
资源名称:lread.rar [点击查看]
上传用户:holyzs
上传日期:2022-06-29
资源大小:2335k
文件大小:1k
源码类别:
编辑器/阅读器
开发平台:
C/C++
- /* File System Abstract Layer */
- #ifndef __FSAL_H__
- #define __FSAL_H__ 1
- #ifdef WIN32
- #include <io.h>
- #include <sys/stat.h>
- #else
- #include <fat.h>
- //directory operations and attributes
- #include <sys/dir.h>
- #endif
- typedef unsigned int fsal_dir_handle_t;
- typedef unsigned int fsal_file_handle_t;
- int fsal_init(void);
- //path name in utf-16
- int fsal_chdir(unsigned short *path);
- fsal_dir_handle_t fsal_diropen(unsigned short *path);
- int fsal_dirclose(fsal_dir_handle_t dir);
- //file name in utf-16
- int fsal_dirnext(fsal_dir_handle_t dir, unsigned short *filename, struct stat *st);
- //file name in utf-16
- fsal_file_handle_t fsal_open(unsigned short *name, char *mode);
- int fsal_close(fsal_file_handle_t fd);
- size_t fsal_read(void *buffer, size_t size, size_t count, fsal_file_handle_t stream);
- size_t fsal_write(void *buffer, size_t size, size_t count, fsal_file_handle_t stream);
- int fsal_seek(fsal_file_handle_t stream, long offset, int origin);
- int fsal_tell(fsal_file_handle_t stream);
- void fsal_rewind(fsal_file_handle_t stream);
- #endif