/freebsd-13-stable/usr.sbin/cdcontrol/ |
H A D | cdcontrol.c | 40 #include <sys/ioctl.h> 333 return ioctl (fd, CDIOCPAUSE); 339 return ioctl (fd, CDIOCRESUME); 345 rc = ioctl (fd, CDIOCSTOP); 347 (void) ioctl (fd, CDIOCALLOW); 355 rc = ioctl (fd, CDIOCRESET); 367 return ioctl (fd, CDIOCSETDEBUG); 370 return ioctl (fd, CDIOCCLRDEBUG); 380 (void) ioctl (fd, CDIOCALLOW); 381 rc = ioctl (f [all...] |
/freebsd-13-stable/sbin/dhclient/ |
H A D | bpf.c | 51 #include <sys/ioctl.h> 89 if (ioctl(sock, BIOCSETIF, info->ifp) < 0) 148 if (ioctl(info->wfdesc, BIOCVERSION, &v) < 0) 162 if (ioctl(info->wfdesc, BIOCSETWF, &p) < 0) 165 if (ioctl(info->wfdesc, BIOCLOCK, NULL) < 0) 231 if (ioctl(info->rfdesc, BIOCVERSION, &v) < 0) 243 if (ioctl(info->rfdesc, BIOCIMMEDIATE, &flag) < 0) 247 if (ioctl(info->rfdesc, BIOCGBLEN, &sz) < 0) 268 if (ioctl(info->rfdesc, BIOCSETF, &p) < 0) 271 if (ioctl(inf [all...] |
/freebsd-13-stable/contrib/libpcap/ |
H A D | pcap-pf.c | 34 #include <sys/ioctl.h> 364 if (ioctl(p->fd, EIOCMBIS, (caddr_t)&enmode) < 0) { 373 (void)ioctl(p->fd, EIOCMBIS, (caddr_t)&enmode);/* OK if this fails */ 376 if (ioctl(p->fd, EIOCSETW, (caddr_t)&backlog) < 0) { 383 if (ioctl(p->fd, EIOCDEVP, (caddr_t)&devparams) < 0) { 480 if (ioctl(p->fd, EIOCTRUNCATE, (caddr_t)&p->snapshot) < 0) { 490 if (ioctl(p->fd, EIOCSETF, (caddr_t)&Filter) < 0) { 501 if (ioctl(p->fd, EIOCSRTIMEOUT, (caddr_t)&timeout) < 0) { 603 if (ioctl(p->fd, BIOCVERSION, (caddr_t)&bv) >= 0) { 614 if (ioctl( [all...] |
/freebsd-13-stable/contrib/pf/tftp-proxy/ |
H A D | filter.c | 22 #include <sys/ioctl.h> 110 if (ioctl(dev, DIOCADDADDR, &pfp) == -1) 144 if (ioctl(dev, DIOCADDADDR, &pfp) == -1) 158 if (ioctl(dev, DIOCXCOMMIT, &pft) == -1) 167 if (ioctl(dev, DIOCXROLLBACK, &pft) == -1) 190 if (ioctl(dev, DIOCGETSTATUS, &status) == -1) { 232 if (ioctl(dev, DIOCXBEGIN, &pft) == -1) 271 if (ioctl(dev, DIOCBEGINADDRS, &pfp) == -1) 373 if (ioctl(dev, DIOCNATLOOK, &pnl) == -1) 401 if (ioctl(de [all...] |
/freebsd-13-stable/contrib/wpa/src/drivers/ |
H A D | driver_wired_common.c | 17 #include <sys/ioctl.h> 46 if (ioctl(s, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) { 47 wpa_printf(MSG_ERROR, "ioctl[SIOCGIFFLAGS]: %s", 72 if (ioctl(s, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) { 73 wpa_printf(MSG_ERROR, "ioctl[SIOCSIFFLAGS]: %s", 129 if (ioctl(s, add ? SIOCADDMULTI : SIOCDELMULTI, (caddr_t) &ifr) < 0) { 130 wpa_printf(MSG_ERROR, "ioctl[SIOC{ADD/DEL}MULTI]: %s", 204 if (ioctl(s, SIOCGIFMEDIA, (caddr_t) &ifmr) < 0) { 205 wpa_printf(MSG_ERROR, "ioctl[SIOCGIFMEDIA]: %s",
|
H A D | driver_nl80211_android.c | 12 #include <sys/ioctl.h> 62 ret = ioctl(drv->global->ioctl_sock, SIOCDEVPRIVATE + 1, &ifr); 132 ret = ioctl(drv->global->ioctl_sock, SIOCDEVPRIVATE + 1, &ifr); 135 wpa_printf(MSG_ERROR, "ioctl[SIOCSIWPRIV] (pnosetup): %d",
|
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/sparc/ |
H A D | dt_isadep.c | 62 if (ioctl(dtp->dt_ftfd, FASTTRAPIOC_MAKEPROBE, ftp) != 0) { 63 dt_dprintf("fasttrap probe creation ioctl failed: %s\n", 114 if (ioctl(dtp->dt_ftfd, FASTTRAPIOC_GETINSTR, 265 if (ioctl(dtp->dt_ftfd, FASTTRAPIOC_MAKEPROBE, ftp) != 0) { 266 dt_dprintf("fasttrap probe creation ioctl failed: %s\n", 290 if (ioctl(dtp->dt_ftfd, FASTTRAPIOC_MAKEPROBE, ftp) != 0) { 291 dt_dprintf("fasttrap probe creation ioctl failed: %s\n", 331 if (ioctl(dtp->dt_ftfd, FASTTRAPIOC_MAKEPROBE, ftp) != 0) { 332 dt_dprintf("fasttrap probe creation ioctl failed: %s\n",
|
/freebsd-13-stable/crypto/openssh/openbsd-compat/ |
H A D | port-net.c | 20 #include <sys/ioctl.h> 177 if (ioctl(fd, TUNSETIFF, &ifr) == -1) { 253 ioctl(fd, TUNSIFHEAD, &flag) == -1) { 254 debug("%s: ioctl(%d, TUNSIFHEAD, 1): %s", __func__, fd, 267 if (ioctl(sock, SIOCGIFFLAGS, &ifr) == -1) 271 if (ioctl(sock, SIOCSIFFLAGS, &ifr) == -1)
|
/freebsd-13-stable/usr.sbin/ofwdump/ |
H A D | ofw_util.c | 30 #include <sys/ioctl.h> 47 if (ioctl(fd, cmd, val) == -1) \ 48 err(EX_IOERR, "ioctl(..., " #cmd ", ...) failed"); \ 114 if (ioctl(fd, OFIOCFINDDEVICE, &d) == -1) { 119 "ioctl(..., OFIOCFINDDEVICE, ...) failed"); 141 if (ioctl(fd, OFIOCNEXTPROP, &d) == -1) { 145 err(EX_IOERR, "ioctl(..., OFIOCNEXTPROP, ...) failed"); 225 rv = ioctl(fd, OFIOCGET, &d); 228 err(EX_IOERR, "ioctl(..., OFIOCGET, ...) failed");
|
/freebsd-13-stable/contrib/smbfs/lib/smb/ |
H A D | rq.c | 36 #include <sys/ioctl.h> 145 if (ioctl(rqp->rq_ctx->ct_fd, SMBIOC_REQUEST, &krq) == -1) 175 if (ioctl(ctx->ct_fd, SMBIOC_T2RQ, &krq) == -1)
|
/freebsd-13-stable/sbin/ifconfig/ |
H A D | af_link.c | 38 #include <sys/ioctl.h> 108 rc = ioctl(sock_hw, SIOCGHWADDR, &ifr); 132 if (ioctl(s, SIOCGLANPCP, (caddr_t)&ifr) == 0 &&
|
H A D | carp.c | 33 #include <sys/ioctl.h> 139 if (ioctl(s, SIOCGVH, (caddr_t)&ifr) == -1 && errno != ENOENT) 152 if (ioctl(s, SIOCSVH, (caddr_t)&ifr) == -1)
|
/freebsd-13-stable/sbin/iscontrol/ |
H A D | fsm.c | 45 #include <sys/ioctl.h> 263 if(ioctl(sess->fd, ISCSISETOPT, &oop)) { 295 if(ioctl(fd, ISCSISETSES, &n)) { 314 if(ioctl(sess->fd, ISCSISETSOC, &sess->soc)) { 353 if(ioctl(sess->fd, ISCSIGETCAM, &sess->cam) != 0) { 434 if(ioctl(sess->fd, ISCSISTART)) { 440 ioctl(sess->fd, ISCSISTOP); 446 if(ioctl(sess->fd, ISCSIRESTART)) { 458 if(ioctl(sess->fd, ISCSISIGNAL, &sig)) { 480 if(ioctl(ses [all...] |
H A D | pdu.c | 39 #include <sys/ioctl.h> 56 if(ioctl(sess->fd, ISCSISEND, pp)) { 69 if(ioctl(sess->fd, ISCSIRECV, pp)) {
|
/freebsd-13-stable/sbin/nvmecontrol/ |
H A D | nvmecontrol.c | 113 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) 137 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) 171 if (ioctl(fd, NVME_GET_NSID, &gnsid) < 0) 172 err(EX_OSERR, "NVME_GET_NSID ioctl failed");
|
/freebsd-13-stable/contrib/ntp/ntpd/ |
H A D | refclock_heath.c | 21 # include <sys/ioctl.h> 59 * TIOCMBIS ioctl system calls and TIOCM_RTS control bit. Present 427 if (ioctl(pp->io.fd, TIOCMBIC, (char *)&bits) < 0) 432 ioctl(pp->io.fd, TIOCMBIS, (char *)&bits);
|
/freebsd-13-stable/contrib/netbsd-tests/crypto/opencrypto/ |
H A D | h_xcbcmac.c | 34 #include <sys/ioctl.h> 88 res = ioctl(fd, CIOCGSESSION, &cs); 102 res = ioctl(fd, CIOCCRYPT, &co);
|
/freebsd-13-stable/crypto/heimdal/lib/roken/ |
H A D | socket_wrapper.h | 109 #ifdef ioctl 110 #undef ioctl macro 112 #define ioctl(s,req,ptr) swrap_ioctl(s,req,ptr) macro
|
/freebsd-13-stable/usr.bin/tset/ |
H A D | tset.c | 47 #include <sys/ioctl.h> 169 (void)ioctl(STDERR_FILENO, TIOCGWINSZ, &win); 174 (void)ioctl(STDERR_FILENO, TIOCSWINSZ, &win);
|
/freebsd-13-stable/usr.sbin/fdcontrol/ |
H A D | fdcontrol.c | 125 if (ioctl(fd, FD_GDTYPE, &type) == -1) 126 err(EX_OSERR, "ioctl(FD_GDTYPE)"); 127 if (ioctl(fd, FD_GTYPE, &ft) == -1) 128 err(EX_OSERR, "ioctl(FD_GTYPE)"); 206 if (ioctl(fd, FD_STYPE, &ft) == -1) 207 err(EX_OSERR, "ioctl(FD_STYPE)");
|
/freebsd-13-stable/usr.sbin/fwcontrol/ |
H A D | fwmpegts.c | 39 #include <sys/ioctl.h> 182 if (ioctl(d, FW_SSTBUF, &bufreq) < 0) 183 err(1, "ioctl"); 188 if (ioctl(d, FW_SRSTREAM, &isoreq) < 0) 189 err(1, "ioctl");
|
/freebsd-13-stable/usr.sbin/pwm/ |
H A D | pwm.c | 31 #include <sys/ioctl.h> 169 if (ioctl(fd, PWMGETSTATE, &state) == -1) { 193 if (ioctl(fd, PWMSETSTATE, &state) == -1) {
|
/freebsd-13-stable/usr.sbin/wake/ |
H A D | wake.c | 32 #include <sys/ioctl.h> 96 if (ioctl(bpf, BIOCSETIF, &ifr) == -1) 99 if (ioctl(bpf, BIOCGDLT, &dlt) == -1)
|
/freebsd-13-stable/tools/tools/ath/athpow/ |
H A D | athpow.c | 106 if (ioctl(s, SIOCGATHDIAG, &atd) < 0) 115 if (ioctl(s, SIOCGATHDIAG, &atd) < 0) 122 if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
|
/freebsd-13-stable/tests/sys/opencrypto/ |
H A D | blake2_test.c | 84 ATF_REQUIRE(ioctl(fd, CIOCFINDDEV, &find) != -1); 110 ATF_REQUIRE_MSG(ioctl(fd, CIOCGSESSION2, &sop) >= 0, 127 ATF_CHECK_MSG(ioctl(fd, CIOCCRYPT, &cop) >= 0, "ioctl(CIOCCRYPT)");
|