Home
last modified time | relevance | path

Searched refs:ftruncate (Results 1 – 25 of 222) sorted by relevance

123456789

/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dftruncate.c37 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/
Dtest-fs-truncate.js114 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/
Dseals.rs5 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/
Dftruncate.c4 int ftruncate(int fd, off_t length) in ftruncate() function
9 weak_alias(ftruncate, ftruncate64);
/third_party/node/test/wasi/c/
Dftruncate.c26 assert(0 == ftruncate(fd, 500)); in main()
32 assert(0 == ftruncate(fd, 300)); in main()
/third_party/NuttX/fs/vfs/
Dfs_truncate.c121 int ftruncate(int fd, off_t length) in ftruncate() function
174 ret = ftruncate(fd, length); in truncate()
/third_party/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate01.c66 TEST(ftruncate(fd, TRUNC_LEN1)); in verify_ftruncate()
75 TEST(ftruncate(fd, TRUNC_LEN2)); in verify_ftruncate()
Dftruncate04.c46 TEST(ftruncate(fd, offset)); in ftruncate_expect_fail()
67 TEST(ftruncate(fd, offset)); in ftruncate_expect_success()
/third_party/ltp/testcases/kernel/syscalls/mmap/
Dmmap09.c75 TEST(ftruncate(fd, TC[i].newsize)); in main()
102 if (ftruncate(fd, mapsize) < 0) in setup()
/third_party/pulseaudio/src/tests/
Dsigbus-test.c44 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/
D16-1.c82 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/
Dtomoyo_rewrite_test.c107 show_result(ftruncate(fd, 0)); in stage_rewrite_test()
151 show_result(ftruncate(fd, 0)); in stage_rewrite_test()
/third_party/elfutils/libelf/
Delf_update.c62 && 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/
D2-1-buildonly.c22 dummyvar = ftruncate; in dummyfcn()
/third_party/ltp/testcases/kernel/fs/fsx-linux/
Dfsx-linux.c497 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/
D13-1.c37 result = ftruncate(fd, BUF_SIZE); in main()
D20-2.c45 result = ftruncate(fd, BUF_SIZE); in main()
D20-1.c45 result = ftruncate(fd, BUF_SIZE); in main()
D25-1.c41 if (ftruncate(fd, SHM_SZ) == -1) { in main()
D20-3.c46 if (ftruncate(fd, BUF_SIZE) != 0) { in main()
D28-2.c45 if (ftruncate(fd, BUF_SIZE) != 0) { in main()
/third_party/rust/crates/rustix/src/fs/
Dfd.rs336 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/
Dpid.c233 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/
D3-1.c37 if (ftruncate(fd, BUF_SIZE) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D21-1.c49 if (ftruncate(fd, size) == -1) { in main()

123456789