2 * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
5 * SPDX-License-Identifier: GPL-2.0-or-later
9 #include <asm/unistd.h>
11 #ifdef __NR_ftruncate64
19 const off_t len = 0xdefaceddeadbeefULL;
21 int rc = ftruncate(-1, len);
22 printf("ftruncate64(-1, %llu) = %d %s (%m)\n",
23 (unsigned long long) len, rc, errno2name());
25 puts("+++ exited with 0 +++");
31 SKIP_MAIN_UNDEFINED("__NR_ftruncate64")