summaryrefslogtreecommitdiff
path: root/userspace/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/syscalls.c')
-rw-r--r--userspace/syscalls.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/userspace/syscalls.c b/userspace/syscalls.c
index d8a463d..7b0f563 100644
--- a/userspace/syscalls.c
+++ b/userspace/syscalls.c
@@ -16,7 +16,7 @@ void syscalls_init()
int close(int file)
{
- easywrite("syscall: close\n");
+// easywrite("syscall: close\n");
return -1;
}
@@ -29,7 +29,7 @@ int fstat(int file, struct stat *st)
int isatty(int file)
{
- easywrite("syscall: isatty\n");
+// easywrite("syscall: isatty\n");
return 1;
}
@@ -51,8 +51,7 @@ int read(int file, char *ptr, int len)
char buf[]="++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.";
if(preread>=strlen(buf)){
- easywrite("syscall: read = EOF\n");
- while(1);
+// easywrite("syscall: read = EOF\n");
return 0; //EOF
}
@@ -67,7 +66,7 @@ int read(int file, char *ptr, int len)
int open(const char *name, int flags, int mode)
{
- easywrite("syscall: open\n");
+// easywrite("syscall: open\n");
return 99;
return -1;
}
@@ -102,7 +101,7 @@ int write(int file, char *ptr, int len)
caddr_t sbrk(int incr)
{
- easywrite("syscall: sbrk!!\n");
+// easywrite("syscall: sbrk!!\n");
int oldalloc=alloc;
alloc+=incr;
return oldalloc;