Searched refs:ioctl (Results 1 - 25 of 943) sorted by relevance

1234567891011>>

/freebsd-13-stable/tools/build/cross-build/include/linux/sys/
H A Dioccom.h39 #include <sys/ioctl.h>
H A Dfilio.h40 #include <sys/ioctl.h>
H A Dttycom.h40 #include <sys/ioctl.h>
/freebsd-13-stable/contrib/libpcap/cmake/
H A Dhave_siocglifconf.c1 #include <sys/ioctl.h>
5 ioctl(0, SIOCGLIFCONF, (char *)0);
/freebsd-13-stable/tools/regression/audit/audit_pipe_ioctl/
H A Daudit_pipe_ioctl.c38 #include <sys/ioctl.h>
61 if (ioctl(fd, AUDITPIPE_GET_QLEN, &len) < 0)
67 if (ioctl(fd, AUDITPIPE_GET_QLIMIT_MIN, &minlen) < 0)
73 if (ioctl(fd, AUDITPIPE_GET_QLIMIT_MAX, &maxlen) < 0)
79 if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
95 if (ioctl(fd, AUDITPIPE_SET_QLIMIT, &len) < 0)
98 if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
105 if (ioctl(fd, AUDITPIPE_SET_QLIMIT, &len) < 0)
108 if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
119 if (ioctl(f
[all...]
/freebsd-13-stable/lib/libc/net/
H A Dsockatmark.c30 #include <sys/ioctl.h>
/freebsd-13-stable/tests/sys/netpfil/pf/ioctl/
H A DMakefile5 TESTSDIR= ${TESTSBASE}/sys/netpfil/pf/ioctl
H A Dvalidation.c31 #include <sys/ioctl.h>
88 if (ioctl(dev, DIOCRADDTABLES, &io) == 0)
93 if (ioctl(dev, DIOCRADDTABLES, &io) == 0)
99 if (ioctl(dev, DIOCRADDTABLES, &io) == 0)
108 ioctl(dev, DIOCRADDTABLES, &io);
139 if (ioctl(dev, DIOCRDELTABLES, &io) == 0)
144 if (ioctl(dev, DIOCRDELTABLES, &io) == 0)
150 if (ioctl(dev, DIOCRDELTABLES, &io) == 0)
183 if (ioctl(dev, DIOCRGETTABLES, &io) != 0)
188 if (ioctl(de
[all...]
/freebsd-13-stable/contrib/tcsh/
H A Dtc.disc.c75 if (ioctl(f, TCGETA, (ioctl_t) & termiob) == 0) {
84 if (ioctl(f, TCSETA, (ioctl_t) & termiob) != 0)
104 if (ioctl(f, TCGETA, (ioctl_t) & termiob) == 0) {
109 if (ioctl(f, TIOCGLTC, (ioctl_t) & ltcbuf) != 0)
118 if (ioctl(f, TIOCSLTC, (ioctl_t) & ltcbuf) != 0)
122 if (ioctl(f, TCSETAF, (ioctl_t) & termiob) != 0)
138 if (ioctl(f, TXGETLD, (ioctl_t) & tx) == 0) {
140 if (ioctl(f, TXADDCD, (ioctl_t) strPOSIX) == 0) {
152 if (ioctl(f, TIOCGETD, (ioctl_t) & oldisc) == 0) {
156 if (ioctl(
[all...]
/freebsd-13-stable/sbin/sconfig/
H A Dsconfig.c30 #include <sys/ioctl.h>
165 * Open a socket for doing the ioctl operations.
173 if (ioctl (s, SIOCGIFFLAGS, (caddr_t) &ifr) >= 0) {
195 if (ioctl (p, TIOCSETD, &ppp_disc) < 0) {
244 if (ioctl (fd, TIOCMGET, &status) < 0) {
270 if (ioctl (fd, SERIAL_GETPROTO, &protocol) >= 0 &&
311 if (ioctl (fd, SERIAL_GETSTAT, &st) < 0) {
353 if (ioctl (fd, SERIAL_CLRSTAT, 0) < 0) {
425 if (ioctl (fd, SERIAL_GETESTAT, &st) < 0)
545 if (ioctl (f
[all...]
/freebsd-13-stable/tools/tools/wtap/wtap/
H A Dwtap.c34 #include <sys/ioctl.h>
42 if(ioctl(dev, WTAPIOCTLCRT, &id) < 0){
49 if(ioctl(dev, WTAPIOCTLDEL, &id) < 0){
78 printf("wtap ioctl: unknown command '%c'\n", *argv[1]);
/freebsd-13-stable/lib/libusbhid/
H A Ddescr_compat.c46 #include <sys/ioctl.h>
56 return (ioctl(fd, USB_SET_IMMED, &enable));
64 if (ioctl(fd, USB_GET_REPORT_ID, &temp) < 0)
76 if (ioctl(fd, USB_GET_REPORT_DESC, &rep) < 0)
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/
H A Dunistd.h32 #include <sys/ioctl.h>
/freebsd-13-stable/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_compat.c29 return (ioctl(fd, request, zc));
/freebsd-13-stable/contrib/tcpdump/lbl/
H A Dos-ultrix4.h33 int ioctl(int, int, caddr_t);
/freebsd-13-stable/contrib/libpcap/lbl/
H A Dos-ultrix4.h32 int ioctl(int, int, caddr_t);
/freebsd-13-stable/contrib/tcp_wrappers/
H A Dncr.c50 if ((num_mod = ioctl(fd, I_LIST, NULL)) < 0)
52 if (ioctl(fd, I_LIST, &str_list) < 0)
59 if (ioctl(fd, I_POP, 0) < 0)
65 if (ioctl(fd, I_PUSH, "timod") < 0)
72 if (ioctl(fd, I_POP, 0) < 0)
79 if (ioctl(fd, I_PUSH, mod_buffer[i].l_name) < 0)
H A Dptx.c70 #define SWAP_MODULE(f, old, new) (ioctl(f, I_POP, old), ioctl(f, I_PUSH, new))
96 if (ioctl(fd, I_FIND, "timod") != 0)
97 ioctl(fd, I_POP, "timod");
98 if (ioctl(fd, I_FIND, "sockmod") == 0)
99 ioctl(fd, I_PUSH, "sockmod");
/freebsd-13-stable/lib/libvgl/
H A Dkeyboard.c36 #include <sys/ioctl.h>
51 ioctl(0, KDGKBMODE, &VGLKeyboardMode);
68 ioctl(0, KDSKBMODE, K_RAW);
71 ioctl(0, KDSKBMODE, K_CODE);
74 ioctl(0, KDSKBMODE, K_XLATE);
84 ioctl(0, KDSKBMODE, VGLKeyboardMode);
/freebsd-13-stable/tests/sys/kern/
H A Dkcov.c36 #include <sys/ioctl.h>
72 ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 0) == -1);
73 ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 1) == -1);
74 ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 2) == 0);
75 ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 2) == -1);
91 ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE,
122 ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, PAGE_SIZE / KCOV_ENTRY_SIZE) == 0);
137 ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, PAGE_SIZE / KCOV_ENTRY_SIZE) == 0);
153 ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, PAGE_SIZE / KCOV_ENTRY_SIZE) == 0);
156 ATF_CHECK(ioctl(f
[all...]
/freebsd-13-stable/sbin/comcontrol/
H A Dcomcontrol.c43 #include <sys/ioctl.h>
76 if (ioctl(fd, TIOCMGDTRWAIT, &dtrwait) < 0) {
83 if (ioctl(fd, TIOCGDRAINWAIT, &drainwait) < 0) {
115 if (ioctl(fd, TIOCMSDTRWAIT, &dtrwait) < 0) {
121 if (ioctl(fd, TIOCSDRAINWAIT, &drainwait) < 0) {
/freebsd-13-stable/contrib/netbsd-tests/kernel/kqueue/
H A Dt_ioctl.c38 #include <sys/ioctl.h>
50 atf_tc_set_md_var(tc, "descr", "Checks KFILTER_BYFILTER ioctl");
66 RL(ioctl(kq, KFILTER_BYFILTER, &km));
71 ATF_REQUIRE_EQ(ioctl(kq, KFILTER_BYFILTER, &km), -1);
77 atf_tc_set_md_var(tc, "descr", "Checks KFILTER_BYNAME ioctl");
102 RL(ioctl(kq, KFILTER_BYNAME, &km));
107 ATF_REQUIRE_EQ(ioctl(kq, KFILTER_BYNAME, &km), -1);
/freebsd-13-stable/crypto/openssh/openbsd-compat/
H A Dbsd-nextstep.c49 return (ioctl(fd, TIOCGETA, t));
64 return (ioctl(fd, TIOCSETA, t));
66 return (ioctl(fd, TIOCSETAW, t));
68 return (ioctl(fd, TIOCSETAF, t));
77 return (ioctl(fd, TIOCSPGRP, &pgrp));
/freebsd-13-stable/contrib/wpa/src/ap/
H A Dvlan_ifconfig.c13 #include <sys/ioctl.h>
33 if (ioctl(fd, SIOCGIFFLAGS, &ifr) != 0) {
34 wpa_printf(MSG_ERROR, "VLAN: %s: ioctl(SIOCGIFFLAGS) failed "
46 if (ioctl(fd, SIOCSIFFLAGS, &ifr) != 0) {
47 wpa_printf(MSG_ERROR, "VLAN: %s: ioctl(SIOCSIFFLAGS) failed "
/freebsd-13-stable/sbin/ifconfig/
H A Difgre.c32 #include <sys/ioctl.h>
58 if (ioctl(s, GREGKEY, &ifr) == 0)
62 if (ioctl(s, GREGOPTS, &ifr) != 0 || opts == 0)
67 if (ioctl(s, GREGPORT, &ifr) == 0 && port != 0)
81 if (ioctl(s, GRESKEY, (caddr_t)&ifr) < 0)
82 warn("ioctl (set grekey)");
93 if (ioctl(s, GRESPORT, (caddr_t)&ifr) < 0)
94 warn("ioctl (set udpport)");
103 if (ioctl(s, GREGOPTS, &ifr) == -1) {
104 warn("ioctl(GREGOPT
[all...]

Completed in 226 milliseconds

1234567891011>>