index
:
135e2/xv6-labs.git
xv6-labs-2024-winter
135e2
log msg
author
committer
range
cow
fs
lock
mmap
net
pgtbl
syscall
thread
traps
util
summary
refs
log
tree
commit
diff
path:
root
/
user1.c
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'user1.c')
-rw-r--r--
user1.c
6
1 files changed, 4 insertions, 2 deletions
diff --git a/user1.c b/user1.c
index d414699..bbe6f5b 100644
--- a/
user1.c
+++ b/
user1.c
@@ -1,5 +1,8 @@
+#include "user.h"
+
char buf[32];
+int
main()
{
int pid, fds[2], n;
@@ -15,6 +18,5 @@ main()
puts(buf);
puts("\n");
}
- while(1)
- ;
+ for(;;);
}