Import backup from 2004-06-07
This commit is contained in:
1 parent
b5ba5b63fe
commit
802a07ebfe
13 files changed
+1399
-17
No files matched your search
+15
-4
@@ -10,17 +10,28 @@
|
||||
|
||||
#include "hos_defines.h"
|
||||
#include "lang/string.h"
|
||||
#include "lang/LinkedList.h"
|
||||
|
||||
#define DEVICE_FOLDER 0
|
||||
#define DEVICE_BLOCK 1
|
||||
#define DEVICE_CHAR 2
|
||||
#define DEVICE_LINK 3
|
||||
|
||||
class Device
|
||||
{
|
||||
private:
|
||||
dword myMajor;
|
||||
union
|
||||
{
|
||||
dword myMajor;
|
||||
LinkedList<Device> *folder;
|
||||
string *link;
|
||||
};
|
||||
dword myMinor;
|
||||
char myType; //'d'irectory,'l'ink,'b'lock,'c'har,'a'vail
|
||||
word permissions; //9-bit permissions | (type << 12)
|
||||
string myName;
|
||||
public:
|
||||
Device();
|
||||
Device(string name, dword major, dword minor, char type);
|
||||
// Device();
|
||||
// Device(string name, dword major, dword minor, char type);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -9,13 +9,14 @@
|
||||
#define __HOS_DEVICEFOLDER__ __HOS_DEVICEFOLDER__
|
||||
|
||||
#include "lang/LinkedList.h"
|
||||
#include "Device.h"
|
||||
|
||||
class DeviceFolder
|
||||
{
|
||||
public:
|
||||
LinkedList<Device> devices;
|
||||
LinkedList<DeviceFolder> folders;
|
||||
DeviceFolder();
|
||||
// DeviceFolder();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+4
-1
@@ -6,11 +6,14 @@
|
||||
// Modified: 06/03/04
|
||||
|
||||
#include "devfs.h"
|
||||
#include "Device.h"
|
||||
#include "DeviceFolder.h"
|
||||
|
||||
DeviceFolder *dev;
|
||||
|
||||
void devfs_init()
|
||||
{
|
||||
|
||||
dev = new DeviceFolder();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#ifndef __HOS_DEVFS__
|
||||
#define __HOS_DEVFS__ __HOS_DEVFS__
|
||||
|
||||
#include "Device.h"
|
||||
|
||||
void devfs_init();
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user