mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 03:19:54 +08:00
e0bec12f55
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.
10 lines
163 B
C
10 lines
163 B
C
#include <_ansi.h>
|
|
#include <sys/types.h>
|
|
#include "sys/syscall.h"
|
|
|
|
int
|
|
ftruncate (int file, off_t length)
|
|
{
|
|
return __trap34 (SYS_ftruncate, file, length, 0);
|
|
}
|