Root/
Source at commit 1083 created 13 years 1 month ago. By meklort, add GetDriveInfo | |
---|---|
1 | /*␊ |
2 | * Copyright (c) 2011 Evan Lojewski. All rights reserved.␊ |
3 | *␊ |
4 | */␊ |
5 | #include <cstdlib>␊ |
6 | #include <iostream>␊ |
7 | #include <modules>␊ |
8 | ␊ |
9 | extern "C"␊ |
10 | {␊ |
11 | void FileSystem_start();␊ |
12 | ␊ |
13 | // placeholder untill complete␊ |
14 | int file_size(int fdesc);␊ |
15 | int close(int fdesc);␊ |
16 | int open(const char *str, int how);␊ |
17 | int read(int fdesc, char *buf, int count);␊ |
18 | int readdir(struct dirstuff *dirp, const char **name, long *flags, long *time);␊ |
19 | struct dirstuff * opendir(const char *path);␊ |
20 | }␊ |
21 | ␊ |
22 | void FileSystem_start()␊ |
23 | {␊ |
24 | }␊ |
25 | ␊ |
26 | int file_size(int fdesc)␊ |
27 | {␊ |
28 | return -1; // unsupported␊ |
29 | }␊ |
30 | ␊ |
31 | int close(int fdesc)␊ |
32 | {␊ |
33 | return -1;␊ |
34 | }␊ |
35 | ␊ |
36 | int open(const char *str, int how)␊ |
37 | {␊ |
38 | return -1;␊ |
39 | }␊ |
40 | int read(int fdesc, char *buf, int count)␊ |
41 | {␊ |
42 | return -1;␊ |
43 | }␊ |
44 | ␊ |
45 | int readdir(struct dirstuff *dirp, const char **name, long *flags, long *time)␊ |
46 | {␊ |
47 | return -1;␊ |
48 | }␊ |
49 | ␊ |
50 | struct dirstuff * opendir(const char *path)␊ |
51 | {␊ |
52 | return NULL;␊ |
53 | }␊ |
54 | ␊ |
55 |