bin/chio/chio.c
1027
if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr) == -1) {
bin/chio/chio.c
1057
if (ioctl(changer_fd, CHIOGPARAMS, (char *)&cp))
bin/chio/chio.c
1081
if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr) == -1) {
bin/chio/chio.c
1098
if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr) == -1) {
bin/chio/chio.c
1114
if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr) == -1) {
bin/chio/chio.c
1130
if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr) == -1) {
bin/chio/chio.c
240
if (ioctl(changer_fd, CHIOMOVE, &cmd))
bin/chio/chio.c
347
if (ioctl(changer_fd, CHIOEXCHANGE, &cmd))
bin/chio/chio.c
409
if (ioctl(changer_fd, CHIOPOSITION, &cmd))
bin/chio/chio.c
438
if (ioctl(changer_fd, CHIOGPARAMS, &data))
bin/chio/chio.c
451
if (ioctl(changer_fd, CHIOGPICKER, &picker))
bin/chio/chio.c
479
if (ioctl(changer_fd, CHIOGPICKER, &picker))
bin/chio/chio.c
509
if (ioctl(changer_fd, CHIOSPICKER, &picker))
bin/chio/chio.c
592
if (ioctl(changer_fd, CHIOGPARAMS, (char *)&cp))
bin/chio/chio.c
673
if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr)) {
bin/chio/chio.c
752
if (ioctl(changer_fd, CHIOIELEM, &timeout))
bin/chio/chio.c
837
if (ioctl(changer_fd, CHIOSETVOLTAG, &csvr))
bin/chio/chio.c
987
if (ioctl(changer_fd, CHIOMOVE, &cmd) == -1)
bin/dd/dd.c
321
if (ioctl(io->fd, FIODTYPE, &type) == -1) {
bin/dd/position.c
179
if (ioctl(out.fd, MTIOCTOP, &t_op) == -1)
bin/dd/position.c
201
if (ioctl(out.fd, MTIOCTOP, &t_op) == -1)
bin/ed/main.c
1380
if (ioctl(0, TIOCGWINSZ, (char *) &ws) >= 0) {
bin/ls/ls.c
251
else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) != -1 &&
bin/pax/ar_io.c
1011
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
bin/pax/ar_io.c
1022
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
bin/pax/ar_io.c
1043
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
bin/pax/ar_io.c
1074
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
bin/pax/ar_io.c
174
artyp = ioctl(arfd, MTIOCGET, &mb) ? ISCHR : ISTAPE;
bin/pax/ar_io.c
742
if (ioctl(arfd, MTIOCTOP, &mb) < 0)
bin/pax/ar_io.c
956
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
bin/ps/ps.c
208
else if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 &&
bin/ps/ps.c
209
ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 &&
bin/ps/ps.c
210
ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) ||
bin/stty/key.c
191
(void)ioctl(ip->fd, TIOCEXT, &tmp);
bin/stty/key.c
194
(void)ioctl(ip->fd, TIOCEXT, &tmp);
bin/stty/key.c
285
if (ioctl(ip->fd, TIOCSETD, &tmp) < 0)
bin/stty/stty.c
142
if (i.wset && ioctl(i.fd, TIOCSWINSZ, &i.win) < 0)
bin/stty/stty.c
87
if (ioctl(i.fd, TIOCGETD, &i.ldisc) < 0)
bin/stty/stty.c
89
if (ioctl(i.fd, TIOCGWINSZ, &i.win) < 0)
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
114
ioctl(0, TIOCLGET, (char *)&flush);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
180
ioctl(fileno(stdout), TIOCFLUSH, (char *) 0);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
182
ioctl(fileno(stdout), TCFLSH, (char *) 0);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
509
ioctl(tin, FIONBIO, (char *)&onoff);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
510
ioctl(tout, FIONBIO, (char *)&onoff);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
55
# define tcgetattr(f, t) ioctl(f, TCGETS, (char *)t)
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
60
# define tcgetattr(f, t) ioctl(f, TCGETA, (char *)t)
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
631
ioctl(fd, FIONBIO, (char *)&onoff);
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
64
# define tcgetattr(f, t) ioctl(f, TIOCGETA, (char *)t)
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
67
# define tcsetattr(f, a, t) ioctl(f, a, (char *)t)
crypto/heimdal/appl/telnet/telnet/sys_bsd.c
875
ioctl(net, SIOCATMARK, (char *)&atmark);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1000
ioctl(t, TCVHUP, (char *)0);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1021
if (ioctl(t, TIOCSCTTY, (char *)0) < 0 && !really_stream)
crypto/heimdal/appl/telnet/telnetd/sys_term.c
137
# define tcgetattr(f, t) ioctl(f, TCGETS, (char *)t)
crypto/heimdal/appl/telnet/telnetd/sys_term.c
142
# define tcgetattr(f, t) ioctl(f, TCGETA, (char *)t)
crypto/heimdal/appl/telnet/telnetd/sys_term.c
146
# define tcgetattr(f, t) ioctl(f, TIOCGETA, (char *)t)
crypto/heimdal/appl/telnet/telnetd/sys_term.c
149
# define tcsetattr(f, a, t) ioctl(f, a, t)
crypto/heimdal/appl/telnet/telnetd/sys_term.c
460
if (ioctl(p, TIOCGPGRP, &dummy) == 0
crypto/heimdal/appl/telnet/telnetd/sys_term.c
760
n = ioctl(fd, I_LIST, 0);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
767
n = ioctl(fd, I_LIST, &sl);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
799
err = ioctl(fd, I_PUSH, *p);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
840
ioctl(t, TIOCNOTTY, (char *)0);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
896
ioctl(t, TIOCSWINSZ, (char *)&ws);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1094
ioctl(net, SIOCATMARK, (char *)&atmark);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1332
ioctl(ourpty, TIOCSIGNAL, &sig);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1333
ioctl(ourpty, I_FLUSH, FLUSHR);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1337
ioctl(ourpty, TCSIG, (char *)SIGINT);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1356
ioctl(ourpty, TCSIG, (char *)SIGQUIT);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1370
ioctl(ourpty, TCSIG, (char *)SIGTSTP);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1387
ioctl(ourpty, TCSIG, (char *)SIGINFO);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
922
ioctl(p, TIOCPKT, (char *)&on);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
933
ioctl(f, FIONBIO, (char *)&on);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
934
ioctl(p, FIONBIO, (char *)&on);
crypto/heimdal/appl/telnet/telnetd/telnetd.c
959
ioctl(t, TIOCNOTTY, (char *)0);
crypto/heimdal/appl/telnet/telnetd/termstat.c
107
ioctl(ourpty, TIOCSWINSZ, (char *)&ws);
crypto/heimdal/lib/kafs/afssys.c
178
ret = ioctl(fd, ioctlnum, &data);
crypto/heimdal/lib/kafs/afssys.c
184
ret = ioctl(fd, ioctlnum, &data);
crypto/heimdal/lib/kafs/afssys.c
218
ret = ioctl(fd, afs_ioctlnum, data);
crypto/heimdal/lib/roken/get_window_size.c
69
ret = ioctl(fd, TIOCGWINSZ, &ws);
crypto/heimdal/lib/roken/get_window_size.c
82
ret = ioctl(fd, TIOCGSIZE, &ts);
crypto/heimdal/lib/roken/getifaddrs.c
1051
if (ioctl (fd, siocgifconf, &ifconf) < 0 && errno != EINVAL) {
crypto/heimdal/lib/roken/getifaddrs.c
1089
if (ioctl(fd, siocgifflags, &ifreq) < 0) {
crypto/heimdal/lib/roken/getifaddrs.c
905
if (ioctl (fd, siocgifconf, &ifconf) < 0 && errno != EINVAL) {
crypto/heimdal/lib/roken/getifaddrs.c
943
if (ioctl(fd, siocgifflags, &ifreq) < 0) {
crypto/heimdal/lib/roken/rkpty.c
130
ioctl(slave, I_PUSH, "ptem");
crypto/heimdal/lib/roken/rkpty.c
131
ioctl(slave, I_PUSH, "ldterm");
crypto/heimdal/lib/roken/socket_wrapper.c
145
#define real_ioctl ioctl
crypto/heimdal/lib/roken/socket_wrapper.h
109
#ifdef ioctl
crypto/krb5/src/include/port-sockets.h
202
#define ioctlsocket ioctl
crypto/krb5/src/lib/apputils/daemon.c
76
(void) ioctl(n, TIOCNOTTY, (char *)NULL);
crypto/krb5/src/lib/krb5/os/localaddr.c
287
ret = ioctl (s, SIOCGIFCONF, (char *)&ifc);
crypto/krb5/src/lib/krb5/os/localaddr.c
317
ret = ioctl (s, SIOCGLIFCONF, (char *)&lifc);
crypto/krb5/src/lib/krb5/os/localaddr.c
343
ret = ioctl (s, SIOCGLIFCONF, (char *)&iflc);
crypto/krb5/src/lib/krb5/os/localaddr.c
550
code = ioctl (P.sock, SIOCGLIFNUM, &P.lifnum);
crypto/krb5/src/lib/krb5/os/localaddr.c
577
if (ioctl (P.sock, SIOCGLIFFLAGS, (char *)&lifreq) < 0) {
crypto/krb5/src/lib/krb5/os/localaddr.c
723
code = ioctl (P.sock, SIOCGLIFNUM, &P.if_num);
crypto/krb5/src/lib/krb5/os/localaddr.c
750
if (ioctl (P.sock, SIOCGLIFFLAGS, (char *)&lifreq) < 0) {
crypto/krb5/src/lib/krb5/os/localaddr.c
863
code = ioctl (s, SIOCGSIZIFCONF, &ifconfsize);
crypto/krb5/src/lib/krb5/os/localaddr.c
869
code = ioctl (s, SIOCGIFNUM, &numifs);
crypto/krb5/src/lib/krb5/os/localaddr.c
971
if (ioctl (s, SIOCGIFFLAGS, (char *)&ifreq) < 0) {
crypto/krb5/src/lib/krb5/os/t_gifconf.c
98
i = ioctl (sock, SIOCGIFCONF, (char *) &ifc);
crypto/krb5/src/lib/rpc/clnt_udp.c
192
(void)ioctl(*sockp, FIONBIO, (char *) &dontblock);
crypto/krb5/src/lib/rpc/get_myaddress.c
106
if (ioctl(s, SIOCGIFFLAGS, (char *)&ifreq) < 0) {
crypto/krb5/src/lib/rpc/get_myaddress.c
99
if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) {
crypto/krb5/src/lib/rpc/pmap_rmt.c
196
if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) {
crypto/krb5/src/lib/rpc/pmap_rmt.c
203
if (ioctl(sock, SIOCGIFFLAGS, (char *)&ifreq) < 0) {
crypto/krb5/src/lib/rpc/pmap_rmt.c
211
if (ioctl(sock, SIOCGIFBRDADDR, (char *)&ifreq) < 0) {
crypto/openssh/channels.c
4913
if (ioctl(sc->channels[i]->rfd, TIOCGWINSZ, &ws) == -1)
crypto/openssh/clientloop.c
2701
if (ioctl(in_fd, TIOCGWINSZ, &ws) == -1)
crypto/openssh/misc.c
1497
if (ioctl(sock, SIOCGIFFLAGS, &ifr) == -1) {
crypto/openssh/misc.c
1505
if (ioctl(sock, SIOCSIFFLAGS, &ifr) == -1) {
crypto/openssh/openbsd-compat/bsd-misc.c
290
if (ioctl(fd, TIOCGPGRP, &ctty_pgrp) == -1)
crypto/openssh/openbsd-compat/bsd-misc.c
306
if (ioctl(fd, TIOCSBRK, 0) == -1)
crypto/openssh/openbsd-compat/bsd-misc.c
309
if (ioctl(fd, TIOCCBRK, 0) == -1)
crypto/openssh/openbsd-compat/bsd-nextstep.c
49
return (ioctl(fd, TIOCGETA, t));
crypto/openssh/openbsd-compat/bsd-nextstep.c
64
return (ioctl(fd, TIOCSETA, t));
crypto/openssh/openbsd-compat/bsd-nextstep.c
66
return (ioctl(fd, TIOCSETAW, t));
crypto/openssh/openbsd-compat/bsd-nextstep.c
68
return (ioctl(fd, TIOCSETAF, t));
crypto/openssh/openbsd-compat/bsd-nextstep.c
77
return (ioctl(fd, TIOCSPGRP, &pgrp));
crypto/openssh/openbsd-compat/bsd-openpty.c
114
if (ioctl(*aslave, I_FIND, "ptem") != 0)
crypto/openssh/openbsd-compat/bsd-openpty.c
122
ioctl(*aslave, I_PUSH, "ptem");
crypto/openssh/openbsd-compat/bsd-openpty.c
123
ioctl(*aslave, I_PUSH, "ldterm");
crypto/openssh/openbsd-compat/bsd-openpty.c
125
ioctl(*aslave, I_PUSH, "ttcompat");
crypto/openssh/openbsd-compat/port-net.c
178
if (ioctl(fd, TUNSETIFF, &ifr) == -1) {
crypto/openssh/openbsd-compat/port-net.c
257
ioctl(fd, TUNSIFHEAD, &flag) == -1) {
crypto/openssh/openbsd-compat/port-net.c
271
if (ioctl(sock, SIOCGIFFLAGS, &ifr) == -1)
crypto/openssh/openbsd-compat/port-net.c
275
if (ioctl(sock, SIOCSIFFLAGS, &ifr) == -1)
crypto/openssh/progressmeter.c
292
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &winsize) != -1 &&
crypto/openssh/sftp.c
1010
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
crypto/openssh/sftp.c
1842
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
crypto/openssh/sftp.c
875
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
crypto/openssh/sshpty.c
108
(void) ioctl(fd, TIOCNOTTY, NULL);
crypto/openssh/sshpty.c
127
if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0)
crypto/openssh/sshpty.c
162
(void) ioctl(ptyfd, TIOCSWINSZ, &w);
crypto/openssh/sshpty.c
228
(void) ioctl(fd, TIOCNOTTY, NULL);
crypto/openssl/crypto/bn/bn_s390x.c
124
if (ioctl(OPENSSL_s390xcex, ICARSACRT, &crt) != -1) {
crypto/openssl/crypto/bn/bn_s390x.c
47
if (ioctl(OPENSSL_s390xcex, ICARSAMODEXPO, &me) != -1) {
crypto/openssl/crypto/ui/ui_openssl.c
118
#define TTY_get(tty, data) ioctl(tty, TCGETA, data)
crypto/openssl/crypto/ui/ui_openssl.c
119
#define TTY_set(tty, data) ioctl(tty, TCSETA, data)
crypto/openssl/crypto/ui/ui_openssl.c
126
#define TTY_get(tty, data) ioctl(tty, TIOCGETP, data)
crypto/openssl/crypto/ui/ui_openssl.c
127
#define TTY_set(tty, data) ioctl(tty, TIOCSETP, data)
crypto/openssl/engines/e_devcrypto.c
1214
if (ioctl(fd, CRIOGET, &cfd) < 0) {
crypto/openssl/engines/e_devcrypto.c
225
ret = ioctl(cfd, CIOCGSESSION2, &cipher_ctx->sess);
crypto/openssl/engines/e_devcrypto.c
227
ret = ioctl(cfd, CIOCGSESSION, &cipher_ctx->sess);
crypto/openssl/engines/e_devcrypto.c
280
if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) {
crypto/openssl/engines/e_devcrypto.c
452
if (ioctl(cfd, CIOCGSESSION2, &sess) == 0) {
crypto/openssl/engines/e_devcrypto.c
456
if (ioctl(cfd, CIOCGSESSION2, &sess) < 0) {
crypto/openssl/engines/e_devcrypto.c
463
if (ioctl(cfd, CIOCGSESSION, &sess) < 0) {
crypto/openssl/engines/e_devcrypto.c
498
if (ioctl(cfd, CIOCFINDDEV, &fop) == 0) {
crypto/openssl/engines/e_devcrypto.c
503
if (ioctl(cfd, CIOCGSESSINFO, &siop) < 0) {
crypto/openssl/engines/e_devcrypto.c
515
ioctl(cfd, CIOCFSESSION, &sess.ses);
crypto/openssl/engines/e_devcrypto.c
742
if (ioctl(cfd, CIOCGSESSION, &digest_ctx->sess) < 0) {
crypto/openssl/engines/e_devcrypto.c
761
return ioctl(cfd, CIOCCRYPT, &cryp);
crypto/openssl/engines/e_devcrypto.c
818
if (ioctl(cfd, CIOCCPHASH, &cphash) < 0) {
crypto/openssl/engines/e_devcrypto.c
89
if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) {
crypto/openssl/engines/e_devcrypto.c
897
if (ioctl(cfd, CIOCGSESSION, &sess1) < 0) {
crypto/openssl/engines/e_devcrypto.c
905
if (ioctl(cfd, CIOCGSESSINFO, &siop) < 0) {
crypto/openssl/engines/e_devcrypto.c
919
if (ioctl(cfd, CIOCGSESSION, &sess2) < 0) {
crypto/openssl/engines/e_devcrypto.c
925
if (ioctl(cfd, CIOCCPHASH, &cphash) < 0) {
crypto/openssl/engines/e_devcrypto.c
950
ioctl(cfd, CIOCFSESSION, &sess1.ses);
crypto/openssl/engines/e_devcrypto.c
952
ioctl(cfd, CIOCFSESSION, &sess2.ses);
crypto/openssl/include/internal/e_os.h
267
#define ioctlsocket(a, b, c) ioctl(a, b, c)
crypto/openssl/include/internal/sockets.h
184
#define ioctlsocket(a, b, c) ioctl(a, b, c)
crypto/openssl/include/internal/sockets.h
189
#define ioctlsocket(a, b, c) ioctl((a), (b), (int)(c))
crypto/openssl/include/internal/sockets.h
196
#define ioctlsocket(a, b, c) ioctl(a, b, c)
crypto/openssl/include/internal/sockets.h
199
#define ioctlsocket(a, b, c) ioctl(a, b, c)
lib/lib80211/lib80211_ioctl.c
107
return ioctl(s, SIOCG80211, &ireq);
lib/lib80211/lib80211_ioctl.c
121
if (ioctl(s, SIOCG80211, &ireq) < 0)
lib/lib80211/lib80211_ioctl.c
135
if (ioctl(s, SIOCG80211, &ireq) < 0)
lib/lib80211/lib80211_ioctl.c
153
if (ioctl(s, SIOCS80211, &ireq) < 0)
lib/libbluetooth/hci.c
631
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_STATE, &rp.r0, sizeof(rp.r0)) < 0)
lib/libbluetooth/hci.c
635
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BDADDR, &rp.r1, sizeof(rp.r1)) < 0)
lib/libbluetooth/hci.c
639
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_FEATURES, &rp.r2, sizeof(rp.r2)) < 0)
lib/libbluetooth/hci.c
643
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BUFFER, &rp.r3, sizeof(rp.r3)) < 0)
lib/libbluetooth/hci.c
653
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_STAT, &rp.r4, sizeof(rp.r4)) < 0)
lib/libbluetooth/hci.c
664
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK,
lib/libbluetooth/hci.c
669
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_PACKET_MASK,
lib/libbluetooth/hci.c
674
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH,
lib/libbluetooth/hci.c
679
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_DEBUG, &rp.r8, sizeof(rp.r8)) < 0)
lib/libbluetooth/hci.c
720
ioctl(s, SIOC_HCI_RAW_NODE_LIST_NAMES, &rp, sizeof(rp)) < 0) {
lib/libc/gen/memfd_create.c
120
error = ioctl(fd, FIOSSHMLPGCNF, &slc);
lib/libc/sys/shm_open.c
65
error = ioctl(fd, FIOSSHMLPGCNF, &slc);
lib/libcam/camlib.c
333
if (ioctl(fd, CAMIOCOMMAND, &ccb) == -1) {
lib/libcam/camlib.c
449
if (ioctl(fd, CAMGETPASSTHRU, &ccb) == -1) {
lib/libcam/camlib.c
566
if (ioctl(fd, CAMGETPASSTHRU, &ccb) == -1) {
lib/libcam/camlib.c
598
if (ioctl(fd, CAMIOCOMMAND, &ccb) == -1) {
lib/libcam/camlib.c
613
if (ioctl(fd, CAMIOCOMMAND, &ccb) == -1) {
lib/libcam/camlib.c
637
if (ioctl(fd, CAMIOCOMMAND, &ccb) == -1) {
lib/libcam/camlib.c
68
return(ioctl(device->fd, CAMIOCOMMAND, ccb));
lib/libcuse/cuse_lib.c
212
error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_MEMORY, &info);
lib/libcuse/cuse_lib.c
227
(void) ioctl(f_cuse, CUSE_IOCTL_FREE_MEMORY, &info);
lib/libcuse/cuse_lib.c
282
error = ioctl(f_cuse, CUSE_IOCTL_FREE_MEMORY, &info);
lib/libcuse/cuse_lib.c
308
error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_UNIT_BY_ID, pnum);
lib/libcuse/cuse_lib.c
327
error = ioctl(f_cuse, CUSE_IOCTL_FREE_UNIT_BY_ID, &num);
lib/libcuse/cuse_lib.c
342
error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_UNIT, pnum);
lib/libcuse/cuse_lib.c
357
error = ioctl(f_cuse, CUSE_IOCTL_FREE_UNIT, &num);
lib/libcuse/cuse_lib.c
397
error = ioctl(f_cuse, CUSE_IOCTL_CREATE_DEV, &info);
lib/libcuse/cuse_lib.c
422
error = ioctl(f_cuse, CUSE_IOCTL_DESTROY_DEV, &cdev);
lib/libcuse/cuse_lib.c
466
error = ioctl(f_cuse, CUSE_IOCTL_GET_COMMAND, &info);
lib/libcuse/cuse_lib.c
594
ioctl(f_cuse, CUSE_IOCTL_SYNC_COMMAND, &error);
lib/libcuse/cuse_lib.c
624
ioctl(f_cuse, CUSE_IOCTL_SET_PFH, &handle);
lib/libcuse/cuse_lib.c
712
error = ioctl(f_cuse, CUSE_IOCTL_WRITE_DATA, &info);
lib/libcuse/cuse_lib.c
745
error = ioctl(f_cuse, CUSE_IOCTL_READ_DATA, &info);
lib/libcuse/cuse_lib.c
793
ioctl(f_cuse, CUSE_IOCTL_SELWAKEUP, &error);
lib/libdevctl/devctl.c
44
return (ioctl(devctl2_fd, cmd, req));
lib/libdevdctl/event.cc
315
bool result(ioctl(devFd, DIOCGPHYSPATH, physPath) == 0);
lib/libdpv/dialog_util.c
96
if ((tcgetattr(fd, &t) < 0) || (ioctl(fd, TIOCGWINSZ, maxsize) < 0)) {
lib/libefivar/efivar.c
186
rv = ioctl(efi_fd, EFIIOC_VAR_GET, &var);
lib/libefivar/efivar.c
253
rv = ioctl(efi_fd, EFIIOC_VAR_NEXT, &var);
lib/libefivar/efivar.c
376
rv = ioctl(efi_fd, EFIIOC_VAR_SET, &var);
lib/libgeom/geom_ctl.c
213
req->nerror = ioctl(fd, GEOM_CTL, req);
lib/libgeom/geom_stats.c
75
error = ioctl(statsfd, DIOCGMEDIASIZE, &mediasize);
lib/libgeom/geom_util.c
74
ret = ioctl(fd, cmd, arg);
lib/libgeom/geom_util.c
76
ret = ioctl(fd, cmd);
lib/libgpio/gpio.c
110
if (ioctl(handle, GPIOGETCONFIG, &gppin) < 0)
lib/libgpio/gpio.c
129
if (ioctl(handle, GPIOSETNAME, &gppin) < 0)
lib/libgpio/gpio.c
144
if (ioctl(handle, GPIOSETCONFIG, &gppin) < 0)
lib/libgpio/gpio.c
157
if (ioctl(handle, GPIOGET, &gpreq) < 0)
lib/libgpio/gpio.c
173
if (ioctl(handle, GPIOSET, &gpreq) < 0)
lib/libgpio/gpio.c
186
if (ioctl(handle, GPIOTOGGLE, &gpreq) < 0)
lib/libgpio/gpio.c
286
if (ioctl(handle, GPIOCONFIGEVENTS, &gpevent_config) < 0)
lib/libgpio/gpio.c
60
if (ioctl(fd, GPIOMAXPIN, &maxpins) < 0) {
lib/libgpio/gpio.c
83
if (ioctl(handle, GPIOMAXPIN, &maxpins) < 0)
lib/libifconfig/libifconfig_internal.c
63
if (ioctl(s, request, data) != 0) {
lib/libmixer/mixer.c
102
if (ioctl(m->fd, SNDCTL_MIXERINFO, &m->mi) < 0) {
lib/libmixer/mixer.c
106
if (ioctl(m->fd, SNDCTL_CARDINFO, &m->ci) < 0)
lib/libmixer/mixer.c
108
if (ioctl(m->fd, SOUND_MIXER_READ_DEVMASK, &m->devmask) < 0 ||
lib/libmixer/mixer.c
109
ioctl(m->fd, SOUND_MIXER_READ_MUTE, &m->mutemask) < 0 ||
lib/libmixer/mixer.c
110
ioctl(m->fd, SOUND_MIXER_READ_RECMASK, &m->recmask) < 0 ||
lib/libmixer/mixer.c
111
ioctl(m->fd, SOUND_MIXER_READ_RECSRC, &m->recsrc) < 0)
lib/libmixer/mixer.c
335
if (ioctl(m->fd, MIXER_WRITE(m->dev->devno), &v) < 0)
lib/libmixer/mixer.c
367
if (ioctl(m->fd, SOUND_MIXER_WRITE_MUTE, &m->mutemask) < 0)
lib/libmixer/mixer.c
369
if (ioctl(m->fd, SOUND_MIXER_READ_MUTE, &m->mutemask) < 0)
lib/libmixer/mixer.c
408
if (ioctl(m->fd, SOUND_MIXER_WRITE_RECSRC, &m->recsrc) < 0)
lib/libmixer/mixer.c
410
if (ioctl(m->fd, SOUND_MIXER_READ_RECSRC, &m->recsrc) < 0)
lib/libmixer/mixer.c
48
if (ioctl(dev->parent_mixer->fd, MIXER_READ(dev->devno), &v) < 0)
lib/libmixer/mixer.c
488
if (ioctl(m->fd, OSS_SYSINFO, &si) < 0) {
lib/libmt/mtlib.c
737
error = ioctl(mtfd, cmd, (caddr_t)&extget);
lib/libnetmap/nmport.c
615
if (ioctl(d->fd, NIOCCTRL, &d->hdr) < 0) {
lib/libnetmap/nmreq.c
225
if (ioctl(fd, NIOCCTRL, &gh) < 0) {
lib/libnvmf/nvmf_host.c
1006
if (ioctl(fd, NVMF_RECONNECT_HOST, &nv) == -1)
lib/libnvmf/nvmf_host.c
901
if (ioctl(fd, NVMF_HANDOFF_HOST, &nv) == -1)
lib/libnvmf/nvmf_host.c
926
if (ioctl(fd, NVMF_DISCONNECT_HOST, &host) == -1)
lib/libnvmf/nvmf_host.c
947
if (ioctl(fd, NVMF_DISCONNECT_ALL) == -1)
lib/libnvmf/nvmf_host.c
964
if (ioctl(fd, com, &nv) == -1)
lib/libnvmf/nvmf_host.c
969
if (ioctl(fd, com, &nv) == -1) {
lib/libpfctl/libpfctl.c
1088
if (ioctl(dev, DIOCADDETHRULE, &nv) != 0)
lib/libpfctl/libpfctl.c
167
ret = ioctl(dev, cmd, &nv);
lib/libpfctl/libpfctl.c
1818
ret = ioctl(dev, DIOCKEEPCOUNTERS, &nv);
lib/libpfctl/libpfctl.c
2210
ret = ioctl(dev, DIOCXBEGIN, &trans);
lib/libpfctl/libpfctl.c
2213
ret = ioctl(dev, DIOCXCOMMIT, &trans);
lib/libpfctl/libpfctl.c
2249
ret = ioctl(dev, DIOCXBEGIN, &trans);
lib/libpfctl/libpfctl.c
2252
ret = ioctl(dev, DIOCXCOMMIT, &trans);
lib/libpfctl/libpfctl.c
2278
ret = ioctl(dev, DIOCXBEGIN, &trans);
lib/libpfctl/libpfctl.c
2281
ret = ioctl(dev, DIOCXCOMMIT, &trans);
lib/libpfctl/libpfctl.c
2296
if (ioctl(dev, DIOCGETLIMIT, &pl) == -1)
lib/libpfctl/libpfctl.c
2339
ret = ioctl(dev, DIOCSETSYNCOOKIES, &nv);
lib/libpfctl/libpfctl.c
2409
if (ioctl(dev, DIOCRADDADDRS, &io))
lib/libpfctl/libpfctl.c
2576
if (ioctl(dev, DIOCRDELADDRS, &io))
lib/libpfctl/libpfctl.c
2717
if (ioctl(dev, DIOCRSETADDRS, &io))
lib/libpfctl/libpfctl.c
2745
if (ioctl(dev, DIOCRGETADDRS, &io))
lib/libufs/block.c
133
return (ioctl(disk->d_fd, DIOCGDELETE, ioarg));
lib/libusb/libusb20_ugen20.c
154
if (ioctl(f, IOUSB(USB_GET_PLUGTIME), &plugtime)) {
lib/libusb/libusb20_ugen20.c
161
if (ioctl(f, IOUSB(USB_GET_DEVICE_DESC), &ddesc)) {
lib/libusb/libusb20_ugen20.c
176
if (ioctl(f, IOUSB(USB_GET_DEVICEINFO), &devinfo)) {
lib/libusb/libusb20_ugen20.c
223
if (ioctl(f, IOUSB(USB_GET_DEV_PORT_PATH), &udpp) == 0 &&
lib/libusb/libusb20_ugen20.c
257
if (ioctl(st->f, IOUSB(USB_READ_DIR), &st->urd)) {
lib/libusb/libusb20_ugen20.c
329
if (ioctl(pdev->file, IOUSB(USB_FS_UNINIT), &fs_uninit)) {
lib/libusb/libusb20_ugen20.c
369
if (ioctl(pdev->file, IOUSB(USB_FS_INIT), &fs_init)) {
lib/libusb/libusb20_ugen20.c
403
if (ioctl(f, IOUSB(USB_GET_PLUGTIME), &plugtime)) {
lib/libusb/libusb20_ugen20.c
446
if (ioctl(pdev->file, IOUSB(USB_FS_UNINIT), &fs_uninit)) {
lib/libusb/libusb20_ugen20.c
484
error = ioctl(pdev->file_ctrl, IOUSB(USB_GET_FULL_DESC), &gen_desc);
lib/libusb/libusb20_ugen20.c
504
error = ioctl(pdev->file_ctrl, IOUSB(USB_GET_FULL_DESC), &gen_desc);
lib/libusb/libusb20_ugen20.c
523
if (ioctl(pdev->file_ctrl, IOUSB(USB_GET_CONFIG), &temp)) {
lib/libusb/libusb20_ugen20.c
539
if (ioctl(pdev->file_ctrl, IOUSB(USB_SET_CONFIG), &temp)) {
lib/libusb/libusb20_ugen20.c
559
if (ioctl(pdev->file_ctrl, IOUSB(USB_SET_ALTINTERFACE), &alt_iface)) {
lib/libusb/libusb20_ugen20.c
573
if (ioctl(pdev->file_ctrl, IOUSB(USB_DEVICEENUMERATE), &temp)) {
lib/libusb/libusb20_ugen20.c
585
if (ioctl(pdev->file_ctrl, IOUSB(USB_GET_PLUGTIME), &plugtime)) {
lib/libusb/libusb20_ugen20.c
622
if (ioctl(pdev->file_ctrl, IOUSB(USB_SET_POWER_MODE), &temp)) {
lib/libusb/libusb20_ugen20.c
633
if (ioctl(pdev->file_ctrl, IOUSB(USB_GET_POWER_MODE), &temp)) {
lib/libusb/libusb20_ugen20.c
665
if (ioctl(pdev->file_ctrl, IOUSB(USB_GET_POWER_USAGE), &temp)) {
lib/libusb/libusb20_ugen20.c
677
if (ioctl(pdev->file_ctrl, IOUSB(USB_DEVICESTATS), &st))
lib/libusb/libusb20_ugen20.c
701
if (ioctl(pdev->file_ctrl, IOUSB(USB_IFACE_DRIVER_ACTIVE), &temp)) {
lib/libusb/libusb20_ugen20.c
713
if (ioctl(pdev->file_ctrl, IOUSB(USB_IFACE_DRIVER_DETACH), &temp)) {
lib/libusb/libusb20_ugen20.c
736
if (ioctl(pdev->file_ctrl, IOUSB(USB_DO_REQUEST), &req)) {
lib/libusb/libusb20_ugen20.c
755
if (ioctl(pdev->file, IOUSB(USB_FS_COMPLETE), &temp)) {
lib/libusb/libusb20_ugen20.c
823
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_OPEN_STREAM), &temp.fs_open_stream))
lib/libusb/libusb20_ugen20.c
826
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_OPEN), &temp.fs_open))
lib/libusb/libusb20_ugen20.c
852
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_CLOSE), &temp)) {
lib/libusb/libusb20_ugen20.c
869
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_CLEAR_STALL_SYNC), &temp)) {
lib/libusb/libusb20_ugen20.c
908
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_START), &temp)) {
lib/libusb/libusb20_ugen20.c
923
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_STOP), &temp)) {
lib/libusb/libusb20_ugen20.c
938
error = ioctl(f, cmd, data);
lib/libusb/libusb20_ugen20.c
962
if (ioctl(pdev->file, IOUSB(USB_GET_IFACE_DRIVER), &ugd)) {
lib/libusb/libusb20_ugen20.c
972
if (ioctl(pdev->file, IOUSB(USB_GET_DEVICEINFO), pinfo)) {
lib/libusbhid/data.c
129
return (ioctl(fd, USB_GET_REPORT, &ugd));
lib/libusbhid/data.c
141
return (ioctl(fd, USB_SET_REPORT, &ugd));
lib/libusbhid/descr.c
107
if (ioctl(fd, USB_GET_REPORT_DESC, &ugd) < 0) {
lib/libusbhid/descr.c
128
if (ioctl(fd, USB_GET_REPORT_DESC, &ugd) < 0) {
lib/libusbhid/descr.c
49
ret = ioctl(fd, USB_SET_IMMED, &enable);
lib/libusbhid/descr.c
84
ret = ioctl(fd, USB_GET_REPORT_ID, &temp);
lib/libusbhid/descr_compat.c
53
return (ioctl(fd, USB_SET_IMMED, &enable));
lib/libusbhid/descr_compat.c
61
if (ioctl(fd, USB_GET_REPORT_ID, &temp) < 0)
lib/libusbhid/descr_compat.c
73
if (ioctl(fd, USB_GET_REPORT_DESC, &rep) < 0)
lib/libutil/pty.c
79
ioctl(slave, TIOCSWINSZ, (char *)winp);
lib/libvgl/keyboard.c
49
ioctl(0, KDGKBMODE, &VGLKeyboardMode);
lib/libvgl/keyboard.c
66
ioctl(0, KDSKBMODE, K_RAW);
lib/libvgl/keyboard.c
69
ioctl(0, KDSKBMODE, K_CODE);
lib/libvgl/keyboard.c
72
ioctl(0, KDSKBMODE, K_XLATE);
lib/libvgl/keyboard.c
82
ioctl(0, KDSKBMODE, VGLKeyboardMode);
lib/libvgl/main.c
101
ioctl(0, VT_SETMODE, &smode);
lib/libvgl/main.c
160
if (ioctl(0, CONS_GET, &VGLOldMode) || ioctl(0, CONS_CURRENT, &adptype))
lib/libvgl/main.c
166
if (ioctl(0, CONS_MODEINFO, &VGLModeInfo)) /* FBIO_MODEINFO */
lib/libvgl/main.c
171
if (ioctl(0, CONS_MODEINFO, &VGLOldModeInfo))
lib/libvgl/main.c
174
if (ioctl(0, CONS_GETINFO, &VGLOldVInfo))
lib/libvgl/main.c
181
if (VGLModeInfo.vi_mem_model != V_INFO_MM_DIRECT && ioctl(0, KDENABIO, 0)) {
lib/libvgl/main.c
238
ioctl(0, VT_WAITACTIVE, 0);
lib/libvgl/main.c
239
ioctl(0, KDSETMODE, KD_GRAPHICS);
lib/libvgl/main.c
240
if (ioctl(0, mode, 0)) {
lib/libvgl/main.c
244
if (ioctl(0, CONS_ADPINFO, &VGLAdpInfo)) { /* FBIO_ADPINFO */
lib/libvgl/main.c
358
if (ioctl(0, VT_SETMODE, &smode)) {
lib/libvgl/main.c
378
ioctl(0, KDENABIO, 0);
lib/libvgl/main.c
379
ioctl(0, KDSETMODE, KD_GRAPHICS);
lib/libvgl/main.c
380
ioctl(0, VGLMode, 0);
lib/libvgl/main.c
449
ioctl(0, VT_RELDISP, VT_ACKACQ);
lib/libvgl/main.c
454
ioctl(0, VGLOldMode, 0);
lib/libvgl/main.c
455
ioctl(0, KDSETMODE, KD_TEXT);
lib/libvgl/main.c
457
ioctl(0, KDDISABIO, 0);
lib/libvgl/main.c
458
ioctl(0, VT_RELDISP, VT_TRUE);
lib/libvgl/main.c
472
ioctl(0, CONS_SETWINORG, offset); /* FBIO_SETWINORG */
lib/libvgl/main.c
487
if (ioctl(0, FBIO_SETLINEWIDTH, &VXsize))
lib/libvgl/main.c
489
ioctl(0, CONS_ADPINFO, &VGLAdpInfo); /* FBIO_ADPINFO */
lib/libvgl/main.c
519
if (ioctl(0, FBIO_SETDISPSTART, &origin))
lib/libvgl/main.c
85
ioctl(0, FBIO_SETLINEWIDTH, &VGLOldVXsize);
lib/libvgl/main.c
88
ioctl(0, _IO('V', VGLOldMode - M_VESA_BASE), 0);
lib/libvgl/main.c
90
ioctl(0, _IO('S', VGLOldMode), 0);
lib/libvgl/main.c
95
ioctl(0, KDRASTER, size);
lib/libvgl/main.c
98
ioctl(0, KDDISABIO, 0);
lib/libvgl/main.c
99
ioctl(0, KDSETMODE, KD_TEXT);
lib/libvgl/mouse.c
231
ioctl(0, CONS_MOUSECTL, &mouseinfo);
lib/libvgl/mouse.c
319
if ((error = ioctl(0, CONS_MOUSECTL, &mouseinfo)))
lib/libvgl/mouse.c
323
ioctl(0, CONS_MOUSECTL, &mouseinfo);
lib/libvgl/mouse.c
338
if (ioctl(0, CONS_MOUSECTL, &mouseinfo) == 0) {
lib/libvgl/mouse.c
342
ioctl(0, CONS_MOUSECTL, &mouseinfo);
lib/libvgl/simple.c
655
if (VGLModeInfo.vi_mem_model == V_INFO_MM_DIRECT && ioctl(0, KDENABIO, 0))
lib/libvgl/simple.c
664
ioctl(0, KDDISABIO, 0);
lib/libvgl/simple.c
678
if (VGLModeInfo.vi_mem_model == V_INFO_MM_DIRECT && ioctl(0, KDENABIO, 0))
lib/libvgl/simple.c
685
ioctl(0, KDDISABIO, 0);
lib/libvmmapi/aarch64/vmmapi_machdep.c
114
return (ioctl(ctx->fd, VM_RAISE_MSI, &vmsi));
lib/libvmmapi/aarch64/vmmapi_machdep.c
67
error = ioctl(ctx->fd, VM_GET_VGIC_VERSION, &vgic.ver);
lib/libvmmapi/aarch64/vmmapi_machdep.c
76
return (ioctl(ctx->fd, VM_ATTACH_VGIC, &vgic));
lib/libvmmapi/aarch64/vmmapi_machdep.c
87
return (ioctl(ctx->fd, VM_ASSERT_IRQ, &vi));
lib/libvmmapi/aarch64/vmmapi_machdep.c
98
return (ioctl(ctx->fd, VM_DEASSERT_IRQ, &vi));
lib/libvmmapi/amd64/vmmapi_machdep.c
173
return (ioctl(ctx->fd, VM_LAPIC_MSI, &vmmsi));
lib/libvmmapi/amd64/vmmapi_machdep.c
201
return (ioctl(ctx->fd, VM_IOAPIC_ASSERT_IRQ, &ioapic_irq));
lib/libvmmapi/amd64/vmmapi_machdep.c
212
return (ioctl(ctx->fd, VM_IOAPIC_DEASSERT_IRQ, &ioapic_irq));
lib/libvmmapi/amd64/vmmapi_machdep.c
223
return (ioctl(ctx->fd, VM_IOAPIC_PULSE_IRQ, &ioapic_irq));
lib/libvmmapi/amd64/vmmapi_machdep.c
230
return (ioctl(ctx->fd, VM_IOAPIC_PINCOUNT, pincount));
lib/libvmmapi/amd64/vmmapi_machdep.c
242
return (ioctl(ctx->fd, VM_ISA_ASSERT_IRQ, &isa_irq));
lib/libvmmapi/amd64/vmmapi_machdep.c
254
return (ioctl(ctx->fd, VM_ISA_DEASSERT_IRQ, &isa_irq));
lib/libvmmapi/amd64/vmmapi_machdep.c
266
return (ioctl(ctx->fd, VM_ISA_PULSE_IRQ, &isa_irq));
lib/libvmmapi/amd64/vmmapi_machdep.c
279
return (ioctl(ctx->fd, VM_ISA_SET_IRQ_TRIGGER, &isa_irq_trigger));
lib/libvmmapi/amd64/vmmapi_machdep.c
358
error = ioctl(ctx->fd, VM_GET_HPET_CAPABILITIES, &cap);
lib/libvmmapi/amd64/vmmapi_machdep.c
373
error = ioctl(ctx->fd, VM_RTC_WRITE, &rtcdata);
lib/libvmmapi/amd64/vmmapi_machdep.c
385
error = ioctl(ctx->fd, VM_RTC_READ, &rtcdata);
lib/libvmmapi/amd64/vmmapi_machdep.c
399
error = ioctl(ctx->fd, VM_RTC_SETTIME, &rtctime);
lib/libvmmapi/amd64/vmmapi_machdep.c
410
error = ioctl(ctx->fd, VM_RTC_GETTIME, &rtctime);
lib/libvmmapi/ppt.c
112
return (ioctl(ctx->fd, VM_PPTDEV_MSI, &pptmsi));
lib/libvmmapi/ppt.c
130
return (ioctl(ctx->fd, VM_PPTDEV_MSIX, &pptmsix));
lib/libvmmapi/ppt.c
143
return (ioctl(ctx->fd, VM_PPTDEV_DISABLE_MSIX, &ppt));
lib/libvmmapi/ppt.c
49
return (ioctl(ctx->fd, VM_BIND_PPTDEV, &pptdev));
lib/libvmmapi/ppt.c
62
return (ioctl(ctx->fd, VM_UNBIND_PPTDEV, &pptdev));
lib/libvmmapi/ppt.c
79
return (ioctl(ctx->fd, VM_MAP_PPTDEV_MMIO, &pptmmio));
lib/libvmmapi/ppt.c
95
return (ioctl(ctx->fd, VM_UNMAP_PPTDEV_MMIO, &pptmmio));
lib/libvmmapi/riscv/vmmapi_machdep.c
106
return (ioctl(ctx->fd, VM_RAISE_MSI, &vmsi));
lib/libvmmapi/riscv/vmmapi_machdep.c
68
return (ioctl(ctx->fd, VM_ATTACH_APLIC, &aplic));
lib/libvmmapi/riscv/vmmapi_machdep.c
79
return (ioctl(ctx->fd, VM_ASSERT_IRQ, &vi));
lib/libvmmapi/riscv/vmmapi_machdep.c
90
return (ioctl(ctx->fd, VM_DEASSERT_IRQ, &vi));
lib/libvmmapi/vmmapi.c
1103
error = ioctl(ctx->fd, VM_GET_CPUS, &vm_cpuset);
lib/libvmmapi/vmmapi.c
114
return (ioctl(ctlfd, VMMCTL_VM_CREATE, &vmc));
lib/libvmmapi/vmmapi.c
1147
error = ioctl(ctx->fd, VM_SUSPEND_CPU, &ac);
lib/libvmmapi/vmmapi.c
1181
error = ioctl(ctx->fd, VM_RESUME_CPU, &ac);
lib/libvmmapi/vmmapi.c
1227
if (ioctl(ctx->fd, VM_SNAPSHOT_REQ, meta) == -1) {
lib/libvmmapi/vmmapi.c
1243
return (ioctl(ctx->fd, VM_RESTORE_TIME, &dummy));
lib/libvmmapi/vmmapi.c
1258
return (ioctl(ctx->fd, VM_SET_TOPOLOGY, &topology));
lib/libvmmapi/vmmapi.c
1269
error = ioctl(ctx->fd, VM_GET_TOPOLOGY, &topology);
lib/libvmmapi/vmmapi.c
209
if (ioctl(vm->ctlfd, VMMCTL_VM_DESTROY, &vmd) != 0)
lib/libvmmapi/vmmapi.c
318
error = ioctl(ctx->fd, VM_MMAP_MEMSEG, &memmap);
lib/libvmmapi/vmmapi.c
342
error = ioctl(ctx->fd, VM_MUNMAP_MEMSEG, &munmap);
lib/libvmmapi/vmmapi.c
355
error = ioctl(ctx->fd, VM_MMAP_GETNEXT, &memmap);
lib/libvmmapi/vmmapi.c
429
error = ioctl(ctx->fd, VM_ALLOC_MEMSEG, &memseg);
lib/libvmmapi/vmmapi.c
443
error = ioctl(ctx->fd, VM_GET_MEMSEG, &memseg);
lib/libvmmapi/vmmapi.c
744
return (ioctl(vcpu->ctx->fd, cmd, arg));
lib/libvmmapi/vmmapi.c
820
return (ioctl(ctx->fd, VM_SUSPEND, &vmsuspend));
lib/libvmmapi/vmmapi.c
827
return (ioctl(ctx->fd, VM_REINIT, 0));
lib/libvmmapi/vmmapi.c
930
if (ioctl(ctx->fd, VM_STAT_DESC, &statdesc) == 0)
lib/libvmmapi/vmmapi.c
946
error = ioctl(ctx->fd, VM_GET_GPA_PMAP, &gpapte);
lib/virtual_oss/bt/bt.c
577
if (ioctl(cfg->fd, FIONBIO, &temp) == -1) {
lib/virtual_oss/oss/oss.c
104
err = ioctl(pbe->fd, SOUND_PCM_WRITE_CHANNELS, &temp);
lib/virtual_oss/oss/oss.c
107
err = ioctl(pbe->fd, SOUND_PCM_READ_CHANNELS, &temp);
lib/virtual_oss/oss/oss.c
115
err = ioctl(pbe->fd, SNDCTL_DSP_SPEED, &temp);
lib/virtual_oss/oss/oss.c
122
err = ioctl(pbe->fd, SNDCTL_DSP_SETBLKSIZE, &temp);
lib/virtual_oss/oss/oss.c
171
if (ioctl(pbe->fd, FIONREAD, pdelay) != 0)
lib/virtual_oss/oss/oss.c
179
ioctl(pbe->fd, SNDCTL_DSP_GETODELAY, pdelay) != 0)
lib/virtual_oss/oss/oss.c
60
error = ioctl(fd, SNDCTL_DSP_SETFMT, &fmt);
lib/virtual_oss/oss/oss.c
91
err = ioctl(pbe->fd, FIONBIO, &fionbio);
libexec/bootpd/bootpd.c
386
ioctl(n, TIOCNOTTY, (char *) 0);
libexec/bootpd/bootpgw/bootpgw.c
356
ioctl(n, TIOCNOTTY, (char *) 0);
libexec/bootpd/getether.c
136
if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 ||
libexec/bootpd/getether.c
350
if (ioctl(fd, SIOCGIFHWADDR, &phys) < 0) {
libexec/bootpd/getether.c
52
if (ioctl(fd, SIOCRPHYSADDR, &phys) < 0) {
libexec/bootpd/getether.c
92
if (ioctl(nit, NIOCBIND, &ifrnit) < 0) {
libexec/bootpd/getether.c
96
if (ioctl(nit, SIOCGIFADDR, &ifrnit) < 0) {
libexec/bootpd/getif.c
65
m = ioctl(s, I_STR, (char *) &ioc);
libexec/bootpd/getif.c
71
m = ioctl(s, SIOCGIFCONF, (caddr_t) & ifconf);
libexec/bootpd/hwaddr.c
155
if (ioctl(fd, I_STR, (caddr_t)&iocb) < 0) {
libexec/bootpd/hwaddr.c
167
if (ioctl(s, SIOCSARP, (caddr_t) &arpreq) < 0) {
libexec/bootpd/rtmsg.c
95
ioctl(s, FIONREAD, &n);
libexec/bootpd/rtmsg.c
98
ioctl(s, FIONREAD, &n);
libexec/getty/chat.c
477
ioctl(STDIN_FILENO, FIONBIO, &off);
libexec/getty/chat.c
83
ioctl(STDIN_FILENO, FIONBIO, &on);
libexec/getty/chat.c
95
return ioctl(STDIN_FILENO, FIONBIO, &off);
libexec/getty/main.c
480
ioctl(STDIN_FILENO, FIONBIO, &off); /* turn off non-blocking mode */
libexec/getty/main.c
481
ioctl(STDIN_FILENO, FIOASYNC, &off); /* ditto for async mode */
libexec/rbootd/bpf.c
103
if (ioctl(BpfFd, BIOCSETIF, (caddr_t)&ifr) < 0) {
libexec/rbootd/bpf.c
111
if (ioctl(BpfFd, BIOCGDLT, (caddr_t)&n) < 0) {
libexec/rbootd/bpf.c
125
if (ioctl(BpfFd, BIOCIMMEDIATE, (caddr_t)&n) < 0) {
libexec/rbootd/bpf.c
141
if (ioctl(BpfFd, BIOCPROMISC, (caddr_t)0) < 0) {
libexec/rbootd/bpf.c
149
if (ioctl(BpfFd, BIOCGBLEN, (caddr_t)&BpfLen) < 0) {
libexec/rbootd/bpf.c
183
if (ioctl(BpfFd, BIOCSETF, (caddr_t)&bpf_pgm) < 0) {
libexec/rbootd/bpf.c
228
if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
libexec/rbootd/bpf.c
239
if (ioctl(fd, SIOCGIFFLAGS, (char *)ifrp) < 0) {
libexec/rbootd/bpf.c
393
if (ioctl(BpfFd, SIOCDELMULTI, (caddr_t)&ifr) < 0)
libexec/rbootd/bpf.c
394
(void) ioctl(BpfFd, BIOCPROMISC, (caddr_t)0);
libexec/tftpd/tftp-file.c
289
(void) ioctl(peer, FIONREAD, &i);
libexec/tftpd/tftpd.c
235
if (ioctl(0, FIONBIO, &on) < 0) {
sbin/bsdlabel/bsdlabel.c
1471
if (ioctl(f, DIOCGFWSECTORS, &u) == 0)
sbin/bsdlabel/bsdlabel.c
1475
if (ioctl(f, DIOCGFWHEADS, &u) == 0)
sbin/camcontrol/camcontrol.c
3549
if (ioctl(fd, CAMGETPASSTHRU, &ccb) == -1) {
sbin/camcontrol/camcontrol.c
3709
if (ioctl(fd, CAMIOCOMMAND, ccb) == -1) {
sbin/camcontrol/camcontrol.c
3774
if (ioctl(fd, CAMIOCOMMAND, matchccb) == -1) {
sbin/camcontrol/camcontrol.c
3815
if (ioctl(fd, CAMIOCOMMAND, ccb) == -1) {
sbin/camcontrol/camcontrol.c
3910
if (ioctl(fd, CAMIOCOMMAND, &ccb) < 0) {
sbin/camcontrol/camcontrol.c
515
if (ioctl(fd, CAMIOCOMMAND, &ccb) == -1) {
sbin/camcontrol/camcontrol.c
5154
if (ioctl(fd, CAMIOCOMMAND, &ccb) == -1) {
sbin/camcontrol/camcontrol.c
8939
if (ioctl(fd, CAMIOCOMMAND, &ccb) == -1) {
sbin/camcontrol/fwdownload.c
801
if (ioctl(fd, CAMIOCOMMAND, &ccb) < 0) {
sbin/camcontrol/progress.c
74
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &winsize) != -1 &&
sbin/comcontrol/comcontrol.c
74
if (ioctl(fd, TIOCGDRAINWAIT, &drainwait) < 0) {
sbin/comcontrol/comcontrol.c
97
if (ioctl(fd, TIOCSDRAINWAIT, &drainwait) < 0) {
sbin/conscontrol/conscontrol.c
162
if (ioctl(ttyfd, TIOCCONS, &flag) == -1)
sbin/devd/devd.cc
377
if (ioctl(s, SIOCGIFMEDIA, (caddr_t)&ifmr) >= 0 &&
sbin/devfs/rule.c
119
rv = ioctl(mpfd, DEVFSIO_RADD, &dr);
sbin/devfs/rule.c
141
rv = ioctl(mpfd, DEVFSIO_RAPPLY, &dr);
sbin/devfs/rule.c
147
rv = ioctl(mpfd, DEVFSIO_RAPPLYID, &rid);
sbin/devfs/rule.c
161
rv = ioctl(mpfd, DEVFSIO_SAPPLY, &in_rsnum);
sbin/devfs/rule.c
176
rv = ioctl(mpfd, DEVFSIO_RDEL, &rid);
sbin/devfs/rule.c
193
while (ioctl(mpfd, DEVFSIO_RGETNEXT, &dr) != -1) {
sbin/devfs/rule.c
194
rv = ioctl(mpfd, DEVFSIO_RDEL, &dr.dr_id);
sbin/devfs/rule.c
215
rv = ioctl(mpfd, DEVFSIO_RGETNEXT, &dr);
sbin/devfs/rule.c
222
while (ioctl(mpfd, DEVFSIO_RGETNEXT, &dr) != -1)
sbin/devfs/rule.c
238
while (ioctl(mpfd, DEVFSIO_SGETNEXT, &rsnum) != -1)
sbin/devfs/rule.c
255
rv = ioctl(mpfd, DEVFSIO_SUSE, &rsnum);
sbin/devfs/rule.c
279
rv = ioctl(mpfd, request, &dr);
sbin/dhclient/bpf.c
153
if (ioctl(info->wfdesc, BIOCVERSION, &v) < 0)
sbin/dhclient/bpf.c
164
if (ioctl(info->wfdesc, BIOCSETWF, &p) < 0)
sbin/dhclient/bpf.c
167
if (ioctl(info->wfdesc, BIOCLOCK, NULL) < 0)
sbin/dhclient/bpf.c
266
if (ioctl(info->rfdesc, BIOCVERSION, &v) < 0)
sbin/dhclient/bpf.c
278
if (ioctl(info->rfdesc, BIOCIMMEDIATE, &flag) < 0)
sbin/dhclient/bpf.c
282
if (ioctl(info->rfdesc, BIOCGBLEN, &sz) < 0)
sbin/dhclient/bpf.c
296
if (ioctl(info->rfdesc, BIOCSETF, &p) < 0)
sbin/dhclient/bpf.c
299
if (ioctl(info->rfdesc, BIOCLOCK, NULL) < 0)
sbin/dhclient/bpf.c
88
if (ioctl(sock, BIOCSETIF, info->ifp) < 0)
sbin/dhclient/bpf.c
94
if (ioctl(sock, BIOCSETVLANPCP,
sbin/dhclient/dispatch.c
314
if (ioctl(ifsock, SIOCGIFFLAGS, &ifr) < 0) {
sbin/dhclient/dispatch.c
332
if (ioctl(ifsock, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0) {
sbin/dhclient/dispatch.c
507
if (ioctl(sock, SIOCGIFMEDIA, (caddr_t)&ifmr) == -1) {
sbin/dhclient/dispatch.c
568
if (ioctl(sock, SIOCGIFMTU, (caddr_t)&ifr) == -1)
sbin/dhclient/dispatch.c
577
if (ioctl(sock, SIOCSIFMTU, &ifr) == -1)
sbin/dumpon/dumpon.c
211
if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) != 0)
sbin/dumpon/dumpon.c
418
if (ioctl(fd, DIOCGKERNELDUMP, &ndconf) != 0) {
sbin/dumpon/dumpon.c
597
error = ioctl(fd, DIOCSKERNELDUMP, &ndconf);
sbin/dumpon/dumpon.c
669
error = ioctl(fd, DIOCSKERNELDUMP, kdap);
sbin/dumpon/dumpon.c
675
error = ioctl(fd, DIOCSKERNELDUMP, kdap);
sbin/etherswitchcfg/etherswitchcfg.c
126
if (ioctl(cfg->fd, IOETHERSWITCHGETREG, &er) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
138
if (ioctl(cfg->fd, IOETHERSWITCHSETREG, &er) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
149
if (ioctl(cfg->fd, IOETHERSWITCHGETPHYREG, &er) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
162
if (ioctl(cfg->fd, IOETHERSWITCHSETPHYREG, &er) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
181
if (ioctl(cfg->fd, IOETHERSWITCHGETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
184
if (ioctl(cfg->fd, IOETHERSWITCHSETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
227
if (ioctl(cfg->fd, IOETHERSWITCHGETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
233
if (ioctl(cfg->fd, IOETHERSWITCHSETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
252
if (ioctl(cfg->fd, IOETHERSWITCHGETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
259
if (ioctl(cfg->fd, IOETHERSWITCHSETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
278
if (ioctl(cfg->fd, IOETHERSWITCHGETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
288
if (ioctl(cfg->fd, IOETHERSWITCHSETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
305
if (ioctl(cfg->fd, IOETHERSWITCHGETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
324
if (ioctl(cfg->fd, IOETHERSWITCHSETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
344
if (ioctl(cfg->fd, IOETHERSWITCHGETVLANGROUP, &vg) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
347
if (ioctl(cfg->fd, IOETHERSWITCHSETVLANGROUP, &vg) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
386
if (ioctl(cfg->fd, IOETHERSWITCHGETVLANGROUP, &vg) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
390
if (ioctl(cfg->fd, IOETHERSWITCHSETVLANGROUP, &vg) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
457
if (ioctl(cfg->fd, IOETHERSWITCHSETCONF, &conf) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
487
if (ioctl(cfg->fd, i, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
506
if (ioctl(cfg->fd, IOETHERSWITCHGETTABLE, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
513
if (ioctl(cfg->fd, IOETHERSWITCHGETTABLEENTRY, &e) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
579
if (ioctl(cfg->fd, IOETHERSWITCHGETPORT, &p) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
622
if (ioctl(cfg->fd, IOETHERSWITCHGETVLANGROUP, &vg) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
713
if (ioctl(cfg->fd, IOETHERSWITCHGETCONF, &cfg->conf) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
761
if (ioctl(cfg.fd, IOETHERSWITCHGETINFO, &cfg.info) != 0)
sbin/etherswitchcfg/etherswitchcfg.c
763
if (ioctl(cfg.fd, IOETHERSWITCHGETCONF, &cfg.conf) != 0)
sbin/etherswitchcfg/ifmedia.c
119
if (ioctl(s, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0) {
sbin/etherswitchcfg/ifmedia.c
136
if (ioctl(s, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0)
sbin/etherswitchcfg/ifmedia.c
211
if (ioctl(s, SIOCGIFMEDIA, (caddr_t)ifmr) < 0) {
sbin/etherswitchcfg/ifmedia.c
223
if (ioctl(s, SIOCGIFMEDIA, (caddr_t)ifmr) < 0)
sbin/etherswitchcfg/ifmedia.c
238
if (ioctl(s, SIOCSIFMEDIA, (caddr_t)&ifr) < 0)
sbin/fdisk/fdisk.c
821
error = ioctl(fd, DIOCGFWSECTORS, &u);
sbin/fdisk/fdisk.c
827
error = ioctl(fd, DIOCGFWHEADS, &u);
sbin/fsck/fsck.c
560
if (ioctl(fd, DIOCGATTR, &attr) == -1) {
sbin/fsck_ffs/fsutil.c
944
ioctl(fd, DIOCGDELETE, ioarg);
sbin/fsck_ffs/setup.c
520
if (ioctl(devfd, DIOCGSECTORSIZE, &secsize) == -1 ||
sbin/fsck_ffs/setup.c
559
ioctl(readfd, DIOCGSECTORSIZE, &secsize) == -1 ||
sbin/fsck_ffs/suj.c
2390
if (real_dev_bsize == 0 && ioctl(fsreadfd, DIOCGSECTORSIZE,
sbin/ggate/shared/ggate.c
140
if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) == -1) {
sbin/ggate/shared/ggate.c
161
if (ioctl(fd, DIOCGSECTORSIZE, &secsize) == -1) {
sbin/ggate/shared/ggate.c
193
if (ioctl(g_gate_devfd, req, data) == -1) {
sbin/growfs/growfs.c
1232
if (ioctl(0, TIOCGWINSZ, &ws) != -1)
sbin/growfs/growfs.c
1368
if (ioctl(fsi, DIOCGMEDIASIZE, &mediasize) == -1)
sbin/growfs/growfs.c
1502
error = ioctl(fso, UFSSUSPEND, &statfsp->f_fsid);
sbin/growfs/growfs.c
1584
error = ioctl(fso, UFSRESUME);
sbin/hastd/primary.c
1205
if (ioctl(res->hr_ggatefd, G_GATE_CMD_DONE, ggio) == -1)
sbin/hastd/primary.c
1243
if (ioctl(res->hr_ggatefd, G_GATE_CMD_START, ggio) == -1) {
sbin/hastd/primary.c
1921
if (ioctl(res->hr_ggatefd, G_GATE_CMD_DONE, ggio) == -1) {
sbin/hastd/primary.c
295
if (ioctl(res->hr_ggatefd, G_GATE_CMD_DESTROY, &ggiod) == -1) {
sbin/hastd/primary.c
623
if (ioctl(res->hr_ggatefd, G_GATE_CMD_MODIFY, &ggiomodify) == 0)
sbin/hastd/primary.c
931
if (ioctl(res->hr_ggatefd, G_GATE_CMD_CREATE, &ggiocreate) == 0) {
sbin/hastd/primary.c
953
if (ioctl(res->hr_ggatefd, G_GATE_CMD_CANCEL, &ggiocancel) == 0) {
sbin/hastd/subr.c
103
if (ioctl(res->hr_localfd, DIOCGMEDIASIZE,
sbin/hastd/subr.c
110
if (ioctl(res->hr_localfd, DIOCGSECTORSIZE,
sbin/ifconfig/af_inet6.c
307
if (ioctl(s6, SIOCGIFAFLAG_IN6, &ifr6) < 0) {
sbin/ifconfig/af_inet6.c
315
if (ioctl(s6, SIOCGIFALIFETIME_IN6, &ifr6) < 0) {
sbin/ifconfig/af_link.c
144
rc = ioctl(sock_hw, SIOCGHWADDR, &ifr);
sbin/ifconfig/af_nd6.c
131
error = ioctl(s, SIOCGDEFIFACE_IN6, (caddr_t)&ndifreq);
sbin/ifconfig/af_nd6.c
154
error = ioctl(s6, SIOCGIFINFO_IN6, &nd);
sbin/ifconfig/ifconfig.c
1384
if (ioctl(s, SIOCGIFFLAGS, (caddr_t)&my_ifr) < 0) {
sbin/ifconfig/ifconfig.c
1412
if (ioctl(ctx->io_s, SIOCSIFFLAGS, (caddr_t)&my_ifr) < 0)
sbin/ifconfig/ifconfig.c
1428
if (ioctl(ctx->io_s, SIOCSIFFLAGS, (caddr_t)&my_ifr) < 0)
sbin/ifconfig/ifconfig.c
211
if (ioctl(ctx->io_s, SIOCIFCREATE2, ifr) < 0) {
sbin/ifconfig/ifconfig.c
886
if (ioctl(sock, SIOCGIFGROUP, (caddr_t)&ifgr) == -1) {
sbin/ifconfig/ifconfig.c
900
if (ioctl(sock, SIOCGIFGROUP, (caddr_t)&ifgr) == -1)
sbin/ifconfig/ifconfig.h
164
#define ioctl_ctx(ctx, _req, ...) ioctl((ctx)->io_s, _req, ## __VA_ARGS__)
sbin/ifconfig/ifgroup.c
116
if (ioctl(s, SIOCGIFGMEMB, (caddr_t)&ifgr) == -1) {
sbin/ifconfig/ifgroup.c
127
if (ioctl(s, SIOCGIFGMEMB, (caddr_t)&ifgr) == -1)
sbin/ifconfig/ifieee80211.c
4998
if (ioctl(s, SIOCG80211, ireq) != -1)
sbin/ifconfig/ifieee80211.c
5287
if (ioctl(s, IEEE80211_IOC_COUNTERMEASURES, &val) != -1) {
sbin/ifconfig/ifieee80211.c
5296
if (ioctl(s, SIOCG80211, &ireq) != -1) {
sbin/ifconfig/ifieee80211.c
5300
if (ioctl(s, SIOCG80211, &ireq) != -1) {
sbin/ifconfig/ifieee80211.c
5307
if (ioctl(s, SIOCG80211, &ireq) != -1) {
sbin/ifconfig/ifieee80211.c
5314
if (ioctl(s, SIOCG80211, &ireq) != -1) {
sbin/ifconfig/ifieee80211.c
5321
if (ioctl(s, SIOCG80211, &ireq) != -1) {
sbin/ifconfig/ifmac.c
96
error = ioctl(ctx->io_s, SIOCSIFMAC, &ifr);
sbin/ifconfig/ifvlan.c
182
if (ioctl(s, SIOCSETVLAN, (caddr_t)ifr) == -1)
sbin/ipf/common/ipf_y.y
2568
ipf_dotuning(ipffd, buffer, ioctl);
sbin/ipf/ipf/ipf.c
136
ipf_dotuning(fd, optarg, ioctl);
sbin/ipf/ipf/ipf.c
204
(ioctl(fd, SIOCGETFF, &i) == -1)) {
sbin/ipf/ipf/ipf.c
216
if (ioctl(fd, SIOCFRENB, &enable) == -1) {
sbin/ipf/ipf/ipf.c
297
(ioctl(fd, SIOCSETFF, &flag) != 0))
sbin/ipf/ipf/ipf.c
312
if (ioctl(xfd, SIOCGETLG, &logopt))
sbin/ipf/ipf/ipf.c
316
if (ioctl(xfd, SIOCSETLG, &logopt))
sbin/ipf/ipf/ipf.c
329
if (ioctl(xfd, SIOCGETLG, &logopt))
sbin/ipf/ipf/ipf.c
333
if (ioctl(xfd, SIOCSETLG, &logopt))
sbin/ipf/ipf/ipf.c
373
if (ioctl(fd, SIOCMATCHFLUSH, &obj) == -1) {
sbin/ipf/ipf/ipf.c
380
if (ioctl(fd, SIOCIPFFL, &fl) == -1) {
sbin/ipf/ipf/ipf.c
413
if (ioctl(fd, SIOCIPFL6, &fl) == -1) {
sbin/ipf/ipf/ipf.c
418
if (ioctl(fd, SIOCIPFFL, &fl) == -1) {
sbin/ipf/ipf/ipf.c
441
if (opendevice(ipfname, 1) != -2 && ioctl(fd, SIOCSWAPA, &in) == -1)
sbin/ipf/ipf/ipf.c
453
if (opendevice(ipfname, 1) != -2 && ioctl(fd, SIOCFRSYN, &frsyn) == -1)
sbin/ipf/ipf/ipf.c
47
static ioctlfunc_t iocfunctions[IPL_LOGSIZE] = { ioctl, ioctl, ioctl,
sbin/ipf/ipf/ipf.c
473
if (ioctl(fd, SIOCFRZST, &obj) == -1) {
sbin/ipf/ipf/ipf.c
48
ioctl, ioctl, ioctl,
sbin/ipf/ipf/ipf.c
49
ioctl, ioctl };
sbin/ipf/ipf/ipf.c
528
if (ioctl(vfd, SIOCGETFS, &ipfo)) {
sbin/ipf/ipfs/ipfs.c
358
if (ioctl(fd, SIOCSTLCK, &lock) == -1) {
sbin/ipf/ipfs/ipfs.c
398
if (ioctl(fd, SIOCSTGET, &obj)) {
sbin/ipf/ipfs/ipfs.c
504
if (ioctl(fd, SIOCSTPUT, &obj)) {
sbin/ipf/ipfs/ipfs.c
648
if (ioctl(fd, SIOCSTPUT, &obj)) {
sbin/ipf/ipfs/ipfs.c
704
if (ioctl(fd, SIOCSTGSZ, &ng)) {
sbin/ipf/ipfs/ipfs.c
733
if (ioctl(fd, SIOCSTGET, &obj)) {
sbin/ipf/ipfstat/ipfstat.c
1134
if (ioctl(state_fd, SIOCGTABL, &obj) != 0) {
sbin/ipf/ipfstat/ipfstat.c
1323
if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) {
sbin/ipf/ipfstat/ipfstat.c
1430
(void) ioctl(state_fd, SIOCIPFDELTOK, &token_type);
sbin/ipf/ipfstat/ipfstat.c
1823
if (ioctl(auth_fd, SIOCGENITER, &obj))
sbin/ipf/ipfstat/ipfstat.c
1831
printfr(&fra.fae_fr, ioctl);
sbin/ipf/ipfstat/ipfstat.c
2117
if (ioctl(state_fd, SIOCGENITER, &obj) != 0)
sbin/ipf/ipfstat/ipfstat.c
2121
(void) ioctl(ipf_fd,SIOCIPFDELTOK, &n);
sbin/ipf/ipfstat/ipfstat.c
2145
if (ioctl(fd, SIOCGENITER, &obj))
sbin/ipf/ipfstat/ipfstat.c
2307
if (ioctl(fd, SIOCGTQTAB, &obj) == 0) {
sbin/ipf/ipfstat/ipfstat.c
466
if (ioctl(ipf_fd, SIOCGETFS, &ipfo) == -1) {
sbin/ipf/ipfstat/ipfstat.c
471
if (ioctl(ipf_fd, SIOCGETFF, frfp) == -1)
sbin/ipf/ipfstat/ipfstat.c
483
if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) {
sbin/ipf/ipfstat/ipfstat.c
487
if (ioctl(state_fd, SIOCGETLG, &state_logging) == -1) {
sbin/ipf/ipfstat/ipfstat.c
500
if (ioctl(ipf_fd, SIOCGFRST, &ipfo) == -1) {
sbin/ipf/ipfstat/ipfstat.c
516
if (ioctl(auth_fd, SIOCATHST, &ipfo) == -1) {
sbin/ipf/ipfstat/ipfstat.c
800
if (ioctl(ipf_fd, SIOCIPFITER, &obj) == -1) {
sbin/ipf/ipfstat/ipfstat.c
803
(void) ioctl(ipf_fd,SIOCIPFDELTOK, &num);
sbin/ipf/ipfstat/ipfstat.c
849
printfr(fp, ioctl);
sbin/ipf/ipfstat/ipfstat.c
886
(void) ioctl(ipf_fd,SIOCIPFDELTOK, &num);
sbin/ipf/ipfstat/ipfstat.c
959
printfr(fp, ioctl);
sbin/ipf/ipfsync/ipfsyncd.c
333
if (ioctl(igmpfd, SIOCGIFADDR, &req) == -1) {
sbin/ipf/ipfsync/ipfsyncd.c
408
if (ioctl(nfd, SIOCGIFADDR, &req) == -1) {
sbin/ipf/ipfsync/ipfsyncd.c
540
(void) ioctl(lfd, SIOCIPFFL, &n2);
sbin/ipf/ipmon/ipmon.c
1452
if (ioctl(fd, SIOCIPFFB, &flushed) == 0) {
sbin/ipf/ipnat/ipnat.c
200
if (ioctl(fd, SIOCGNATS, &obj) == -1) {
sbin/ipf/ipnat/ipnat.c
219
return (ipnat_parsefile(fd, ipnat_addrule, ioctl, file));
sbin/ipf/ipnat/ipnat.c
297
if (ioctl(fd, SIOCMATCHFLUSH, &obj) == -1) {
sbin/ipf/ipnat/ipnat.c
303
} else if (ioctl(fd, SIOCIPFFL, &n) == -1) {
sbin/ipf/ipnat/ipnat.c
314
if (!(opts & OPT_DONOTHING) && ioctl(fd, SIOCIPFFL, &n) == -1)
sbin/ipf/ipnat/ipnat.c
419
if (ioctl(fd, SIOCGTABL, &obj) != 0) {
sbin/ipf/ipnat/ipnat.c
540
if (ioctl(fd, SIOCGENITER, &obj) == -1)
sbin/ipf/ipnat/ipnat.c
562
(void) ioctl(fd,SIOCIPFDELTOK, &i);
sbin/ipf/ipnat/ipnat.c
570
if (ioctl(fd, SIOCGENITER, &obj) == -1)
sbin/ipf/ipnat/ipnat.c
600
(void) ioctl(fd,SIOCIPFDELTOK, &i);
sbin/ipf/ipnat/ipnat.c
664
if (ioctl(fd, SIOCGENITER, &obj) == -1)
sbin/ipf/ipnat/ipnat.c
671
(void) ioctl(fd,SIOCIPFDELTOK, &i);
sbin/ipf/ippool/ippool.c
1033
if (ioctl(fd, SIOCLOOKUPITER, &obj)) {
sbin/ipf/ippool/ippool.c
231
err = load_poolnode(role, poolname, &pnode, ttl, ioctl);
sbin/ipf/ippool/ippool.c
233
err = remove_poolnode(role, poolname, &pnode, ioctl);
sbin/ipf/ippool/ippool.c
237
err = load_hashnode(role, poolname, &hnode, ttl, ioctl);
sbin/ipf/ippool/ippool.c
239
err = remove_hashnode(role, poolname, &hnode, ioctl);
sbin/ipf/ippool/ippool.c
338
err = load_hash(&iph, NULL, ioctl);
sbin/ipf/ippool/ippool.c
341
err = load_pool(&pool, ioctl);
sbin/ipf/ippool/ippool.c
348
err = remove_hash(&iph, ioctl);
sbin/ipf/ippool/ippool.c
351
err = remove_pool(&pool, ioctl);
sbin/ipf/ippool/ippool.c
357
err_h = remove_hash(&iph, ioctl);
sbin/ipf/ippool/ippool.c
358
err_p = remove_pool(&pool, ioctl);
sbin/ipf/ippool/ippool.c
413
if (ippool_parsefile(fd, infile, ioctl) != 0)
sbin/ipf/ippool/ippool.c
481
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
496
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
513
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
592
if (ioctl(fd, SIOCLOOKUPFLUSH, &flush) == -1) {
sbin/ipf/ippool/ippool.c
840
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
852
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
878
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
889
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
914
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
925
c = ioctl(fd, SIOCLOOKUPSTAT, &op);
sbin/ipf/ippool/ippool.c
964
if (ioctl(fd, SIOCLOOKUPITER, &obj)) {
sbin/ipf/ippool/ippool.c
999
if (ioctl(fd, SIOCLOOKUPITER, &obj)) {
sbin/ipf/ipscan/ipscan_y.y
392
if (ioctl(fd, SIOCRMSCA, &iscp) == -1)
sbin/ipf/ipscan/ipscan_y.y
395
if (ioctl(fd, SIOCADSCA, &iscp) == -1)
sbin/ipf/ipscan/ipscan_y.y
469
if (ioctl(fd, SIOCGSCST, &ipscp) == -1)
sbin/ipf/ipsend/arp.c
96
if (ioctl(sfd, SIOCGARP, (caddr_t)&ar) == -1)
sbin/ipf/ipsend/dlcommon.c
1276
rc = ioctl(fd, I_STR, &sioc);
sbin/ipf/ipsend/sbpf.c
107
if (ioctl(fd, BIOCGBLEN, &bufsize) == -1)
sbin/ipf/ipsend/sbpf.c
119
if (ioctl(fd, BIOCSRTIMEOUT, (caddr_t)&to) == -1)
sbin/ipf/ipsend/sbpf.c
125
(void) ioctl(fd, BIOCFLUSH, 0);
sbin/ipf/ipsend/sbpf.c
82
if (ioctl(fd, BIOCVERSION, (caddr_t)&bv) < 0)
sbin/ipf/ipsend/sbpf.c
98
if (ioctl(fd, BIOCSETIF, &ifr) == -1)
sbin/ipf/ipsend/sdlpi.c
154
if (ioctl(fd, I_FLUSH, FLUSHW) == -1)
sbin/ipf/ipsend/snit.c
149
if (ioctl(fd, I_FLUSH, FLUSHW) == -1)
sbin/ipf/ipsend/snit.c
72
ioctl(fd, I_SRDOPT, (char*)RMSGD);
sbin/ipf/ipsend/snit.c
73
ioctl(fd, I_PUSH, "nbuf");
sbin/ipf/ipsend/snit.c
85
if (ioctl(fd, I_STR, (char*)&si) == -1)
sbin/ipf/ipsend/snit.c
99
if (ioctl(fd, I_STR, (char*)&si) == -1)
sbin/ipf/ipsend/sockraw.c
49
if (ioctl(fd, SIOCGIFADDR, &ifr) == -1)
sbin/ipf/libipf/checkrev.c
34
if (ioctl(vfd, SIOCGETFS, &obj)) {
sbin/ipf/libipf/ipf_perror.c
35
ipf_perror_fd(fd, ioctl, msg);
sbin/ipf/libipf/printdstl_live.c
64
while (!last && (ioctl(fd, SIOCLOOKUPITER, &obj) == 0)) {
sbin/ipf/libipf/printdstl_live.c
73
(void) ioctl(fd, SIOCIPFDELTOK, &iter.ili_key);
sbin/ipf/libipf/printhash_live.c
50
while (!last && (ioctl(fd, SIOCLOOKUPITER, &obj) == 0)) {
sbin/ipf/libipf/printhash_live.c
69
(void) ioctl(fd,SIOCIPFDELTOK, &iter.ili_key);
sbin/ipf/libipf/printpool_live.c
50
while (!last && (ioctl(fd, SIOCLOOKUPITER, &obj) == 0)) {
sbin/ipf/libipf/printpool_live.c
72
(void) ioctl(fd,SIOCIPFDELTOK, &iter.ili_key);
sbin/ipfw/altq.c
61
if (ioctl(pffd, DIOCSTARTALTQ) != 0 && errno != EEXIST)
sbin/ipfw/altq.c
64
if (ioctl(pffd, DIOCSTOPALTQ) != 0 && errno != ENOENT)
sbin/ipfw/altq.c
89
if (ioctl(pffd, DIOCGETALTQS, &pfioc) != 0) {
sbin/ipfw/altq.c
96
if (ioctl(pffd, DIOCGETALTQ, &pfioc) != 0) {
sbin/mdconfig/mdconfig.c
378
i = ioctl(md_fd, MDIOCATTACH, &mdio);
sbin/mdconfig/mdconfig.c
386
i = ioctl(md_fd, MDIOCDETACH, &mdio);
sbin/mdconfig/mdconfig.c
392
i = ioctl(md_fd, MDIOCRESIZE, &mdio);
sbin/mdconfig/mdconfig.c
425
if (ioctl(md_fd, MDIOCQUERY, &mdiox) < 0)
sbin/mount_cd9660/mount_cd9660.c
208
if (ioctl(fd, CDIOREADTOCHEADER, &h) == -1) {
sbin/mount_cd9660/mount_cd9660.c
224
if (ioctl(fd, CDIOREADTOCENTRYS, (char *) &t) == -1) {
sbin/newfs/mkfs.c
1194
if (ioctl(0, TIOCGWINSZ, &ws) != -1)
sbin/newfs/newfs.c
340
if (ioctl(disk.d_fd, DIOCGSECTORSIZE, §orsize) == -1)
sbin/newfs/newfs.c
342
if (sectorsize && ioctl(disk.d_fd, DIOCGMEDIASIZE, &mediasize) != -1)
sbin/newfs_msdos/mkfs_msdos.c
943
if (ioctl(fd, DIOCGMEDIASIZE, &ms) == -1) {
sbin/newfs_msdos/mkfs_msdos.c
947
} else if (ioctl(fd, FD_GTYPE, &type) != -1) {
sbin/newfs_msdos/mkfs_msdos.c
960
if (bpb->bpbBytesPerSec == 0 && ioctl(fd, DIOCGSECTORSIZE,
sbin/newfs_msdos/mkfs_msdos.c
966
if (bpb->bpbSecPerTrack == 0 && ioctl(fd, DIOCGFWSECTORS,
sbin/newfs_msdos/mkfs_msdos.c
972
ioctl(fd, DIOCGFWHEADS, &dlp.d_ntracks) == -1) {
sbin/nos-tun/nos-tun.c
144
if (ioctl(s, SIOCDIFADDR, &ifrq) < 0) {
sbin/nos-tun/nos-tun.c
165
if (ioctl(s, SIOCAIFADDR, &ifra) < 0) {
sbin/nos-tun/nos-tun.c
173
if (ioctl(s, SIOCGIFFLAGS, &ifrq) < 0) {
sbin/nos-tun/nos-tun.c
179
if (!(ioctl(s, SIOCSIFFLAGS, &ifrq) < 0)) {
sbin/nos-tun/nos-tun.c
209
if (ioctl(s, SIOCGIFFLAGS, &ifrq) < 0) {
sbin/nos-tun/nos-tun.c
215
if (ioctl(s, SIOCSIFFLAGS, &ifrq) < 0) {
sbin/nos-tun/nos-tun.c
224
if (ioctl(s, SIOCDIFADDR, &ifrq) < 0) {
sbin/nvmecontrol/devlist.c
147
if (ioctl(fd, NVME_GET_CONTROLLER_DATA, &cdata) == -1) {
sbin/nvmecontrol/firmware.c
168
if (ioctl(fd, NVME_GET_MAX_XFER_SIZE, &max_xfer_size) < 0)
sbin/nvmecontrol/firmware.c
188
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/firmware.c
211
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/format.c
208
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/logpage.c
221
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/modules/wdc/wdc.c
154
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/modules/wdc/wdc.c
189
if (ioctl(fd, NVME_GET_MAX_XFER_SIZE, &max_xfer_size) < 0)
sbin/nvmecontrol/modules/wdc/wdc.c
244
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/modules/wdc/wdc.c
338
if (ioctl(fd, NVME_GET_MAX_XFER_SIZE, &max_xfer_size) < 0)
sbin/nvmecontrol/ns.c
429
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/ns.c
474
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/ns.c
518
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/ns.c
618
if ((result = ioctl(fd, NVME_PASSTHROUGH_CMD, &pt)) < 0)
sbin/nvmecontrol/ns.c
670
if ((result = ioctl(fd, NVME_PASSTHROUGH_CMD, &pt)) < 0)
sbin/nvmecontrol/ns.c
735
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/ns.c
755
if ((result = ioctl(fd, NVME_PASSTHROUGH_CMD, &pt)) < 0)
sbin/nvmecontrol/ns.c
806
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/ns.c
832
if ((result = ioctl(fd, NVME_PASSTHROUGH_CMD, &pt)) < 0)
sbin/nvmecontrol/ns.c
881
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/ns.c
935
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/nvmecontrol.c
110
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/nvmecontrol.c
134
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/nvmecontrol.c
158
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/nvmecontrol.c
195
if (ioctl(fd, NVME_GET_NSID, &gnsid) < 0)
sbin/nvmecontrol/passthru.c
243
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/perftest.c
180
if (ioctl(fd, ioctl_cmd, &io_test) < 0)
sbin/nvmecontrol/power.c
113
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/power.c
129
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/reset.c
70
if (ioctl(fd, NVME_RESET_CONTROLLER) < 0)
sbin/nvmecontrol/resv.c
262
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/resv.c
301
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/resv.c
339
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/resv.c
379
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/sanitize.c
180
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/nvmecontrol/selftest.c
65
if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0)
sbin/pfctl/pfctl.c
2639
if (ioctl(pf->dev, DIOCADDALTQ, pf->paltq)) {
sbin/pfctl/pfctl.c
3161
if (ioctl(dev, DIOCSETHOSTID, &hostid)) {
sbin/pfctl/pfctl.c
3171
if (ioctl(dev, DIOCSETREASS, &reassembly)) {
sbin/pfctl/pfctl.c
3309
if (ioctl(pf->dev, DIOCCLRIFFLAG, &pi))
sbin/pfctl/pfctl.c
3312
if (ioctl(pf->dev, DIOCSETIFFLAG, &pi))
sbin/pfctl/pfctl.c
3356
if (ioctl(dev, DIOCGETALTQS, &pa)) {
sbin/pfctl/pfctl.c
452
if (altqsupport && ioctl(dev, DIOCSTARTALTQ))
sbin/pfctl/pfctl.c
473
if (altqsupport && ioctl(dev, DIOCSTOPALTQ))
sbin/pfctl/pfctl.c
573
if (ioctl(dev, DIOCCLRIFFLAG, &pi))
sbin/pfctl/pfctl.c
641
if (ioctl(dev, DIOCCLRSRCNODES))
sbin/pfctl/pfctl.c
776
if (ioctl(dev, DIOCKILLSRCNODES, &psnk))
sbin/pfctl/pfctl.c
782
if (ioctl(dev, DIOCKILLSRCNODES, &psnk))
sbin/pfctl/pfctl_altq.c
1261
if (ioctl(s, SIOCGIFDATA, (caddr_t)&ifr) == -1)
sbin/pfctl/pfctl_altq.c
1277
if (ioctl(s, SIOCGIFMTU, (caddr_t)&ifr) == -1)
sbin/pfctl/pfctl_optimize.c
1522
if (ioctl(s, SIOCGIFGMEMB, (caddr_t)&ifgr) == -1) {
sbin/pfctl/pfctl_osfp.c
266
if (ioctl(dev, DIOCOSFPFLUSH))
sbin/pfctl/pfctl_osfp.c
297
if (ioctl(dev, DIOCOSFPGET, &io)) {
sbin/pfctl/pfctl_osfp.c
631
if ((opts & PF_OPT_NOACTION) == 0 && ioctl(dev, DIOCOSFPADD, fp))
sbin/pfctl/pfctl_parser.c
1512
if (ioctl(s, SIOCGIFGROUP, (caddr_t)&ifgr) == -1)
sbin/pfctl/pfctl_parser.c
1522
if (ioctl(s, SIOCGIFGROUP, (caddr_t)&ifgr) == -1)
sbin/pfctl/pfctl_parser.c
1544
if (ioctl(s, SIOCGIFGMEMB, (caddr_t)&ifgr2) == 0)
sbin/pfctl/pfctl_parser.c
1760
if (ioctl(s, SIOCGIFGMEMB, (caddr_t)&ifgr) == -1)
sbin/pfctl/pfctl_parser.c
2166
return ioctl(dev, cmd, &trans);
sbin/pfctl/pfctl_qstats.c
152
if (ioctl(dev, DIOCGETALTQS, &pa)) {
sbin/pfctl/pfctl_qstats.c
167
if (ioctl(dev, DIOCGETALTQ, &pa)) {
sbin/pfctl/pfctl_qstats.c
182
if (ioctl(dev, DIOCGETQSTATS, &pq)) {
sbin/pfctl/pfctl_radix.c
119
if (ioctl(dev, DIOCRGETTABLES, &io)) {
sbin/pfctl/pfctl_radix.c
249
if (ioctl(dev, DIOCRINADEFINE, &io)) {
sbin/pfctl/pfctl_radix.c
281
if (ioctl(dev, DIOCIGETIFACES, &io))
sbin/pfilctl/pfilctl.c
108
if (ioctl(dev, PFILIOC_LISTHEADS, &plh) != 0)
sbin/pfilctl/pfilctl.c
122
if (ioctl(dev, PFILIOC_LISTHEADS, &plh) != 0)
sbin/pfilctl/pfilctl.c
153
if (ioctl(dev, PFILIOC_LISTHOOKS, &plh) != 0)
sbin/pfilctl/pfilctl.c
162
if (ioctl(dev, PFILIOC_LISTHOOKS, &plh) != 0)
sbin/pfilctl/pfilctl.c
224
if (ioctl(dev, PFILIOC_LINK, &req) != 0)
sbin/recoverdisk/recoverdisk.c
289
j = ioctl(STDIN_FILENO, TIOCGWINSZ, &wsz);
sbin/recoverdisk/recoverdisk.c
542
error = ioctl(read_fd, DIOCGMEDIASIZE, &mediasize);
sbin/recoverdisk/recoverdisk.c
571
error = ioctl(read_fd, DIOCGSECTORSIZE, §orsize);
sbin/recoverdisk/recoverdisk.c
602
error = ioctl(read_fd, DIOCGSTRIPESIZE, &stripesize);
sbin/recoverdisk/recoverdisk.c
621
error = ioctl(read_fd, DIOCGFWSECTORS, &fwsectors);
sbin/recoverdisk/recoverdisk.c
624
error = ioctl(read_fd, DIOCGFWHEADS, &fwheads);
sbin/restore/tape.c
540
if (!pipecmdin && ioctl(mt, MTIOCTOP, (char *)&tcom) < 0)
sbin/routed/if.c
869
if (ioctl(rt_sock, SIOCGIFMETRIC, &ifr) < 0) {
sbin/savecore/savecore.c
794
if (ioctl(fddev, MEM_KERNELDUMP, &marg) == -1) {
sbin/savecore/savecore.c
975
error = ioctl(fddev, DIOCGMEDIASIZE, &mediasize);
sbin/savecore/savecore.c
977
error = ioctl(fddev, DIOCGSECTORSIZE, §orsize);
sbin/swapon/swapon.c
721
if (ioctl(fd, DIOCGMEDIASIZE, &sz) != 0)
sbin/swapon/swapon.c
728
if (ioctl(fd, DIOCGDELETE, ioarg) != 0)
sbin/umbctl/umbctl.c
351
if(ioctl(fd, request, ifr) != 0)
sbin/umount/umount.c
697
if (ioctl(fd, MDIOCDETACH, &mdio) < 0) {
sbin/veriexec/manifest_parser.y
291
if (ioctl(dev_fd, VERIEXEC_LABEL_LOAD, &lparams) < 0)
sbin/veriexec/manifest_parser.y
296
if (ioctl(dev_fd, VERIEXEC_SIGNED_LOAD, params) < 0)
sbin/veriexec/veriexec.c
206
if (ioctl(dev_fd, VERIEXEC_GETSTATE, &x)) {
sbin/veriexec/veriexec.c
270
if (ioctl(dev_fd, state, &x))
sbin/veriexec/veriexec.c
299
if (ioctl(dev_fd, VERIEXEC_GETVERSION, &VeriexecVersion)) {
share/examples/ipfilter/l4check/l4check.c
106
if (ioctl(natfd, SIOCADNAT, &ipn) == -1)
share/examples/ipfilter/l4check/l4check.c
121
if (ioctl(natfd, SIOCRMNAT, &ipn) == -1)
share/examples/ipfilter/samples/proxy.c
102
if (ioctl(fd, SIOCGNATL, &obj) == -1) {
share/examples/ipfilter/samples/proxy.c
209
if (ioctl(fd, SIOCSTLCK, &onoff) == 0) {
share/examples/ipfilter/samples/proxy.c
210
if (ioctl(fd, SIOCSTPUT, &obj) != 0)
share/examples/ipfilter/samples/proxy.c
213
if (ioctl(fd, SIOCSTLCK, &onoff) != 0)
share/examples/ipfilter/samples/relay.c
160
if (ioctl(fd, SIOCGNATL, &obj) == -1) {
share/examples/ipfilter/samples/relay.c
181
(void) ioctl(fd, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
share/examples/ipfilter/samples/relay.c
182
(void) ioctl(0, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
share/examples/ipfilter/samples/relay.c
183
(void) ioctl(1, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
share/examples/ipfilter/samples/userauth.c
28
while (ioctl(fd, SIOCAUTHW, &frap) == 0) {
share/examples/ipfilter/samples/userauth.c
56
if (ioctl(fd, SIOCAUTHR, &frap) != 0)
share/examples/kld/cdev/test/testcdev.c
102
if (ioctl(kernel_fd, CDEV_IOCTL1, &one) == -1) {
share/examples/perfmon/perfmon.c
116
if (ioctl(fd, PMIOSETUP, &pmc) < 0)
share/examples/perfmon/perfmon.c
119
if (ioctl(fd, PMIOTSTAMP, &then) < 0)
share/examples/perfmon/perfmon.c
123
if (ioctl(fd, PMIOSTART, &num) < 0)
share/examples/perfmon/perfmon.c
128
if (ioctl(fd, PMIOSTOP, &num) < 0)
share/examples/perfmon/perfmon.c
130
if (ioctl(fd, PMIOREAD, &value) < 0)
share/examples/perfmon/perfmon.c
133
if (ioctl(fd, PMIORESET, &value.pmcd_num) < 0)
share/examples/perfmon/perfmon.c
135
if (ioctl(fd, PMIOSTART, &num) < 0)
share/examples/perfmon/perfmon.c
143
if (ioctl(fd, PMIOSTOP, &num) < 0)
share/examples/perfmon/perfmon.c
145
if (ioctl(fd, PMIOREAD, &value) < 0)
share/examples/perfmon/perfmon.c
148
if (ioctl(fd, PMIOTSTAMP, &now) < 0)
share/examples/ppi/ppilcd.c
289
#define hd_sctrl(v) {u_int8_t _val; _val = hd_cbits | v; ioctl(hd_fd, PPISCTRL, &_val);}
share/examples/ppi/ppilcd.c
290
#define hd_sdata(v) {u_int8_t _val; _val = v; ioctl(hd_fd, PPISDATA, &_val);}
share/examples/ppi/ppilcd.c
291
#define hd_gdata(v) ioctl(hd_fd, PPIGDATA, &v)
share/examples/ppi/ppilcd.c
346
if (ioctl(hd_fd, PPIGCTRL, &hd_cbits)) /* save other control bits */
share/examples/scsi_target/scsi_target.c
243
if (ioctl(file_fd, DIOCGMEDIASIZE, &mediasize) < 0)
share/examples/scsi_target/scsi_target.c
309
if (ioctl(targ_fd, TARGIOCENABLE, &ioc_enlun) != 0)
share/examples/scsi_target/scsi_target.c
314
if (ioctl(targ_fd, TARGIOCDEBUG, &debug) != 0)
share/examples/scsi_target/scsi_target.c
345
ioctl(targ_fd, TARGIOCDEBUG, &debug);
share/examples/scsi_target/scsi_target.c
347
ioctl(targ_fd, TARGIOCDISABLE, NULL);
share/examples/ses/srcs/chpmon.c
116
if (ioctl(fd, SESIOC_SETENCSTAT, (caddr_t) &stat) < 0) {
share/examples/ses/srcs/chpmon.c
79
if (ioctl(fd, SESIOC_SETENCSTAT, (caddr_t) &stat) < 0) {
share/examples/ses/srcs/chpmon.c
88
if (ioctl(fd, SESIOC_GETENCSTAT, (caddr_t) &stat) < 0) {
share/examples/ses/srcs/getencstat.c
138
if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) objp) < 0) {
share/examples/ses/srcs/getencstat.c
145
if (ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t) &ob) < 0) {
share/examples/ses/srcs/getencstat.c
159
if (ioctl(fd, ENCIOC_GETELMDESC, (caddr_t)&objd) < 0) {
share/examples/ses/srcs/getencstat.c
177
(void)ioctl(fd, ENCIOC_GETELMDEVNAMES, (caddr_t)&objdn);
share/examples/ses/srcs/getencstat.c
85
if (ioctl(fd, ENCIOC_GETENCNAME, (caddr_t) &stri) == 0)
share/examples/ses/srcs/getencstat.c
89
if (ioctl(fd, ENCIOC_GETENCID, (caddr_t) &stri) == 0)
share/examples/ses/srcs/getencstat.c
92
if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) {
share/examples/ses/srcs/getencstat.c
97
if (ioctl(fd, ENCIOC_GETENCSTAT, (caddr_t) &estat) < 0) {
share/examples/ses/srcs/getnobj.c
58
if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t) &nobj) < 0) {
share/examples/ses/srcs/getobjmap.c
58
if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t) &nobj) < 0) {
share/examples/ses/srcs/getobjmap.c
74
if (ioctl(fd, SESIOC_GETOBJMAP, (caddr_t) objp) < 0) {
share/examples/ses/srcs/getobjstat.c
68
if (ioctl(fd, SESIOC_GETOBJSTAT, (caddr_t) &obj) < 0) {
share/examples/ses/srcs/inienc.c
55
if (ioctl(fd, SESIOC_INIT, NULL) < 0) {
share/examples/ses/srcs/sesd.c
104
if (ioctl(fd, ENCIOC_INIT, NULL) < 0) {
share/examples/ses/srcs/sesd.c
132
if (ioctl(fd, ENCIOC_GETENCSTAT, (caddr_t) &stat) < 0) {
share/examples/ses/srcs/sesd.c
140
if (ioctl(fd, ENCIOC_SETENCSTAT,
share/examples/ses/srcs/setencstat.c
63
if (ioctl(fd, ENCIOC_SETENCSTAT, (caddr_t) &stat) < 0) {
share/examples/ses/srcs/setobjstat.c
78
if (ioctl(fd, ENCIOC_SETELMSTAT, (caddr_t) &obj) < 0) {
share/examples/sound/oss.h
110
if (ioctl(config->fd, SNDCTL_DSP_COOKEDMODE, &tmp) < 0)
share/examples/sound/oss.h
116
if (ioctl(config->fd, SNDCTL_DSP_SETFMT, &tmp) < 0)
share/examples/sound/oss.h
124
if (ioctl(config->fd, SNDCTL_DSP_CHANNELS, &tmp) < 0)
share/examples/sound/oss.h
132
if (ioctl(config->fd, SNDCTL_DSP_SPEED, &config->sample_rate) < 0)
share/examples/sound/oss.h
192
if (ioctl(config->fd, SNDCTL_DSP_SETFRAGMENT, &tmp) < 0)
share/examples/sound/oss.h
198
if (ioctl(config->fd, request, &config->buffer_info) < 0)
share/examples/sound/oss.h
249
if (ioctl(config->fd, SNDCTL_DSP_SETTRIGGER, &tmp) < 0)
share/examples/sound/oss.h
94
if (ioctl(config->fd, SNDCTL_ENGINEINFO, &config->audio_info) < 0)
share/examples/sound/oss.h
98
if (ioctl(config->fd, SNDCTL_DSP_GETCAPS, &config->audio_info.caps) < 0)
share/examples/sound/sndstat_nv.c
61
if (ioctl(fd, SNDSTIOC_REFRESH_DEVS, NULL) < 0)
share/examples/sound/sndstat_nv.c
66
if (ioctl(fd, SNDSTIOC_GET_DEVS, &arg) < 0)
share/examples/sound/sndstat_nv.c
72
if (ioctl(fd, SNDSTIOC_GET_DEVS, &arg) < 0)
stand/common/zfs_cmd.c
99
ioctl(fd, DIOCGMEDIASIZE, &size);
stand/libsa/dosfs.c
230
err = ioctl(fd->f_id, DIOCGSECTORSIZE, &secsz);
stand/libsa/stand.h
329
extern int ioctl(int, u_long, void *);
stand/libsa/zfs/zfs.c
1489
ret = ioctl(pa.fd, DIOCGMEDIASIZE, &mediasz);
stand/libsa/zfs/zfs.c
1491
ret = ioctl(pa.fd, DIOCGSECTORSIZE, &pa.secsz);
stand/libsa/zfs/zfs.c
470
ret = ioctl(fd, DIOCGSECTORSIZE, &secsz);
stand/libsa/zfs/zfs.c
593
ret = ioctl(fd, DIOCGSECTORSIZE, &secsz);
stand/userboot/test/test.c
91
if (ioctl(0, FIONREAD, &n) >= 0)
sys/arm/broadcom/bcm2835/bcm2835_fb.c
259
.ioctl = bcmfb_ioctl,
sys/arm/ti/am335x/am335x_lcd_syscons.c
176
.ioctl = am335x_syscons_ioctl,
sys/cam/ctl/ctl.c
1890
lun->backend->ioctl(NULL, CTL_LUN_REQ, (caddr_t)&ireq, 0,
sys/cam/ctl/ctl.c
2977
retval = backend->ioctl(dev, cmd, addr, flag, td);
sys/cam/ctl/ctl.c
3211
retval = fe->ioctl(dev, cmd, addr, flag, td);
sys/cam/ctl/ctl.c
3228
retval = fe->ioctl(dev, cmd, addr, flag, td);
sys/cam/ctl/ctl.c
3278
if (fe->ioctl)
sys/cam/ctl/ctl.c
3279
retval = fe->ioctl(dev, cmd, addr, flag, td);
sys/cam/ctl/ctl.c
3615
retval = backend->ioctl(dev, cmd, addr, flag, td);
sys/cam/ctl/ctl_backend.h
191
be_ioctl_t ioctl; /* passed to CTL */
sys/cam/ctl/ctl_backend_block.c
297
.ioctl = ctl_be_block_ioctl,
sys/cam/ctl/ctl_backend_ramdisk.c
165
.ioctl = ctl_backend_ramdisk_ioctl,
sys/cam/ctl/ctl_frontend.h
253
fe_ioctl_t ioctl; /* passed to CTL */
sys/cam/ctl/ctl_frontend_ioctl.c
105
.ioctl = cfi_ioctl,
sys/cam/ctl/ctl_frontend_iscsi.c
193
.ioctl = cfiscsi_ioctl,
sys/compat/linuxkpi/common/include/linux/fs.h
166
int (*ioctl)(struct inode *, struct file *, unsigned int,
sys/compat/linuxkpi/common/include/linux/usb.h
72
int (*ioctl)(struct usb_interface *intf, unsigned int code, void *buf);
sys/dev/adb/adb_kbd.c
206
.ioctl = akbd_ioctl,
sys/dev/atkbdc/atkbd.c
250
.ioctl = atkbd_ioctl,
sys/dev/bhnd/bcma/bcma.c
220
bcma_read_ioctl(device_t dev, device_t child, uint16_t *ioctl)
sys/dev/bhnd/bcma/bcma.c
229
*ioctl = (value & BCMA_DMP_IOCTRL_MASK);
sys/dev/bhnd/bcma/bcma.c
238
uint32_t ioctl;
sys/dev/bhnd/bcma/bcma.c
248
ioctl = bhnd_bus_read_4(r, BCMA_DMP_IOCTRL);
sys/dev/bhnd/bcma/bcma.c
249
ioctl &= ~(BCMA_DMP_IOCTRL_MASK & mask);
sys/dev/bhnd/bcma/bcma.c
250
ioctl |= (value & mask);
sys/dev/bhnd/bcma/bcma.c
252
bhnd_bus_write_4(r, BCMA_DMP_IOCTRL, ioctl);
sys/dev/bhnd/bcma/bcma.c
265
uint16_t ioctl;
sys/dev/bhnd/bcma/bcma.c
280
error = bhnd_read_ioctl(child, &ioctl);
sys/dev/bhnd/bcma/bcma.c
287
if (!(ioctl & BHND_IOCTL_CLK_EN))
sys/dev/bhnd/bcma/bcma.c
294
bcma_reset_hw(device_t dev, device_t child, uint16_t ioctl,
sys/dev/bhnd/bcma/bcma.c
309
if (ioctl & clkflags)
sys/dev/bhnd/bcma/bcma.c
327
if ((error = bhnd_write_ioctl(child, ioctl | clkflags, UINT16_MAX)))
sys/dev/bhnd/bcma/bcma.c
343
bcma_suspend_hw(device_t dev, device_t child, uint16_t ioctl)
sys/dev/bhnd/bcma/bcma.c
357
if (ioctl & clkflags)
sys/dev/bhnd/bcma/bcma.c
373
if ((error = bhnd_write_ioctl(child, ioctl, ~clkflags)))
sys/dev/bhnd/bhnd.h
767
bhnd_read_ioctl(device_t dev, uint16_t *ioctl)
sys/dev/bhnd/bhnd.h
769
return (BHND_BUS_READ_IOCTL(device_get_parent(dev), dev, ioctl));
sys/dev/bhnd/bhnd.h
845
bhnd_reset_hw(device_t dev, uint16_t ioctl, uint16_t reset_ioctl)
sys/dev/bhnd/bhnd.h
847
return (BHND_BUS_RESET_HW(device_get_parent(dev), dev, ioctl,
sys/dev/bhnd/bhnd.h
865
bhnd_suspend_hw(device_t dev, uint16_t ioctl)
sys/dev/bhnd/bhnd.h
867
return (BHND_BUS_SUSPEND_HW(device_get_parent(dev), dev, ioctl));
sys/dev/bhnd/siba/siba.c
656
siba_read_ioctl(device_t dev, device_t child, uint16_t *ioctl)
sys/dev/bhnd/siba/siba.c
664
*ioctl = (SIBA_REG_GET(ts_low, TML_SICF));
sys/dev/bhnd/siba/siba.c
696
uint16_t ioctl;
sys/dev/bhnd/siba/siba.c
716
ioctl = SIBA_REG_GET(ts_low, TML_SICF);
sys/dev/bhnd/siba/siba.c
717
if (!(ioctl & BHND_IOCTL_CLK_EN))
sys/dev/bhnd/siba/siba.c
724
siba_reset_hw(device_t dev, device_t child, uint16_t ioctl,
sys/dev/bhnd/siba/siba.c
744
if (ioctl & clkflags)
sys/dev/bhnd/siba/siba.c
755
(ioctl << SIBA_TML_SICF_SHIFT) |
sys/dev/bhnd/siba/siba.c
789
siba_suspend_hw(device_t dev, device_t child, uint16_t ioctl)
sys/dev/bhnd/siba/siba.c
810
if (ioctl & clkflags)
sys/dev/bhnd/siba/siba.c
823
(ioctl << SIBA_TML_SICF_SHIFT);
sys/dev/bhnd/siba/siba.c
861
(ioctl << SIBA_TML_SICF_SHIFT) |
sys/dev/bwn/if_bwn.c
1504
uint16_t ioctl, ioctl_mask;
sys/dev/bwn/if_bwn.c
1512
ioctl = (BWN_IOCTL_PHYCLOCK_ENABLE | BWN_IOCTL_PHYRESET);
sys/dev/bwn/if_bwn.c
1514
ioctl |= BWN_IOCTL_SUPPORT_G;
sys/dev/bwn/if_bwn.c
1518
ioctl |= BWN_IOCTL_PHY_BANDWIDTH_20MHZ;
sys/dev/bwn/if_bwn.c
1520
if ((error = bhnd_reset_hw(sc->sc_dev, ioctl, ioctl))) {
sys/dev/bwn/if_bwn.c
1528
ioctl = BHND_IOCTL_CLK_FORCE;
sys/dev/bwn/if_bwn.c
1533
if ((error = bhnd_write_ioctl(sc->sc_dev, ioctl, ioctl_mask))) {
sys/dev/bwn/if_bwn.c
1541
ioctl = BWN_IOCTL_PHYCLOCK_ENABLE;
sys/dev/bwn/if_bwn.c
1542
if ((error = bhnd_write_ioctl(sc->sc_dev, ioctl, ioctl_mask))) {
sys/dev/drm2/drmP.h
310
#define DRM_IOCTL_DEF(ioctl, _func, _flags) \
sys/dev/drm2/drmP.h
311
[DRM_IOCTL_NR(ioctl)] = {.cmd = ioctl, .func = _func, .flags = _flags, .cmd_drv = 0}
sys/dev/drm2/drmP.h
313
#define DRM_IOCTL_DEF_DRV(ioctl, _func, _flags) \
sys/dev/drm2/drmP.h
314
[DRM_IOCTL_NR(DRM_##ioctl)] = {.cmd = DRM_##ioctl, .func = _func, .flags = _flags, .cmd_drv = DRM_IOCTL_##ioctl}
sys/dev/drm2/drm_drv.c
360
struct drm_ioctl_desc *ioctl;
sys/dev/drm2/drm_drv.c
414
ioctl = &dev->driver->compat_ioctls[nr - DRM_COMMAND_BASE];
sys/dev/drm2/drm_drv.c
419
ioctl = &dev->driver->ioctls[nr - DRM_COMMAND_BASE];
sys/dev/drm2/drm_drv.c
434
ioctl = &drm_compat_ioctls[nr];
sys/dev/drm2/drm_drv.c
437
ioctl = &drm_ioctls[nr];
sys/dev/drm2/drm_drv.c
442
func = ioctl->func;
sys/dev/drm2/drm_drv.c
458
} else if (((ioctl->flags & DRM_ROOT_ONLY) && !DRM_SUSER(p)) ||
sys/dev/drm2/drm_drv.c
459
((ioctl->flags & DRM_AUTH) && !file_priv->authenticated) ||
sys/dev/drm2/drm_drv.c
460
((ioctl->flags & DRM_MASTER) && !file_priv->is_master) ||
sys/dev/drm2/drm_drv.c
461
(!(ioctl->flags & DRM_CONTROL_ALLOW) && (file_priv->minor->type == DRM_MINOR_CONTROL))) {
sys/dev/drm2/drm_drv.c
464
if (ioctl->flags & DRM_UNLOCKED)
sys/dev/drm2/drm_os_freebsd.c
468
error = ioctl(p, (struct ioctl_args *)args);
sys/dev/fb/fbreg.h
166
vi_ioctl_t *ioctl;
sys/dev/fb/fbreg.h
225
(*vidsw[(adp)->va_index]->ioctl)((adp), (cmd), (data))
sys/dev/fb/s3_pci.c
418
return (*prevvidsw->ioctl)(adp, cmd, arg);
sys/dev/fb/vesa.c
1755
return ((*prevvidsw->ioctl)(adp, cmd, arg));
sys/dev/fb/vesa.c
1760
return (*prevvidsw->ioctl)(adp, cmd, arg);
sys/dev/fb/vesa.c
1765
return ((*prevvidsw->ioctl)(adp, cmd, arg));
sys/dev/fb/vesa.c
1775
return ((*prevvidsw->ioctl)(adp, cmd, arg));
sys/dev/fb/vesa.c
1791
return ((*prevvidsw->ioctl)(adp, cmd, arg));
sys/dev/fb/vesa.c
1802
return ((*prevvidsw->ioctl)(adp, cmd, arg));
sys/dev/fb/vesa.c
1811
return ((*prevvidsw->ioctl)(adp, cmd, arg));
sys/dev/fb/vesa.c
1820
return ((*prevvidsw->ioctl)(adp, cmd, arg));
sys/dev/fb/vesa.c
1824
return ((*prevvidsw->ioctl)(adp, cmd, arg));
sys/dev/fdc/fdc.c
1403
.ioctl = fd_ioctl,
sys/dev/firewire/firewirereg.h
147
int (*ioctl) (struct cdev *, u_long, caddr_t, int, fw_proc *);
sys/dev/firewire/fwdev.c
814
fc->ioctl(dev, cmd, data, flag, td);
sys/dev/firewire/fwohci.c
736
sc->fc.ioctl = fwohci_ioctl;
sys/dev/gpio/gpiokeys.c
1017
.ioctl = &gpiokeys_ioctl,
sys/dev/hid/hkbd.c
2066
.ioctl = &hkbd_ioctl,
sys/dev/hpt27xx/himfuncs.h
98
_HIM_INTERFACE(void, ioctl, (void * adapter, struct _IOCTL_ARG *arg))
sys/dev/hptnr/himfuncs.h
98
_HIM_INTERFACE(void, ioctl, (void * adapter, struct _IOCTL_ARG *arg))
sys/dev/hptrr/himfuncs.h
99
_HIM_INTERFACE(void, ioctl, (void * adapter, struct _IOCTL_ARG *arg))
sys/dev/hyperv/input/hv_kbd.c
730
.ioctl = hvkbd_ioctl,
sys/dev/kbd/kbdreg.h
276
return ((*kbd->kb_drv->kbdsw->ioctl)(kbd, cmd, data));
sys/dev/kbd/kbdreg.h
91
kbd_ioctl_t *ioctl;
sys/dev/kbdmux/kbdmux.c
342
.ioctl = kbdmux_ioctl,
sys/dev/mmc/mmcsd.c
1061
part->ioctl = 0;
sys/dev/mmc/mmcsd.c
110
int ioctl;
sys/dev/mmc/mmcsd.c
672
while (part->ioctl > 0)
sys/dev/mmc/mmcsd.c
675
part->ioctl = -1;
sys/dev/mmc/mmcsd.c
738
while (part->ioctl > 0)
sys/dev/mmc/mmcsd.c
741
part->ioctl = -1;
sys/dev/mmc/mmcsd.c
773
part->ioctl = 0;
sys/dev/mmc/mmcsd.c
900
while (part->ioctl != 0) {
sys/dev/mmc/mmcsd.c
901
if (part->ioctl < 0) {
sys/dev/mmc/mmcsd.c
907
part->ioctl = 1;
sys/dev/nvmf/controller/ctl_frontend_nvmf.c
63
.ioctl = nvmft_ioctl,
sys/dev/usb/input/ukbd.c
2289
.ioctl = &ukbd_ioctl,
sys/dev/vkbd/vkbd.c
578
.ioctl = vkbd_ioctl,
sys/dev/vmm/vmm_dev.c
438
const struct vmmdev_ioctl *ioctl;
sys/dev/vmm/vmm_dev.c
446
ioctl = NULL;
sys/dev/vmm/vmm_dev.c
449
ioctl = &vmmdev_ioctls[i];
sys/dev/vmm/vmm_dev.c
453
if (ioctl == NULL) {
sys/dev/vmm/vmm_dev.c
456
ioctl = &vmmdev_machdep_ioctls[i];
sys/dev/vmm/vmm_dev.c
461
if (ioctl == NULL)
sys/dev/vmm/vmm_dev.c
464
if ((ioctl->flags & VMMDEV_IOCTL_PPT) != 0) {
sys/dev/vmm/vmm_dev.c
473
if ((ioctl->flags & VMMDEV_IOCTL_XLOCK_MEMSEGS) != 0)
sys/dev/vmm/vmm_dev.c
475
else if ((ioctl->flags & VMMDEV_IOCTL_SLOCK_MEMSEGS) != 0)
sys/dev/vmm/vmm_dev.c
480
if ((ioctl->flags & (VMMDEV_IOCTL_LOCK_ONE_VCPU |
sys/dev/vmm/vmm_dev.c
484
if ((ioctl->flags &
sys/dev/vmm/vmm_dev.c
495
if ((ioctl->flags & VMMDEV_IOCTL_LOCK_ONE_VCPU) != 0) {
sys/dev/vmm/vmm_dev.c
502
if ((ioctl->flags & VMMDEV_IOCTL_LOCK_ALL_VCPUS) != 0) {
sys/dev/vmm/vmm_dev.c
772
if ((ioctl->flags &
sys/dev/vmm/vmm_dev.c
775
if ((ioctl->flags & VMMDEV_IOCTL_LOCK_ALL_VCPUS) != 0)
sys/dev/vmm/vmm_dev.c
777
else if ((ioctl->flags & VMMDEV_IOCTL_LOCK_ONE_VCPU) != 0)
sys/dev/vmm/vmm_dev.c
789
if ((ioctl->flags &
sys/geom/geom.h
111
g_ioctl_t *ioctl;
sys/geom/geom.h
144
g_ioctl_t *ioctl;
sys/geom/geom_dev.c
706
if (pp->geom->ioctl != NULL) {
sys/geom/geom_dev.c
707
error = pp->geom->ioctl(pp, cmd, data, fflag, td);
sys/geom/geom_disk.c
88
.ioctl = g_disk_ioctl,
sys/geom/geom_subr.c
398
gp->ioctl = mp->ioctl;
sys/geom/part/g_part.c
193
.ioctl = g_part_ioctl,
sys/kern/tty.c
1069
PATCH_FUNC(ioctl);
sys/kern/tty.c
2367
DB_PRINTSYM(ioctl, tsw->tsw_ioctl);
sys/net/if_stf.c
1008
SDT_PROBE1(if_stf, , ioctl, ifaddr, ifa);
sys/net/if_stf.c
152
SDT_PROBE_DEFINE3(if_stf, , ioctl, sv4net, "struct in_addr *",
sys/net/if_stf.c
154
SDT_PROBE_DEFINE1(if_stf, , ioctl, sdstv4, "struct in_addr *");
sys/net/if_stf.c
155
SDT_PROBE_DEFINE1(if_stf, , ioctl, ifaddr, "struct ifaddr *");
sys/net/if_stf.c
973
SDT_PROBE3(if_stf, , ioctl, sv4net, sc_cur->srcv4_addr,
sys/net/if_stf.c
985
SDT_PROBE1(if_stf, , ioctl, sdstv4,
sys/net/netmap_user.h
526
return ioctl(fd, ctlCode, arg);
sys/net/netmap_user.h
902
if (ioctl(d->fd, NIOCREGIF, &d->req)) {
sys/netpfil/pf/pf_ioctl.c
100
SDT_PROBE_DEFINE2(pf, ioctl, nvchk, error, "int", "int");
sys/netpfil/pf/pf_ioctl.c
3848
SDT_PROBE3(pf, ioctl, ioctl, error, cmd, error, __LINE__); \
sys/netpfil/pf/pf_ioctl.c
97
SDT_PROBE_DEFINE3(pf, ioctl, ioctl, error, "int", "int", "int");
sys/netpfil/pf/pf_ioctl.c
98
SDT_PROBE_DEFINE3(pf, ioctl, function, error, "char *", "int", "int");
sys/netpfil/pf/pf_ioctl.c
99
SDT_PROBE_DEFINE2(pf, ioctl, addrule, error, "int", "int");
sys/netpfil/pf/pf_nv.h
40
SDT_PROBE_DECLARE(pf, ioctl, function, error);
sys/netpfil/pf/pf_nv.h
41
SDT_PROBE_DECLARE(pf, ioctl, nvchk, error);
sys/netpfil/pf/pf_nv.h
46
SDT_PROBE3(pf, ioctl, function, error, __func__, error, \
sys/netpfil/pf/pf_nv.h
53
SDT_PROBE2(pf, ioctl, nvchk, error, error, __LINE__); \
sys/opencrypto/cryptodev.c
1003
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
1017
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
1034
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
1043
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
1052
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
1207
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
1215
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
1228
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
1236
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
352
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
356
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
365
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
369
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
393
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
404
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
421
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
429
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
440
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
450
SDT_PROBE1(opencrypto, dev, ioctl, error,
sys/opencrypto/cryptodev.c
467
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
476
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
486
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
492
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
644
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
649
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
654
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
665
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
67
SDT_PROBE_DEFINE1(opencrypto, dev, ioctl, error, "int"/*line number*/);
sys/opencrypto/cryptodev.c
677
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
696
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
704
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
716
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
731
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
738
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
754
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
760
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
774
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
780
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
786
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
801
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
815
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
831
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
841
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
850
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
872
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
877
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
882
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
893
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
908
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
922
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
946
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
952
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
977
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
983
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
989
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/opencrypto/cryptodev.c
995
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
sys/powerpc/ofw/ofw_syscons.c
125
.ioctl = ofwfb_ioctl,
sys/sys/ioccom.h
87
int ioctl(int, unsigned long, ...);
sys/sys/soundcard.h
1334
ioctl(seqfd, SNDCTL_PMGR_ACCESS, &_pm_info))
sys/sys/soundcard.h
1339
ioctl(seqfd, SNDCTL_PMGR_ACCESS, &_pm_info))
sys/sys/timepps.h
182
error = ioctl(filedes, PPS_IOC_CREATE, 0);
sys/sys/timepps.h
192
return (ioctl(handle, PPS_IOC_DESTROY, 0));
sys/sys/timepps.h
198
return (ioctl(handle, PPS_IOC_SETPARAMS, ppsparams));
sys/sys/timepps.h
204
return (ioctl(handle, PPS_IOC_GETPARAMS, ppsparams));
sys/sys/timepps.h
210
return (ioctl(handle, PPS_IOC_GETCAP, mode));
sys/sys/timepps.h
226
error = ioctl(handle, PPS_IOC_FETCH, &arg);
sys/sys/timepps.h
245
error = ioctl(handle, PPS_IOC_FETCH_FFCOUNTER, &arg);
sys/sys/timepps.h
259
return (ioctl(handle, PPS_IOC_KCBIND, &arg));
tests/sys/aio/aio_test.c
803
if (ioctl(mdctl_fd, MDIOCATTACH, &mdio) < 0) {
tests/sys/aio/aio_test.c
842
if (ioctl(mdctl_fd, MDIOCDETACH, &mdio) == -1) {
tests/sys/audit/ioctl.c
60
ATF_REQUIRE(ioctl(filedesc, request) != -1);
tests/sys/audit/ioctl.c
85
ATF_REQUIRE_EQ(-1, ioctl(-1, request));
tests/sys/audit/utils.c
100
if (ioctl(filedesc, AUDITPIPE_SET_PRESELECT_MODE, &fmode) < 0)
tests/sys/audit/utils.c
104
if (ioctl(filedesc, AUDITPIPE_SET_PRESELECT_FLAGS, fmask) < 0)
tests/sys/audit/utils.c
108
if (ioctl(filedesc, AUDITPIPE_SET_PRESELECT_NAFLAGS, fmask) < 0)
tests/sys/audit/utils.c
112
if (ioctl(filedesc, AUDITPIPE_GET_QLIMIT_MAX, &qlimit_max) < 0)
tests/sys/audit/utils.c
116
if (ioctl(filedesc, AUDITPIPE_SET_QLIMIT, &qlimit_max) < 0)
tests/sys/audit/utils.c
120
if (ioctl(filedesc, AUDITPIPE_FLUSH) < 0)
tests/sys/auditpipe/auditpipe_test.c
114
ATF_REQUIRE_EQ(0, ioctl(fd, AUDITPIPE_SET_QLIMIT, &curr_qlim));
tests/sys/auditpipe/auditpipe_test.c
133
ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLIMIT_MIN, &qlim_min));
tests/sys/auditpipe/auditpipe_test.c
150
ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLIMIT_MAX, &qlim_max));
tests/sys/auditpipe/auditpipe_test.c
167
ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_MAXAUDITDATA, &audata));
tests/sys/auditpipe/auditpipe_test.c
50
ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLEN, &qlen));
tests/sys/auditpipe/auditpipe_test.c
67
ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLIMIT, &qlimit));
tests/sys/auditpipe/auditpipe_test.c
86
ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLIMIT, &curr_qlimit));
tests/sys/auditpipe/auditpipe_test.c
96
ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_SET_QLIMIT, &test_qlimit));
tests/sys/auditpipe/auditpipe_test.c
98
ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLIMIT, &recv_qlimit));
tests/sys/cam/ctl/prout_register_huge_cdb.c
80
r = ioctl(fd, CTL_IO, io);
tests/sys/capsicum/capmode.cc
217
EXPECT_CAPMODE(ioctl(fd_socket_, SIOCIFGCLONERS, &req));
tests/sys/capsicum/ioctl.cc
130
EXPECT_OK(ioctl(fd, FIONREAD, &bytes));
tests/sys/capsicum/ioctl.cc
132
EXPECT_OK(ioctl(fd, FIOCLEX, &one));
tests/sys/capsicum/ioctl.cc
137
EXPECT_OK(ioctl(fd, FIONREAD, &bytes));
tests/sys/capsicum/ioctl.cc
138
EXPECT_OK(ioctl(fd, FIOCLEX, &one));
tests/sys/capsicum/ioctl.cc
158
EXPECT_OK(ioctl(fd_nread, FIONREAD, &bytes));
tests/sys/capsicum/ioctl.cc
159
EXPECT_NOTCAPABLE(ioctl(fd_clex, FIONREAD, &bytes));
tests/sys/capsicum/ioctl.cc
160
EXPECT_OK(ioctl(fd_clex, FIOCLEX, &one));
tests/sys/capsicum/ioctl.cc
161
EXPECT_NOTCAPABLE(ioctl(fd_nread, FIOCLEX, &one));
tests/sys/capsicum/ioctl.cc
182
EXPECT_NOTCAPABLE(ioctl(fd, FIONREAD, &bytes));
tests/sys/capsicum/ioctl.cc
183
EXPECT_NOTCAPABLE(ioctl(fd, FIOCLEX, &one));
tests/sys/capsicum/ioctl.cc
28
EXPECT_OK(ioctl(fd, FIONREAD, &bytes));
tests/sys/capsicum/ioctl.cc
29
EXPECT_NOTCAPABLE(ioctl(fd_no, FIONREAD, &bytes));
tests/sys/capsicum/ioctl.cc
32
EXPECT_OK(ioctl(fd, FIOCLEX, &one));
tests/sys/capsicum/ioctl.cc
33
EXPECT_NOTCAPABLE(ioctl(fd_no, FIOCLEX, &one));
tests/sys/capsicum/ioctl.cc
47
EXPECT_OK(ioctl(fd, FIONREAD, &bytes));
tests/sys/capsicum/ioctl.cc
49
EXPECT_NOTCAPABLE(ioctl(fd, FIOCLEX, &one));
tests/sys/fifo/fifo_io.c
987
if (ioctl(fd, FIONREAD, &i) < 0) {
tests/sys/fifo/fifo_misc.c
157
if (ioctl(fd, flag, &i) < 0) {
tests/sys/fifo/fifo_misc.c
165
if (ioctl(fd, flag, &i) < 0) {
tests/sys/file/fcntlflags_test.c
114
ATF_REQUIRE_ERRNO(EINVAL, ioctl(fd, FIOASYNC, &val) == -1);
tests/sys/file/path_test.c
785
ATF_REQUIRE_ERRNO(EBADF, ioctl(pathfd, FIONBIO, &val) == -1);
tests/sys/file/path_test.c
786
ATF_REQUIRE_ERRNO(EBADF, ioctl(pathfd, FIONREAD, &val) == -1);
tests/sys/file/path_test.c
787
ATF_REQUIRE_ERRNO(EBADF, ioctl(pathfd, FIONWRITE, &val) == -1);
tests/sys/file/path_test.c
788
ATF_REQUIRE_ERRNO(EBADF, ioctl(pathfd, FIONSPACE, &val) == -1);
tests/sys/file/path_test.c
797
ATF_REQUIRE_ERRNO(EBADF, ioctl(pathfd, MEM_EXTRACT_PADDR, &me) == -1);
tests/sys/fs/fusefs/bmap.cc
107
ASSERT_EQ(0, ioctl(fd, FIOBMAP2, &arg)) << strerror(errno);
tests/sys/fs/fusefs/bmap.cc
155
ASSERT_EQ(0, ioctl(fd, FIOBMAP2, &arg)) << strerror(errno);
tests/sys/fs/fusefs/bmap.cc
165
ASSERT_EQ(0, ioctl(fd, FIOBMAP2, &arg)) << strerror(errno);
tests/sys/fs/fusefs/bmap.cc
175
ASSERT_EQ(0, ioctl(fd, FIOBMAP2, &arg)) << strerror(errno);
tests/sys/fs/fusefs/bmap.cc
211
ASSERT_EQ(-1, ioctl(fd, FIOBMAP2, &arg));
tests/sys/fs/fusefs/ioctl.cc
110
EXPECT_EQ(-1, ioctl(fd, req));
tests/sys/fs/fusefs/ioctl.cc
132
EXPECT_EQ(0, ioctl(fd, req, buf)) << strerror(errno);
tests/sys/fs/fusefs/ioctl.cc
154
EXPECT_EQ(-1, ioctl(fd, req, buf));
tests/sys/fs/fusefs/ioctl.cc
171
EXPECT_EQ(0, ioctl(fd, req, INPUT_DATA)) << strerror(errno);
tests/sys/fs/fusefs/ioctl.cc
189
EXPECT_EQ(0, ioctl(fd, req, buf)) << strerror(errno);
tests/sys/fs/fusefs/ioctl.cc
208
r = ioctl(fd, req, arg);
tests/sys/fs/fusefs/ioctl.cc
66
uint8_t *in_buf = in.body.bytes + sizeof(in.body.ioctl);
tests/sys/fs/fusefs/ioctl.cc
67
uint8_t *out_buf = out.body.bytes + sizeof(out.body.ioctl);
tests/sys/fs/fusefs/ioctl.cc
68
uint32_t cmd = in.body.ioctl.cmd;
tests/sys/fs/fusefs/ioctl.cc
73
SET_OUT_HEADER_LEN(out, ioctl);
tests/sys/fs/fusefs/ioctl.cc
90
out.body.ioctl.result = result;
tests/sys/fs/fusefs/mockfs.cc
247
in.body.ioctl.flags, in.body.ioctl.cmd,
tests/sys/fs/fusefs/mockfs.cc
248
in.body.ioctl.in_size, in.body.ioctl.out_size);
tests/sys/fs/fusefs/mockfs.cc
693
EXPECT_GE(inlen, fih + sizeof(in.body.ioctl));
tests/sys/fs/fusefs/mockfs.cc
695
fih + sizeof(in.body.ioctl) + in.body.ioctl.in_size);
tests/sys/fs/fusefs/mockfs.hh
169
fuse_ioctl_in ioctl;
tests/sys/fs/fusefs/mockfs.hh
226
fuse_ioctl_out ioctl;
tests/sys/geom/class/eli/unaligned_io.c
66
if (ioctl(fd, DIOCGSECTORSIZE, &secsz) != 0)
tests/sys/geom/class/eli/unaligned_io.c
70
if (ioctl(fd, DIOCGMEDIASIZE, &disksz) != 0)
tests/sys/kern/inotify_test.c
284
ATF_REQUIRE(ioctl(ifd, FIONREAD, &n) == 0);
tests/sys/kern/inotify_test.c
76
ATF_REQUIRE(ioctl(fd, FIONREAD, &n) == 0);
tests/sys/kern/kcov.c
106
ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE,
tests/sys/kern/kcov.c
142
ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, page_size / KCOV_ENTRY_SIZE) == 0);
tests/sys/kern/kcov.c
162
ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, page_size / KCOV_ENTRY_SIZE) == 0);
tests/sys/kern/kcov.c
178
ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, page_size / KCOV_ENTRY_SIZE) == 0);
tests/sys/kern/kcov.c
181
ATF_CHECK(ioctl(fd, KIOENABLE, KCOV_MODE_TRACE_PC) == 0);
tests/sys/kern/kcov.c
222
ATF_CHECK(ioctl(fd, KIOENABLE, KCOV_MODE_TRACE_PC) == -1);
tests/sys/kern/kcov.c
224
ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, page_size / KCOV_ENTRY_SIZE) == 0);
tests/sys/kern/kcov.c
227
ATF_CHECK(ioctl(fd, KIODISABLE, 0) == -1);
tests/sys/kern/kcov.c
230
ATF_CHECK(ioctl(fd, KIOENABLE, -1) == -1);
tests/sys/kern/kcov.c
231
ATF_CHECK(ioctl(fd, KIOENABLE, KCOV_MODE_TRACE_PC) == 0);
tests/sys/kern/kcov.c
232
ATF_CHECK(ioctl(fd, KIOENABLE, KCOV_MODE_TRACE_PC) == -1);
tests/sys/kern/kcov.c
233
ATF_CHECK(ioctl(fd, KIOENABLE, KCOV_MODE_TRACE_CMP) == -1);
tests/sys/kern/kcov.c
236
ATF_CHECK(ioctl(fd, KIODISABLE, 0) == 0);
tests/sys/kern/kcov.c
237
ATF_CHECK(ioctl(fd, KIODISABLE, 0) == -1);
tests/sys/kern/kcov.c
240
ATF_CHECK(ioctl(fd, KIOENABLE, KCOV_MODE_TRACE_CMP) == 0);
tests/sys/kern/kcov.c
241
ATF_CHECK(ioctl(fd, KIODISABLE, 0) == 0);
tests/sys/kern/kcov.c
257
ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, page_size / KCOV_ENTRY_SIZE) == 0);
tests/sys/kern/kcov.c
258
ATF_CHECK(ioctl(fd, KIOENABLE, KCOV_MODE_TRACE_PC) == 0);
tests/sys/kern/kcov.c
273
ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, page_size / KCOV_ENTRY_SIZE) == 0);
tests/sys/kern/kcov.c
274
ATF_CHECK(ioctl(fd, KIOENABLE, KCOV_MODE_TRACE_PC) == 0);
tests/sys/kern/kcov.c
285
ATF_REQUIRE_MSG(ioctl(fd, KIOSETBUFSIZE,
tests/sys/kern/kcov.c
313
ATF_REQUIRE_MSG(ioctl(fd, KIOENABLE, mode) == 0,
tests/sys/kern/kcov.c
322
ATF_REQUIRE_MSG(ioctl(fd, KIODISABLE, 0) == 0,
tests/sys/kern/kcov.c
372
ATF_REQUIRE_MSG(ioctl(fd, KIOENABLE, mode) == 0,
tests/sys/kern/kcov.c
379
ATF_REQUIRE_MSG(ioctl(fd, KIODISABLE, 0) == 0,
tests/sys/kern/kcov.c
419
ATF_REQUIRE_MSG(ioctl(data->fd, KIOENABLE, data->mode) == 0,
tests/sys/kern/kcov.c
82
ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 0) == -1);
tests/sys/kern/kcov.c
83
ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 1) == -1);
tests/sys/kern/kcov.c
84
ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 2) == 0);
tests/sys/kern/kcov.c
85
ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 2) == -1);
tests/sys/kern/socket_splice.c
42
error = ioctl(fd, FIONREAD, &data);
tests/sys/kern/tty/fionread.c
18
assert(ioctl(STDIN_FILENO, FIONREAD, &nb) == 0);
tests/sys/kern/tty/test_sti.c
65
if (ioctl(fileno, TIOCSTI, walker) != 0)
tests/sys/kern/tty_pts.c
29
ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes));
tests/sys/kern/tty_pts.c
33
ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes));
tests/sys/kern/tty_pts.c
38
ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes));
tests/sys/kern/tty_pts.c
46
ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes));
tests/sys/kern/tty_pts.c
55
ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes));
tests/sys/kern/unix_dgram.c
293
ATF_REQUIRE(ioctl(fd, FIONREAD, &data) != -1);
tests/sys/net/if_epair.c
63
if (ioctl(s, SIOCIFCREATE2, &ifr) < 0)
tests/sys/net/if_epair.c
66
if (ioctl(s, SIOCIFDESTROY, &ifr) < 0)
tests/sys/net/if_ovpn/if_ovpn_c.c
116
ret = ioctl(ovpn_fd, SIOCSDRVSPEC, &drv);
tests/sys/net/if_ovpn/if_ovpn_c.c
46
ret = ioctl(fd, SIOCIFCREATE2, &ifr);
tests/sys/net/if_ovpn/if_ovpn_c.c
70
ret = ioctl(fd, SIOCIFDESTROY, &ifr);
tests/sys/net/routing/rtsock_common.h
107
if (ioctl(s, SIOCIFGCLONERS, &ifcr) < 0)
tests/sys/net/routing/rtsock_common.h
147
if (ioctl(s, SIOCIFCREATE2, &ifr) < 0)
tests/sys/net/routing/rtsock_common.h
175
if (ioctl(s, SIOCIFDESTROY, &ifr) < 0)
tests/sys/net/routing/rtsock_common.h
254
if (ioctl(s, SIOCGIFFLAGS, (caddr_t)&ifr) < 0) {
tests/sys/net/routing/rtsock_common.h
261
if (ioctl(s, SIOCSIFFLAGS, (caddr_t)&ifr) < 0) {
tests/sys/net/routing/rtsock_common.h
286
if (ioctl(s, SIOCGIFINFO_IN6, (caddr_t)&nd) < 0) {
tests/sys/net/routing/rtsock_common.h
293
if (ioctl(s, SIOCSIFINFO_IN6, (caddr_t)&nd) < 0) {
tests/sys/net/routing/rtsock_common.h
97
if (ioctl(s, SIOCIFGCLONERS, &ifcr) < 0)
tests/sys/net/transient_tuntap.c
47
if (ioctl(tunfd, tunreq, &one) == -1)
tests/sys/netinet/fibs_multibind_test.c
670
error = ioctl(s[0], FIONREAD, &bytes);
tests/sys/netinet/fibs_multibind_test.c
674
error = ioctl(s[1], FIONREAD, &bytes);
tests/sys/netinet/ip_reass_test.c
161
error = ioctl(fd, BIOCSETIF, &ifr);
tests/sys/netinet/so_reuseport_lb_test.c
619
error = ioctl(s1, FIONREAD, &len);
tests/sys/netinet/so_reuseport_lb_test.c
628
error = ioctl(s1, FIONREAD, &len);
tests/sys/netinet/so_reuseport_lb_test.c
691
error = ioctl(s1, FIONREAD, &len);
tests/sys/netinet/so_reuseport_lb_test.c
700
error = ioctl(s1, FIONREAD, &len);
tests/sys/netlink/netlink_socket.c
111
ATF_REQUIRE(ioctl(fd, FIONREAD, &recvavail) != -1);
tests/sys/netlink/netlink_socket.c
112
ATF_REQUIRE(ioctl(fd, FIONWRITE, &sendavail) != -1);
tests/sys/netlink/netlink_socket.c
224
ATF_REQUIRE(ioctl(fd, FIONREAD, &msize) != -1);
tests/sys/netlink/netlink_socket.c
228
ATF_REQUIRE(ioctl(fd, FIONREAD, &rsize) != -1);
tests/sys/netlink/netlink_socket.c
246
ATF_REQUIRE(ioctl(fd, FIONREAD, &rsize) != -1);
tests/sys/netlink/netlink_socket.c
251
ATF_REQUIRE(ioctl(fd, FIONREAD, &size) != -1);
tests/sys/netlink/netlink_socket.c
268
ATF_REQUIRE(ioctl(fd, FIONREAD, &rsize) != -1);
tests/sys/netlink/netlink_socket.c
89
ATF_REQUIRE(ioctl(fd, FIONREAD, &rsize) != -1);
tests/sys/netmap/ctrl-api-test.c
1339
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
1363
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
1566
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
1763
ret = ioctl(ctx->fd, NIOCTXSYNC, 0);
tests/sys/netmap/ctrl-api-test.c
204
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
262
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
335
ret = ioctl(ctx->fd, NIOCREGIF, &req);
tests/sys/netmap/ctrl-api-test.c
565
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
595
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
640
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
653
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
718
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
730
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
756
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
879
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netmap/ctrl-api-test.c
910
ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
tests/sys/netpfil/pf/ioctl/validation.c
1000
ATF_CHECK_ERRNO(EINVAL, ioctl(dev, DIOCADDSTATE, &st) == -1);
tests/sys/netpfil/pf/ioctl/validation.c
106
ioctl(dev, DIOCRADDTABLES, &io);
tests/sys/netpfil/pf/ioctl/validation.c
138
if (ioctl(dev, DIOCRDELTABLES, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
143
if (ioctl(dev, DIOCRDELTABLES, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
149
if (ioctl(dev, DIOCRDELTABLES, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
183
if (ioctl(dev, DIOCRGETTABLES, &io) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
188
if (ioctl(dev, DIOCRGETTABLES, &io) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
220
if (ioctl(dev, DIOCRCLRTABLES, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
254
if (ioctl(dev, DIOCRGETTSTATS, &io) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
259
if (ioctl(dev, DIOCRGETTSTATS, &io) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
295
if (ioctl(dev, DIOCRCLRTSTATS, &io) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
300
if (ioctl(dev, DIOCRCLRTSTATS, &io) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
305
if (ioctl(dev, DIOCRCLRTSTATS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
341
if (ioctl(dev, DIOCRSETTFLAGS, &io) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
346
if (ioctl(dev, DIOCRSETTFLAGS, &io) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
351
if (ioctl(dev, DIOCRSETTFLAGS, &io) != -1)
tests/sys/netpfil/pf/ioctl/validation.c
382
if (ioctl(dev, DIOCRADDADDRS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
387
if (ioctl(dev, DIOCRADDADDRS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
418
if (ioctl(dev, DIOCRDELADDRS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
423
if (ioctl(dev, DIOCRDELADDRS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
454
if (ioctl(dev, DIOCRSETADDRS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
459
if (ioctl(dev, DIOCRSETADDRS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
492
if (ioctl(dev, DIOCRGETADDRS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
497
if (ioctl(dev, DIOCRGETADDRS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
530
if (ioctl(dev, DIOCRGETASTATS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
535
if (ioctl(dev, DIOCRGETASTATS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
568
if (ioctl(dev, DIOCRCLRASTATS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
573
if (ioctl(dev, DIOCRCLRASTATS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
606
if (ioctl(dev, DIOCRTSTADDRS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
611
if (ioctl(dev, DIOCRTSTADDRS, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
644
if (ioctl(dev, DIOCRINADEFINE, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
649
if (ioctl(dev, DIOCRINADEFINE, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
679
if (ioctl(dev, DIOCIGETIFACES, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
684
if (ioctl(dev, DIOCIGETIFACES, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
713
if (ioctl(dev, DIOCXBEGIN, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
718
if (ioctl(dev, DIOCXBEGIN, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
724
if (ioctl(dev, DIOCXBEGIN, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
753
if (ioctl(dev, DIOCXROLLBACK, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
758
if (ioctl(dev, DIOCXROLLBACK, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
764
if (ioctl(dev, DIOCXROLLBACK, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
793
if (ioctl(dev, DIOCXCOMMIT, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
798
if (ioctl(dev, DIOCXCOMMIT, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
804
if (ioctl(dev, DIOCXCOMMIT, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
829
if (ioctl(dev, DIOCGETSRCNODES, &psn) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
833
if (ioctl(dev, DIOCGETSRCNODES, &psn) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
837
if (ioctl(dev, DIOCGETSRCNODES, &psn) != 0)
tests/sys/netpfil/pf/ioctl/validation.c
86
if (ioctl(dev, DIOCRADDTABLES, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
876
ioctl(dev, DIOCADDRULE, &rule);
tests/sys/netpfil/pf/ioctl/validation.c
91
if (ioctl(dev, DIOCRADDTABLES, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
914
ioctl(dev, DIOCADDRULE, &rule);
tests/sys/netpfil/pf/ioctl/validation.c
941
ioctl(dev, DIOCCHANGERULE, &rule);
tests/sys/netpfil/pf/ioctl/validation.c
97
if (ioctl(dev, DIOCRADDTABLES, &io) == 0)
tests/sys/netpfil/pf/ioctl/validation.c
970
ATF_CHECK_ERRNO(EINVAL, ioctl(dev, DIOCNATLOOK, &nl) == -1);
tests/sys/netpfil/pf/ioctl/validation.c
976
ATF_CHECK_ERRNO(EAFNOSUPPORT, ioctl(dev, DIOCNATLOOK, &nl) == -1);
tests/sys/opencrypto/blake2_test.c
108
ATF_REQUIRE_MSG(ioctl(fd, CIOCGSESSION2, &sop) >= 0,
tests/sys/opencrypto/blake2_test.c
125
ATF_CHECK_MSG(ioctl(fd, CIOCCRYPT, &cop) >= 0, "ioctl(CIOCCRYPT)");
tests/sys/opencrypto/blake2_test.c
82
ATF_REQUIRE(ioctl(fd, CIOCFINDDEV, &find) != -1);
tests/sys/opencrypto/poly1305_test.c
322
ATF_REQUIRE_MSG(ioctl(fd, CIOCGSESSION2, &sop) >= 0,
tests/sys/opencrypto/poly1305_test.c
334
ATF_REQUIRE_MSG(ioctl(fd, CIOCFSESSION, &ses) >= 0,
tests/sys/opencrypto/poly1305_test.c
349
ATF_CHECK_MSG(ioctl(fd, CIOCCRYPT, &cop) >= 0, "ioctl(CIOCCRYPT)");
tests/sys/posixshm/posixshm_test.c
1319
error = ioctl(fd, FIOSSHMLPGCNF, &lpc);
tests/sys/ses/destructive.c
106
r = ioctl(fd, ENCIOC_SETELMSTAT, (caddr_t)&elmstat);
tests/sys/ses/destructive.c
130
r = ioctl(fd, ENCIOC_GETELMSTAT,
tests/sys/ses/destructive.c
162
r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj);
tests/sys/ses/destructive.c
167
r = ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) map);
tests/sys/ses/destructive.c
184
r = ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t)&elmstat);
tests/sys/ses/destructive.c
193
r = ioctl(fd, ENCIOC_SETELMSTAT, (caddr_t)&elmstat);
tests/sys/ses/destructive.c
236
r = ioctl(fd, ENCIOC_SETENCSTAT, (caddr_t) &encstat);
tests/sys/ses/destructive.c
241
r = ioctl(fd, ENCIOC_GETENCSTAT, (caddr_t) &encstat);
tests/sys/ses/destructive.c
267
ioctl(fd, ENCIOC_SETENCSTAT, (caddr_t) &encstat);
tests/sys/ses/destructive.c
76
r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj);
tests/sys/ses/destructive.c
81
r = ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) map);
tests/sys/ses/destructive.c
97
r = ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t)&elmstat);
tests/sys/ses/nondestructive.c
138
r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj);
tests/sys/ses/nondestructive.c
145
r = ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) map);
tests/sys/ses/nondestructive.c
160
r = ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t)&e_status);
tests/sys/ses/nondestructive.c
168
r = ioctl(fd, ENCIOC_GETELMDEVNAMES, (caddr_t) &elmdn);
tests/sys/ses/nondestructive.c
257
r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj);
tests/sys/ses/nondestructive.c
262
r = ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) map);
tests/sys/ses/nondestructive.c
336
r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj);
tests/sys/ses/nondestructive.c
341
r = ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) map);
tests/sys/ses/nondestructive.c
370
r = ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t)&e_status);
tests/sys/ses/nondestructive.c
425
r = ioctl(fd, ENCIOC_GETENCID, (caddr_t) &stri);
tests/sys/ses/nondestructive.c
474
r = ioctl(fd, ENCIOC_GETENCNAME, (caddr_t) &stri);
tests/sys/ses/nondestructive.c
521
r = ioctl(fd, ENCIOC_GETENCSTAT, (caddr_t) &estat);
tests/sys/ses/nondestructive.c
569
r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj);
tests/sys/ses/nondestructive.c
60
r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj);
tests/sys/ses/nondestructive.c
623
r = ioctl(fd, ENCIOC_GETSTRING, (caddr_t) &str_in);
tests/sys/ses/nondestructive.c
88
r = ioctl(fd, ENCIOC_GETELMDESC, (caddr_t) &e_desc);
tests/sys/sound/polling.c
52
rc = ioctl(fd, SNDCTL_DSP_CHANNELS, &tmp);
tests/sys/sound/polling.c
56
rc = ioctl(fd, SNDCTL_DSP_SETFMT, &tmp);
tests/sys/sound/polling.c
60
rc = ioctl(fd, SNDCTL_DSP_SPEED, &tmp);
tests/sys/sound/polling.c
67
rc = ioctl(fd, SNDCTL_DSP_SETTRIGGER, &tmp);
tests/sys/sound/sndstat.c
264
rc = ioctl(fd, SNDSTIOC_ADD_USER_DEVS, &arg);
tests/sys/sound/sndstat.c
273
rc = ioctl(fd, SNDSTIOC_REFRESH_DEVS, NULL);
tests/sys/sound/sndstat.c
278
rc = ioctl(fd, SNDSTIOC_GET_DEVS, &arg);
tests/sys/sound/sndstat.c
284
rc = ioctl(fd, SNDSTIOC_GET_DEVS, &arg);
tests/sys/sound/sndstat.c
62
rc = ioctl(fd, SNDSTIOC_REFRESH_DEVS, NULL);
tests/sys/sound/sndstat.c
67
rc = ioctl(fd, SNDSTIOC_GET_DEVS, &arg);
tests/sys/sound/sndstat.c
73
rc = ioctl(fd, SNDSTIOC_GET_DEVS, &arg);
tools/bus_space/bus.c
116
if (ioctl(r->fd, PROTO_IOC_REGION, ®ion) == -1) {
tools/bus_space/busdma.c
163
if (ioctl(fd, PROTO_IOC_BUSDMA, &ioc) == -1) {
tools/bus_space/busdma.c
240
if (ioctl(tag->fd, PROTO_IOC_BUSDMA, &ioc) == -1)
tools/bus_space/busdma.c
301
if (ioctl(tag->fd, PROTO_IOC_BUSDMA, &ioc) == -1) {
tools/bus_space/busdma.c
327
if (ioctl(md->fd, PROTO_IOC_BUSDMA, &ioc) == -1)
tools/bus_space/busdma.c
352
if (ioctl(md->fd, PROTO_IOC_BUSDMA, &ioc) == -1)
tools/bus_space/busdma.c
375
if (ioctl(md->fd, PROTO_IOC_BUSDMA, &ioc) == -1)
tools/bus_space/busdma.c
404
if (ioctl(tag->fd, PROTO_IOC_BUSDMA, &ioc) == -1) {
tools/bus_space/busdma.c
435
ioctl(md->fd, PROTO_IOC_BUSDMA, &ioc);
tools/bus_space/busdma.c
454
if (ioctl(md->fd, PROTO_IOC_BUSDMA, &ioc) == -1)
tools/bus_space/busdma.c
552
if (ioctl(md->fd, PROTO_IOC_BUSDMA, &ioc) == -1)
tools/regression/aio/aiop/aiop.c
87
if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
103
if (ioctl(fd, AUDITPIPE_SET_QLIMIT, &len) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
106
if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
117
if (ioctl(fd, AUDITPIPE_GET_INSERTS, &astat) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
123
if (ioctl(fd, AUDITPIPE_GET_READS, &astat) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
129
if (ioctl(fd, AUDITPIPE_GET_DROPS, &astat) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
135
if (ioctl(fd, AUDITPIPE_GET_TRUNCATES, &astat) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
59
if (ioctl(fd, AUDITPIPE_GET_QLEN, &len) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
65
if (ioctl(fd, AUDITPIPE_GET_QLIMIT_MIN, &minlen) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
71
if (ioctl(fd, AUDITPIPE_GET_QLIMIT_MAX, &maxlen) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
77
if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
93
if (ioctl(fd, AUDITPIPE_SET_QLIMIT, &len) < 0)
tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c
96
if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
113
CHECK(ioctl(fd, FIOCLEX) == -1);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
119
CHECK(ioctl(fd, FIONCLEX) == -1);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
159
CHECK(ioctl(fd, FIOCLEX) == -1);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
165
CHECK(ioctl(fd, FIONCLEX) == -1);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
198
CHECK(ioctl(fd, FIOCLEX) == -1);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
204
CHECK(ioctl(fd, FIONCLEX) == -1);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
251
CHECK(ioctl(fd, FIOCLEX) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
253
CHECK(ioctl(fd, FIONCLEX) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
266
CHECK(ioctl(fd, FIOCLEX) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
268
CHECK(ioctl(fd, FIONCLEX) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
280
CHECK(ioctl(fd, FIOCLEX) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
283
CHECK(ioctl(fd, FIONCLEX) == -1);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
297
CHECK(ioctl(fd, FIOCLEX) == -1);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
303
CHECK(ioctl(fd, FIONCLEX) == -1);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
53
CHECK(ioctl(fd, FIOCLEX) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
55
CHECK(ioctl(fd, FIONCLEX) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
74
CHECK(ioctl(fd, FIOCLEX) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
76
CHECK(ioctl(fd, FIONCLEX) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
94
CHECK(ioctl(fd, FIOCLEX) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
97
CHECK(ioctl(fd, FIONCLEX) == -1);
tools/regression/ethernet/ethermulti/ethermulti.c
150
if (ioctl(sock, SIOCADDMULTI, &ifr) < 0) {
tools/regression/ethernet/ethermulti/ethermulti.c
193
if (ioctl(sock, SIOCDELMULTI, &ifr) < 0)
tools/regression/netinet/msocket_ifnet_remove/msocket_ifnet_remove.c
120
if (ioctl(s, SIOCIFDESTROY, &ifr) < 0)
tools/regression/netinet/msocket_ifnet_remove/msocket_ifnet_remove.c
155
if (ioctl(s, SIOCAIFADDR, &ifra) < 0) {
tools/regression/netinet/msocket_ifnet_remove/msocket_ifnet_remove.c
94
if (ioctl(s, SIOCIFCREATE, &ifr) < 0) {
tools/regression/sockets/listen_kqueue/listen_kqueue.c
82
if (ioctl(sock, FIONBIO, &opt) == -1)
tools/test/gpioevents/gpioevents.c
566
res = ioctl(handle, GPIOCONFIGEVENTS, &cfg);
tools/tools/aac/aac_checkq.c
71
retval = ioctl(fd, AACIO_STATS, &sr);
tools/tools/ath/ath_prom_read/ath_prom_read.c
123
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athaggrstats/athaggrstats.c
173
if (ioctl(wf->s, SIOCZATHSTATS, &wf->ifr) < 0)
tools/tools/ath/athaggrstats/athaggrstats.c
182
if (ioctl(wf->s, SIOCGATHAGSTATS, &wf->ifr) < 0)
tools/tools/ath/athkey/athkey.c
178
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athkey/athkey.c
196
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athpoke/athpoke.c
134
if (ioctl(s, SIOCGATHDIAG, atd) < 0)
tools/tools/ath/athpoke/athpoke.c
149
if (ioctl(s, SIOCGATHDIAG, atd) < 0)
tools/tools/ath/athpoke/athpoke.c
91
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athpow/athpow.c
104
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athpow/athpow.c
113
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athpow/athpow.c
120
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athprom/athprom.c
160
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athprom/athprom.c
187
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athprom/athprom.c
205
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athprom/athprom.c
333
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
tools/tools/ath/athradar/athradar.c
154
if (ioctl(radar->s, SIOCGATHPHYERR, &radar->atd) < 0)
tools/tools/ath/athradar/athradar.c
171
if (ioctl(radar->s, SIOCGATHPHYERR, &radar->atd) < 0)
tools/tools/ath/athradar/athradar.c
63
if (ioctl(radar->s, SIOCGATHDIAG, &radar->atd) < 0) {
tools/tools/ath/athratestats/main.c
220
if (ioctl(r->s, SIOCGATHNODERATESTATS, &r->re) < 0)
tools/tools/ath/athspectral/athspectral.c
115
if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0)
tools/tools/ath/athspectral/athspectral.c
132
if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0)
tools/tools/ath/athspectral/athspectral.c
163
if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0)
tools/tools/ath/athspectral/athspectral.c
184
if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0)
tools/tools/ath/athspectral/athspectral.c
207
if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0)
tools/tools/ath/athspectral/athspectral.c
63
if (ioctl(spectral->s, SIOCGATHDIAG, &spectral->atd) < 0) {
tools/tools/ath/athsurvey/athsurvey.c
66
if (ioctl(s, SIOCGATHDIAG, &atd) < 0) {
tools/tools/ath/common/ctrl.c
129
ret = ioctl(req->s, cmd, ad);
tools/tools/ath/common/ctrl.c
150
ret = ioctl(req->s, SIOCZATHSTATS, &ifr);
tools/tools/ath/common/ctrl.c
171
ret = ioctl(req->s, SIOCGATHSTATS, &ifr);
tools/tools/ath/common/ctrl.c
193
ret = ioctl(req->s, SIOCGATHAGSTATS, &ifr);
tools/tools/ath/common/ctrl.c
212
ret = ioctl(req->s, SIOCGATHNODERATESTATS, r);
tools/tools/cfi/cfi.c
107
if (ioctl(fd, CFIOCGPLR, &plr) < 0)
tools/tools/cfi/cfi.c
117
if (ioctl(fd, CFIOCSPLR, 0) < 0)
tools/tools/cfi/cfi.c
76
if (ioctl(fd, CFIOCGFACTORYPR, &v) < 0)
tools/tools/cfi/cfi.c
87
if (ioctl(fd, CFIOCGOEMPR, &v) < 0)
tools/tools/cfi/cfi.c
97
if (ioctl(fd, CFIOCSOEMPR, &v) < 0)
tools/tools/crypto/cryptocheck.c
1174
if (ioctl(ses.fd, CIOCCRYPT, &cop) < 0) {
tools/tools/crypto/cryptocheck.c
1565
if (ioctl(ses->fd, CIOCCRYPTAEAD, &caead) < 0)
tools/tools/crypto/cryptocheck.c
388
if (ioctl(devcrypto(), CIOCFINDDEV, &find) == -1)
tools/tools/crypto/cryptocheck.c
405
if (ioctl(devcrypto(), CIOCFINDDEV, &find) == -1)
tools/tools/crypto/cryptocheck.c
478
if (ioctl(fd, CIOCGSESSION2, sop) < 0) {
tools/tools/crypto/cryptocheck.c
496
if (ioctl(ses->fd, CIOCFSESSION, &ses->ses) < 0)
tools/tools/crypto/cryptocheck.c
533
if (ioctl(ses.fd, CIOCCRYPT, &cop) < 0) {
tools/tools/crypto/cryptocheck.c
647
if (ioctl(ses.fd, CIOCCRYPT, &cop) < 0) {
tools/tools/crypto/cryptocheck.c
784
if (ioctl(ses->fd, CIOCCRYPT, &cop) < 0) {
tools/tools/crypto/cryptocheck.c
933
ret = ioctl(ses->fd, CIOCCRYPTAEAD, &caead);
tools/tools/crypto/cryptocheck.c
945
ret = ioctl(ses->fd, CIOCCRYPT, &cop);
tools/tools/cxgbtool/cxgbtool.c
138
return ioctl(fd, cmd, data) < 0 ? -1 : 0;
tools/tools/dmardump/dmardump.c
85
if (ioctl(pcifd, PCIOCGETCONF, &pc) == -1)
tools/tools/ioat/ioatcontrol.c
100
(void)ioctl(fd, IOAT_DMATEST, t);
tools/tools/ioat/ioatcontrol.c
240
(void)ioctl(fd, IOAT_DMATEST, &t);
tools/tools/iwn/iwnstats/iwn_ioctl.c
67
if (ioctl(is->s, SIOCZIWNSTATS, NULL) < 0)
tools/tools/iwn/iwnstats/iwn_ioctl.c
80
err = ioctl(is->s, SIOCGIWNSTATS, (caddr_t) &d);
tools/tools/kttcp/kttcp.c
258
if (ioctl(kfd, cmd, &kio) == -1)
tools/tools/mcgrab/mcgrab.cc
113
if (ioctl(sock, SIOCGIFADDR, &ifreq) < 0) {
tools/tools/mctest/mctest.cc
123
if (ioctl(sock, SIOCGIFADDR, &ifreq) < 0) {
tools/tools/mctest/mctest.cc
324
if (ioctl(sock, SIOCGIFADDR, &ifreq) < 0) {
tools/tools/mfi/mfi_checkq.c
68
retval = ioctl(fd, MFIIO_STATS, &sr);
tools/tools/mwl/mwlstats/mwlstats.c
263
if (ioctl(wf->s, SIOCGMVSTATS, &wf->ifr) < 0)
tools/tools/net80211/mlme_assoc/mlme_assoc.c
106
error = ioctl(sd, SIOCS80211, &ireq);
tools/tools/net80211/mlme_assoc/mlme_assoc.c
130
error = ioctl(sd, SIOCG80211, &ireq);
tools/tools/net80211/mlme_assoc/mlme_assoc.c
64
error = ioctl(sd, SIOCGIFFLAGS, &ifr);
tools/tools/net80211/mlme_assoc/mlme_assoc.c
75
error = ioctl(sd, SIOCSIFFLAGS, &ifr);
tools/tools/net80211/stumbler/stumbler.c
262
if (ioctl(ioctl_s, SIOCS80211, &chaninfo.ireq) == -1)
tools/tools/net80211/stumbler/stumbler.c
287
if (ioctl(ioctl_s, SIOCGIFFLAGS, &ifr) == -1)
tools/tools/net80211/stumbler/stumbler.c
297
if (ioctl(ioctl_s, SIOCSIFFLAGS, &ifr) == -1)
tools/tools/net80211/stumbler/stumbler.c
326
if(ioctl(fd, BIOCSETIF, &ifr) < 0)
tools/tools/net80211/stumbler/stumbler.c
329
if (ioctl(fd, BIOCSDLT, &dlt) < 0)
tools/tools/net80211/stumbler/stumbler.c
333
if(ioctl(fd, BIOCIMMEDIATE, &i) < 0)
tools/tools/net80211/w00t/libw00t/w00t.c
112
if(ioctl(fd, BIOCSETIF, &ifr) < 0)
tools/tools/net80211/w00t/libw00t/w00t.c
115
if (ioctl(fd, BIOCSDLT, &dlt) < 0)
tools/tools/net80211/w00t/libw00t/w00t.c
119
if (ioctl(fd, BIOCIMMEDIATE, &i) < 0)
tools/tools/net80211/w00t/libw00t/w00t.c
268
rc = ioctl(s, SIOCSIFLLADDR, &ifr);
tools/tools/net80211/wesside/wesside/wesside.c
2187
if (ioctl(s, SIOCSIFMTU, &ifr) == -1) {
tools/tools/net80211/wesside/wesside/wesside.c
2195
if (ioctl(s, SIOCGIFFLAGS, &ifr) == -1) {
tools/tools/net80211/wesside/wesside/wesside.c
2207
if (ioctl(s, SIOCSIFFLAGS, &ifr) == -1) {
tools/tools/net80211/wesside/wesside/wesside.c
331
if (ioctl(chaninfo.s, SIOCS80211, &chaninfo.ireq) == -1) {
tools/tools/net80211/wesside/wesside/wesside.c
355
if (ioctl(s, SIOCSIFLLADDR, &ifr) == -1) {
tools/tools/net80211/wesside/wesside/wesside.c
398
if (ioctl(s, SIOCGIFFLAGS, &ifr) == -1) {
tools/tools/net80211/wesside/wesside/wesside.c
410
if (ioctl(s, SIOCSIFFLAGS, &ifr) == -1) {
tools/tools/net80211/wesside/wesside/wesside.c
447
if(ioctl(fd, BIOCSETIF, &ifr) < 0) {
tools/tools/net80211/wesside/wesside/wesside.c
452
if (ioctl(fd, BIOCSDLT, &dlt) < 0) {
tools/tools/net80211/wesside/wesside/wesside.c
458
if(ioctl(fd, BIOCIMMEDIATE, &i) < 0) {
tools/tools/net80211/wlaninject/wlaninject.c
106
if (ioctl(fd, BIOCSETIF, &ifr) == -1)
tools/tools/net80211/wlaninject/wlaninject.c
109
if (ioctl(fd, BIOCSDLT, &dlt) == -1)
tools/tools/net80211/wlaninject/wlaninject.c
113
if (ioctl(fd, BIOCIMMEDIATE, &i) == -1)
tools/tools/net80211/wlaninject/wlaninject.c
64
if (ioctl(s, SIOCS80211, &ireq) == -1)
tools/tools/net80211/wlaninject/wlaninject.c
70
if (ioctl(s, SIOCGIFFLAGS, &ifr) == -1)
tools/tools/net80211/wlaninject/wlaninject.c
76
if (ioctl(s, SIOCSIFFLAGS, &ifr) == -1)
tools/tools/net80211/wlanwds/wlanwds.c
262
if (ioctl(s, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0)
tools/tools/net80211/wlanwds/wlanwds.c
281
if (ioctl(s, SIOCG80211, &ireq) < 0)
tools/tools/net80211/wlanwds/wlanwds.c
595
if (ioctl(s, SIOCIFCREATE2, &ifr) >= 0) {
tools/tools/net80211/wlanwds/wlanwds.c
624
if (ioctl(s, SIOCIFDESTROY, &ifr) < 0) {
tools/tools/netmap/bridge.c
328
ioctl(pollfd[0].fd, NIOCRXSYNC, NULL);
tools/tools/netmap/bridge.c
333
ioctl(pollfd[1].fd, NIOCRXSYNC, NULL);
tools/tools/netmap/bridge.c
379
ioctl(pollfd[0].fd, NIOCTXSYNC, NULL);
tools/tools/netmap/bridge.c
386
ioctl(pollfd[1].fd, NIOCTXSYNC, NULL);
tools/tools/netmap/lb.c
1043
ioctl(rxport->nmd->fd, NIOCRXSYNC, NULL);
tools/tools/netmap/nmreplay.c
881
ioctl(pa->pb->fd, NIOCTXSYNC, 0); // XXX just in case
tools/tools/netmap/nmreplay.c
892
ioctl(pa->pb->fd, NIOCTXSYNC, 0);
tools/tools/netmap/nmreplay.c
898
ioctl(pa->pb->fd, NIOCTXSYNC, 0);
tools/tools/netmap/pkt-gen.c
1220
err = ioctl(g->main_fd, NIOCCTRL, &hdr);
tools/tools/netmap/pkt-gen.c
1248
err = ioctl(g->main_fd, NIOCCTRL, &hdr);
tools/tools/netmap/pkt-gen.c
1465
rv = ioctl(pfd.fd, NIOCTXSYNC, NULL);
tools/tools/netmap/pkt-gen.c
1471
ioctl(pfd.fd, NIOCRXSYNC, NULL);
tools/tools/netmap/pkt-gen.c
1607
ioctl(pfd.fd, NIOCRXSYNC, NULL);
tools/tools/netmap/pkt-gen.c
1662
ioctl(pfd.fd, NIOCTXSYNC, NULL);
tools/tools/netmap/pkt-gen.c
1787
if (ioctl(pfd.fd, NIOCTXSYNC, NULL) < 0) {
tools/tools/netmap/pkt-gen.c
1850
ioctl(pfd.fd, NIOCTXSYNC, NULL);
tools/tools/netmap/pkt-gen.c
1859
ioctl(pfd.fd, NIOCTXSYNC, NULL);
tools/tools/netmap/pkt-gen.c
1986
if (ioctl(pfd.fd, NIOCRXSYNC, NULL) < 0) {
tools/tools/netmap/pkt-gen.c
2108
if (ioctl(pfd.fd, NIOCTXSYNC, NULL) < 0) {
tools/tools/netmap/pkt-gen.c
2207
ioctl(pfd.fd, NIOCTXSYNC, NULL);
tools/tools/netmap/pkt-gen.c
2213
ioctl(pfd.fd, NIOCTXSYNC, NULL);
tools/tools/netmap/pkt-gen.c
2299
if (ioctl(pfd.fd, NIOCRXSYNC, NULL) < 0) {
tools/tools/netmap/pkt-gen.c
2907
if( (err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ) {
tools/tools/netmap/pkt-gen.c
548
ret = ioctl(s, SIOCGIFMTU, &ifreq);
tools/tools/nvmf/nvmfd/ctl.c
109
if (ioctl(ctl_fd, CTL_PORT_REQ, &req) != 0)
tools/tools/nvmf/nvmfd/ctl.c
135
if (ioctl(ctl_fd, CTL_NVMF, &req) != 0)
tools/tools/nvmf/nvmfd/ctl.c
70
if (ioctl(ctl_fd, CTL_PORT_REQ, &req) != 0)
tools/tools/nvmf/nvmfd/ctl.c
87
if (ioctl(ctl_fd, CTL_ENABLE_PORT, &entry) != 0)
tools/tools/nvmf/nvmfd/devices.c
378
if (ioctl(dev->fd, DIOCGFLUSH) == -1) {
tools/tools/nvmf/nvmfd/devices.c
90
if (ioctl(fd, DIOCGSECTORSIZE, &dev->sector_size) != 0)
tools/tools/nvmf/nvmfd/devices.c
92
if (ioctl(fd, DIOCGMEDIASIZE, &len) != 0)
tools/tools/pciroms/pciroms.c
189
if (ioctl(pci_fd, PCIOCGETCONF, &pc) == -1) {
tools/tools/pciroms/pciroms.c
274
if (ioctl(pci_fd, PCIOCWRITE, &io) == -1)
tools/tools/pciroms/pciroms.c
280
if (ioctl(pci_fd, PCIOCREAD, &io) == -1)
tools/tools/pciroms/pciroms.c
293
if (ioctl(pci_fd, PCIOCWRITE, &io) == -1)
tools/tools/pciroms/pciroms.c
353
if (ioctl(pci_fd, PCIOCREAD, &io) == -1)
tools/tools/pciroms/pciroms.c
358
if (ioctl(pci_fd, PCIOCWRITE, &io) == -1)
tools/tools/pciroms/pciroms.c
368
if (ioctl(pci_fd, PCIOCWRITE, &io) == -1)
tools/tools/pciroms/pciroms.c
386
if (ioctl(pci_fd, PCIOCWRITE, &io) == -1)
tools/tools/pciroms/pciroms.c
396
if (ioctl(pci_fd, PCIOCWRITE, &io) == -1) {
tools/tools/tionxcl/tionxcl.c
93
if (0 != ioctl(fd, TIOCNXCL, 0))
tools/tools/vimage/vimage.c
220
if (ioctl(s, SIOCSIFVNET, (caddr_t)&ifreq) < 0)
tools/tools/vimage/vimage.c
238
while (ioctl(s, SIOCSIFNAME, (caddr_t)&ifreq) < 0) {
tools/tools/wtap/vis_map/vis_map.c
44
if (ioctl(dev, VISIOCTLOPEN, &op) < 0) {
tools/tools/wtap/vis_map/vis_map.c
52
if (ioctl(dev, VISIOCTLLINK, l) < 0) {
tools/tools/wtap/wtap/wtap.c
40
if(ioctl(dev, WTAPIOCTLCRT, &id) < 0){
tools/tools/wtap/wtap/wtap.c
47
if(ioctl(dev, WTAPIOCTLDEL, &id) < 0){
tools/tools/zfsboottest/zfsboottest.c
64
if (S_ISCHR(sb.st_mode) && ioctl(fd, DIOCGMEDIASIZE, &sb.st_size) != 0)
usr.bin/backlight/backlight.c
171
if (ioctl(fd, BACKLIGHTGETSTATUS, &props) == -1)
usr.bin/backlight/backlight.c
189
if (ioctl(fd, BACKLIGHTUPDATESTATUS, &props) == -1)
usr.bin/backlight/backlight.c
197
if (ioctl(fd, BACKLIGHTGETSTATUS, &props) == -1)
usr.bin/backlight/backlight.c
206
if (ioctl(fd, BACKLIGHTUPDATESTATUS, &props) == -1)
usr.bin/backlight/backlight.c
210
if (ioctl(fd, BACKLIGHTGETINFO, &info) == -1)
usr.bin/beep/beep.c
215
if (ioctl(f, SOUND_PCM_WRITE_CHANNELS, &c) != 0)
usr.bin/beep/beep.c
219
if (ioctl(f, SNDCTL_DSP_SETFMT, &c) != 0)
usr.bin/beep/beep.c
222
if (ioctl(f, SNDCTL_DSP_SPEED, &sample_rate) != 0)
usr.bin/beep/beep.c
228
if (ioctl(f, SNDCTL_DSP_SETFRAGMENT, &c))
usr.bin/beep/beep.c
231
if (ioctl(f, SNDCTL_DSP_GETODELAY, &c) != 0)
usr.bin/beep/beep.c
271
while (ioctl(f, SNDCTL_DSP_GETODELAY, &c) == 0) {
usr.bin/column/column.c
78
if (ioctl(1, TIOCGWINSZ, &win) == -1 || !win.ws_col) {
usr.bin/ctlstat/ctlstat.c
187
if (ioctl(fd, ports ? CTL_GET_PORT_STATS : CTL_GET_LUN_STATS,
usr.bin/ctlstat/ctlstat.c
566
if (ioctl(fd, CTL_PORT_LIST, &list) == -1)
usr.bin/fetch/fetch.c
288
if (ioctl(STDERR_FILENO, TIOCGPGRP, &ctty_pgrp) != 0 ||
usr.bin/hexdump/display.c
406
if (ioctl(fileno(stdin), FIODTYPE, &type))
usr.bin/iscsictl/iscsictl.c
277
error = ioctl(iscsi_fd, ISCSISADD, &isa);
usr.bin/iscsictl/iscsictl.c
292
error = ioctl(iscsi_fd, ISCSISMODIFY, &ism);
usr.bin/iscsictl/iscsictl.c
320
error = ioctl(iscsi_fd, ISCSISLIST, &isl);
usr.bin/iscsictl/iscsictl.c
358
error = ioctl(iscsi_fd, ISCSISMODIFY, &ism);
usr.bin/iscsictl/iscsictl.c
371
error = ioctl(iscsi_fd, ISCSISREMOVE, &isr);
usr.bin/iscsictl/iscsictl.c
401
error = ioctl(iscsi_fd, ISCSISLIST, &isl);
usr.bin/iscsictl/iscsictl.c
574
error = ioctl(iscsi_fd, ISCSISLIST, &isl);
usr.bin/iscsictl/periphs.c
118
if (ioctl(fd, CAMIOCOMMAND, &ccb) == -1) {
usr.bin/kdump/kdump.c
1772
if (fancy && ioctl(fileno(stderr), TIOCGWINSZ, &ws) != -1 &&
usr.bin/lock/lock.c
191
if (ioctl(0, VT_LOCKSWITCH, &vtylock) == -1) {
usr.bin/lock/lock.c
287
(void)ioctl(0, VT_LOCKSWITCH, &vtyunlock);
usr.bin/lock/lock.c
297
(void)ioctl(0, VT_LOCKSWITCH, &vtyunlock);
usr.bin/mail/main.c
360
if (ioctl(1, TIOCGWINSZ, (char *)&ws) < 0)
usr.bin/mail/tty.c
150
if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0)
usr.bin/mail/tty.c
195
ioctl(0, TIOCSTI, &ch);
usr.bin/mail/tty.c
198
ioctl(0, TIOCSTI, &ch);
usr.bin/mail/tty.c
95
if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0)
usr.bin/ministat/ministat.c
574
else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &wsz) != -1 &&
usr.bin/mkuzip/mkuz_insize.c
62
if (ioctl(ffd, DIOCGMEDIASIZE, &ms) < 0) {
usr.bin/mkuzip/mkuz_insize.c
70
if (ioctl(cfp->fdr, DIOCGMEDIASIZE, &ms) < 0) {
usr.bin/morse/morse.c
378
ioctl(line, TIOCMGET, &lflags);
usr.bin/morse/morse.c
381
ioctl(line, TIOCMSET, &lflags);
usr.bin/morse/morse.c
533
if (ioctl(spkr, SPKRTONE, &sound) == -1) {
usr.bin/morse/morse.c
539
if (ioctl(spkr, SPKRTONE, &sound) == -1) {
usr.bin/morse/morse.c
545
ioctl(spkr, SPKRTONE, &sound);
usr.bin/morse/morse.c
574
ioctl(line, TIOCMGET, &lflags);
usr.bin/morse/morse.c
576
ioctl(line, TIOCMSET, &lflags);
usr.bin/morse/morse.c
581
ioctl(line, TIOCMGET, &lflags);
usr.bin/morse/morse.c
583
ioctl(line, TIOCMSET, &lflags);
usr.bin/morse/morse.c
657
ioctl(line, TIOCMSET, &olflags);
usr.bin/msgs/msgs.c
432
if (ioctl(fileno(stdout), TIOCGWINSZ, &win) != -1)
usr.bin/mt/mt.c
1104
if (ioctl(mtfd, MTIOCPARAMSET, ¶m_set) == -1)
usr.bin/mt/mt.c
1301
if (ioctl(mtfd, MTIOCSETLIST, ¶m_list) == -1)
usr.bin/mt/mt.c
288
if (ioctl(mtfd, comp->c_code, (caddr_t)&umn) < 0)
usr.bin/mt/mt.c
324
if (ioctl(mtfd, comp->c_code, (caddr_t)&block) < 0)
usr.bin/mt/mt.c
336
if (ioctl(mtfd, comp->c_code, (caddr_t)&block) < 0)
usr.bin/mt/mt.c
344
if (ioctl(mtfd, MTIOCGETEOTMODEL, (caddr_t)&om) < 0)
usr.bin/mt/mt.c
354
if (ioctl(mtfd, MTIOCGETEOTMODEL, (caddr_t)&om) < 0)
usr.bin/mt/mt.c
356
if (ioctl(mtfd, comp->c_code, (caddr_t)&nm) < 0)
usr.bin/mt/mt.c
371
if (ioctl(mtfd, MTIOCRBLIM, (caddr_t)&rblim) < 0)
usr.bin/mt/mt.c
409
if (ioctl(mtfd, MTIOCTOP, &mt_com) < 0)
usr.bin/mt/mt.c
412
if (ioctl(mtfd, MTIOCGET, &mt_status) < 0)
usr.bin/mt/mt.c
745
if (ioctl(mtfd, MTIOCEXTLOCATE, &mtl) == -1)
usr.bin/netstat/inet6.c
1090
if (ioctl(s, SIOCGIFSTAT_ICMP6, (char *)&ifr) < 0) {
usr.bin/netstat/inet6.c
617
if (ioctl(s, SIOCGIFSTAT_IN6, (char *)&ifr) < 0) {
usr.bin/posixshmcontrol/posixshmcontrol.c
446
error = ioctl(fd, FIOGSHMLPGCNF, &conf_dummy);
usr.bin/resizewin/resizewin.c
152
if (ioctl(fd, TIOCSWINSZ, &w) == -1)
usr.bin/resizewin/resizewin.c
89
if (ioctl(fd, TIOCGWINSZ, &w) == -1)
usr.bin/script/script.c
203
if (ioctl(fm_fd, FILEMON_SET_FD, &fm_log) < 0)
usr.bin/script/script.c
211
ioctl(STDIN_FILENO, TIOCGWINSZ, &win) == -1) {
usr.bin/script/script.c
271
if (ioctl(fm_fd, FILEMON_SET_PID, &pid) < 0)
usr.bin/script/script.c
323
if (ioctl(STDIN_FILENO, TIOCGWINSZ, &win) != -1)
usr.bin/script/script.c
324
ioctl(master, TIOCSWINSZ, &win);
usr.bin/sed/process.c
597
else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == 0 &&
usr.bin/tabs/tabs.c
228
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) != -1)
usr.bin/talk/init_disp.c
193
if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) < 0 ||
usr.bin/tcopy/tcopy.cc
150
if (ioctl(fd, MTIOCTOP, (char *)&op) < 0)
usr.bin/tcopy/tcopy.cc
161
if (ioctl(fd, MTIOCTOP, (char *)&op) < 0)
usr.bin/tcopy/tcopy.cc
477
int i = ioctl(fd, MTIOCTOP, &mt);
usr.bin/tip/libacu/biz31.c
226
if (ioctl(fd, IOCTL, (caddr_t)&b) >= 0 && chars(b) > 0)
usr.bin/tip/libacu/biz31.c
230
if (ioctl(fd, IOCTL, (caddr_t)&b) >= 0) {
usr.bin/tip/libacu/courier.c
119
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/courier.c
121
ioctl(FD, TIOCSDTR, 0);
usr.bin/tip/libacu/courier.c
273
ioctl(FD, FIONREAD, &len);
usr.bin/tip/libacu/courier.c
295
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/courier.c
297
ioctl(FD, TIOCSDTR, 0);
usr.bin/tip/libacu/courier.c
326
if (ioctl(FD, FIONREAD, &n) < 0)
usr.bin/tip/libacu/df.c
87
ioctl(f, TIOCMBIC, &st); /* clear ST for 300 baud */
usr.bin/tip/libacu/df.c
89
ioctl(f, TIOCMBIS, &st); /* set ST for 1200 baud */
usr.bin/tip/libacu/dn11.c
126
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/dn11.c
139
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/hayes.c
145
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/hayes.c
147
ioctl(FD, TIOCSDTR, 0);
usr.bin/tip/libacu/hayes.c
264
ioctl(FD, FIONREAD, &len);
usr.bin/tip/libacu/hayes.c
274
ioctl(FD, FIONREAD, &len);
usr.bin/tip/libacu/hayes.c
282
ioctl(FD, TIOCCDTR, 0); /* clear DTR (insurance) */
usr.bin/tip/libacu/hayes.c
296
ioctl(FD, FIONREAD, &len);
usr.bin/tip/libacu/hayes.c
307
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/hayes.c
308
ioctl(FD, TIOCSDTR, 0);
usr.bin/tip/libacu/t3000.c
120
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/t3000.c
122
ioctl(FD, TIOCSDTR, 0);
usr.bin/tip/libacu/t3000.c
288
ioctl(FD, FIONREAD, &len);
usr.bin/tip/libacu/t3000.c
313
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/t3000.c
315
ioctl(FD, TIOCSDTR, 0);
usr.bin/tip/libacu/t3000.c
344
if (ioctl(FD, FIONREAD, &n) < 0)
usr.bin/tip/libacu/v831.c
134
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/v831.c
139
ioctl(FD, TIOCNXCL, NULL);
usr.bin/tip/libacu/v831.c
154
ioctl(FD, TIOCNXCL, NULL);
usr.bin/tip/libacu/v831.c
157
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/ventel.c
224
ioctl(FD, TIOCCDTR, 0);
usr.bin/tip/libacu/ventel.c
226
ioctl(FD, TIOCSDTR, 0);
usr.bin/tip/libacu/ventel.c
237
if (ioctl(fd, FIONREAD, (caddr_t)&nread) < 0) {
usr.bin/tip/tip/cmds.c
883
ioctl(FD, TIOCSETD, &ld);
usr.bin/tip/tip/cmds.c
893
ioctl(FD, TIOCSBRK, NULL);
usr.bin/tip/tip/cmds.c
895
ioctl(FD, TIOCCBRK, NULL);
usr.bin/tip/tip/hunt.c
93
ioctl(FD, TIOCEXCL, 0);
usr.bin/tip/tip/tip.c
224
ioctl(FD, TIOCSETD, &ld);
usr.bin/tip/tip/tip.c
249
ioctl(0, TIOCSETD, &odisc);
usr.bin/tip/tip/tip.c
320
ioctl(FD, TIOCNXCL, 0);
usr.bin/top/screen.c
254
if (ioctl (1, TIOCGWINSZ, &ws) != -1)
usr.bin/vmstat/vmstat.c
893
status = ioctl(fileno(stdout), TIOCGWINSZ, &w);
usr.bin/w/w.c
374
if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) == -1 &&
usr.bin/w/w.c
375
ioctl(STDERR_FILENO, TIOCGWINSZ, &ws) == -1 &&
usr.bin/w/w.c
376
ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1) || ws.ws_col == 0)
usr.bin/who/who.c
311
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) != -1)
usr.sbin/acpi/acpiconf/acpiconf.c
157
if (ioctl(acpifd, ACPIIO_BATT_GET_BST, &battio) == -1)
usr.sbin/acpi/acpiconf/acpiconf.c
164
if (ioctl(acpifd, ACPIIO_BATT_GET_BATTINFO, &battio) == -1)
usr.sbin/acpi/acpiconf/acpiconf.c
65
ret = ioctl(acpifd, ACPIIO_REQSLPSTATE, &sleep_type);
usr.sbin/acpi/acpiconf/acpiconf.c
76
ret = ioctl(acpifd, ACPIIO_ACKSLPSTATE, &err_val);
usr.sbin/acpi/acpiconf/acpiconf.c
98
if (ioctl(acpifd, ACPIIO_BATT_GET_BIX, &battio) == -1)
usr.sbin/apm/apm.c
116
if (ioctl(fd, APMIO_SUSPEND, NULL) == -1)
usr.sbin/apm/apm.c
123
if (ioctl(fd, APMIO_STANDBY, NULL) == -1)
usr.sbin/apm/apm.c
130
if (ioctl(fd, APMIO_GETINFO, aip) == -1)
usr.sbin/apm/apm.c
138
if (ioctl(fd, APMIO_ENABLE) == -1)
usr.sbin/apm/apm.c
141
if (ioctl(fd, APMIO_DISABLE) == -1)
usr.sbin/apm/apm.c
223
if (ioctl(fd, APMIO_GETPWSTATUS, &aps) == -1)
usr.sbin/apm/apm.c
248
if (ioctl(fd, APMIO_BIOS, &args)) {
usr.sbin/apm/apm.c
297
if (ioctl(fd, APMIO_BIOS, &args) == 0) {
usr.sbin/apm/apm.c
334
if (ioctl(fd, APMIO_DISPLAY, &newstate) == -1)
usr.sbin/apm/apm.c
342
if (ioctl(fd, APMIO_HALTCPU, NULL) == -1)
usr.sbin/apm/apm.c
345
if (ioctl(fd, APMIO_NOTHALTCPU, NULL) == -1)
usr.sbin/apm/apm.c
373
if (ioctl(fd, APMIO_BIOS, &args)) {
usr.sbin/apmd/apmd.c
171
if (ioctl(apmctl_fd, APMIO_REJECTLASTREQ, NULL)) {
usr.sbin/apmd/apmd.c
492
while (ioctl(fd, APMIO_NEXTEVENT, &apmevent) == 0) {
usr.sbin/apmd/apmd.c
522
if ( ioctl(apmnorm_fd, APMIO_GETINFO, &pw_info) < 0)
usr.sbin/apmd/apmd.c
537
if ( ioctl(apmnorm_fd, APMIO_GETINFO, &pw_info) < 0)
usr.sbin/autofs/automountd.c
523
error = ioctl(autofs_fd, AUTOFSREQUEST, &request);
usr.sbin/autofs/automountd.c
81
error = ioctl(autofs_fd, AUTOFSDONE, &add);
usr.sbin/bhyve/amd64/pci_lpc.c
487
if (ioctl(pcifd, PCIOCGETCONF, &pcio) == -1) {
usr.sbin/bhyve/audio.c
147
err = ioctl(audio_fd, SNDCTL_DSP_RESET, NULL);
usr.sbin/bhyve/audio.c
158
err = ioctl(audio_fd, SNDCTL_DSP_SETFMT, &format);
usr.sbin/bhyve/audio.c
174
err = ioctl(audio_fd, SNDCTL_DSP_CHANNELS, &channels);
usr.sbin/bhyve/audio.c
190
err = ioctl(audio_fd, SNDCTL_DSP_SPEED, &rate);
usr.sbin/bhyve/audio.c
205
err = ioctl(audio_fd, aud->dir ? SNDCTL_DSP_GETOSPACE :
usr.sbin/bhyve/block_if.c
221
if (ioctl(bc->bc_fd, DIOCGFLUSH))
usr.sbin/bhyve/block_if.c
336
if (ioctl(bc->bc_fd, DIOCGDELETE, arg))
usr.sbin/bhyve/block_if.c
582
if (ioctl(fd, DIOCGMEDIASIZE, &size) < 0 ||
usr.sbin/bhyve/block_if.c
583
ioctl(fd, DIOCGSECTORSIZE, §sz)) {
usr.sbin/bhyve/block_if.c
589
if (ioctl(fd, DIOCGSTRIPESIZE, &psectsz) == 0 && psectsz > 0)
usr.sbin/bhyve/block_if.c
590
ioctl(fd, DIOCGSTRIPEOFFSET, &psectoff);
usr.sbin/bhyve/block_if.c
593
if (nodelete == 0 && ioctl(fd, DIOCGATTR, &arg) == 0)
usr.sbin/bhyve/block_if.c
595
if (ioctl(fd, DIOCGPROVIDERNAME, name) == 0)
usr.sbin/bhyve/block_if.c
690
if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) < 0) {
usr.sbin/bhyve/gdb.c
2065
if (ioctl(fd, FIONREAD, &n) == -1) {
usr.sbin/bhyve/net_backend_netmap.c
246
ioctl(be->fd, NIOCTXSYNC, NULL);
usr.sbin/bhyve/net_backend_netmap.c
78
err = ioctl(be->fd, NIOCREGIF, &req);
usr.sbin/bhyve/net_backends.c
117
if (ioctl(be->fd, FIONBIO, &opt) < 0) {
usr.sbin/bhyve/net_backends.c
123
ioctl(be->fd, VMIO_SIOCSIFFLAGS, up)) {
usr.sbin/bhyve/pci_passthru.c
1265
(void)ioctl(pcifd, PCIOCBARIO, &pio);
usr.sbin/bhyve/pci_passthru.c
1310
(void)ioctl(pcifd, PCIOCBARIO, &pio);
usr.sbin/bhyve/pci_passthru.c
179
if (ioctl(fd, PCIOCREAD, &pi) < 0)
usr.sbin/bhyve/pci_passthru.c
217
(void)ioctl(fd, PCIOCWRITE, &pi); /* XXX */
usr.sbin/bhyve/pci_passthru.c
545
if (ioctl(pcifd, PCIOCBARMMAP, &pbm) != 0) {
usr.sbin/bhyve/pci_passthru.c
599
if (ioctl(pcifd, PCIOCGETBAR, &bar) < 0)
usr.sbin/bhyve/pci_passthru.c
924
if (ioctl(pcifd, PCIOCGETCONF, &pc) == -1) {
usr.sbin/bhyve/pci_virtio_input.c
244
if (ioctl(sc->vsc_fd, cmd, sc->vsc_config.u.bitmap) < 0) {
usr.sbin/bhyve/pci_virtio_input.c
262
if (ioctl(sc->vsc_fd, EVIOCGNAME(sizeof(name) - 1), name) < 0) {
usr.sbin/bhyve/pci_virtio_input.c
285
if (ioctl(sc->vsc_fd, EVIOCGID, &devids)) {
usr.sbin/bhyve/pci_virtio_input.c
376
if (ioctl(sc->vsc_fd, EVIOCGABS(sc->vsc_config.subsel), &abs) < 0) {
usr.sbin/bhyve/pci_virtio_input.c
666
int error = ioctl(sc->vsc_fd, EVIOCGVERSION, &evversion);
usr.sbin/bhyve/pci_virtio_input.c
673
error = ioctl(sc->vsc_fd, EVIOCGRAB, 1);
usr.sbin/bhyve/pci_virtio_scsi.c
587
err = ioctl(sc->vss_ctl_fd, CTL_IO, io);
usr.sbin/bhyve/pci_virtio_scsi.c
870
err = ioctl(sc->vss_ctl_fd, CTL_IO, io);
usr.sbin/bhyve/slirp/slirp-helper.c
505
if (ioctl(priv.sock, FIONBIO, &(int){0}) == -1)
usr.sbin/bhyve/snapshot.c
535
ioctl(STDOUT_FILENO, TIOCGWINSZ, &winsize);
usr.sbin/bhyve/snapshot.c
745
ioctl(STDOUT_FILENO, TIOCGWINSZ, &winsize);
usr.sbin/bhyveload/bhyveload.c
148
if (ioctl(consin_fd, FIONREAD, &n) >= 0)
usr.sbin/bhyveload/bhyveload.c
369
ioctl(disk_fd[unit], DIOCGMEDIASIZE, &sb.st_size) != 0)
usr.sbin/bluetooth/bcmfw/bcmfw.c
132
if (ioctl(fd, USB_GET_DEVICE_DESC, &desc) < 0) {
usr.sbin/bluetooth/bthidd/btuinput.c
326
if (ioctl(fd, UI_SET_PHYS, phys) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
327
ioctl(fd, UI_SET_BSDUNIQ, uniq) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
328
ioctl(fd, UI_DEV_SETUP, &uisetup) < 0)
usr.sbin/bluetooth/bthidd/btuinput.c
350
if (ioctl(fd, UI_SET_EVBIT, EV_SYN) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
351
ioctl(fd, UI_SET_EVBIT, EV_KEY) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
352
ioctl(fd, UI_SET_EVBIT, EV_REL) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
353
ioctl(fd, UI_SET_RELBIT, REL_X) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
354
ioctl(fd, UI_SET_RELBIT, REL_Y) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
355
(p->has_wheel && ioctl(fd, UI_SET_RELBIT, REL_WHEEL) < 0) ||
usr.sbin/bluetooth/bthidd/btuinput.c
356
(p->has_hwheel && ioctl(fd, UI_SET_RELBIT, REL_HWHEEL) < 0) ||
usr.sbin/bluetooth/bthidd/btuinput.c
357
ioctl(fd, UI_SET_PROPBIT, INPUT_PROP_POINTER) < 0)
usr.sbin/bluetooth/bthidd/btuinput.c
362
if (ioctl(fd, UI_SET_KEYBIT, mbuttons[i]) < 0)
usr.sbin/bluetooth/bthidd/btuinput.c
365
if (ioctl(fd, UI_DEV_CREATE) >= 0)
usr.sbin/bluetooth/bthidd/btuinput.c
389
if (ioctl(fd, UI_SET_EVBIT, EV_KEY) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
390
ioctl(fd, UI_SET_EVBIT, EV_LED) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
391
ioctl(fd, UI_SET_EVBIT, EV_SYN) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
392
ioctl(fd, UI_SET_EVBIT, EV_REP) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
393
ioctl(fd, UI_SET_LEDBIT, LED_CAPSL) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
394
ioctl(fd, UI_SET_LEDBIT, LED_NUML) < 0 ||
usr.sbin/bluetooth/bthidd/btuinput.c
395
ioctl(fd, UI_SET_LEDBIT, LED_SCROLLL))
usr.sbin/bluetooth/bthidd/btuinput.c
401
ioctl(fd, UI_SET_KEYBIT, keymap[i]) < 0)
usr.sbin/bluetooth/bthidd/btuinput.c
408
ioctl(fd, UI_SET_KEYBIT, consmap[i]) < 0)
usr.sbin/bluetooth/bthidd/btuinput.c
413
if (ioctl(fd, UI_DEV_CREATE) >= 0)
usr.sbin/bluetooth/bthidd/btuinput.c
595
ioctl(s->vkbd, KDGETLED, &oleds);
usr.sbin/bluetooth/bthidd/btuinput.c
604
ioctl(s->vkbd, KDSETLED, leds);
usr.sbin/bluetooth/bthidd/hid.c
551
if (ioctl(s->srv->cons, CONS_MOUSECTL, &mi) < 0)
usr.sbin/bluetooth/bthidd/hid.c
563
if (ioctl(s->srv->cons, CONS_MOUSECTL, &mi) < 0)
usr.sbin/bluetooth/btpand/channel.c
96
if (ioctl(fd, FIONBIO, &n) == -1) {
usr.sbin/bluetooth/btpand/server.c
167
if (ioctl(fd, FIONBIO, &n) == -1) {
usr.sbin/bluetooth/btpand/tap.c
68
if (ioctl(fd, TAPGIFNAME, &ifr) == -1) {
usr.sbin/bluetooth/btpand/tap.c
83
if (ioctl(s, SIOCSIFLLADDR, &ifr) == -1) {
usr.sbin/bluetooth/btpand/tap.c
88
if (ioctl(s, SIOCGIFFLAGS, &ifr) == -1) {
usr.sbin/bluetooth/btpand/tap.c
96
if (ioctl(s, SIOCSIFFLAGS, &ifr) == -1) {
usr.sbin/bluetooth/hccontrol/hccontrol.c
307
if (ioctl(s, SIOC_HCI_RAW_NODE_LIST_NAMES, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
102
if (ioctl(s, SIOC_HCI_RAW_NODE_SET_DEBUG, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
115
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BUFFER, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
143
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BDADDR, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
160
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_FEATURES, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
179
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_STAT, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
198
if (ioctl(s, SIOC_HCI_RAW_NODE_RESET_STAT) < 0)
usr.sbin/bluetooth/hccontrol/node.c
208
if (ioctl(s, SIOC_HCI_RAW_NODE_FLUSH_NEIGHBOR_CACHE) < 0)
usr.sbin/bluetooth/hccontrol/node.c
231
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_NEIGHBOR_CACHE, &r,
usr.sbin/bluetooth/hccontrol/node.c
288
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_CON_LIST, &r, sizeof(r)) < 0) {
usr.sbin/bluetooth/hccontrol/node.c
340
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
369
if (ioctl(s, SIOC_HCI_RAW_NODE_SET_LINK_POLICY_MASK, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
382
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_PACKET_MASK, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
411
if (ioctl(s, SIOC_HCI_RAW_NODE_SET_PACKET_MASK, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
424
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
453
if (ioctl(s, SIOC_HCI_RAW_NODE_SET_ROLE_SWITCH, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
471
if (ioctl(s, SIOC_HCI_RAW_NODE_LIST_NAMES, &r, sizeof(r)) < 0) {
usr.sbin/bluetooth/hccontrol/node.c
53
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_STATE, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/hccontrol/node.c
65
if (ioctl(s, SIOC_HCI_RAW_NODE_INIT) < 0)
usr.sbin/bluetooth/hccontrol/node.c
78
if (ioctl(s, SIOC_HCI_RAW_NODE_GET_DEBUG, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/l2control/l2cap.c
123
if (ioctl(s, SIOC_L2CAP_NODE_SET_DEBUG, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/l2control/l2cap.c
152
if (ioctl(s, SIOC_L2CAP_NODE_GET_CON_LIST, &r, sizeof(r)) < 0) {
usr.sbin/bluetooth/l2control/l2cap.c
210
if (ioctl(s, SIOC_L2CAP_NODE_GET_CHAN_LIST, &r, sizeof(r)) < 0) {
usr.sbin/bluetooth/l2control/l2cap.c
243
if (ioctl(s, SIOC_L2CAP_NODE_GET_AUTO_DISCON_TIMO, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/l2control/l2cap.c
270
if (ioctl(s, SIOC_L2CAP_NODE_SET_AUTO_DISCON_TIMO, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/l2control/l2cap.c
78
if (ioctl(s, SIOC_L2CAP_NODE_GET_FLAGS, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/l2control/l2cap.c
99
if (ioctl(s, SIOC_L2CAP_NODE_GET_DEBUG, &r, sizeof(r)) < 0)
usr.sbin/bluetooth/l2ping/l2ping.c
206
if (ioctl(s, SIOC_L2CAP_L2CA_PING, &r, sizeof(r)) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
1005
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
1038
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
1081
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
1131
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
1340
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
145
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
155
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
166
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
175
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
184
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
193
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
202
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
231
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
291
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
334
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
356
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
378
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
400
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
422
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
447
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
469
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
490
if (ioctl(sock, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
504
if (ioctl(sock, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
522
if (ioctl(sock, SIOCIFCREATE, &ifr) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
537
if (ioctl(sock, SIOCSIFNAME, (caddr_t) &ifr) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
555
if (ioctl(sock, SIOCIFDESTROY, &ifr) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
757
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
787
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
799
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
831
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
862
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
883
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
913
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
926
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
957
if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
971
if (ioctl(sock, SIOCSDRVSPEC, &ifd) < 0) {
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c
230
if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) < 0) {
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c
370
if (ioctl(md_fd, MDIOCQUERY, &mdio) < 0) {
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
1175
if (ioctl(pfctl_fd(pfh), DIOCIGETIFACES, &io)) {
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
1232
if (ioctl(pfctl_fd(pfh), DIOCGETALTQS, &pa)) {
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
1252
if (ioctl(pfctl_fd(pfh), DIOCGETALTQ, &pa)) {
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
1441
if (ioctl(pfctl_fd(pfh), DIOCRGETTABLES, &io)) {
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
1549
if (ioctl(pfctl_fd(pfh), DIOCGETRULESETS, &prs)) {
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
1557
if (ioctl(pfctl_fd(pfh), DIOCGETRULESET, &prs)) {
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
1623
if (ioctl(pfdev, DIOCGETALTQS, &pa)) {
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
432
if (ioctl(pfctl_fd(pfh), DIOCGETTIMEOUT, &pt)) {
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
179
if (ioctl(sock, set ? SIOCS80211 : SIOCG80211, &ireq) < 0) {
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
200
if (ioctl(sock, SIOCGIFMEDIA, &ifmr) < 0 || ifmr.ifm_count == 0)
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
217
if (ioctl(sock, SIOCGIFMEDIA, &ifmr) < 0) {
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
2236
if (ioctl(sock, SIOCG80211STATS, &ifr) < 0) {
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
2378
if (ioctl(sock, SIOCG80211, &ireq) < 0) {
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
250
if (ioctl(sock, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) {
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
2506
if (ioctl(sock, SIOCG80211, &ireq) < 0) {
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
273
if (ioctl(sock, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) {
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
779
if (ioctl(sock, SIOCIFCREATE2, (caddr_t) &ifr) < 0) {
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
799
if (ioctl(sock, SIOCIFDESTROY, &ifr) < 0) {
usr.sbin/camdd/camdd.c
1073
if (ioctl(fd, FIODTYPE, &type) == -1)
usr.sbin/camdd/camdd.c
1173
if (ioctl(fd, DIOCGSECTORSIZE, §or_size) == -1) {
usr.sbin/camdd/camdd.c
1184
if (ioctl(fd, DIOCGMEDIASIZE, &media_size) == -1) {
usr.sbin/camdd/camdd.c
2306
while ((retval = ioctl(pass_dev->dev->fd, CAMIOGET, &ccb)) != -1) {
usr.sbin/camdd/camdd.c
2714
if (ioctl(pass_dev->dev->fd, CAMIOQUEUE, ccb) == -1) {
usr.sbin/cdcontrol/cdcontrol.c
1061
return ioctl (fd, CDIOCPLAYTRACKS, &t);
usr.sbin/cdcontrol/cdcontrol.c
1072
return ioctl (fd, CDIOCPLAYBLOCKS, &t);
usr.sbin/cdcontrol/cdcontrol.c
1088
return ioctl (fd, CDIOCSETVOL, &v);
usr.sbin/cdcontrol/cdcontrol.c
1101
return (ioctl (fd, CDIOREADTOCENTRYS, (char *) &t));
usr.sbin/cdcontrol/cdcontrol.c
1117
return ioctl (fd, CDIOCPLAYMSF, (char *) &a);
usr.sbin/cdcontrol/cdcontrol.c
1133
if (ioctl (fd, CDIOCREADSUBCHANNEL, (char *) &s) < 0)
usr.sbin/cdcontrol/cdcontrol.c
331
return ioctl (fd, CDIOCPAUSE);
usr.sbin/cdcontrol/cdcontrol.c
337
return ioctl (fd, CDIOCRESUME);
usr.sbin/cdcontrol/cdcontrol.c
343
rc = ioctl (fd, CDIOCSTOP);
usr.sbin/cdcontrol/cdcontrol.c
345
(void) ioctl (fd, CDIOCALLOW);
usr.sbin/cdcontrol/cdcontrol.c
353
rc = ioctl (fd, CDIOCRESET);
usr.sbin/cdcontrol/cdcontrol.c
365
return ioctl (fd, CDIOCSETDEBUG);
usr.sbin/cdcontrol/cdcontrol.c
368
return ioctl (fd, CDIOCCLRDEBUG);
usr.sbin/cdcontrol/cdcontrol.c
378
(void) ioctl (fd, CDIOCALLOW);
usr.sbin/cdcontrol/cdcontrol.c
379
rc = ioctl (fd, CDIOCEJECT);
usr.sbin/cdcontrol/cdcontrol.c
388
(void) ioctl (fd, CDIOCALLOW);
usr.sbin/cdcontrol/cdcontrol.c
389
rc = ioctl (fd, CDIOCCLOSE);
usr.sbin/cdcontrol/cdcontrol.c
425
return ioctl (fd, CDIOCSETLEFT);
usr.sbin/cdcontrol/cdcontrol.c
428
return ioctl (fd, CDIOCSETRIGHT);
usr.sbin/cdcontrol/cdcontrol.c
431
return ioctl (fd, CDIOCSETMONO);
usr.sbin/cdcontrol/cdcontrol.c
434
return ioctl (fd, CDIOCSETSTERIO);
usr.sbin/cdcontrol/cdcontrol.c
437
return ioctl (fd, CDIOCSETMUTE);
usr.sbin/cdcontrol/cdcontrol.c
460
return ioctl(fd, CDRIOCREADSPEED, &speed);
usr.sbin/cdcontrol/cdcontrol.c
477
rc = ioctl (fd, CDIOREADTOCHEADER, &h);
usr.sbin/cdcontrol/cdcontrol.c
761
rc = ioctl (fd, CDIOREADTOCHEADER, &h);
usr.sbin/cdcontrol/cdcontrol.c
841
rc = ioctl (fd, CDIOCREADSUBCHANNEL, (char *) &ss);
usr.sbin/cdcontrol/cdcontrol.c
857
rc = ioctl (fd, CDIOCGETVOL, &v);
usr.sbin/cdcontrol/cdcontrol.c
919
rc = ioctl (fd, CDIOREADTOCHEADER, &h);
usr.sbin/cdcontrol/cdcontrol.c
963
rc = ioctl (fd, CDIOREADTOCHEADER, &h);
usr.sbin/cpucontrol/amd.c
142
error = ioctl(devfd, CPUCTL_UPDATE, &args);
usr.sbin/cpucontrol/amd.c
59
error = ioctl(fd, CPUCTL_CPUID, &idargs);
usr.sbin/cpucontrol/amd.c
99
error = ioctl(devfd, CPUCTL_CPUID, &idargs);
usr.sbin/cpucontrol/amd10h.c
111
error = ioctl(devfd, CPUCTL_CPUID, &idargs);
usr.sbin/cpucontrol/amd10h.c
119
error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
usr.sbin/cpucontrol/amd10h.c
137
error = ioctl(devfd, CPUCTL_UPDATE, &args);
usr.sbin/cpucontrol/amd10h.c
147
error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
usr.sbin/cpucontrol/amd10h.c
59
error = ioctl(fd, CPUCTL_CPUID, &idargs);
usr.sbin/cpucontrol/amd10h.c
72
error = ioctl(fd, CPUCTL_CPUID, &idargs);
usr.sbin/cpucontrol/cpucontrol.c
159
error = ioctl(fd, CPUCTL_CPUID, &args);
usr.sbin/cpucontrol/cpucontrol.c
209
error = ioctl(fd, CPUCTL_CPUID_COUNT, &args);
usr.sbin/cpucontrol/cpucontrol.c
324
error = ioctl(fd, command, &args);
usr.sbin/cpucontrol/cpucontrol.c
349
error = ioctl(fd, CPUCTL_EVAL_CPU_FEATURES, NULL);
usr.sbin/cpucontrol/intel.c
116
error = ioctl(devfd, CPUCTL_WRMSR, &msrargs);
usr.sbin/cpucontrol/intel.c
121
error = ioctl(devfd, CPUCTL_CPUID, &idargs);
usr.sbin/cpucontrol/intel.c
128
error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
usr.sbin/cpucontrol/intel.c
139
error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
usr.sbin/cpucontrol/intel.c
256
error = ioctl(devfd, CPUCTL_UPDATE, &args);
usr.sbin/cpucontrol/intel.c
62
error = ioctl(fd, CPUCTL_CPUID, &idargs);
usr.sbin/cpucontrol/via.c
107
error = ioctl(devfd, CPUCTL_CPUID, &idargs);
usr.sbin/cpucontrol/via.c
113
error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
usr.sbin/cpucontrol/via.c
123
error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
usr.sbin/cpucontrol/via.c
181
error = ioctl(devfd, CPUCTL_UPDATE, &args);
usr.sbin/cpucontrol/via.c
60
error = ioctl(fd, CPUCTL_CPUID, &idargs);
usr.sbin/ctladm/ctladm.c
1060
if (ioctl(fd, CTL_ERROR_INJECT, &err_desc) == -1) {
usr.sbin/ctladm/ctladm.c
2542
retval = ioctl(fd, CTL_LUN_REQ, &req);
usr.sbin/ctladm/ctladm.c
2653
retval = ioctl(fd, CTL_LUN_REQ, &req);
usr.sbin/ctladm/ctladm.c
2773
retval = ioctl(fd, CTL_LUN_REQ, &req);
usr.sbin/ctladm/ctladm.c
3008
if (ioctl(fd, CTL_ISCSI, &req) == -1) {
usr.sbin/ctladm/ctladm.c
309
if (ioctl(fd, CTL_GET_OOA, &ooa) == -1) {
usr.sbin/ctladm/ctladm.c
3138
if (ioctl(fd, CTL_ISCSI, &req) == -1) {
usr.sbin/ctladm/ctladm.c
3211
if (ioctl(fd, CTL_ISCSI, &req) == -1) {
usr.sbin/ctladm/ctladm.c
3426
if (ioctl(fd, CTL_LUN_LIST, &list) == -1) {
usr.sbin/ctladm/ctladm.c
373
if (ioctl(fd, CTL_DUMP_STRUCTS) == -1) {
usr.sbin/ctladm/ctladm.c
3730
if (ioctl(fd, CTL_PORT_LIST, &list) == -1) {
usr.sbin/ctladm/ctladm.c
3843
if (ioctl(fd, CTL_LUN_MAP, &lm) == -1) {
usr.sbin/ctladm/ctladm.c
4028
if (ioctl(fd, CTL_NVMF, &req) == -1) {
usr.sbin/ctladm/ctladm.c
4140
if (ioctl(fd, CTL_NVMF, &req) == -1) {
usr.sbin/ctladm/ctladm.c
616
retval = ioctl(fd, CTL_PORT_REQ, &req);
usr.sbin/ctladm/ctladm.c
672
if (ioctl(fd, CTL_SET_PORT_WWNS, &entry) == -1) {
usr.sbin/ctladm/ctladm.c
679
if (ioctl(fd, CTL_ENABLE_PORT, &entry) == -1) {
usr.sbin/ctladm/ctladm.c
687
if (ioctl(fd, CTL_DISABLE_PORT, &entry) == -1) {
usr.sbin/ctladm/ctladm.c
716
if (ioctl(fd, CTL_IO, io) == -1) {
usr.sbin/ctladm/ctladm.c
785
if (ioctl(fd, CTL_DELAY_IO, &delay_info) == -1) {
usr.sbin/ctladm/ctladm.c
987
if (ioctl(fd, CTL_ERROR_INJECT_DELETE, &err_desc) == -1) {
usr.sbin/ctld/iscsi.cc
474
if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1) {
usr.sbin/ctld/kernel.cc
1013
if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1)
usr.sbin/ctld/kernel.cc
1034
if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1)
usr.sbin/ctld/kernel.cc
1061
if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1) {
usr.sbin/ctld/kernel.cc
1092
if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1) {
usr.sbin/ctld/kernel.cc
369
if (ioctl(ctl_fd, CTL_LUN_LIST, &list) == -1) {
usr.sbin/ctld/kernel.cc
408
if (ioctl(ctl_fd, CTL_PORT_LIST, &list) == -1) {
usr.sbin/ctld/kernel.cc
658
error = ioctl(ctl_fd, CTL_LUN_REQ, &req);
usr.sbin/ctld/kernel.cc
706
error = ioctl(ctl_fd, CTL_LUN_REQ, &req);
usr.sbin/ctld/kernel.cc
744
if (ioctl(ctl_fd, CTL_LUN_REQ, &req) == -1) {
usr.sbin/ctld/kernel.cc
785
error = ioctl(ctl_fd, CTL_PORT_REQ, &req);
usr.sbin/ctld/kernel.cc
839
if (ioctl(ctl_fd, CTL_SET_PORT_WWNS, &entry) == -1)
usr.sbin/ctld/kernel.cc
860
error = ioctl(ctl_fd, CTL_LUN_MAP, &lm);
usr.sbin/ctld/kernel.cc
871
error = ioctl(ctl_fd, CTL_LUN_MAP, &lm);
usr.sbin/ctld/kernel.cc
879
error = ioctl(ctl_fd, CTL_ENABLE_PORT, &entry);
usr.sbin/ctld/kernel.cc
913
error = ioctl(ctl_fd, CTL_LUN_MAP, &lm);
usr.sbin/ctld/kernel.cc
934
error = ioctl(ctl_fd, CTL_PORT_REQ, &req);
usr.sbin/ctld/kernel.cc
972
error = ioctl(ctl_fd, CTL_LUN_MAP, &lm);
usr.sbin/ctld/kernel.cc
987
error = ioctl(ctl_fd, CTL_DISABLE_PORT, &entry);
usr.sbin/ctld/login.cc
67
if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1) {
usr.sbin/ctld/nvmf.cc
458
if (ioctl(ctl_fd, CTL_NVMF, &req) != 0)
usr.sbin/cxgbetool/cxgbetool.c
149
if (ioctl(g.fd, cmd, data) < 0) {
usr.sbin/dconschat/dconschat.c
1101
error = ioctl(dc->fd, FW_SDEUI64, &eui);
usr.sbin/diskinfo/diskinfo.c
182
if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0) {
usr.sbin/diskinfo/diskinfo.c
190
if (ioctl(fd, DIOCGIDENT, ident) == 0) {
usr.sbin/diskinfo/diskinfo.c
197
error = ioctl(fd, DIOCGMEDIASIZE, &mediasize);
usr.sbin/diskinfo/diskinfo.c
203
error = ioctl(fd, DIOCGSECTORSIZE, §orsize);
usr.sbin/diskinfo/diskinfo.c
209
error = ioctl(fd, DIOCGFWSECTORS, &fwsectors);
usr.sbin/diskinfo/diskinfo.c
212
error = ioctl(fd, DIOCGFWHEADS, &fwheads);
usr.sbin/diskinfo/diskinfo.c
215
error = ioctl(fd, DIOCGSTRIPESIZE, &stripesize);
usr.sbin/diskinfo/diskinfo.c
218
error = ioctl(fd, DIOCGSTRIPEOFFSET, &stripeoffset);
usr.sbin/diskinfo/diskinfo.c
257
if (ioctl(fd, DIOCGATTR, &arg) == 0)
usr.sbin/diskinfo/diskinfo.c
259
if (ioctl(fd, DIOCGIDENT, ident) == 0)
usr.sbin/diskinfo/diskinfo.c
263
if (ioctl(fd, DIOCGATTR, &arg) == 0)
usr.sbin/diskinfo/diskinfo.c
265
if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0)
usr.sbin/diskinfo/diskinfo.c
297
if (ioctl(fd, DIOCGATTR, &arg) == 0)
usr.sbin/diskinfo/diskinfo.c
312
ret = ioctl(fd, DIOCGATTR, &arg);
usr.sbin/diskinfo/diskinfo.c
711
error = ioctl(fd, DIOCGFLUSH);
usr.sbin/diskinfo/diskinfo.c
734
error = ioctl(fd, DIOCZONECMD, &zone_args);
usr.sbin/dumpcis/readcis.c
263
if (ioctl(fd, PIOCRWFLAG, &flags) < 0)
usr.sbin/dumpcis/readcis.c
337
if (ioctl(fd, PIOCRWFLAG, &flag) < 0)
usr.sbin/efitable/efitable.c
156
if (ioctl(efi_fd, EFIIOC_GET_TABLE, &table) == -1)
usr.sbin/efitable/efitable.c
162
if (ioctl(efi_fd, EFIIOC_GET_TABLE, &table) == -1)
usr.sbin/efiwake/efiwake.c
115
error = ioctl(efi_fd, EFIIOC_SET_WAKETIME, &waketime);
usr.sbin/efiwake/efiwake.c
121
error = ioctl(efi_fd, EFIIOC_SET_WAKETIME, &waketime);
usr.sbin/efiwake/efiwake.c
127
error = ioctl(efi_fd, EFIIOC_GET_WAKETIME, &waketime);
usr.sbin/efiwake/efiwake.c
96
error = ioctl(efi_fd, EFIIOC_GET_TIME, &now);
usr.sbin/fdcontrol/fdcontrol.c
123
if (ioctl(fd, FD_GDTYPE, &type) == -1)
usr.sbin/fdcontrol/fdcontrol.c
125
if (ioctl(fd, FD_GTYPE, &ft) == -1)
usr.sbin/fdcontrol/fdcontrol.c
204
if (ioctl(fd, FD_STYPE, &ft) == -1)
usr.sbin/fdformat/fdformat.c
107
(void)ioctl(fd, FD_SOPTS, &ofdopts);
usr.sbin/fdformat/fdformat.c
248
if(ioctl(fd, FD_GTYPE, &fdt) < 0)
usr.sbin/fdformat/fdformat.c
250
if (ioctl(fd, FD_GDTYPE, &type) == -1)
usr.sbin/fdformat/fdformat.c
265
if (ioctl(fd, FD_STYPE, &fdt) < 0)
usr.sbin/fdformat/fdformat.c
322
if (ioctl(fd, FD_GSTAT, fdcs + errs) ==
usr.sbin/fdformat/fdformat.c
78
(void)ioctl(fd, FD_FORM, (caddr_t)&f);
usr.sbin/fdformat/fdformat.c
88
if (ioctl(fd, FD_GOPTS, &fdopts) < 0)
usr.sbin/fdformat/fdformat.c
93
(void)ioctl(fd, FD_SOPTS, &fdopts);
usr.sbin/fdread/fdread.c
167
if (ioctl(fd, FD_GTYPE, &fdt) == -1)
usr.sbin/fdread/fdread.c
222
if (ioctl(fd, FD_GSTAT, &fdcs) == -1)
usr.sbin/fdread/fdread.c
244
if (ioctl(fd, FD_SOPTS,
usr.sbin/fdread/fdread.c
254
(void)ioctl(fd, FD_SOPTS,
usr.sbin/fdread/fdread.c
311
if (ioctl(fd, FD_GTYPE, &fdt) == -1)
usr.sbin/fdread/fdread.c
317
if (ioctl(fd, FD_READID, &info) == 0) {
usr.sbin/fdread/fdread.c
325
if (ioctl(fd, FD_GSTAT, &fdcs) == -1)
usr.sbin/fdwrite/fdwrite.c
130
if(ioctl(fd, FD_GTYPE, &fdt) < 0)
usr.sbin/fdwrite/fdwrite.c
53
return ioctl(fd, FD_FORM, (caddr_t)&f);
usr.sbin/fifolog/lib/fifolog_create.c
83
i = ioctl(fd, DIOCGSECTORSIZE, &uu);
usr.sbin/fifolog/lib/fifolog_create.c
89
i = ioctl(fd, DIOCGMEDIASIZE, &ms);
usr.sbin/fifolog/lib/fifolog_int.c
67
i = ioctl(f->fd, DIOCGSECTORSIZE, &f->recsize);
usr.sbin/fifolog/lib/fifolog_int.c
81
i = ioctl(f->fd, DIOCGMEDIASIZE, &f->logsize);
usr.sbin/fstyp/fstyp.c
193
error = ioctl(fd, DIOCGMEDIASIZE, &mediasize);
usr.sbin/fstyp/geli.c
49
error = ioctl(fileno(fp), DIOCGMEDIASIZE, &mediasize);
usr.sbin/fstyp/geli.c
52
error = ioctl(fileno(fp), DIOCGSECTORSIZE, §orsize);
usr.sbin/fwcontrol/fwcontrol.c
118
if( ioctl(fd, FW_GDEVLST, data) < 0) {
usr.sbin/fwcontrol/fwcontrol.c
234
if (ioctl(fd, FW_ASYREQ, asyreq) < 0) {
usr.sbin/fwcontrol/fwcontrol.c
282
if (ioctl(fd, FW_ASYREQ, asyreq) < 0)
usr.sbin/fwcontrol/fwcontrol.c
301
if (ioctl(fd, FW_ASYREQ, asyreq) < 0)
usr.sbin/fwcontrol/fwcontrol.c
325
if (ioctl(fd, FW_ASYREQ, asyreq) < 0)
usr.sbin/fwcontrol/fwcontrol.c
415
if ((error = ioctl(fd, FW_GCROM, &buf)) < 0) {
usr.sbin/fwcontrol/fwcontrol.c
527
if (ioctl(fd, FW_GTPMAP, tmap) < 0) {
usr.sbin/fwcontrol/fwcontrol.c
567
if (ioctl(fd, FWOHCI_RDPHYREG, ®) < 0)
usr.sbin/fwcontrol/fwcontrol.c
582
if (ioctl(fd, FWOHCI_WRPHYREG, ®) < 0)
usr.sbin/fwcontrol/fwcontrol.c
685
if (ioctl(fd, FW_SSTBUF, &bufreq) < 0)
usr.sbin/fwcontrol/fwcontrol.c
691
if (ioctl(fd, FW_SRSTREAM, &isoreq) < 0)
usr.sbin/fwcontrol/fwcontrol.c
979
if(ioctl(fd, FW_IBUSRST, &tmp) < 0)
usr.sbin/fwcontrol/fwdv.c
122
if (ioctl(d, FW_SSTBUF, &bufreq) < 0)
usr.sbin/fwcontrol/fwdv.c
128
if (ioctl(d, FW_SRSTREAM, &isoreq) < 0)
usr.sbin/fwcontrol/fwdv.c
280
if (ioctl(d, FW_SSTBUF, &bufreq) < 0)
usr.sbin/fwcontrol/fwdv.c
286
if (ioctl(d, FW_STSTREAM, &isoreq) < 0)
usr.sbin/fwcontrol/fwmpegts.c
177
if (ioctl(d, FW_SSTBUF, &bufreq) < 0)
usr.sbin/fwcontrol/fwmpegts.c
183
if (ioctl(d, FW_SRSTREAM, &isoreq) < 0)
usr.sbin/i2c/i2c.c
101
i = ioctl(fd, I2CSTART, cmd);
usr.sbin/i2c/i2c.c
113
i = ioctl(fd, I2CRPTSTART, cmd);
usr.sbin/i2c/i2c.c
125
i = ioctl(fd, I2CWRITE, cmd);
usr.sbin/i2c/i2c.c
137
i = ioctl(fd, I2CREAD, cmd);
usr.sbin/i2c/i2c.c
151
i = ioctl(fd, I2CRSTCARD, &cmd);
usr.sbin/i2c/i2c.c
243
error = ioctl(fd, I2CRDWR, &rdwrdata);
usr.sbin/i2c/i2c.c
245
error = ioctl(fd, I2CSTART, &cmd);
usr.sbin/i2c/i2c.c
248
(void)ioctl(fd, I2CSTOP);
usr.sbin/i2c/i2c.c
483
if (ioctl(fd, I2CRDWR, &xfer) == -1 )
usr.sbin/i2c/i2c.c
89
i = ioctl(fd, I2CSTOP);
usr.sbin/inetd/builtins.c
487
if (ioctl(s, FIONREAD, &onreadlen) == -1)
usr.sbin/inetd/inetd.c
579
if (ioctl(signalpipe[0], FIONREAD, &nsig) != 0) {
usr.sbin/inetd/inetd.c
616
if (ioctl(sep->se_fd, FIONBIO, &i) < 0)
usr.sbin/inetd/inetd.c
633
if (ioctl(sep->se_fd, FIONBIO, &i) < 0)
usr.sbin/inetd/inetd.c
635
if (ioctl(ctrl, FIONBIO, &i) < 0)
usr.sbin/iostat/iostat.c
702
status = ioctl(fileno(stdout), TIOCGWINSZ, &w);
usr.sbin/iovctl/iovctl.c
110
error = ioctl(fd, IOV_CONFIG, &arg);
usr.sbin/iovctl/iovctl.c
307
error = ioctl(fd, IOV_DELETE);
usr.sbin/iovctl/iovctl.c
63
error = ioctl(fd, IOV_GET_SCHEMA, &arg);
usr.sbin/iovctl/iovctl.c
73
error = ioctl(fd, IOV_GET_SCHEMA, &arg);
usr.sbin/ip6addrctl/ip6addrctl.c
372
if (ioctl(s, SIOCAADDRCTL_POLICY, &ent->pc_policy))
usr.sbin/ip6addrctl/ip6addrctl.c
453
if (ioctl(s, SIOCAADDRCTL_POLICY, &p))
usr.sbin/ip6addrctl/ip6addrctl.c
472
if (ioctl(s, SIOCDADDRCTL_POLICY, &p))
usr.sbin/ip6addrctl/ip6addrctl.c
489
if (ioctl(s, SIOCDADDRCTL_POLICY, &ent->pc_policy))
usr.sbin/iscsid/discovery.c
109
error = ioctl(conn->conn_iscsi_fd, ISCSISREMOVE, &isr);
usr.sbin/iscsid/discovery.c
96
error = ioctl(conn->conn_iscsi_fd, ISCSISADD, &isa);
usr.sbin/iscsid/iscsid.c
109
error = ioctl(conn->conn_iscsi_fd, ISCSIDRECEIVE, &idr);
usr.sbin/iscsid/iscsid.c
140
error = ioctl(conn->conn_iscsi_fd, ISCSIDSEND, &ids);
usr.sbin/iscsid/iscsid.c
275
error = ioctl(iscsi_fd, ISCSIDCONNECT, &idc);
usr.sbin/iscsid/iscsid.c
416
error = ioctl(conn->conn_iscsi_fd, ISCSIDLIMITS, &idl);
usr.sbin/iscsid/iscsid.c
480
error = ioctl(conn->conn_iscsi_fd, ISCSIDHANDOFF, &idh);
usr.sbin/iscsid/iscsid.c
499
error = ioctl(conn->conn_iscsi_fd, ISCSIDFAIL, &idf);
usr.sbin/iscsid/iscsid.c
766
error = ioctl(iscsi_fd, ISCSIDWAIT, &request);
usr.sbin/iscsid/login.c
170
error = ioctl(conn->conn_iscsi_fd, ISCSISMODIFY, &ism);
usr.sbin/kbdcontrol/kbdcontrol.c
1005
if (ioctl(0, SETFKEY, &fkey) < 0)
usr.sbin/kbdcontrol/kbdcontrol.c
1048
ioctl(0, CONS_BELLTYPE, &bell);
usr.sbin/kbdcontrol/kbdcontrol.c
1102
if (ioctl(0, KDSETREPEAT, arg)) {
usr.sbin/kbdcontrol/kbdcontrol.c
1104
if (ioctl(0, KDSETRAD, (d << 5) | r))
usr.sbin/kbdcontrol/kbdcontrol.c
1134
if (ioctl(0, KDGKBINFO, &info) == -1) {
usr.sbin/kbdcontrol/kbdcontrol.c
1155
if (ioctl(fd, KDGKBINFO, &info) == -1) {
usr.sbin/kbdcontrol/kbdcontrol.c
1165
ioctl(fd, CONS_RELKBD, 0);
usr.sbin/kbdcontrol/kbdcontrol.c
1174
if (ioctl(0, CONS_SETKBD, info.kb_index) == -1)
usr.sbin/kbdcontrol/kbdcontrol.c
1187
if (ioctl(0, KDGKBINFO, &info) == -1) {
usr.sbin/kbdcontrol/kbdcontrol.c
1197
if (ioctl(0, CONS_RELKBD, 0) == -1)
usr.sbin/kbdcontrol/kbdcontrol.c
1211
if (ioctl(0, KDGKBINFO, &info) == -1) {
usr.sbin/kbdcontrol/kbdcontrol.c
1261
if (ioctl(0, op, &info) == -1)
usr.sbin/kbdcontrol/kbdcontrol.c
895
if ((keymap.n_keys > 0) && (ioctl(0, PIO_KEYMAP, &keymap) < 0)) {
usr.sbin/kbdcontrol/kbdcontrol.c
901
&& (ioctl(0, PIO_DEADKEYMAP, &accentmap) < 0)) {
usr.sbin/kbdcontrol/kbdcontrol.c
904
if (ioctl(0, OPIO_DEADKEYMAP, &oaccentmap) < 0)
usr.sbin/kbdcontrol/kbdcontrol.c
943
if (ioctl(0, GIO_KEYMAP, &keymap) < 0)
usr.sbin/kbdcontrol/kbdcontrol.c
945
if (ioctl(0, GIO_DEADKEYMAP, &accentmap) < 0) {
usr.sbin/kbdcontrol/kbdcontrol.c
947
if (ioctl(0, OGIO_DEADKEYMAP, &oaccentmap) == 0)
usr.sbin/kbdcontrol/kbdcontrol.c
978
if (ioctl(0, SETFKEY, &fkey) < 0)
usr.sbin/lpr/lpd/printjob.c
1954
if (ioctl(pfd, TIOCEXCL, (char *)0) < 0) {
usr.sbin/lptcontrol/lptcontrol.c
101
if (ioctl(fd, LPT_IRQ, &irq_status) < 0)
usr.sbin/memcontrol/memcontrol.c
131
if (ioctl(memfd, MEMRANGE_GET, &mro))
usr.sbin/memcontrol/memcontrol.c
142
if (ioctl(memfd, MEMRANGE_GET, &mro))
usr.sbin/memcontrol/memcontrol.c
249
if (ioctl(memfd, MEMRANGE_SET, &mro))
usr.sbin/memcontrol/memcontrol.c
301
if (ioctl(memfd, MEMRANGE_SET, &mro))
usr.sbin/memcontrol/memcontrol.c
309
if (ioctl(memfd, MEMRANGE_SET, &mro))
usr.sbin/mfiutil/mfi_cmd.c
173
if (ioctl(fd, MFIIO_QUERY_DISK, info) < 0)
usr.sbin/mfiutil/mfi_cmd.c
290
r = ioctl(fd, MFIIO_PASSTHRU, &ioc);
usr.sbin/mlx5tool/mlx5tool.c
107
error = ioctl(ctldev, MLX5_FWDUMP_GET, &fdg);
usr.sbin/mlx5tool/mlx5tool.c
128
if (ioctl(ctldev, MLX5_FWDUMP_RESET, addr) == -1) {
usr.sbin/mlx5tool/mlx5tool.c
139
if (ioctl(ctldev, MLX5_FWDUMP_FORCE, addr) == -1) {
usr.sbin/mlx5tool/mlx5tool.c
178
error = ioctl(ctldev, MLX5_FW_UPDATE, &fwup);
usr.sbin/mlx5tool/mlx5tool.c
193
if (ioctl(ctldev, MLX5_FW_RESET, addr) == -1) {
usr.sbin/mlx5tool/mlx5tool.c
256
error = ioctl(ctldev, MLX5_EEPROM_GET, &eeprom_info);
usr.sbin/mlx5tool/mlx5tool.c
267
error = ioctl(ctldev, MLX5_EEPROM_GET, &eeprom_info);
usr.sbin/mlx5tool/mlx5tool.c
95
error = ioctl(ctldev, MLX5_FWDUMP_GET, &fdg);
usr.sbin/mlxcontrol/command.c
200
if (ioctl(fd, MLX_REBUILDSTAT, &rs) < 0) {
usr.sbin/mlxcontrol/command.c
218
if (ioctl(fd, MLXD_STATUS, &result) < 0) {
usr.sbin/mlxcontrol/command.c
434
if (ioctl(fd, MLX_RESCAN_DRIVES) < 0)
usr.sbin/mlxcontrol/command.c
492
if (ioctl(fd, MLX_DETACH_DRIVE, &unit) < 0)
usr.sbin/mlxcontrol/command.c
563
if ((ioctl(fd, MLXD_CHECKASYNC, &result)) < 0) {
usr.sbin/mlxcontrol/command.c
616
if ((ioctl(fd, MLX_REBUILDASYNC, &rb)) < 0) {
usr.sbin/mlxcontrol/command.c
706
if ((ioctl(fd, MLX_PAUSE_CHANNEL, &mp)) < 0)
usr.sbin/mlxcontrol/interface.c
135
if (ioctl(fd, MLX_NEXT_CHILD, &i) < 0)
usr.sbin/mlxcontrol/interface.c
141
if (ioctl(fd, MLX_GET_SYSDRIVE, &i) == 0)
usr.sbin/mlxcontrol/interface.c
176
error = ioctl(fd, MLX_COMMAND, cmd);
usr.sbin/mlxcontrol/interface.c
90
if (ioctl(ctrlfd, MLX_NEXT_CHILD, &i) < 0) {
usr.sbin/moused/moused/moused.c
1301
ioctl(fd, EVIOCGVERSION, &dummy) >= 0)
usr.sbin/moused/moused/moused.c
1304
ioctl(fd, MOUSE_GETLEVEL, &dummy) >= 0)
usr.sbin/moused/moused/moused.c
1322
if (ioctl(fd, EVIOCGBIT(EV_REL, sizeof(rel_bits)), rel_bits) < 0 ||
usr.sbin/moused/moused/moused.c
1323
ioctl(fd, EVIOCGBIT(EV_ABS, sizeof(abs_bits)), abs_bits) < 0 ||
usr.sbin/moused/moused/moused.c
1324
ioctl(fd, EVIOCGBIT(EV_KEY, sizeof(key_bits)), key_bits) < 0 ||
usr.sbin/moused/moused/moused.c
1325
ioctl(fd, EVIOCGPROP(sizeof(prop_bits)), prop_bits) < 0) {
usr.sbin/moused/moused/moused.c
1408
if (ioctl(fd, EVIOCGNAME(sizeof(dev->name) - 1), dev->name) < 0) {
usr.sbin/moused/moused/moused.c
1416
if (ioctl(fd, EVIOCGID, &dev->id) < 0) {
usr.sbin/moused/moused/moused.c
1420
(void)ioctl(fd, EVIOCGUNIQ(sizeof(dev->uniq) - 1), dev->uniq);
usr.sbin/moused/moused/moused.c
1432
if (ioctl(fd, MOUSE_SETLEVEL, &level) < 0) {
usr.sbin/moused/moused/moused.c
1436
if (ioctl(fd, MOUSE_GETLEVEL, &level) < 0) {
usr.sbin/moused/moused/moused.c
1445
if (ioctl(fd, MOUSE_GETMODE, mode) < 0) {
usr.sbin/moused/moused/moused.c
1612
ioctl(fd, EVIOCGBIT(EV_ABS, sizeof(abs_bits)), abs_bits);
usr.sbin/moused/moused/moused.c
1613
ioctl(fd, EVIOCGBIT(EV_KEY, sizeof(key_bits)), key_bits);
usr.sbin/moused/moused/moused.c
1616
ioctl(fd, EVIOCGABS(ABS_X), &ai) >= 0) {
usr.sbin/moused/moused/moused.c
1623
ioctl(fd, EVIOCGABS(ABS_Y), &ai) >= 0) {
usr.sbin/moused/moused/moused.c
1643
ioctl(fd, EVIOCGABS(ABS_PRESSURE), &ai) >= 0) {
usr.sbin/moused/moused/moused.c
1675
if ( ioctl(fd, EVIOCGPROP(sizeof(prop_bits)), prop_bits) >= 0 &&
usr.sbin/moused/moused/moused.c
1950
if (qvalid && grab && ioctl(fd, EVIOCGRAB, 1) == -1) {
usr.sbin/moused/moused/moused.c
1962
if (ioctl(fd, MOUSE_SETMODE, &dev.mode) < 0)
usr.sbin/moused/moused/moused.c
2785
ioctl(cfd, CONS_MOUSECTL, &mouse);
usr.sbin/moused/moused/moused.c
2814
ioctl(cfd, CONS_MOUSECTL, &mouse);
usr.sbin/moused/msconvd/msconvd.c
1205
ioctl(rodent.mfd, TIOCFLUSH, &i);
usr.sbin/moused/msconvd/msconvd.c
1226
ioctl(rodent.mfd, TIOCMBIC, &i);
usr.sbin/moused/msconvd/msconvd.c
1230
ioctl(rodent.mfd, TIOCMBIC, &i);
usr.sbin/moused/msconvd/msconvd.c
1244
ioctl(rodent.mfd, MOUSE_SETMODE, &rodent.mode);
usr.sbin/moused/msconvd/msconvd.c
1256
ioctl(rodent.mfd, TIOCFLUSH, &i);
usr.sbin/moused/msconvd/msconvd.c
1281
ioctl(rodent.mfd, TIOCFLUSH, &i);
usr.sbin/moused/msconvd/msconvd.c
1973
ioctl(rodent.mfd, TIOCMGET, &i);
usr.sbin/moused/msconvd/msconvd.c
1976
ioctl(rodent.mfd, TIOCMSET, &i);
usr.sbin/moused/msconvd/msconvd.c
1985
ioctl(rodent.mfd, TIOCMGET, &i);
usr.sbin/moused/msconvd/msconvd.c
1993
ioctl(rodent.mfd, TIOCMBIC, &i);
usr.sbin/moused/msconvd/msconvd.c
1996
ioctl(rodent.mfd, TIOCMBIS, &i);
usr.sbin/moused/msconvd/msconvd.c
2001
ioctl(rodent.mfd, TIOCFLUSH, &i);
usr.sbin/moused/msconvd/msconvd.c
2003
ioctl(rodent.mfd, TIOCMBIS, &i);
usr.sbin/moused/msconvd/msconvd.c
2017
ioctl(rodent.mfd, TIOCMBIC, &i);
usr.sbin/moused/msconvd/msconvd.c
2022
ioctl(rodent.mfd, TIOCFLUSH, &i);
usr.sbin/moused/msconvd/msconvd.c
2024
ioctl(rodent.mfd, TIOCMBIS, &i);
usr.sbin/moused/msconvd/msconvd.c
2051
ioctl(rodent.mfd, TIOCMGET, &i);
usr.sbin/moused/msconvd/msconvd.c
2054
ioctl(rodent.mfd, TIOCMSET, &i);
usr.sbin/moused/msconvd/msconvd.c
2061
ioctl(rodent.mfd, TIOCFLUSH, &i);
usr.sbin/moused/msconvd/msconvd.c
2063
ioctl(rodent.mfd, TIOCMBIS, &i);
usr.sbin/moused/msconvd/msconvd.c
2095
ioctl(rodent.mfd, TIOCMBIS, &i);
usr.sbin/moused/msconvd/msconvd.c
806
if (ioctl(fd, UI_SET_PHYS, phys) < 0 ||
usr.sbin/moused/msconvd/msconvd.c
807
ioctl(fd, UI_DEV_SETUP, &uisetup) < 0)
usr.sbin/moused/msconvd/msconvd.c
811
if (ioctl(fd, UI_SET_EVBIT, EV_SYN) < 0 ||
usr.sbin/moused/msconvd/msconvd.c
812
ioctl(fd, UI_SET_EVBIT, EV_KEY) < 0 ||
usr.sbin/moused/msconvd/msconvd.c
813
ioctl(fd, UI_SET_EVBIT, EV_REL) < 0 ||
usr.sbin/moused/msconvd/msconvd.c
814
ioctl(fd, UI_SET_RELBIT, REL_X) < 0 ||
usr.sbin/moused/msconvd/msconvd.c
815
ioctl(fd, UI_SET_RELBIT, REL_Y) < 0 ||
usr.sbin/moused/msconvd/msconvd.c
816
ioctl(fd, UI_SET_RELBIT, REL_WHEEL) < 0 ||
usr.sbin/moused/msconvd/msconvd.c
817
ioctl(fd, UI_SET_PROPBIT, INPUT_PROP_POINTER) < 0)
usr.sbin/moused/msconvd/msconvd.c
822
if (ioctl(fd, UI_SET_KEYBIT, evdev_buttons[i]) < 0)
usr.sbin/moused/msconvd/msconvd.c
825
if (ioctl(fd, UI_DEV_CREATE) >= 0)
usr.sbin/moused/msconvd/msconvd.c
961
ioctl(rodent.mfd, MOUSE_SETLEVEL, &rodent.level);
usr.sbin/moused/msconvd/msconvd.c
962
rodent.level = (ioctl(rodent.mfd, MOUSE_GETLEVEL, &level) == 0) ? level : 0;
usr.sbin/moused/msconvd/msconvd.c
972
ioctl(rodent.mfd, MOUSE_GETHWINFO, &rodent.hw);
usr.sbin/moused/msconvd/msconvd.c
981
if (ioctl(rodent.mfd, MOUSE_GETMODE, &rodent.mode) == 0) {
usr.sbin/mpsutil/mps_cmd.c
268
if ((error = ioctl(fd, MPTIOCTL_BTDH_MAPPING, &map)) != 0) {
usr.sbin/mpsutil/mps_cmd.c
538
if (ioctl(fd, MPSIO_READ_CFG_HEADER, &req) < 0)
usr.sbin/mpsutil/mps_cmd.c
570
if (ioctl(fd, MPSIO_READ_CFG_PAGE, &req) < 0) {
usr.sbin/mpsutil/mps_cmd.c
605
if (ioctl(fd, MPSIO_READ_EXT_CFG_HEADER, &req) < 0)
usr.sbin/mpsutil/mps_cmd.c
621
if (ioctl(fd, MPSIO_READ_EXT_CFG_PAGE, &req) < 0) {
usr.sbin/mpsutil/mps_cmd.c
666
if (ioctl(fd, is_mps ? MPSIO_MPS_COMMAND : MPRIO_MPR_COMMAND, &cmd) < 0)
usr.sbin/mpsutil/mps_cmd.c
718
if (ioctl(fd, MPTIOCTL_PASS_THRU, &pass) < 0)
usr.sbin/mptutil/mpt_cam.c
167
if (ioctl(xptfd, CAMIOCOMMAND, &ccb) < 0) {
usr.sbin/mptutil/mpt_cam.c
431
if (ioctl(xptfd, CAMIOCOMMAND, &ccb) < 0) {
usr.sbin/mptutil/mpt_cam.c
555
if (ioctl(xptfd, CAMIOCOMMAND, &ccb) == -1)
usr.sbin/mptutil/mpt_cam.c
93
if (ioctl(xptfd, CAMIOCOMMAND, &ccb) < 0) {
usr.sbin/mptutil/mpt_cmd.c
357
if (ioctl(fd, MPTIO_READ_CFG_HEADER, &req) < 0)
usr.sbin/mptutil/mpt_cmd.c
385
if (ioctl(fd, MPTIO_READ_CFG_HEADER, &req) < 0)
usr.sbin/mptutil/mpt_cmd.c
400
if (ioctl(fd, MPTIO_READ_CFG_PAGE, &req) < 0) {
usr.sbin/mptutil/mpt_cmd.c
434
if (ioctl(fd, MPTIO_READ_EXT_CFG_HEADER, &req) < 0)
usr.sbin/mptutil/mpt_cmd.c
449
if (ioctl(fd, MPTIO_READ_EXT_CFG_PAGE, &req) < 0) {
usr.sbin/mptutil/mpt_cmd.c
480
if (ioctl(fd, MPTIO_WRITE_CFG_PAGE, &req) < 0)
usr.sbin/mptutil/mpt_cmd.c
517
if (ioctl(fd, MPTIO_RAID_ACTION, &raid_act) < 0)
usr.sbin/mtest/mtest.c
783
if (ioctl(s, (*cmd == 'a') ? SIOCADDMULTI : SIOCDELMULTI,
usr.sbin/mtest/mtest.c
804
if (ioctl(s, SIOCGIFFLAGS, &ifr) == -1) {
usr.sbin/mtest/mtest.c
816
if (ioctl(s, SIOCSIFFLAGS, &ifr) == -1)
usr.sbin/ndp/ndp.c
1008
if (ioctl(sock, SIOCGIFINFO_IN6, (caddr_t)&nd) < 0) {
usr.sbin/ndp/ndp.c
1070
if (ioctl(sock, SIOCSIFINFO_IN6, (caddr_t)&nd) < 0) {
usr.sbin/ndp/ndp.c
1083
if (ioctl(sock, SIOCGIFINFO_IN6, (caddr_t)&nd) < 0) {
usr.sbin/ndp/ndp.c
1409
if (ioctl(sock, SIOCSPFXFLUSH_IN6, (caddr_t)&dummyif) < 0)
usr.sbin/ndp/ndp.c
1424
if (ioctl(sock, SIOCSRTRFLUSH_IN6, (caddr_t)&dummyif) < 0)
usr.sbin/ndp/ndp.c
1439
if (ioctl(sock, SIOCSNDFLUSH_IN6, (caddr_t)&dummyif) < 0)
usr.sbin/ndp/ndp.c
1466
if (ioctl(sock, SIOCSDEFIFACE_IN6, (caddr_t)&ndifreq) < 0)
usr.sbin/ndp/ndp.c
1485
if (ioctl(sock, SIOCGDEFIFACE_IN6, (caddr_t)&ndifreq) < 0)
usr.sbin/ndp/ndp.c
876
if (ioctl(sock, SIOCGNBRINFO_IN6, (caddr_t)&nbi) < 0) {
usr.sbin/ofwdump/ofw_util.c
111
if (ioctl(fd, OFIOCFINDDEVICE, &d) == -1) {
usr.sbin/ofwdump/ofw_util.c
138
if (ioctl(fd, OFIOCNEXTPROP, &d) == -1) {
usr.sbin/ofwdump/ofw_util.c
222
rv = ioctl(fd, OFIOCGET, &d);
usr.sbin/ofwdump/ofw_util.c
44
if (ioctl(fd, cmd, val) == -1) \
usr.sbin/pciconf/pciconf.c
1182
if (ioctl(fd, PCIOCREAD, &pi) < 0)
usr.sbin/pciconf/pciconf.c
1232
if (ioctl(fd, PCIOCGETCONF, &pc) == -1)
usr.sbin/pciconf/pciconf.c
1346
if (ioctl(fd, PCIOCWRITE, &pi) < 0)
usr.sbin/pciconf/pciconf.c
1363
if (ioctl(fd, PCIOCATTACHED, &pi) < 0)
usr.sbin/pciconf/pciconf.c
1410
if (ioctl(fd, PCIOCBARMMAP, &pbm) < 0)
usr.sbin/pciconf/pciconf.c
256
if (ioctl(fd, PCIOCGETCONF, &pc) == -1)
usr.sbin/pciconf/pciconf.c
803
if (ioctl(fd, PCIOCGETBAR, &bar) < 0)
usr.sbin/pciconf/pciconf.c
873
if (ioctl(fd, PCIOCLISTVPD, &list) < 0 || list.plvi_len == 0)
usr.sbin/pciconf/pciconf.c
877
if (ioctl(fd, PCIOCLISTVPD, &list) < 0) {
usr.sbin/pmc/cmd_pmc_stat.c
464
if (ioctl(fileno(pmc_args.pa_printfile),
usr.sbin/pmcstat/pmcstat.c
1187
if (ioctl(fileno(args.pa_printfile), TIOCGWINSZ, &ws) < 0)
usr.sbin/pmcstat/pmcstat.c
1390
if (ioctl(fileno(args.pa_printfile),
usr.sbin/powerd/powerd.c
418
if (ioctl(apm_fd, APMIO_GETINFO, &info) == 0) {
usr.sbin/ppp/bundle.c
2005
ioctl(bundle->dev.fd, TUNSIFPID, 0);
usr.sbin/ppp/id.c
98
ret = ioctl(fd, req, arg);
usr.sbin/ppp/id.h
58
#define ID0ioctl ioctl
usr.sbin/ppp/physical.c
455
if (p->fd >= 0 && ioctl(p->fd, TIOCOUTQ, &n) >= 0)
usr.sbin/ppp/tty.c
129
if (ioctl(p->fd, TIOCMGET, &dev->mbits) < 0) {
usr.sbin/ppp/tty.c
281
if (ioctl(p->fd, TIOCGETD, &dev->real.disc) < 0) {
usr.sbin/ppp/tty.c
294
if (ioctl(p->fd, NGIOCGINFO, info) < 0) {
usr.sbin/ppp/tun.c
99
if (ioctl(s, SIOCSIFMTU, &ifr) < 0)
usr.sbin/pwm/pwm.c
173
if (ioctl(fd, PWMGETSTATE, &state) == -1) {
usr.sbin/pwm/pwm.c
202
if (ioctl(fd, PWMSETSTATE, &state) == -1) {
usr.sbin/rarpd/rarpd.c
426
if (ioctl(fd, BIOCIMMEDIATE, &immediate) == -1) {
usr.sbin/rarpd/rarpd.c
431
if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) == -1) {
usr.sbin/rarpd/rarpd.c
439
if (ioctl(fd, BIOCGDLT, (caddr_t)&dlt) == -1) {
usr.sbin/rarpd/rarpd.c
450
if (ioctl(fd, BIOCSETF, (caddr_t)&filter) == -1) {
usr.sbin/rarpd/rarpd.c
515
if (ioctl(iflist->ii_fd, BIOCGBLEN, (caddr_t)&bufsize) == -1) {
usr.sbin/rmt/rmt.c
158
if (ioctl(tape, MTIOCTOP, (char *)&mtop) < 0)
usr.sbin/rmt/rmt.c
167
if (ioctl(tape, MTIOCGET, (char *)&mtget) < 0)
usr.sbin/route6d/route6d.c
1600
if (ioctl(s, SIOCGIFNETMASK_IN6, (char *)&ifr) < 0) {
usr.sbin/route6d/route6d.c
1626
if (ioctl(s, SIOCGIFDSTADDR_IN6, (char *)&ifr) < 0) {
usr.sbin/route6d/route6d.c
1648
if (ioctl(s, SIOCGIFMETRIC, (char *)&ifr) < 0) {
usr.sbin/rpc.ypxfrd/ypxfrd_main.c
247
(void) ioctl(i, TIOCNOTTY, (char *)NULL);
usr.sbin/rtadvd/config.c
1329
if (ioctl(s, SIOCGIFPREFIX_IN6, (caddr_t)ipr) < 0) {
usr.sbin/rtadvd/config.c
651
if (ioctl(s, SIOCGIFINFO_IN6, (caddr_t)&ndi) < 0)
usr.sbin/rtadvd/config.c
659
if (ioctl(s, SIOCSIFINFO_IN6, (caddr_t)&ndi) < 0)
usr.sbin/rtadvd/if.c
395
error = ioctl(s, SIOCGIFINFO_IN6, (caddr_t)&nd);
usr.sbin/rtadvd/if.c
542
error = ioctl(s, SIOCGIFMTU, (caddr_t)&ifr);
usr.sbin/rtadvd/rrenum.c
168
if (ioctl(s, rrcmd2pco[rpm->rpm_code], (caddr_t)irr) < 0 &&
usr.sbin/rtadvd/rrenum.c
204
if (ioctl(s, rrcmd2pco[rpm->rpm_code], (caddr_t)irr) < 0 &&
usr.sbin/rtsold/cap_llflags.c
95
if (ioctl(s, SIOCGIFAFLAG_IN6, &ifr6) < 0) {
usr.sbin/rtsold/if.c
103
if (ioctl(ifsock, SIOCGIFFLAGS, (caddr_t)&ifr) < 0) {
usr.sbin/rtsold/if.c
110
if (ioctl(ifsock, SIOCSIFFLAGS, (caddr_t)&ifr) < 0)
usr.sbin/rtsold/if.c
120
if (ioctl(s, SIOCGIFINFO_IN6, (caddr_t)&nd) < 0) {
usr.sbin/rtsold/if.c
132
if (ioctl(s, SIOCSIFINFO_IN6, (caddr_t)&nd)) {
usr.sbin/rtsold/if.c
149
if (ioctl(s, SIOCSIFINFO_IN6, (caddr_t)&nd)) {
usr.sbin/rtsold/if.c
197
if (ioctl(ifsock, SIOCGIFFLAGS, &ifr) < 0) {
usr.sbin/rtsold/if.c
214
if (ioctl(ifsock, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0) {
usr.sbin/rtsold/rtsold.c
412
if (ioctl(s, SIOCGIFINFO_IN6, (caddr_t)&nd) < 0) {
usr.sbin/rtsold/rtsold.c
419
if (ioctl(s, SIOCSIFINFO_IN6, (caddr_t)&nd) < 0) {
usr.sbin/rtsold/rtsold.c
889
if (ioctl(s, SIOCGIFINFO_IN6, (caddr_t)&nd) < 0) {
usr.sbin/sesutil/sesutil.c
134
if (ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t) &o) < 0) {
usr.sbin/sesutil/sesutil.c
152
if (ioctl(fd, ENCIOC_SETELMSTAT, (caddr_t) &o) < 0) {
usr.sbin/sesutil/sesutil.c
246
if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) {
usr.sbin/sesutil/sesutil.c
257
if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) objp) < 0) {
usr.sbin/sesutil/sesutil.c
284
if (ioctl(fd, ENCIOC_GETELMSTAT, &es) < 0) {
usr.sbin/sesutil/sesutil.c
300
if (ioctl(fd, ENCIOC_GETELMDEVNAMES,
usr.sbin/sesutil/sesutil.c
464
if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) {
usr.sbin/sesutil/sesutil.c
475
if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) e_ptr) < 0) {
usr.sbin/sesutil/sesutil.c
484
if (ioctl(fd, ENCIOC_GETENCNAME, (caddr_t) &stri) == 0)
usr.sbin/sesutil/sesutil.c
488
if (ioctl(fd, ENCIOC_GETENCID, (caddr_t) &stri) == 0)
usr.sbin/sesutil/sesutil.c
496
if (ioctl(fd, ENCIOC_GETELMSTAT,
usr.sbin/sesutil/sesutil.c
504
if (ioctl(fd, ENCIOC_GETELMDESC,
usr.sbin/sesutil/sesutil.c
512
if (ioctl(fd, ENCIOC_GETELMDEVNAMES,
usr.sbin/sesutil/sesutil.c
607
if (ioctl(fd, DIOCGATTR, &arg) == 0)
usr.sbin/sesutil/sesutil.c
612
if (ioctl(fd, DIOCGIDENT, ident) == 0)
usr.sbin/sesutil/sesutil.c
617
if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) == 0)
usr.sbin/sesutil/sesutil.c
641
if (ioctl(fd, ENCIOC_GETELMDEVNAMES,
usr.sbin/sesutil/sesutil.c
767
if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) {
usr.sbin/sesutil/sesutil.c
778
if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) e_ptr) < 0) {
usr.sbin/sesutil/sesutil.c
793
if (ioctl(fd, ENCIOC_GETENCNAME, (caddr_t) &stri) == 0)
usr.sbin/sesutil/sesutil.c
797
if (ioctl(fd, ENCIOC_GETENCID, (caddr_t) &stri) == 0)
usr.sbin/sesutil/sesutil.c
807
if (ioctl(fd, ENCIOC_GETELMSTAT,
usr.sbin/sesutil/sesutil.c
824
if (ioctl(fd, ENCIOC_GETELMDESC,
usr.sbin/sesutil/sesutil.c
920
if (ioctl(fd, ENCIOC_GETENCSTAT, (caddr_t) &estat) < 0) {
usr.sbin/smbmsg/smbmsg.c
115
if (ioctl(fd, SMB_RECVB, &c) != -1)
usr.sbin/smbmsg/smbmsg.c
117
if (ioctl(fd, SMB_QUICK_WRITE, &c) != -1)
usr.sbin/smbmsg/smbmsg.c
148
return (ioctl(fd, SMB_QUICK_WRITE, &c));
usr.sbin/smbmsg/smbmsg.c
151
return (ioctl(fd, SMB_QUICK_READ, &c));
usr.sbin/smbmsg/smbmsg.c
154
if (ioctl(fd, SMB_RECVB, &c) == -1)
usr.sbin/smbmsg/smbmsg.c
162
return (ioctl(fd, SMB_SENDB, &c));
usr.sbin/smbmsg/smbmsg.c
168
if (ioctl(fd, SMB_READB, &c) == -1)
usr.sbin/smbmsg/smbmsg.c
176
return (ioctl(fd, SMB_WRITEB, &c));
usr.sbin/smbmsg/smbmsg.c
179
if (ioctl(fd, SMB_READW, &c) == -1)
usr.sbin/smbmsg/smbmsg.c
187
return (ioctl(fd, SMB_WRITEW, &c));
usr.sbin/smbmsg/smbmsg.c
194
if (ioctl(fd, SMB_PCALL, &c) == -1)
usr.sbin/smbmsg/smbmsg.c
203
if (ioctl(fd, SMB_BREAD, &c) == -1)
usr.sbin/smbmsg/smbmsg.c
216
return (ioctl(fd, SMB_BWRITE, &c));
usr.sbin/sndctl/sndctl.c
445
if (ioctl(fd, SNDSTIOC_REFRESH_DEVS, NULL) < 0)
usr.sbin/sndctl/sndctl.c
450
if (ioctl(fd, SNDSTIOC_GET_DEVS, &arg) < 0)
usr.sbin/sndctl/sndctl.c
456
if (ioctl(fd, SNDSTIOC_GET_DEVS, &arg) < 0)
usr.sbin/spi/spi.c
488
err = ioctl(hdev, SPIGENIOC_GET_SPI_MODE, &fmode);
usr.sbin/spi/spi.c
491
err = ioctl(hdev, SPIGENIOC_GET_CLOCK_SPEED, &fspeed);
usr.sbin/spi/spi.c
515
return ioctl(hdev, SPIGENIOC_SET_SPI_MODE, &fmode);
usr.sbin/spi/spi.c
526
return ioctl(hdev, SPIGENIOC_SET_CLOCK_SPEED, &clock_speed);
usr.sbin/spi/spi.c
723
err = ioctl(hdev, SPIGENIOC_TRANSFER, &spi) < 0 ? -1 : 0;
usr.sbin/traceroute/ifaddrlist.c
116
if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifr) < 0) {
usr.sbin/traceroute/ifaddrlist.c
137
if (ioctl(fd, SIOCGIFADDR, (char *)&ifr) < 0) {
usr.sbin/traceroute/ifaddrlist.c
84
if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
usr.sbin/trim/trim.c
147
if (ioctl(fd, DIOCGATTR, &arg) == 0)
usr.sbin/trim/trim.c
197
if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) < 0)
usr.sbin/trim/trim.c
226
error = ioctl(fd, DIOCGDELETE, arg);
usr.sbin/uathload/uathload.c
176
if (ioctl(msg, USB_SET_RX_TIMEOUT, &timeout) < 0)
usr.sbin/uathload/uathload.c
178
if (ioctl(msg, USB_SET_RX_BUFFER_SIZE, &bufsize) < 0)
usr.sbin/uathload/uathload.c
185
if (ioctl(data, USB_SET_TX_TIMEOUT, &timeout) < 0)
usr.sbin/uhsoctl/uhsoctl.c
376
error = ioctl(fd, SIOCGIFFLAGS, &ifr);
usr.sbin/uhsoctl/uhsoctl.c
389
error = ioctl(fd, SIOCSIFFLAGS, &ifr);
usr.sbin/uhsoctl/uhsoctl.c
412
error = ioctl(fd, SIOCAIFADDR, (caddr_t)&ifra);
usr.sbin/uhsoctl/uhsoctl.c
434
error = ioctl(fd, SIOCDIFADDR, (caddr_t)&ifr);
usr.sbin/usbconfig/dump.c
502
if (ioctl(f, IOUSB(USB_GET_DEVICEINFO), &devinfo))
usr.sbin/usbdump/usbdump.c
929
if (ioctl(fd, BIOCVERSION, (caddr_t)&bv) < 0)
usr.sbin/usbdump/usbdump.c
943
(void)ioctl(fd, BIOCSBLEN, (caddr_t)&v);
usr.sbin/usbdump/usbdump.c
945
if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) >= 0)
usr.sbin/usbdump/usbdump.c
951
if (ioctl(fd, BIOCGBLEN, (caddr_t)&v) < 0)
usr.sbin/usbdump/usbdump.c
961
if (ioctl(p->fd, BIOCSETF, (caddr_t)&total_prog) < 0)
usr.sbin/usbdump/usbdump.c
969
if (ioctl(p->fd, BIOCSRTIMEOUT, (caddr_t)&tv) < 0)
usr.sbin/usbdump/usbdump.c
976
if (ioctl(fd, BIOCGSTATS, (caddr_t)&us) < 0)
usr.sbin/valectl/valectl.c
187
error = ioctl(fd, NIOCCTRL, hdr);
usr.sbin/valectl/valectl.c
300
error = ioctl(fd, NIOCCTRL, &hdr);
usr.sbin/vidcontrol/vidcontrol.c
1013
if (ioctl(0, CONS_MOUSECTL, &mouse) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
1035
if (ioctl(0, VT_LOCKSWITCH, &data) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
107
if (ioctl(0, VT_GETACTIVE, &cur_info.active_vty) == -1)
usr.sbin/vidcontrol/vidcontrol.c
1095
if (ioctl(0, CONS_ADPINFO, &ad) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
111
if (ioctl(0, CONS_GETINFO, &cur_info.console_info) == -1)
usr.sbin/vidcontrol/vidcontrol.c
1138
if (ioctl(0, CONS_MODEINFO, &info))
usr.sbin/vidcontrol/vidcontrol.c
116
ioctl(0, GIO_SCRNMAP, &cur_info.screen_map) == -1)
usr.sbin/vidcontrol/vidcontrol.c
119
if (ioctl(0, CONS_GET, &cur_info.video_mode_number) == -1)
usr.sbin/vidcontrol/vidcontrol.c
1225
if (ioctl(0, CONS_GETINFO, &info) == -1)
usr.sbin/vidcontrol/vidcontrol.c
124
if (ioctl(0, CONS_MODEINFO, &cur_info.video_mode_info) == -1)
usr.sbin/vidcontrol/vidcontrol.c
1269
if (ioctl(0, CONS_GETINFO, &info) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
1286
if (ioctl(0, CONS_SCRSHOT, &shot) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
1352
if (ioctl(0, CONS_HISTORY, &size) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
1366
if (ioctl(0, CONS_CLRHIST) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
1376
if (ioctl(0, CONS_GETTERM, tip) == 0)
usr.sbin/vidcontrol/vidcontrol.c
1404
if (ioctl(0, CONS_SETTERM, &ti) != 0)
usr.sbin/vidcontrol/vidcontrol.c
143
ioctl(0, VT_ACTIVATE, cur_info.active_vty);
usr.sbin/vidcontrol/vidcontrol.c
145
ioctl(0, KDSBORDER, cur_info.console_info.mv_ovscan);
usr.sbin/vidcontrol/vidcontrol.c
150
ioctl(0, PIO_SCRNMAP, &cur_info.screen_map);
usr.sbin/vidcontrol/vidcontrol.c
154
ioctl(0,
usr.sbin/vidcontrol/vidcontrol.c
158
ioctl(0, _IO('S', cur_info.video_mode_number), NULL);
usr.sbin/vidcontrol/vidcontrol.c
163
ioctl(0, KDRASTER, size);
usr.sbin/vidcontrol/vidcontrol.c
300
if (ioctl(0, PIO_SCRNMAP, &scrnmap) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
322
if (ioctl(0, PIO_SCRNMAP, &scrnmap) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
339
if (ioctl(0, GIO_SCRNMAP, &map) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
408
if (ioctl(0, PIO_VFONT_DEFAULT) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
453
if (ioctl(STDIN_FILENO, PIO_VFONT, &vfnt) == -1)
usr.sbin/vidcontrol/vidcontrol.c
492
if (ioctl(0, CONS_GETINFO, &info) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
575
if (ioctl(0, io, fontmap) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
605
if (ioctl(0, CONS_BLANKTIME, &nsec) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
684
if (ioctl(0, CONS_GETCURSORSHAPE, &shape) != 0) {
usr.sbin/vidcontrol/vidcontrol.c
690
if (ioctl(0, CONS_SETCURSORSHAPE, &shape) != 0) {
usr.sbin/vidcontrol/vidcontrol.c
749
if (ioctl(0, CONS_GET, &cur_mode) < 0)
usr.sbin/vidcontrol/vidcontrol.c
773
if (ioctl(0, mode, NULL) < 0) {
usr.sbin/vidcontrol/vidcontrol.c
786
if (ioctl(0, CONS_MODEINFO, &new_mode_info) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
802
if (ioctl(0, mode, NULL) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
842
if (ioctl(0, KDRASTER, size)) {
usr.sbin/vidcontrol/vidcontrol.c
845
ioctl(0,
usr.sbin/vidcontrol/vidcontrol.c
849
ioctl(0, _IO('S', cur_mode), NULL);
usr.sbin/vidcontrol/vidcontrol.c
944
} else if (ioctl(0, VT_ACTIVATE, n) == -1) {
usr.sbin/vidcontrol/vidcontrol.c
965
if (ioctl(0, KDSBORDER, color) != 0) {
usr.sbin/vidcontrol/vidcontrol.c
988
if (ioctl(0, CONS_MOUSECTL, &mouse) == -1) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
219
if (ioctl(c->oss_fd, SNDCTL_DSP_CHANNELS, &v) < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
224
if (ioctl(c->oss_fd, SNDCTL_DSP_SETFMT, &v) < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
246
if (ioctl(c->oss_fd, SNDCTL_DSP_SPEED, &v) < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
251
if (ioctl(c->oss_fd, SNDCTL_DSP_SETFRAGMENT, &v) < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
375
ioctl(c->oss_fd, SNDCTL_DSP_GETODELAY, &delay) == 0 &&
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
388
ioctl(c->oss_fd, SNDCTL_DSP_GETODELAY, &delay) == 0 &&
usr.sbin/virtual_oss/virtual_equalizer/equalizer.c
368
if (ioctl(fd, VIRTUAL_OSS_GET_SAMPLE_RATE, &rate) < 0) {
usr.sbin/virtual_oss/virtual_equalizer/equalizer.c
372
if (ioctl(fd, cmd_fir_get, &fir) < 0) {
usr.sbin/virtual_oss/virtual_equalizer/equalizer.c
378
if (ioctl(fd, cmd_fir_set, &fir) < 0) {
usr.sbin/virtual_oss/virtual_equalizer/equalizer.c
392
if (ioctl(fd, cmd_info, &info) < 0) {
usr.sbin/virtual_oss/virtual_equalizer/equalizer.c
422
if (ioctl(fd, cmd_fir_set, &fir) < 0) {
usr.sbin/virtual_oss/virtual_oss/httpd.c
126
if (ioctl(fd, SIOCGETVLAN, &ifr) == 0)
usr.sbin/virtual_oss/virtual_oss/httpd.c
141
if (ioctl(fd, BIOCSETIF, &ifr) != 0) {
usr.sbin/virtual_oss/virtual_oss/httpd.c
548
if (ioctl(fd, FIONBIO, &enable) != 0) {
usr.sbin/virtual_oss/virtual_oss/httpd.c
759
} else if (ioctl(fd, FIONWRITE, &write_len) < 0) {
usr.sbin/virtual_oss/virtual_oss/main.c
1848
err = ioctl(ptr->fd_sta, SNDSTIOC_ADD_USER_DEVS, &arg);
usr.sbin/virtual_oss/virtual_oss_cmd/command.c
106
if (ioctl(fd, VIRTUAL_OSS_ADD_OPTIONS, options) < 0)
usr.sbin/virtual_oss/virtual_oss_cmd/command.c
85
if (ioctl(fd, VIRTUAL_OSS_GET_SYSTEM_INFO, &info) < 0)
usr.sbin/wake/wake.c
94
if (ioctl(bpf, BIOCSETIF, &ifr) == -1)
usr.sbin/wake/wake.c
97
if (ioctl(bpf, BIOCGDLT, &dlt) == -1)
usr.sbin/watch/watch.c
208
ioctl(snp_io, SNPSTTY, &fd);
usr.sbin/watch/watch.c
219
if (ioctl(snp_io, SNPSTTY, &snp_tty) != 0)
usr.sbin/watch/watch.c
356
if ((res = ioctl(std_in, FIONREAD, &nread)) != 0)
usr.sbin/watch/watch.c
393
if ((res = ioctl(snp_io, FIONREAD, &nread)) != 0)
usr.sbin/watchdogd/watchdogd.c
379
return ioctl(fd, WDIOC_SETTIMEOUT, &sbt);
usr.sbin/watchdogd/watchdogd.c
388
return ioctl(fd, WDIOC_CONTROL, &control);
usr.sbin/watchdogd/watchdogd.c
410
error = ioctl(fd, WDIOC_SETSOFT, &softtimeout_set);
usr.sbin/watchdogd/watchdogd.c
421
error = ioctl(fd, WDIOC_SETSOFTTIMEOUTACT,
usr.sbin/watchdogd/watchdogd.c
430
error = ioctl(fd, WDIOC_SETPRETIMEOUT, &pretimeout);
usr.sbin/watchdogd/watchdogd.c
438
error = ioctl(fd, WDIOC_SETPRETIMEOUTACT,
usr.sbin/wlanstat/main.c
103
if (ioctl(s, SIOCG80211, &ireq) < 0)
usr.sbin/wlanstat/main.c
278
if (ioctl(s, SIOCG80211, &ireq) < 0)
usr.sbin/wlanstat/wlanstat.c
445
if (ioctl(wf->s, SIOCGIFMEDIA, &ifmr) < 0)
usr.sbin/wlanstat/wlanstat.c
488
return ioctl(wf->s, SIOCG80211, &wf->ireq);
usr.sbin/wlanstat/wlanstat.c
533
if (ioctl(wf->s, SIOCG80211, &wf->ireq) < 0) {
usr.sbin/wlanstat/wlanstat.c
542
if (ioctl(wf->s, SIOCG80211, &wf->ireq) < 0)
usr.sbin/wlanstat/wlanstat.c
547
if (ioctl(wf->s, SIOCG80211STATS, &wf->ifr) < 0)
usr.sbin/ypbind/yp_ping.c
265
ioctl(sock, FIONBIO, &dontblock);
usr.sbin/zonectl/zonectl.c
547
error = ioctl(fd, DIOCZONECMD, &zone_args);