aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys/sh/truncate.c
blob: 47a4c06752223ea41d79fcc45485d34594979aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <_ansi.h>
#include <sys/types.h>
#include "sys/syscall.h"

extern int __trap34 (int function, ...);

int
truncate (const char *path, off_t length)
{
  return __trap34 (SYS_truncate, path, length, 0);
}