Added truncate() and ftruncate() library calls (no FS support yet).
Added ELOOP message to errlist.
This commit is contained in:
@@ -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
13
lib/syscall/truncate.s
Executable 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
|
||||
Reference in New Issue
Block a user