summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/sh/ftruncate.c
blob: 660377bf3b5aa9a1e766f4e6278cbabc2649285b (plain)
1
2
3
4
5
6
7
8
9
#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);
}