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

1234567891011>>

/freebsd-current/contrib/libfido2/openbsd-compat/
H A Dposix_ioctl_check.c1 #include <sys/ioctl.h>
6 return ioctl(fd, -1, 0);
/freebsd-current/tools/build/cross-build/include/linux/sys/
H A Dioccom.h37 #include <sys/ioctl.h>
H A Dfilio.h38 #include <sys/ioctl.h>
H A Dttycom.h38 #include <sys/ioctl.h>
/freebsd-current/contrib/libpcap/cmake/
H A Dhave_siocglifconf.c1 #include <sys/ioctl.h>
5 ioctl(0, SIOCGLIFCONF, (char *)0);
/freebsd-current/tools/regression/audit/audit_pipe_ioctl/
H A Daudit_pipe_ioctl.c36 #include <sys/ioctl.h>
59 if (ioctl(fd, AUDITPIPE_GET_QLEN, &len) < 0)
65 if (ioctl(fd, AUDITPIPE_GET_QLIMIT_MIN, &minlen) < 0)
71 if (ioctl(fd, AUDITPIPE_GET_QLIMIT_MAX, &maxlen) < 0)
77 if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
93 if (ioctl(fd, AUDITPIPE_SET_QLIMIT, &len) < 0)
96 if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
103 if (ioctl(fd, AUDITPIPE_SET_QLIMIT, &len) < 0)
106 if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
117 if (ioctl(f
[all...]
/freebsd-current/lib/libc/net/
H A Dsockatmark.c28 #include <sys/ioctl.h>
/freebsd-current/tests/sys/netpfil/pf/ioctl/
H A DMakefile4 TESTSDIR= ${TESTSBASE}/sys/netpfil/pf/ioctl
H A Dvalidation.c29 #include <sys/ioctl.h>
86 if (ioctl(dev, DIOCRADDTABLES, &io) == 0)
91 if (ioctl(dev, DIOCRADDTABLES, &io) == 0)
97 if (ioctl(dev, DIOCRADDTABLES, &io) == 0)
106 ioctl(dev, DIOCRADDTABLES, &io);
137 if (ioctl(dev, DIOCRDELTABLES, &io) == 0)
142 if (ioctl(dev, DIOCRDELTABLES, &io) == 0)
148 if (ioctl(dev, DIOCRDELTABLES, &io) == 0)
181 if (ioctl(dev, DIOCRGETTABLES, &io) != 0)
186 if (ioctl(de
[all...]
/freebsd-current/lib/libusbhid/
H A Ddescr_compat.c43 #include <sys/ioctl.h>
53 return (ioctl(fd, USB_SET_IMMED, &enable));
61 if (ioctl(fd, USB_GET_REPORT_ID, &temp) < 0)
73 if (ioctl(fd, USB_GET_REPORT_DESC, &rep) < 0)
/freebsd-current/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-current/tools/tools/wtap/wtap/
H A Dwtap.c32 #include <sys/ioctl.h>
40 if(ioctl(dev, WTAPIOCTLCRT, &id) < 0){
47 if(ioctl(dev, WTAPIOCTLDEL, &id) < 0){
76 printf("wtap ioctl: unknown command '%c'\n", *argv[1]);
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/
H A Dunistd.h32 #include <sys/ioctl.h>
/freebsd-current/sys/contrib/openzfs/lib/libzfs_core/os/linux/
H A Dlibzfs_core_ioctl.c29 return (ioctl(fd, request, zc));
/freebsd-current/contrib/libpcap/lbl/
H A Dos-ultrix4.h32 int ioctl(int, int, caddr_t);
/freebsd-current/contrib/tcpdump/lbl/
H A Dos-ultrix4.h33 int ioctl(int, int, caddr_t);
/freebsd-current/contrib/tcp_wrappers/
H A Dptx.c69 #define SWAP_MODULE(f, old, new) (ioctl(f, I_POP, old), ioctl(f, I_PUSH, new))
94 if (ioctl(fd, I_FIND, "timod") != 0)
95 ioctl(fd, I_POP, "timod");
96 if (ioctl(fd, I_FIND, "sockmod") == 0)
97 ioctl(fd, I_PUSH, "sockmod");
H A Dncr.c49 if ((num_mod = ioctl(fd, I_LIST, NULL)) < 0)
51 if (ioctl(fd, I_LIST, &str_list) < 0)
58 if (ioctl(fd, I_POP, 0) < 0)
64 if (ioctl(fd, I_PUSH, "timod") < 0)
71 if (ioctl(fd, I_POP, 0) < 0)
78 if (ioctl(fd, I_PUSH, mod_buffer[i].l_name) < 0)
/freebsd-current/lib/libvgl/
H A Dkeyboard.c34 #include <sys/ioctl.h>
49 ioctl(0, KDGKBMODE, &VGLKeyboardMode);
66 ioctl(0, KDSKBMODE, K_RAW);
69 ioctl(0, KDSKBMODE, K_CODE);
72 ioctl(0, KDSKBMODE, K_XLATE);
82 ioctl(0, KDSKBMODE, VGLKeyboardMode);
/freebsd-current/tests/sys/kern/
H A Dtty_pts.c8 #include <sys/ioctl.h>
29 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes));
33 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes));
38 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes));
46 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes));
55 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes));
/freebsd-current/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-current/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-current/sbin/comcontrol/
H A Dcomcontrol.c41 #include <sys/ioctl.h>
74 if (ioctl(fd, TIOCMGDTRWAIT, &dtrwait) < 0) {
81 if (ioctl(fd, TIOCGDRAINWAIT, &drainwait) < 0) {
113 if (ioctl(fd, TIOCMSDTRWAIT, &dtrwait) < 0) {
119 if (ioctl(fd, TIOCSDRAINWAIT, &drainwait) < 0) {
/freebsd-current/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-current/tests/sys/net/
H A Dif_epair.c27 #include <sys/ioctl.h>
65 if (ioctl(s, SIOCIFCREATE2, &ifr) < 0)
68 if (ioctl(s, SIOCIFDESTROY, &ifr) < 0)

Completed in 223 milliseconds

1234567891011>>