Searched refs:ioctl (Results 251 - 275 of 958) sorted by relevance

<<11121314151617181920>>

/freebsd-current/tests/atf_python/sys/netpfil/ipfw/
H A Dipfw.py25 from atf_python.sys.netpfil.ipfw.ioctl import get3_classes
26 from atf_python.sys.netpfil.ipfw.ioctl import legacy_classes
27 from atf_python.sys.netpfil.ipfw.ioctl import set3_classes
/freebsd-current/tests/sys/opencrypto/
H A Dblake2_test.c82 ATF_REQUIRE(ioctl(fd, CIOCFINDDEV, &find) != -1);
108 ATF_REQUIRE_MSG(ioctl(fd, CIOCGSESSION2, &sop) >= 0,
125 ATF_CHECK_MSG(ioctl(fd, CIOCCRYPT, &cop) >= 0, "ioctl(CIOCCRYPT)");
/freebsd-current/tools/tools/ath/athpow/
H A Dathpow.c104 if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
113 if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
120 if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
/freebsd-current/usr.sbin/fwcontrol/
H A Dfwmpegts.c38 #include <sys/ioctl.h>
177 if (ioctl(d, FW_SSTBUF, &bufreq) < 0)
178 err(1, "ioctl");
183 if (ioctl(d, FW_SRSTREAM, &isoreq) < 0)
184 err(1, "ioctl");
/freebsd-current/usr.sbin/fdcontrol/
H A Dfdcontrol.c123 if (ioctl(fd, FD_GDTYPE, &type) == -1)
124 err(EX_OSERR, "ioctl(FD_GDTYPE)");
125 if (ioctl(fd, FD_GTYPE, &ft) == -1)
126 err(EX_OSERR, "ioctl(FD_GTYPE)");
204 if (ioctl(fd, FD_STYPE, &ft) == -1)
205 err(EX_OSERR, "ioctl(FD_STYPE)");
/freebsd-current/usr.sbin/pwm/
H A Dpwm.c29 #include <sys/ioctl.h>
173 if (ioctl(fd, PWMGETSTATE, &state) == -1) {
202 if (ioctl(fd, PWMSETSTATE, &state) == -1) {
/freebsd-current/usr.sbin/wake/
H A Dwake.c30 #include <sys/ioctl.h>
94 if (ioctl(bpf, BIOCSETIF, &ifr) == -1)
97 if (ioctl(bpf, BIOCGDLT, &dlt) == -1)
/freebsd-current/sbin/veriexec/
H A Dveriexec.c206 if (ioctl(dev_fd, VERIEXEC_GETSTATE, &x)) {
270 if (ioctl(dev_fd, state, &x))
299 if (ioctl(dev_fd, VERIEXEC_GETVERSION, &VeriexecVersion)) {
/freebsd-current/sbin/ifconfig/
H A Difgroup.c29 #include <sys/ioctl.h>
116 if (ioctl(s, SIOCGIFGMEMB, (caddr_t)&ifgr) == -1) {
127 if (ioctl(s, SIOCGIFGMEMB, (caddr_t)&ifgr) == -1)
/freebsd-current/tools/regression/ethernet/ethermulti/
H A Dethermulti.c30 #include <sys/ioctl.h>
150 if (ioctl(sock, SIOCADDMULTI, &ifr) < 0) {
193 if (ioctl(sock, SIOCDELMULTI, &ifr) < 0)
/freebsd-current/usr.sbin/iscsid/
H A Ddiscovery.c33 #include <sys/ioctl.h>
96 error = ioctl(conn->conn_iscsi_fd, ISCSISADD, &isa);
109 error = ioctl(conn->conn_iscsi_fd, ISCSISREMOVE, &isr);
/freebsd-current/contrib/llvm-project/libcxx/src/
H A Drandom.cpp29 # if __has_include(<sys/ioctl.h>) && __has_include(<linux/random.h>)
31 # include <sys/ioctl.h>
164 if (::ioctl(__f_, RNDGETENTCNT, &ent) < 0)
/freebsd-current/sbin/nvmecontrol/
H A Dnvmecontrol.c110 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
134 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-current/contrib/ntp/ntpd/
H A Drefclock_heath.c21 # 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-current/contrib/libpcap/
H A Dpcap-snoop.c28 #include <sys/ioctl.h>
169 if (ioctl(p->fd, SIOCRAWSTATS, (char *)rs) < 0) {
236 if (ioctl(fd, SIOCADDSNOOP, &sf) < 0) {
345 if (ioctl(fd, SIOCGIFMTU, (char *)&ifr) < 0) {
379 if (ioctl(fd, SIOCSNOOPLEN, &snooplen) < 0) {
385 if (ioctl(fd, SIOCSNOOPING, &v) < 0) {
/freebsd-current/tools/tools/ath/athspectral/
H A Dathspectral.c63 if (ioctl(spectral->s, SIOCGATHDIAG, &spectral->atd) < 0) {
115 if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0)
132 if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0)
163 if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0)
184 if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0)
207 if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0)
/freebsd-current/contrib/libfido2/src/
H A Dhid_freebsd.c52 if (ioctl(fd, IOCTL_REQ(USB_GET_REPORT_DESC), &ugd) == -1) {
53 fido_log_error(errno, "%s: ioctl", __func__);
83 if (ioctl(fd, IOCTL_REQ(USB_GET_DEVICEINFO), &udi) == -1) {
84 if (ioctl(fd, IOCTL_REQ(HIDIOCGRAWINFO), &devinfo) == -1 ||
85 ioctl(fd, IOCTL_REQ(HIDIOCGRAWNAME(128)), rawname) == -1 ||
130 if (ioctl(fd, IOCTL_REQ(USB_GET_DEVICEINFO), &udi) == -1) {
131 fido_log_error(errno, "%s: ioctl", __func__);
231 * N.B. if ctx->fd is an hidraw(4) device, the ioctl() below puts it in
234 if ((r = ioctl(ctx->fd, IOCTL_REQ(USB_GET_REPORT_DESC), &ugd) == -1) ||
239 fido_log_error(errno, "%s: ioctl", __func_
[all...]
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/baddof/
H A Dbaddof.c77 if ((rv = ioctl(fd, DTRACEIOC_ENABLE, buf)) == -1) {
135 if ((rv = ioctl(fd, DTRACEIOC_ENABLE, buf)) > 0) {
/freebsd-current/contrib/netbsd-tests/kernel/kqueue/
H A Dt_sig.c38 #include <sys/ioctl.h>
94 RL(ioctl(kq, KFILTER_BYNAME, &km));
/freebsd-current/tools/test/stress2/misc/
H A Drevoke.sh61 #include <sys/ioctl.h>
103 if (ioctl(ttyfd, TIOCSCTTY) < 0) {
104 err(1, "ioctl(TIOCSCTTY)");
/freebsd-current/tests/sys/geom/class/eli/
H A Dunaligned_io.c66 if (ioctl(fd, DIOCGSECTORSIZE, &secsz) != 0)
67 err(1, "ioctl(DIOCGSECTORSIZE)");
69 errx(1, "ioctl(DIOCGSECTORSIZE) returned 0");
70 if (ioctl(fd, DIOCGMEDIASIZE, &disksz) != 0)
71 err(1, "ioctl(DIOCGMEDIASIZE)");
/freebsd-current/tools/tools/mcgrab/
H A Dmcgrab.cc46 #include <sys/ioctl.h>
113 if (ioctl(sock, SIOCGIFADDR, &ifreq) < 0) {
/freebsd-current/usr.sbin/fifolog/lib/
H A Dfifolog_create.c83 i = ioctl(fd, DIOCGSECTORSIZE, &uu);
89 i = ioctl(fd, DIOCGMEDIASIZE, &ms);
/freebsd-current/usr.bin/tip/libacu/
H A Dbiz31.c226 if (ioctl(fd, IOCTL, (caddr_t)&b) >= 0 && chars(b) > 0)
230 if (ioctl(fd, IOCTL, (caddr_t)&b) >= 0) {
/freebsd-current/sbin/ipf/ipsend/
H A Dsdlpi.c20 #include <sys/ioctl.h>
154 if (ioctl(fd, I_FLUSH, FLUSHW) == -1)

Completed in 421 milliseconds

<<11121314151617181920>>