Home
last modified time | relevance | path

Searched refs:dstfd (Results 1 – 2 of 2) sorted by relevance

/third_party/ltp/testcases/kernel/io/ltp-aiodio/
Daiocp.c54 static int dstfd = -1; // destination file descriptor variable
214 if (dstfd > 0) in io_error()
215 close(dstfd); in io_error()
269 fd = dstfd; in rd_done()
420 if ((dstfd = open(dstname = *argv, dest_open_flag, 0666)) < 0) { in main()
429 if (fstat(dstfd, &st) < 0) { in main()
514 io_prep_pwrite(io, dstfd, io->u.c.buf, in main()
582 if (dstfd != -1) in main()
583 close(dstfd); in main()
/third_party/libuv/src/unix/
Dfs.c1268 uv_file dstfd; in uv__fs_copyfile() local
1279 dstfd = -1; in uv__fs_copyfile()
1301 dstfd = uv_fs_open(NULL, in uv__fs_copyfile()
1309 if (dstfd < 0) { in uv__fs_copyfile()
1310 err = dstfd; in uv__fs_copyfile()
1318 if (fstat(dstfd, &dst_statsbuf)) { in uv__fs_copyfile()
1330 if (ftruncate(dstfd, 0) != 0) { in uv__fs_copyfile()
1336 if (fchmod(dstfd, src_statsbuf.st_mode) == -1) { in uv__fs_copyfile()
1346 if (!uv__is_cifs_or_smb(dstfd)) in uv__fs_copyfile()
1358 if (ioctl(dstfd, FICLONE, srcfd) == 0) { in uv__fs_copyfile()
[all …]