| /src/external/cddl/osnet/include/ |
| unistd.h | 38 #define ftruncate64 ftruncate
|
| /src/lib/libc/sys/ |
| ftruncate.c | 1 /* $NetBSD: ftruncate.c,v 1.14 2012/03/20 16:26:12 matt Exp $ */ 35 static char sccsid[] = "@(#)ftruncate.c 8.1 (Berkeley) 6/17/93"; 37 __RCSID("$NetBSD: ftruncate.c,v 1.14 2012/03/20 16:26:12 matt Exp $"); 47 __weak_alias(ftruncate,_ftruncate) 57 ftruncate(int fd, off_t length)
|
| /src/external/gpl3/gdb/dist/sim/testsuite/cris/c/ |
| ftruncate2.c | 5 /* Check that we get a proper error indication if trying ftruncate on a 22 if (ftruncate (pip[0], 20) == 0 || errno != EINVAL) 24 perror ("ftruncate 1"); 30 if (ftruncate (pip[1], 20) == 0 || errno != EINVAL) 32 perror ("ftruncate 2");
|
| ftruncate1.c | 1 /* Check that the ftruncate syscall works trivially. 34 if (ftruncate (fileno (f), strlen(tsttxt1) - 20) != 0) 35 perr ("ftruncate");
|
| /src/external/gpl3/gdb.old/dist/sim/testsuite/cris/c/ |
| ftruncate2.c | 5 /* Check that we get a proper error indication if trying ftruncate on a 22 if (ftruncate (pip[0], 20) == 0 || errno != EINVAL) 24 perror ("ftruncate 1"); 30 if (ftruncate (pip[1], 20) == 0 || errno != EINVAL) 32 perror ("ftruncate 2");
|
| ftruncate1.c | 1 /* Check that the ftruncate syscall works trivially. 34 if (ftruncate (fileno (f), strlen(tsttxt1) - 20) != 0) 35 perr ("ftruncate");
|
| /src/external/gpl2/xcvs/dist/lib/ |
| ftruncate.c | 0 /* ftruncate emulations that work on some System V's. 4 __RCSID("$NetBSD: ftruncate.c,v 1.2 2016/05/17 14:00:09 christos Exp $"); 16 ftruncate (int fd, off_t length) function 33 ftruncate (int fd, off_t length) function 76 ftruncate (int fd, off_t length) function 86 ftruncate (int fd, off_t length) function
|
| /src/bin/dd/ |
| dd_hostops.c | 49 .op_ftruncate = ftruncate,
|
| /src/tests/kernel/ |
| t_memfd_create.c | 164 RL(ftruncate(fd, rwbuf_size/2)); 170 RL(ftruncate(fd, rwbuf_size)); 201 RL(ftruncate(fd, rwbuf_size)); 298 rv = ftruncate(fd, st.st_size - 1); 309 rv = ftruncate(fd, st.st_size + 1); 334 RL(ftruncate(fd, rwbuf_size)); 337 ATF_REQUIRE_EQ_MSG(ftruncate(fd, rwbuf_size/2), -1, 358 RL(ftruncate(fd, rwbuf_size/2)); 361 ATF_REQUIRE_EQ_MSG(ftruncate(fd, rwbuf_size), -1, 382 RL(ftruncate(fd, rwbuf_size/2)) [all...] |
| /src/tests/lib/libc/sys/ |
| t_truncate.c | 50 atf_tc_set_md_var(tc, "descr", "A basic test of ftruncate(2)"); 66 ATF_REQUIRE(ftruncate(fd, sizes[i]) == 0); 72 atf_tc_fail("ftruncate(2) did not truncate"); 87 atf_tc_set_md_var(tc, "descr", "Test errors from ftruncate(2)"); 99 ATF_REQUIRE_ERRNO(EBADF, ftruncate(-1, 999) == -1); 102 ATF_REQUIRE_ERRNO(EINVAL, ftruncate(fd, 999) == -1);
|
| t_mmap.c | 479 atf_tc_set_md_var(tc, "descr", "Test mmap(2) and ftruncate(2)"); 494 * See that ftruncate(2) works 497 ATF_REQUIRE(ftruncate(fd, page) == 0); 506 ATF_REQUIRE(ftruncate(fd, 0) == 0); 507 ATF_REQUIRE(ftruncate(fd, page / 8) == 0); 508 ATF_REQUIRE(ftruncate(fd, page / 4) == 0); 509 ATF_REQUIRE(ftruncate(fd, page / 2) == 0); 510 ATF_REQUIRE(ftruncate(fd, page / 12) == 0); 511 ATF_REQUIRE(ftruncate(fd, page / 64) == 0); 526 "Test mmap(2) ftruncate(2) causing signal") [all...] |
| /src/external/gpl3/gcc/dist/gcc/config/i386/ |
| host-cygwin.cc | 63 if (ftruncate (fd, sz) == -1)
|
| /src/external/gpl3/gcc.old/dist/gcc/config/i386/ |
| host-cygwin.cc | 63 if (ftruncate (fd, sz) == -1)
|
| /src/lib/libutil/ |
| pidfile.c | 87 else if (ftruncate(pidfile_fd, 0) == -1) 223 if (ftruncate(pidfile_fd, 0) == -1 ||
|
| logwtmp.c | 72 (void) ftruncate(fd, buf.st_size);
|
| /src/libexec/ftpd/ |
| logwtmp.c | 101 (void)ftruncate(fd, buf.st_size); 141 (void)ftruncate(fdx, buf.st_size);
|
| /src/regress/sys/fs/lfs/9994/ |
| 9994_f.c | 173 if (ftruncate(testfd, k) < 0) { 177 if (ftruncate(controlfd, k) < 0) {
|
| /src/lib/librefuse/refuse/ |
| v25.h | 80 int (*ftruncate) (const char *, off_t, struct fuse_file_info *); member in struct:fuse_operations_v25
|
| v28.h | 80 int (*ftruncate) (const char *, off_t, struct fuse_file_info *); member in struct:fuse_operations_v28
|
| v29.h | 80 int (*ftruncate) (const char *, off_t, struct fuse_file_info *); member in struct:fuse_operations_v29
|
| v26.h | 80 int (*ftruncate) (const char *, off_t, struct fuse_file_info *); member in struct:fuse_operations_v26
|
| /src/tests/fs/common/ |
| fstest_zfs.c | 70 if (ftruncate(fd, size) == -1) {
|
| /src/tests/lib/librumphijack/ |
| h_netget.c | 80 if (ftruncate(fd, 0) == -1) 81 err(EXIT_FAILURE, "ftruncate savefile");
|
| /src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/ |
| FuzzerShmemPosix.cpp | 54 if (ftruncate(fd, kShmemSize) < 0) return false;
|
| /src/sys/external/mit/xen-include-public/dist/xen/include/public/io/ |
| fsif.h | 152 struct fsif_truncate_request ftruncate; member in union:fsif_request::__anon6603
|