* libc/include/sys/unistd.h (ftruncate, truncate): Also declare
for __sh__. * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and truncate.c. * libc/sys/sh/Makefile.in: Regenerate. * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define. * libc/sys/sh/ftruncate.c: New file. * libc/sys/sh/truncate.c: Likewise.
This commit is contained in:
9
newlib/libc/sys/sh/truncate.c
Normal file
9
newlib/libc/sys/sh/truncate.c
Normal file
@ -0,0 +1,9 @@
|
||||
#include <_ansi.h>
|
||||
#include <sys/types.h>
|
||||
#include "sys/syscall.h"
|
||||
|
||||
int
|
||||
truncate (const char *path, off_t length)
|
||||
{
|
||||
return __trap34 (SYS_truncate, path, length, 0);
|
||||
}
|
Reference in New Issue
Block a user