Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/modules/FileSystem/Main.cpp

Source at commit 1406 created 12 years 10 months ago.
By meklort, Revert drivers.c so that kexts are only loaded when OSBundleRequired is set and that value is not safe mode. Added some comments about it too.
1/*
2 * Copyright (c) 2011 Evan Lojewski. All rights reserved.
3 *
4 */
5#include <cstdlib>
6#include <iostream>
7#include <modules>
8
9extern "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
22void FileSystem_start()
23{
24}
25
26int file_size(int fdesc)
27{
28 return -1; // unsupported
29}
30
31int close(int fdesc)
32{
33 return -1;
34}
35
36int open(const char *str, int how)
37{
38 return -1;
39}
40int read(int fdesc, char *buf, int count)
41{
42 return -1;
43}
44
45int readdir(struct dirstuff *dirp, const char **name, long *flags, long *time)
46{
47 return -1;
48}
49
50struct dirstuff * opendir(const char *path)
51{
52 return NULL;
53}
54
55

Archive Download this file

Revision: 1406