diff options
Diffstat (limited to 'ulib.c')
-rw-r--r-- | ulib.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -5,6 +5,13 @@ fork() asm("int $48"); } +int +exit() +{ + asm("mov $2, %eax"); + asm("int $48"); +} + void cons_putc(int c) { @@ -42,3 +49,10 @@ write(int fd, char *buf, int n) asm("mov $6, %eax"); asm("int $48"); } + +int +close(int fd) +{ + asm("mov $8, %eax"); + asm("int $48"); +} |