summaryrefslogtreecommitdiff
path: root/user1.c
diff options
context:
space:
mode:
authorkaashoek <kaashoek>2006-09-07 13:23:41 +0000
committerkaashoek <kaashoek>2006-09-07 13:23:41 +0000
commita64cd81342188c80ce6aef13f1b98300018d786e (patch)
tree3253c256e2f98bd9795e8ea6936a6cdcf9b83ad5 /user1.c
parent1dca3afbbbbbf6ae7ac9d55e027d724a4cbc3459 (diff)
downloadxv6-labs-a64cd81342188c80ce6aef13f1b98300018d786e.tar.gz
xv6-labs-a64cd81342188c80ce6aef13f1b98300018d786e.tar.bz2
xv6-labs-a64cd81342188c80ce6aef13f1b98300018d786e.zip
one regression test program
Diffstat (limited to 'user1.c')
-rw-r--r--user1.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/user1.c b/user1.c
deleted file mode 100644
index 267320e..0000000
--- a/user1.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "user.h"
-
-char buf[32];
-
-int
-main(void)
-{
- int pid, fds[2], n;
-
- pipe(fds);
- pid = fork();
- if(pid > 0){
- write(fds[1], "xyz", 4);
- puts("w");
- } else {
- n = read(fds[0], buf, sizeof(buf));
- puts("r: ");
- puts(buf);
- puts("\n");
- }
- for(;;);
-}