Home
last modified time | relevance | path

Searched refs:tmpfd (Results 1 - 5 of 5) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/ioctl/
H A Dioctl_sg01.c45 int tmpfd; in find_generic_scsi_device() local
61 tmpfd = open(devpath, access_flags); in find_generic_scsi_device()
63 if (tmpfd >= 0) { in find_generic_scsi_device()
64 SAFE_CLOSE(tmpfd); in find_generic_scsi_device()
/third_party/ltp/testcases/kernel/syscalls/setsockopt/
H A Dsetsockopt01.c64 int tmpfd, fd; in run() local
69 tmpfd = fd = SAFE_OPEN("/dev/null", O_WRONLY); in run()
71 tmpfd = fd = SAFE_SOCKET(tc->domain, tc->type, tc->proto); in run()
77 SAFE_CLOSE(tmpfd); in run()
/third_party/curl/tests/libtest/
H A Dlib537.c125 int *tmpfd; local
362 tmpfd = realloc(fd, sizeof(*fd) * (size_t)(num_open.rlim_max));
363 if(tmpfd) {
364 fd = tmpfd;
365 tmpfd = NULL;
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs558 let tmpfd = tmp.into_raw_fd(); in test_lseek()
561 lseek(tmpfd, offset, Whence::SeekSet).unwrap(); in test_lseek()
564 crate::read_exact(tmpfd, &mut buf); in test_lseek()
567 close(tmpfd).unwrap(); in test_lseek()
576 let tmpfd = tmp.into_raw_fd(); in test_lseek64()
578 lseek64(tmpfd, 5, Whence::SeekSet).unwrap(); in test_lseek64()
581 crate::read_exact(tmpfd, &mut buf); in test_lseek64()
584 close(tmpfd).unwrap(); in test_lseek64()
781 let tmpfd = { in test_ftruncate()
788 ftruncate(tmpfd, in test_ftruncate()
[all...]
/third_party/toybox/toys/pending/
H A Ddiff.c186 int tmpfd = xtempfile("stdin", &tmp_name); in read_stdin() local
191 xsendfile(0, tmpfd); in read_stdin()
192 return fdopen(tmpfd, "r"); in read_stdin()

Completed in 7 milliseconds