root / Whitix / branches / hybrid / include / fs / exports.h

Revision 555, 1.9 kB (checked in by mwhitworth, 6 months ago)

Add exports.h

Line 
1/*  This file is part of Whitix.
2 *
3 *  Whitix is free software; you can redistribute it and/or modify
4 *  it under the terms of the GNU General Public License as published by
5 *  the Free Software Foundation; either version 2 of the License, or
6 *  (at your option) any later version.
7 *
8 *  Whitix is distributed in the hope that it will be useful,
9 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 *  GNU General Public License for more details.
12 *
13 *  You should have received a copy of the GNU General Public License
14 *  along with Whitix; if not, write to the Free Software
15 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16 *
17 */
18
19#ifndef VFS_EXPORTS_H
20#define VFS_EXPORTS_H
21
22#include <types.h>
23#include <typedefs.h>
24
25/* System calls. */
26
27int SysOpen(char* fileName, int flags, int perms);
28int SysRead(int fd,BYTE* buffer,DWORD amount);
29int SysWrite(int fd,BYTE* data,DWORD amount);
30int SysClose(int fd);
31int SysFileDup(int fd);
32int SysFileSync(int fd);
33
34int SysCreateDir(char* pathName, int flags);
35int SysChangeDir(char* dirName);
36int SysChangeRoot(char* dirName);
37int SysFileSystemSync();
38int SysGetDirEntries(int fd,void* entries,size_t count);
39int SysSeek(int fd,int distance,int whence);
40int SysRemove(char* pathName);
41
42int SysFileAccess(char* path,int mode);
43int SysRemoveDir(char* path);
44int SysTruncate(int fd,size_t length);
45int SysMove(char* src,char* dest);
46
47int SysMount(char* mountPoint,char* deviceName,char* fsName,void* data);
48int SysUnmount(char* mountPoint);
49
50int SysChangeDir(char* newDir);
51int SysChangeRoot(char* newRoot);
52
53int SysMount(char* mountPoint,char* deviceName,char* fsName,void* data);
54int SysUnmount(char* mountPoint);
55
56int SysGetDirEntries(int fd,void* entries,DWORD numBytes);
57int SysGetCurrDir(char* path,int len);
58
59int SysStat(char* path,struct Stat* stat);
60
61#endif
Note: See TracBrowser for help on using the browser.