Import backup from 2004-06-03

This commit is contained in:
josh committed 2017-07-25 22:23:46 -04:00
1 parent b4aca026d4
commit b5ba5b63fe
11 files changed
+203 -25

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
// Device.cpp
// Device object for use in devfs
// Author: Josh Holtrop
// Date: 06/03/04
// Modified: 06/03/04
#include "Device.h"
#include "hos_defines.h"
#include "lang/string.h"
+27
View File
@@ -0,0 +1,27 @@
// Device.h
// Device object for use in devfs
// Author: Josh Holtrop
// Date: 06/03/04
// Modified: 06/03/04
#ifndef __HOS_DEVICE__
#define __HOS_DEVICE__ __HOS_DEVICE__
#include "hos_defines.h"
#include "lang/string.h"
class Device
{
private:
dword myMajor;
dword myMinor;
char myType; //'d'irectory,'l'ink,'b'lock,'c'har,'a'vail
string myName;
public:
Device();
Device(string name, dword major, dword minor, char type);
};
#endif
+11
View File
@@ -0,0 +1,11 @@
// DeviceFolder.cpp
// DeviceFolder object for use in devfs
// Author: Josh Holtrop
// Date: 06/03/04
// Modified: 06/03/04
#include "DeviceFolder.h"
#include "Device.h"
#include "lang/LinkedList.h"
+22
View File
@@ -0,0 +1,22 @@
// DeviceFolder.h
// DeviceFolder object for use in devfs
// Author: Josh Holtrop
// Date: 06/03/04
// Modified: 06/03/04
#ifndef __HOS_DEVICEFOLDER__
#define __HOS_DEVICEFOLDER__ __HOS_DEVICEFOLDER__
#include "lang/LinkedList.h"
class DeviceFolder
{
public:
LinkedList<Device> devices;
LinkedList<DeviceFolder> folders;
DeviceFolder();
};
#endif
+16
View File
@@ -0,0 +1,16 @@
// devfs.cpp
// device filesystem for HOS
// Author: Josh Holtrop
// Date: 06/03/04
// Modified: 06/03/04
#include "devfs.h"
void devfs_init()
{
}
+15
View File
@@ -0,0 +1,15 @@
// devfs.h
// device filesystem for HOS
// Author: Josh Holtrop
// Date: 06/03/04
// Modified: 06/03/04
#ifndef __HOS_DEVFS__
#define __HOS_DEVFS__ __HOS_DEVFS__
void devfs_init();
#endif
+5 -3
View File
@@ -8,14 +8,16 @@
//#include "fs/vfat.h"
//#include "block/rd.h"
//#include "block/loop.h"
//#include "lang/LinkedList.h"
#include "lang/LinkedList.h"
#include "lang/string.h"
#include "devfs.h"
#include "kio.h"
//LinkedList<Mount> mntList;
void vfs_init()
{
string test1 = "hi there.";
printf("%s", test1.data());
printf("%u\n", sizeof(string));
}