Added truncate() and ftruncate() library calls (no FS support yet).

Added ELOOP message to errlist.
This commit is contained in:
Ben Gras
2005-12-20 14:18:16 +00:00
parent fbc190e562
commit ffe192724e
5 changed files with 43 additions and 6 deletions

View File

@@ -101,6 +101,7 @@ libc_OBJECTS = \
tcsetattr.o \
time.o \
times.o \
truncate.o \
umask.o \
umount.o \
uname.o \

13
lib/syscall/truncate.s Executable file
View File

@@ -0,0 +1,13 @@
.sect .text
.extern __truncate
.extern __ftruncate
.define _truncate
.define _ftruncate
.align 2
_truncate:
jmp __truncate
.align 2
_ftruncate:
jmp __ftruncate