Skip to content
Snippets Groups Projects
Commit b54f07e1 authored by Fache Charles's avatar Fache Charles
Browse files

4.4 tests pass, code not cleaned up, likely messy and buggy

parent ef1dd479
No related branches found
No related tags found
No related merge requests found
......@@ -487,8 +487,9 @@ uint64
sys_create_mutex(void)
{
// char path[MAXPATH];
int fd; //, omode;
long fd;
struct file *f;
char name[14] = "Mutex nb ";
// struct inode *ip;
// int n;
......@@ -542,7 +543,13 @@ sys_create_mutex(void)
// f->readable = !(omode & O_WRONLY);
// f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
// Transforming fd into a string, manually, painfully
unsigned char *fdstring=(unsigned char *)&fd;
name[9] = *fdstring;
f->type = FD_MUTEX;
initsleeplock(&(f->mutex), name);
// iunlock(ip);
// end_op(ROOTDEV);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment