forked from mit-pdos/xv6-public
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cons_puts for cleaner output.
- Loading branch information
rsc
committed
Jul 16, 2006
1 parent
b903b69
commit 9b37d1b
Showing
6 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
#include "user.h" | ||
|
||
int | ||
puts(char *s) | ||
{ | ||
return cons_puts(s); | ||
} | ||
|
||
int | ||
puts1(char *s) | ||
{ | ||
int i; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
int fork(void); | ||
int exit(void) __attribute__((noreturn)); | ||
int wait(void); | ||
int cons_putc(int); | ||
int pipe(int*); | ||
int write(int, void*, int); | ||
int read(int, void*, int); | ||
int close(int); | ||
int block(void); | ||
int kill(int); | ||
int panic(char*); | ||
int cons_puts(char*); | ||
|
||
int puts(char*); | ||
int puts1(char*); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
#include "user.h" | ||
|
||
// file system tests | ||
|
||
char buf[1024]; | ||
|
||
int | ||
main() | ||
{ | ||
puts("userfs running\n"); | ||
block(); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ STUB(close) | |
STUB(block) | ||
STUB(kill) | ||
STUB(panic) | ||
STUB(cons_puts) |