diff --git a/src/sys/include/ubixfs/ubixfs.h b/src/sys/include/ubixfs/ubixfs.h index e9d2dc1..1e5ba7a 100755 --- a/src/sys/include/ubixfs/ubixfs.h +++ b/src/sys/include/ubixfs/ubixfs.h @@ -14,7 +14,7 @@ #include -struct fileTable { +struct fileTableEntry { uChar fileName[24]; uShort start; uShort end; diff --git a/src/sys/include/ubixos/schedule.h b/src/sys/include/ubixos/schedule.h index a8e462f..551d5f4 100755 --- a/src/sys/include/ubixos/schedule.h +++ b/src/sys/include/ubixos/schedule.h @@ -12,6 +12,8 @@ #ifndef _SCHEDULE_H #define _SCHEDULE_H +#include + #define numTasks 1024 #define RUNABLE 3 #define ACTIVE 2 @@ -69,10 +71,12 @@ struct taskStruct { struct tssStruct tss; struct i387Struct i387; - int id; - int status; - int usedMath; - int cpuTime; + uShort id; + uShort status; + uShort usedMath; + uShort cpuTime; + uShort uid; + uShort gid; }; extern struct taskStruct taskList[numTasks]; diff --git a/src/sys/kernel/schedule.c b/src/sys/kernel/schedule.c index f7bc5cf..e349e5b 100755 --- a/src/sys/kernel/schedule.c +++ b/src/sys/kernel/schedule.c @@ -30,6 +30,8 @@ taskList[i].status = AVAILABLE; taskList[i].usedMath = 0; taskList[i].cpuTime = 0; + taskList[i].uid = -1; + taskList[i].gid = -1; } currentProc = -1; setVector(timerInt, mVec, (dInt + dPresent + dDpl3)); diff --git a/src/sys/ubixfs/ubixfs.c b/src/sys/ubixfs/ubixfs.c index 4443683..a2dfbf4 100755 --- a/src/sys/ubixfs/ubixfs.c +++ b/src/sys/ubixfs/ubixfs.c @@ -36,4 +36,9 @@ readBlock(startSector,data,4); ft = (void *)data; return(0); + } + +int findFile(char *file) { + struct fileTable *ft; + char data[2048]; } \ No newline at end of file