summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/ftruncate.c
blob: fc42046be1c445957026fbb3b53788631d502e31 (plain)
1
2
3
4
5
6
7
8
9
#include "asm/unistd_64.h" // for __NR_ftruncate

#include <syscall.h> // for __syscall_2, syscall
#include <unistd.h>  // for ftruncate, off_t

int ftruncate(int fildes, off_t length)
{
	return syscall(ftruncate, fildes, length);
}