/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
H A D | aiocp.c | 47 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 in run() [all...] |
/third_party/musl/porting/liteos_a/user/src/process/ |
H A D | posix_spawn_file_actions_adddup2.c | 7 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()
|
H A D | posix_spawn.c | 105 fd = op->srcfd; in child()
|
/third_party/musl/src/process/ |
H A D | posix_spawn_file_actions_adddup2.c | 7 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()
|
H A D | fdop.h | 9 int cmd, fd, srcfd, oflag; member
|
H A D | posix_spawn.c | 106 fd = op->srcfd; in child()
|
/third_party/toybox/toys/pending/ |
H A D | crontab.c | 270 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/libuv/src/unix/ |
H A D | fs.c | 1145 uv_file srcfd; in uv__fs_copyfile() local 1161 srcfd = uv_fs_open(NULL, &fs_req, req->path, O_RDONLY, 0, NULL); in uv__fs_copyfile() 1164 if (srcfd < 0) in uv__fs_copyfile() 1165 return srcfd; in uv__fs_copyfile() 1168 if (uv__fstat(srcfd, &src_statsbuf)) { in uv__fs_copyfile() 1201 /* Check if srcfd and dstfd refer to the same file */ in uv__fs_copyfile() 1248 if (ioctl(dstfd, FICLONE, srcfd) == 0) { in uv__fs_copyfile() 1272 uv_fs_sendfile(NULL, &fs_req, dstfd, srcfd, in_offset, bytes_chunk, NULL); in uv__fs_copyfile() 1292 err = uv__close_nocheckstdio(srcfd); in uv__fs_copyfile()
|
/third_party/node/deps/uv/src/unix/ |
H A D | fs.c | 1268 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() 1324 /* Check if srcfd and dstfd refer to the same file */ 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/mksh/ |
H A D | histrap.c | 722 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/ |
H A D | syscalls.rs | 716 srcfd: BorrowedFd<'_>, 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/ |
H A D | mod.rs | 5618 srcfd: ::c_int, in fclonefileat()
|