xref: /third_party/musl/src/unistd/ftruncate.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/unistd/
1570af302Sopenharmony_ci#include <unistd.h>
2570af302Sopenharmony_ci#include "syscall.h"
3570af302Sopenharmony_ci
4570af302Sopenharmony_ciint ftruncate(int fd, off_t length)
5570af302Sopenharmony_ci{
6570af302Sopenharmony_ci	return syscall(SYS_ftruncate, fd, __SYSCALL_LL_O(length));
7570af302Sopenharmony_ci}
8570af302Sopenharmony_ci
9570af302Sopenharmony_ciweak_alias(ftruncate, ftruncate64);
10

Indexes created Thu Nov 07 10:32:03 CST 2024