/freebsd/contrib/capsicum-test/ |
H A D | copy_file_range.cc | 75 int fd_in = openInFile(&rights_in); in TEST_F() local 79 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, NULL, 8, 0)); in TEST_F() 80 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, NULL, 8, 0)); in TEST_F() 81 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, &off_out, 8, 0)); in TEST_F() 82 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, &off_out, 8, 0)); in TEST_F() 85 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, NULL, 8, 0)); in TEST_F() 86 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, &off_out, 8, 0)); in TEST_F() 87 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, &off_out, 8, 0)); in TEST_F() 88 close(fd_in); in TEST_F() 98 int fd_in = openInFile(&rights_in); in TEST_F() local [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | prompt.c | 143 if (p->fd_in >= 0) { in prompt_UpdateSet() 145 FD_SET(p->fd_in, r); in prompt_UpdateSet() 146 log_Printf(LogTIMER, "prompt %s: fdset(r) %d\n", p->src.from, p->fd_in); in prompt_UpdateSet() 150 FD_SET(p->fd_in, e); in prompt_UpdateSet() 151 log_Printf(LogTIMER, "prompt %s: fdset(e) %d\n", p->src.from, p->fd_in); in prompt_UpdateSet() 154 if (sets && *n < p->fd_in + 1) in prompt_UpdateSet() 155 *n = p->fd_in + 1; in prompt_UpdateSet() 167 return p->fd_in >= 0 && FD_ISSET(p->fd_in, fdset); in prompt_IsSet() 193 n = read(p->fd_in, linebuff, sizeof linebuff - 1); in prompt_Read() 243 n = read(p->fd_in, &ch, 1); in prompt_Read() [all …]
|
H A D | prompt.h | 42 int fd_in, fd_out; member
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | store_fd.c | 89 krb5_storage_from_fd(krb5_socket_t fd_in) in krb5_storage_from_fd() argument 96 if (_get_osfhandle(fd_in) != -1) { in krb5_storage_from_fd() 97 fd = dup(fd_in); in krb5_storage_from_fd() 99 fd = _open_osfhandle(fd_in, 0); in krb5_storage_from_fd() 105 fd = dup(fd_in); in krb5_storage_from_fd()
|
/freebsd/libexec/atrun/ |
H A D | atrun.c | 126 int fd_out, fd_in; in run_file() local 201 if ((fd_in = dup(fileno(stream))) <0) in run_file() 204 if (fstat(fd_in, &buf) == -1) in run_file() 222 if ((fflags = fcntl(fd_in, F_GETFD)) <0) in run_file() 225 fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC); in run_file() 282 if (lseek(fd_in, (off_t) 0, SEEK_SET) < 0) in run_file() 285 if (dup(fd_in) != STDIN_FILENO) in run_file() 294 close(fd_in); in run_file() 341 close(fd_in); in run_file()
|
/freebsd/contrib/libucl/tests/ |
H A D | test_basic.c | 43 flags, fd_out, fd_in, use_fd = 0, msgpack_input = 0; in main() local 102 fd_in = open (fname_in, O_RDONLY); in main() 103 if (fd_in == -1) { in main() 108 fd_in = STDIN_FILENO; in main() 157 ucl_parser_add_fd (parser, fd_in); in main() 158 close (fd_in); in main()
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | default_permissions.cc | 517 int fd_in, fd_out; in TEST_F() local 529 fd_in = open(FULLPATH_IN, O_RDONLY); in TEST_F() 530 ASSERT_LE(0, fd_in) << strerror(errno); in TEST_F() 534 copy_file_range(fd_in, &off_in, fd_out, &off_out, len, 0)) in TEST_F() 538 ASSERT_EQ(0, fstat(fd_in, &sb)) << strerror(errno); in TEST_F() 541 leak(fd_in); in TEST_F() 561 int fd_in, fd_out; in TEST_F() local 573 fd_in = open(FULLPATH_IN, O_RDONLY); in TEST_F() 574 ASSERT_LE(0, fd_in) << strerror(errno); in TEST_F() 578 copy_file_range(fd_in, &off_in, fd_out, &off_out, len, 0)) in TEST_F() [all …]
|
/freebsd/sys/kern/ |
H A D | sys_generic.c | 1111 select_check_badfd(fd_set *fd_in, int nd, int ndu, int abi_nfdbits) in select_check_badfd() argument 1117 if (nd >= ndu || fd_in == NULL) in select_check_badfd() 1125 addr = (char *)fd_in + b; in select_check_badfd() 1127 addr = (char *)fd_in; in select_check_badfd() 1150 kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou, in kern_select() argument 1175 error = select_check_badfd(fd_in, nd, ndu, abi_nfdbits); in kern_select() 1193 if (fd_in != NULL) in kern_select() 1227 getbits(fd_in, 0); in kern_select() 1314 putbits(fd_in, 0); in kern_select()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | Mips32r6InstrInfo.td | 614 dag InOperandList = (ins FGRCCOpnd:$fd_in, FGROpnd:$fs, FGROpnd:$ft); 616 list<dag> Pattern = [(set FGROpnd:$fd, (select FGRCCOpnd:$fd_in, 619 string Constraints = "$fd_in = $fd"; 626 dag InOperandList = (ins FGROpnd:$fd_in, FGROpnd:$fs, FGROpnd:$ft); 628 list<dag> Pattern = [(set FGROpnd:$fd, (MipsFSelect FGROpnd:$fd_in, 631 string Constraints = "$fd_in = $fd"; 655 dag InOperandList = (ins FGROpnd:$fd_in, FGROpnd:$fs, FGROpnd:$ft); 658 string Constraints = "$fd_in = $fd";
|
/freebsd/crypto/openssh/ |
H A D | sftp-client.c | 91 int fd_in; member 197 if (atomicio6(read, conn->fd_in, p, 4, sftpio, in get_msg_extended() 216 if (atomicio6(read, conn->fd_in, p, msg_len, sftpio, in get_msg_extended() 456 sftp_init(int fd_in, int fd_out, u_int transfer_buflen, u_int num_requests, in sftp_init() argument 466 ret->fd_in = fd_in; in sftp_init() 2403 pfd.fd = to->fd_in; in handle_dest_replies()
|
H A D | packet.c | 294 ssh_packet_set_connection(struct ssh *ssh, int fd_in, int fd_out) in ssh_packet_set_connection() argument 311 state->connection_in = fd_in; in ssh_packet_set_connection()
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 1676 #define __sanitizer_syscall_pre_splice(fd_in, off_in, fd_out, off_out, len, \ argument 1678 __sanitizer_syscall_pre_impl_splice((long)(fd_in), (long)(off_in), \ 1681 #define __sanitizer_syscall_post_splice(res, fd_in, off_in, fd_out, off_out, \ argument 1683 __sanitizer_syscall_post_impl_splice(res, (long)(fd_in), (long)(off_in), \ 2982 void __sanitizer_syscall_pre_impl_splice(long fd_in, long off_in, long fd_out, 2984 void __sanitizer_syscall_post_impl_splice(long res, long fd_in, long off_in,
|
/freebsd/sys/sys/ |
H A D | syscallsubr.h | 320 int kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou,
|
/freebsd/sys/arm64/linux/ |
H A D | linux_systrace_args.c | 610 iarg[a++] = p->fd_in; /* int */ in systrace_args() 2168 iarg[a++] = p->fd_in; /* l_int */ in systrace_args()
|
/freebsd/sys/amd64/linux/ |
H A D | linux_systrace_args.c | 2108 iarg[a++] = p->fd_in; /* int */ in systrace_args() 2551 iarg[a++] = p->fd_in; /* l_int */ in systrace_args()
|
/freebsd/sys/compat/linux/ |
H A D | linux_file.c | 1743 error = kern_copy_file_range(td, args->fd_in, inoffp, args->fd_out, in linux_copy_file_range()
|
/freebsd/sys/i386/linux/ |
H A D | linux_systrace_args.c | 2261 iarg[a++] = p->fd_in; /* int */ in systrace_args() 2823 iarg[a++] = p->fd_in; /* l_int */ in systrace_args()
|
/freebsd/sys/amd64/linux32/ |
H A D | linux32_systrace_args.c | 2226 iarg[a++] = p->fd_in; /* int */ in systrace_args() 2792 iarg[a++] = p->fd_in; /* l_int */ in systrace_args()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 2906 (long fd_in, void *off_in, long fd_out, void *off_out, long len, long flags) {} 2909 (long res, long fd_in, void *off_in, long fd_out, void *off_out, long len,
|