Home
last modified time | relevance | path

Searched refs:srcfd (Results 1 – 13 of 13) sorted by relevance

/third_party/ltp/testcases/kernel/io/ltp-aiodio/
Daiocp.c47 static int srcfd; variable
252 srcfd = SAFE_OPEN(srcname, (srcflags & ~O_DIRECT) | O_RDWR | O_CREAT, 0666); in setup()
253 fill_with_rand_data(srcfd, filesize); in setup()
254 SAFE_CLOSE(srcfd); in setup()
259 if (srcfd > 0) in cleanup()
260 SAFE_CLOSE(srcfd); in cleanup()
276 srcfd = SAFE_OPEN(srcname, srcflags | O_RDWR | O_CREAT, 0666); in run()
285 async_run(myctx, srcfd, async_copy); in run()
288 SAFE_CLOSE(srcfd); in run()
300 srcfd = SAFE_OPEN(srcname, O_RDONLY, 0666); in run()
[all …]
/third_party/musl/porting/liteos_a/user/src/process/
Dposix_spawn_file_actions_adddup2.c7 int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *fa, int srcfd, int fd) in posix_spawn_file_actions_adddup2() argument
9 if (srcfd < 0 || fd < 0) return EBADF; in posix_spawn_file_actions_adddup2()
14 op->srcfd = srcfd; in posix_spawn_file_actions_adddup2()
Dposix_spawn.c105 fd = op->srcfd; in child()
/third_party/musl/src/process/
Dposix_spawn_file_actions_adddup2.c7 int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *fa, int srcfd, int fd) in posix_spawn_file_actions_adddup2() argument
9 if (srcfd < 0 || fd < 0) return EBADF; in posix_spawn_file_actions_adddup2()
14 op->srcfd = srcfd; in posix_spawn_file_actions_adddup2()
Dfdop.h9 int cmd, fd, srcfd, oflag; member
Dposix_spawn.c105 fd = op->srcfd; in child()
/third_party/toybox/toys/pending/
Dcrontab.c270 int srcfd, destfd, status; in do_edit() local
282 srcfd = xopenro(toybuf); in do_edit()
283 xsendfile(srcfd, destfd); in do_edit()
284 xclose(srcfd); in do_edit()
/third_party/node/deps/uv/src/unix/
Dfs.c1268 uv_file srcfd; in uv__fs_copyfile() local
1284 srcfd = uv_fs_open(NULL, &fs_req, req->path, O_RDONLY, 0, NULL); in uv__fs_copyfile()
1287 if (srcfd < 0) in uv__fs_copyfile()
1288 return srcfd; in uv__fs_copyfile()
1291 if (fstat(srcfd, &src_statsbuf)) { in uv__fs_copyfile()
1359 if (ioctl(dstfd, FICLONE, srcfd) == 0) { in uv__fs_copyfile()
1383 uv_fs_sendfile(NULL, &fs_req, dstfd, srcfd, in_offset, bytes_chunk, NULL); in uv__fs_copyfile()
1403 err = uv__close_nocheckstdio(srcfd); in uv__fs_copyfile()
/third_party/libuv/src/unix/
Dfs.c1289 uv_file srcfd; in uv__fs_copyfile() local
1305 srcfd = uv_fs_open(NULL, &fs_req, req->path, O_RDONLY, 0, NULL); in uv__fs_copyfile()
1308 if (srcfd < 0) in uv__fs_copyfile()
1309 return srcfd; in uv__fs_copyfile()
1312 if (fstat(srcfd, &src_statsbuf)) { in uv__fs_copyfile()
1380 if (ioctl(dstfd, FICLONE, srcfd) == 0) { in uv__fs_copyfile()
1404 uv_fs_sendfile(NULL, &fs_req, dstfd, srcfd, in_offset, bytes_chunk, NULL); in uv__fs_copyfile()
1424 err = uv__close_nocheckstdio(srcfd); in uv__fs_copyfile()
/third_party/mksh/
Dhistrap.c722 hist_persist_back(int srcfd) in hist_persist_back() argument
730 if ((tot = lseek(srcfd, (off_t)0, SEEK_END)) < 0 || in hist_persist_back()
731 lseek(srcfd, (off_t)0, SEEK_SET) < 0 || in hist_persist_back()
740 if ((n = blocking_read(srcfd, (cp = buf), in hist_persist_back()
/third_party/rust/crates/rustix/src/backend/libc/fs/
Dsyscalls.rs716 srcfd: BorrowedFd<'_>, in fclonefileat()
723 srcfd: BorrowedFd<'_>, in fclonefileat()
730 unsafe { ret(fclonefileat(srcfd, dst_dirfd, c_str(dst), flags.bits())) } in fclonefileat()
/third_party/rust/crates/libc/src/unix/bsd/apple/
Dmod.rs5618 srcfd: ::c_int, in fclonefileat()
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h31929 __u32 srcfd; member