Home
last modified time | relevance | path

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

12345678910

/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(() => {
Dtest-trace-events-fs-async.js107 function ftruncate() { function
111 fs.ftruncate(fd, 1, () => {
280 tests.ftruncate = wrapper(ftruncate);
/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/curl/src/
Dtool_cb_see.h32 #undef ftruncate
33 #define ftruncate(fd,where) tool_ftruncate64(fd,where) macro
/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/node/typings/internalBinding/
Dfs.d.ts102 function ftruncate(fd: number, len: number, req: FSReqCallback): void;
103 function ftruncate(fd: number, len: number, req: undefined, ctx: FSSyncContext): void;
104 function ftruncate(fd: number, len: number, usePromises: typeof kUsePromises): Promise<void>;
246 ftruncate: typeof InternalFSBinding.ftruncate;
/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/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/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()

12345678910