/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
D | ftruncate.c | 37 int freturn = ftruncate(fileno(fptr), 0); in ftruncate_0100() 59 int freturn = ftruncate(fileno(fptr), 10); in ftruncate_0200() 80 int freturn = ftruncate(fileno(fptr), 100); in ftruncate_0300() 100 int freturn = ftruncate(0, 10); in ftruncate_0400()
|
/third_party/node/test/parallel/ |
D | test-fs-truncate.js | 114 fs.ftruncate(fd, 1024, function(er) { 120 fs.ftruncate(fd, function(er) { 167 fs.ftruncate(fd, 4, common.mustSucceed(() => { 190 () => fs.ftruncate(fd, input), 211 () => fs.ftruncate(fd, input), 221 fs.ftruncate(fd, undefined, common.mustSucceed(() => { 231 fs.ftruncate(fd, -1, common.mustSucceed(() => {
|
/third_party/rust/crates/rustix/tests/io/ |
D | seals.rs | 5 fcntl_add_seals, fcntl_get_seals, ftruncate, memfd_create, MemfdFlags, SealFlags, in test_seals() 31 ftruncate(&mut file, 1).unwrap(); in test_seals() 39 ftruncate(&mut file, 0).unwrap_err(); in test_seals()
|
/third_party/musl/src/unistd/ |
D | ftruncate.c | 4 int ftruncate(int fd, off_t length) in ftruncate() function 9 weak_alias(ftruncate, ftruncate64);
|
/third_party/node/test/wasi/c/ |
D | ftruncate.c | 26 assert(0 == ftruncate(fd, 500)); in main() 32 assert(0 == ftruncate(fd, 300)); in main()
|
/third_party/NuttX/fs/vfs/ |
D | fs_truncate.c | 121 int ftruncate(int fd, off_t length) in ftruncate() function 174 ret = ftruncate(fd, length); in truncate()
|
/third_party/ltp/testcases/kernel/syscalls/ftruncate/ |
D | ftruncate01.c | 66 TEST(ftruncate(fd, TRUNC_LEN1)); in verify_ftruncate() 75 TEST(ftruncate(fd, TRUNC_LEN2)); in verify_ftruncate()
|
D | ftruncate04.c | 46 TEST(ftruncate(fd, offset)); in ftruncate_expect_fail() 67 TEST(ftruncate(fd, offset)); in ftruncate_expect_success()
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap09.c | 75 TEST(ftruncate(fd, TC[i].newsize)); in main() 102 if (ftruncate(fd, mapsize) < 0) in setup()
|
/third_party/pulseaudio/src/tests/ |
D | sigbus-test.c | 44 fail_unless(ftruncate(fd, page_size) >= 0); in START_TEST() 59 fail_unless(ftruncate(fd, 0) >= 0); in START_TEST()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
D | 16-1.c | 82 ret = ftruncate(fd_s, sysconf(_SC_PAGESIZE)); in main() 88 ret = ftruncate(fd_ns, sysconf(_SC_PAGESIZE)); in main()
|
/third_party/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_rewrite_test.c | 107 show_result(ftruncate(fd, 0)); in stage_rewrite_test() 151 show_result(ftruncate(fd, 0)); in stage_rewrite_test()
|
/third_party/elfutils/libelf/ |
D | elf_update.c | 62 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file() 142 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/unistd_h/ |
D | 2-1-buildonly.c | 22 dummyvar = ftruncate; in dummyfcn()
|
/third_party/ltp/testcases/kernel/fs/fsx-linux/ |
D | fsx-linux.c | 497 ftruncate(fd, (off_t) 0); in check_trunc_hack() 498 ftruncate(fd, (off_t) 100000); in check_trunc_hack() 507 ftruncate(fd, 0); in check_trunc_hack() 814 if (ftruncate(fd, file_size) == -1) { in domapwrite() 902 if (ftruncate(fd, (off_t) size) == -1) { in dotruncate() 931 if (lite ? 0 : ftruncate(fd, file_size) == -1) { in writefileimage()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
D | 13-1.c | 37 result = ftruncate(fd, BUF_SIZE); in main()
|
D | 20-2.c | 45 result = ftruncate(fd, BUF_SIZE); in main()
|
D | 20-1.c | 45 result = ftruncate(fd, BUF_SIZE); in main()
|
D | 25-1.c | 41 if (ftruncate(fd, SHM_SZ) == -1) { in main()
|
D | 20-3.c | 46 if (ftruncate(fd, BUF_SIZE) != 0) { in main()
|
D | 28-2.c | 45 if (ftruncate(fd, BUF_SIZE) != 0) { in main()
|
/third_party/rust/crates/rustix/src/fs/ |
D | fd.rs | 336 pub fn ftruncate<Fd: AsFd>(fd: Fd, length: u64) -> io::Result<()> { in ftruncate() function 337 backend::fs::syscalls::ftruncate(fd.as_fd(), length) in ftruncate()
|
/third_party/pulseaudio/src/pulsecore/ |
D | pid.c | 233 if (lseek(fd, (off_t) 0, SEEK_SET) == (off_t) -1 || ftruncate(fd, (off_t) 0) < 0) { 286 if (ftruncate(fd, (off_t) 0) < 0) {
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/ |
D | 3-1.c | 37 if (ftruncate(fd, BUF_SIZE) != 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 21-1.c | 49 if (ftruncate(fd, size) == -1) { in main()
|