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

1234567891011>>

/freebsd-current/sbin/ipf/libipf/
H A Dipf_perror.c2 #include <sys/ioctl.h>
35 ipf_perror_fd(fd, ioctl, msg);
H A Dcheckrev.c10 #include <sys/ioctl.h>
34 if (ioctl(vfd, SIOCGETFS, &obj)) {
35 ipferror(vfd, "ioctl(SIOCGETFS)");
H A Dprinttqtable.c8 #include <sys/ioctl.h>
H A Dpoolio.c10 #include <sys/ioctl.h>
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dgetversion.c18 * Linux exposes it instead through an ioctl.
21 #include <sys/ioctl.h>
40 if (ioctl(fd, FS_IOC_GETVERSION, &gen) == -1)
/freebsd-current/share/examples/ses/srcs/
H A Dsetencstat.c40 #include <sys/ioctl.h>
63 if (ioctl(fd, ENCIOC_SETENCSTAT, (caddr_t) &stat) < 0) {
H A Dgetnobj.c41 #include <sys/ioctl.h>
58 if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t) &nobj) < 0) {
H A Dinienc.c40 #include <sys/ioctl.h>
55 if (ioctl(fd, SESIOC_INIT, NULL) < 0) {
H A Dgetencstat.c40 #include <sys/ioctl.h>
85 if (ioctl(fd, ENCIOC_GETENCNAME, (caddr_t) &stri) == 0)
89 if (ioctl(fd, ENCIOC_GETENCID, (caddr_t) &stri) == 0)
92 if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) {
97 if (ioctl(fd, ENCIOC_GETENCSTAT, (caddr_t) &estat) < 0) {
138 if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) objp) < 0) {
145 if (ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t) &ob) < 0) {
159 if (ioctl(fd, ENCIOC_GETELMDESC, (caddr_t)&objd) < 0) {
174 * This ioctl isn't critical and has a good chance
177 (void)ioctl(f
[all...]
/freebsd-current/tests/sys/kern/
H A Dkcov.c33 #include <sys/ioctl.h>
82 ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 0) == -1);
83 ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 1) == -1);
84 ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 2) == 0);
85 ATF_CHECK(ioctl(fd, KIOSETBUFSIZE, 2) == -1);
106 ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE,
142 ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, page_size / KCOV_ENTRY_SIZE) == 0);
162 ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, page_size / KCOV_ENTRY_SIZE) == 0);
178 ATF_REQUIRE(ioctl(fd, KIOSETBUFSIZE, page_size / KCOV_ENTRY_SIZE) == 0);
181 ATF_CHECK(ioctl(f
[all...]
/freebsd-current/lib/libvgl/
H A Dmain.c36 #include <sys/ioctl.h>
85 ioctl(0, FBIO_SETLINEWIDTH, &VGLOldVXsize);
88 ioctl(0, _IO('V', VGLOldMode - M_VESA_BASE), 0);
90 ioctl(0, _IO('S', VGLOldMode), 0);
95 ioctl(0, KDRASTER, size);
98 ioctl(0, KDDISABIO, 0);
99 ioctl(0, KDSETMODE, KD_TEXT);
101 ioctl(0, VT_SETMODE, &smode);
160 if (ioctl(0, CONS_GET, &VGLOldMode) || ioctl(
[all...]
/freebsd-current/share/examples/perfmon/
H A Dperfmon.c31 #include <sys/ioctl.h>
116 if (ioctl(fd, PMIOSETUP, &pmc) < 0)
117 err(1, "ioctl(PMIOSETUP)");
119 if (ioctl(fd, PMIOTSTAMP, &then) < 0)
120 err(1, "ioctl(PMIOTSTAMP)");
123 if (ioctl(fd, PMIOSTART, &num) < 0)
124 err(1, "ioctl(PMIOSTART)");
128 if (ioctl(fd, PMIOSTOP, &num) < 0)
129 err(1, "ioctl(PMIOSTOP)");
130 if (ioctl(f
[all...]
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.d32 syscall::ioctl:entry
38 syscall::ioctl:entry
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/linux_dos_attributes/
H A Dwrite_dos_attributes.c18 * Under Linux, we provide ZFS_IOC_[GS]ETDOSFLAGS ioctl()s.
30 #include <sys/ioctl.h>
72 if (ioctl(fd, ZFS_IOC_GETDOSFLAGS, &flags) == -1)
82 if (ioctl(fd, ZFS_IOC_SETDOSFLAGS, &flags) == -1)
86 if (ioctl(fd, ZFS_IOC_GETDOSFLAGS, &newflags) == -1)
/freebsd-current/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-current/contrib/tcp_wrappers/
H A Dfromhost.c44 if (ioctl(request->fd, I_FIND, "timod") > 0) {
/freebsd-current/share/syscons/scrnmaps/
H A Dmkscrfil.c29 #include <sys/ioctl.h>
/freebsd-current/sbin/veriexec/
H A Dveriexec.h31 #include <sys/ioctl.h>
/freebsd-current/bin/stty/
H A Dstty.h30 #include <sys/ioctl.h>
/freebsd-current/contrib/telnet/libtelnet/
H A Dread_password.c55 #include <sys/ioctl.h>
92 if (ioctl(0,TIOCGETP,(char *)&tty_state) == -1)
99 if (ioctl(0,TIOCSETP,(char *)&tty_state) == -1)
132 if (ioctl(0,TIOCSETP,(char *)&tty_state))
/freebsd-current/stand/libsa/
H A Dioctl.c1 /* $NetBSD: ioctl.c,v 1.4 1994/10/30 21:48:24 cgd Exp $ */
64 ioctl(int fd, u_long cmd, void *arg) function
/freebsd-current/usr.sbin/cpucontrol/
H A Damd10h.c29 #include <sys/ioctl.h>
59 error = ioctl(fd, CPUCTL_CPUID, &idargs);
61 WARN(0, "ioctl()");
72 error = ioctl(fd, CPUCTL_CPUID, &idargs);
74 WARN(0, "ioctl()");
111 error = ioctl(devfd, CPUCTL_CPUID, &idargs);
113 WARN(0, "ioctl()");
119 error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
121 WARN(0, "ioctl(%s)", dev);
136 error = ioctl(devf
[all...]
/freebsd-current/tests/sys/auditpipe/
H A Dauditpipe_test.c26 #include <sys/ioctl.h>
42 atf_tc_set_md_var(tc, "descr", "Verifies whether the auditpipe ioctl, "
50 ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLEN, &qlen));
59 atf_tc_set_md_var(tc, "descr", "Verifies whether the auditpipe ioctl, "
67 ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLIMIT, &qlimit));
76 atf_tc_set_md_var(tc, "descr", "Verifies whether the auditpipe ioctl, "
86 ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLIMIT, &curr_qlimit));
93 * proper functioning of AUDITPIPE_SET_QLIMIT ioctl.
96 ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_SET_QLIMIT, &test_qlimit));
98 ATF_REQUIRE_EQ(0, ioctl(filedes
[all...]
/freebsd-current/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-current/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...]

Completed in 484 milliseconds

1234567891011>>