Searched refs:src_fd (Results 1 - 10 of 10) sorted by relevance

/freebsd-current/contrib/capsicum-test/
H A Drename.cc20 int src_fd = open(src_path, O_CREAT|O_RDWR, 0644); local
21 close(src_fd);
/freebsd-current/contrib/xz/src/xz/
H A Dfile_io.c168 /// src_fd is the file descriptor of the input file.
170 io_sandbox_enter(int src_fd) argument
198 if (cap_rights_limit(src_fd, cap_rights_init(&rights,
202 if (src_fd != STDIN_FILENO && cap_rights_limit(
232 (void)src_fd;
274 pfd[0].fd = pair->src_fd;
541 pair->src_fd = STDIN_FILENO;
622 pair->src_fd = open(pair->src_name, flags);
624 if (pair->src_fd == -1) {
696 if (fstat(pair->src_fd,
[all...]
H A Dfile_io.h44 int src_fd; member in struct:__anon114
129 /// \brief Fix the position in src_fd
/freebsd-current/usr.bin/gzip/
H A Dunxz.c257 parse_indexes(xz_file_info *xfi, int src_fd) argument
261 if (fstat(src_fd, &st) != 0) {
306 if (io_pread(src_fd, &buf,
363 if (io_pread(src_fd, &buf, strm.avail_in, pos))
401 if (io_pread(src_fd, &buf, LZMA_STREAM_HEADER_SIZE, pos))
/freebsd-current/contrib/atf/atf-c/detail/
H A Dprocess.c125 const int src_fd, const int tgt_fd)
127 PRE(src_fd >= 0);
129 PRE(src_fd != tgt_fd);
132 sb->m_src_fd = src_fd;
124 atf_process_stream_init_connect(atf_process_stream_t *sb, const int src_fd, const int tgt_fd) argument
H A Dprocess_test.c188 int src_fd; local
192 src_fd = STDOUT_FILENO;
196 src_fd = STDERR_FILENO;
201 src_fd = -1;
206 RE(atf_process_stream_init_connect(&s->m_base.m_sb, src_fd, s->m_fd));
/freebsd-current/contrib/atf/atf-c++/detail/
H A Dprocess.cpp198 impl::stream_connect::stream_connect(const int src_fd, const int tgt_fd) argument
200 atf_error_t err = atf_process_stream_init_connect(&m_sb, src_fd, tgt_fd);
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dclonefile.c93 int64_t src_fd; member in struct:__anon8
300 .src_fd = sfd,
/freebsd-current/lib/libc/tests/sys/
H A Dsendfile_test.c280 verify_source_and_dest(const char* dest_filename, int src_fd, off_t offset, argument
294 src_file_size = file_size_from_fd(src_fd);
308 ATF_REQUIRE_EQ_MSG(0, lseek(src_fd, offset, SEEK_SET),
318 src_pointer = mmap(NULL, length, PROT_READ, MAP_PRIVATE, src_fd, offset);
/freebsd-current/contrib/llvm-project/lldb/source/Target/
H A DPlatform.cpp1784 auto src_fd = OpenFile(src_file_spec, File::eOpenOptionReadOnly, local
1800 ReadFile(src_fd, offset, &buffer[0], to_read, error);
1813 CloseFile(src_fd, close_error); // Ignoring close error.

Completed in 140 milliseconds