* 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:
Joern Rennecke
2003-07-10 15:31:30 +00:00
parent d53f60a1e4
commit e0bec12f55
7 changed files with 43 additions and 9 deletions

View 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);
}