From 0633b9715e106ac97fafcf3a68c06da1f0cf873a Mon Sep 17 00:00:00 2001 From: kaashoek Date: Sat, 12 Aug 2006 01:25:45 +0000 Subject: unlink,mknod,create with multi-component pathnames should work now remove console init code from userfs --- userfs.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'userfs.c') diff --git a/userfs.c b/userfs.c index 8c6121b..046768d 100644 --- a/userfs.c +++ b/userfs.c @@ -5,7 +5,7 @@ // file system tests -char buf[3000]; +char buf[2000]; char *echo_args[] = { "echo", "hello", "goodbye", 0 }; char *cat_args[] = { "cat", "README", 0 }; @@ -14,14 +14,8 @@ main(void) { int fd; int i; - int stdout; + int stdout = 1; - // printf(stdout, "userfs running\n"); - if (mknod ("console", T_DEV, 1, 1) < 0) - puts ("mknod failed\n"); - else - puts ("made a node\n"); - stdout = open("console", O_WRONLY); printf(stdout, "userfs is running\n"); block(); -- cgit v1.2.3