Searched refs:ioctl (Results 26 - 50 of 943) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/ipfilter/lib/
H A Dcheckrev.c11 #include <sys/ioctl.h>
35 if (ioctl(vfd, SIOCGETFS, &obj)) {
36 ipferror(vfd, "ioctl(SIOCGETFS)");
H A Dprinttqtable.c8 #include <sys/ioctl.h>
/freebsd-13-stable/share/examples/ses/srcs/
H A Dgetnobj.c42 #include <sys/ioctl.h>
59 if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t) &nobj) < 0) {
H A Dinienc.c41 #include <sys/ioctl.h>
56 if (ioctl(fd, SESIOC_INIT, NULL) < 0) {
H A Dsetencstat.c41 #include <sys/ioctl.h>
64 if (ioctl(fd, ENCIOC_SETENCSTAT, (caddr_t) &stat) < 0) {
H A Dgetencstat.c41 #include <sys/ioctl.h>
86 if (ioctl(fd, ENCIOC_GETENCNAME, (caddr_t) &stri) == 0)
90 if (ioctl(fd, ENCIOC_GETENCID, (caddr_t) &stri) == 0)
93 if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) {
98 if (ioctl(fd, ENCIOC_GETENCSTAT, (caddr_t) &estat) < 0) {
139 if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) objp) < 0) {
146 if (ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t) &ob) < 0) {
160 if (ioctl(fd, ENCIOC_GETELMDESC, (caddr_t)&objd) < 0) {
175 * This ioctl isn't critical and has a good chance
178 (void)ioctl(f
[all...]
/freebsd-13-stable/lib/libvgl/
H A Dmain.c38 #include <sys/ioctl.h>
87 ioctl(0, FBIO_SETLINEWIDTH, &VGLOldVXsize);
90 ioctl(0, _IO('V', VGLOldMode - M_VESA_BASE), 0);
92 ioctl(0, _IO('S', VGLOldMode), 0);
97 ioctl(0, KDRASTER, size);
100 ioctl(0, KDDISABIO, 0);
101 ioctl(0, KDSETMODE, KD_TEXT);
103 ioctl(0, VT_SETMODE, &smode);
162 if (ioctl(0, CONS_GET, &VGLOldMode) || ioctl(
[all...]
/freebsd-13-stable/share/examples/perfmon/
H A Dperfmon.c33 #include <sys/ioctl.h>
118 if (ioctl(fd, PMIOSETUP, &pmc) < 0)
119 err(1, "ioctl(PMIOSETUP)");
121 if (ioctl(fd, PMIOTSTAMP, &then) < 0)
122 err(1, "ioctl(PMIOTSTAMP)");
125 if (ioctl(fd, PMIOSTART, &num) < 0)
126 err(1, "ioctl(PMIOSTART)");
130 if (ioctl(fd, PMIOSTOP, &num) < 0)
131 err(1, "ioctl(PMIOSTOP)");
132 if (ioctl(f
[all...]
/freebsd-13-stable/contrib/tcp_wrappers/
H A Dfromhost.c45 if (ioctl(request->fd, I_FIND, "timod") > 0) {
/freebsd-13-stable/contrib/telnet/libtelnet/
H A Dread_password.c59 #include <sys/ioctl.h>
96 if (ioctl(0,TIOCGETP,(char *)&tty_state) == -1)
103 if (ioctl(0,TIOCSETP,(char *)&tty_state) == -1)
136 if (ioctl(0,TIOCSETP,(char *)&tty_state))
/freebsd-13-stable/sbin/ifconfig/
H A Difgif.c34 #include <sys/ioctl.h>
66 if (ioctl(s, GIFGOPTS, &ifr) == -1)
80 if (ioctl(s, GIFGOPTS, &ifr) == -1) {
81 warn("ioctl(GIFGOPTS)");
90 if (ioctl(s, GIFSOPTS, &ifr) == -1) {
91 warn("ioctl(GIFSOPTS)");
H A Diffib.c34 #include <sys/ioctl.h>
55 if (ioctl(s, SIOCGIFFIB, (caddr_t)&ifr) == 0 &&
61 if (ioctl(s, SIOCGTUNFIB, (caddr_t)&ifr) == 0 &&
81 if (ioctl(s, SIOCSIFFIB, (caddr_t)&ifr) < 0)
82 warn("ioctl (SIOCSIFFIB)");
100 if (ioctl(s, SIOCSTUNFIB, (caddr_t)&ifr) < 0)
101 warn("ioctl (SIOCSTUNFIB)");
/freebsd-13-stable/sbin/veriexec/
H A Dveriexec.h31 #include <sys/ioctl.h>
/freebsd-13-stable/bin/stty/
H A Dstty.h33 #include <sys/ioctl.h>
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.d32 syscall::ioctl:entry
38 syscall::ioctl:entry
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dstat.h42 /* In Linux we need to use an ioctl to get the size of a block device */
44 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0)
/freebsd-13-stable/share/syscons/scrnmaps/
H A Dmkscrfil.c31 #include <sys/ioctl.h>
/freebsd-13-stable/sys/netpfil/pf/
H A Dpf_nv.h41 SDT_PROBE_DECLARE(pf, ioctl, function, error);
42 SDT_PROBE_DECLARE(pf, ioctl, nvchk, error);
47 SDT_PROBE3(pf, ioctl, function, error, __func__, error, \
54 SDT_PROBE2(pf, ioctl, nvchk, error, error, __LINE__); \
/freebsd-13-stable/usr.bin/setchannel/
H A Dsetchannel.c33 #include <sys/ioctl.h>
222 if (ioctl(tfd, TVTUNER_SETAFC, &afc) < 0) {
223 perror("ioctl(tfd, TVTUNER_SETAFC) failed.");
228 if (ioctl(tfd, METEORSINPUT, &device) < 0) {
229 perror("ioctl(tfd, METEORSINPUT) failed.");
234 if (ioctl(tfd, BT848_SAUDIO, &audio) < 0) {
235 perror("ioctl(tfd, BT848_SAUDIO) failed.");
239 if (ioctl(tfd, BT848_GAUDIO, &audio) < 0) {
240 perror("ioctl(tfd, BT848_GAUDIO) failed.");
248 if (ioctl(tf
[all...]
/freebsd-13-stable/tests/sys/auditpipe/
H A Dauditpipe_test.c28 #include <sys/ioctl.h>
44 atf_tc_set_md_var(tc, "descr", "Verifies whether the auditpipe ioctl, "
52 ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLEN, &qlen));
61 atf_tc_set_md_var(tc, "descr", "Verifies whether the auditpipe ioctl, "
69 ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLIMIT, &qlimit));
78 atf_tc_set_md_var(tc, "descr", "Verifies whether the auditpipe ioctl, "
88 ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLIMIT, &curr_qlimit));
95 * proper functioning of AUDITPIPE_SET_QLIMIT ioctl.
98 ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_SET_QLIMIT, &test_qlimit));
100 ATF_REQUIRE_EQ(0, ioctl(filedes
[all...]
/freebsd-13-stable/contrib/ntp/libntp/
H A Daudio.c30 # include <sys/ioctl.h>
51 * 4.4BSD-Lite switched to an unsigned long ioctl arg. Detect common
291 if (ioctl(fd, AIOGSIZE, &s_size) == -1)
301 if (ioctl(fd, AIOSSIZE, &s_size) == -1)
311 if (ioctl(fd, SNDCTL_DSP_SETFRAGMENT, &tmp) == -1)
318 if (ioctl(fd, AIOGFMT, &s_c_p) == -1)
327 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
329 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
364 rval = ioctl(ctl_fd, AUDIO_SETINFO, (char *)&info);
409 rval = ioctl(ctl_f
[all...]
/freebsd-13-stable/lib/libsysdecode/
H A DMakefile7 SRCS= errno.c flags.c ioctl.c signal.c syscallnames.c utrace.c
109 CLEANFILES= ioctl.c ioctl.c.tmp tables.h
120 CFLAGS.gcc.ioctl.c+= -Wno-redundant-decls
131 ioctl.c.tmp: .PHONY
133 ioctl.c.tmp: mkioctls .META
137 ioctl.c: ioctl.c.tmp
142 beforedepend: ioctl.c tables.h
/freebsd-13-stable/contrib/ipfilter/tools/
H A Dipf.c11 #include <sys/ioctl.h>
52 static ioctlfunc_t iocfunctions[IPL_LOGSIZE] = { ioctl, ioctl, ioctl,
53 ioctl, ioctl, ioctl,
54 ioctl, ioctl };
142 ipf_dotuning(fd, optarg, ioctl);
[all...]
/freebsd-13-stable/cddl/contrib/opensolaris/lib/pyzfs/common/
H A Ddataset.py29 import zfs.ioctl namespace
48 from zfs.ioctl.get_proptable, which should match the
72 for name, t in zfs.ioctl.get_proptable().iteritems():
91 zfs.ioctl which actually interface with the kernel to manipulate
107 props is the property settings dict from zfs.ioctl.next_dataset.
128 props = zfs.ioctl.dataset_props(name)
163 zfs.ioctl.next_dataset(self.name, False, cookie)
179 d = zfs.ioctl.userspace_many(self.name, prop)
186 return zfs.ioctl.userspace_upgrade(self.name)
197 return zfs.ioctl
[all...]
/freebsd-13-stable/usr.bin/tip/libacu/
H A Dhayes.c71 #include <sys/ioctl.h>
155 ioctl(FD, TIOCCDTR, 0);
157 ioctl(FD, TIOCSDTR, 0);
274 ioctl(FD, FIONREAD, &len);
284 ioctl(FD, FIONREAD, &len);
292 ioctl(FD, TIOCCDTR, 0); /* clear DTR (insurance) */
306 ioctl(FD, FIONREAD, &len);
317 ioctl(FD, TIOCCDTR, 0);
318 ioctl(FD, TIOCSDTR, 0);

Completed in 280 milliseconds

1234567891011>>