Searched refs:ioctl (Results 51 - 75 of 958) sorted by relevance

1234567891011>>

/freebsd-current/usr.bin/tip/libacu/
H A Dhayes.c61 #include <sys/ioctl.h>
145 ioctl(FD, TIOCCDTR, 0);
147 ioctl(FD, TIOCSDTR, 0);
264 ioctl(FD, FIONREAD, &len);
274 ioctl(FD, FIONREAD, &len);
282 ioctl(FD, TIOCCDTR, 0); /* clear DTR (insurance) */
296 ioctl(FD, FIONREAD, &len);
307 ioctl(FD, TIOCCDTR, 0);
308 ioctl(FD, TIOCSDTR, 0);
/freebsd-current/sbin/ipf/ipf/
H A Dipf.c10 #include <sys/ioctl.h>
47 static ioctlfunc_t iocfunctions[IPL_LOGSIZE] = { ioctl, ioctl, ioctl,
48 ioctl, ioctl, ioctl,
49 ioctl, ioctl };
136 ipf_dotuning(fd, optarg, ioctl);
[all...]
/freebsd-current/usr.sbin/smbmsg/
H A Dsmbmsg.c43 #include <sys/ioctl.h>
115 if (ioctl(fd, SMB_RECVB, &c) != -1)
117 if (ioctl(fd, SMB_QUICK_WRITE, &c) != -1)
148 return (ioctl(fd, SMB_QUICK_WRITE, &c));
151 return (ioctl(fd, SMB_QUICK_READ, &c));
154 if (ioctl(fd, SMB_RECVB, &c) == -1)
162 return (ioctl(fd, SMB_SENDB, &c));
168 if (ioctl(fd, SMB_READB, &c) == -1)
176 return (ioctl(fd, SMB_WRITEB, &c));
179 if (ioctl(f
[all...]
/freebsd-current/contrib/wpa/src/ap/
H A Dvlan_ioctl.c2 * hostapd / VLAN ioctl API
12 #include <sys/ioctl.h>
42 if (ioctl(fd, SIOCSIFVLAN, &if_request) < 0) {
92 if (ioctl(fd, SIOCSIFVLAN, &if_request) == 0 &&
96 if (ioctl(fd, SIOCSIFVLAN, &if_request) == 0 &&
114 if (ioctl(fd, SIOCSIFVLAN, &if_request) < 0) {
145 if (ioctl(fd, SIOCSIFVLAN, &if_request) < 0) {
/freebsd-current/contrib/ntp/util/
H A Daudio-pcm.c20 #include <sys/ioctl.h>
120 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
122 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
124 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECSRC, &recsrc) == -1)
138 if (ioctl(fd, AIOGSIZE, &s_size) == -1)
144 if (ioctl(fd, AIOGFMT, &s_c_p) == -1)
/freebsd-current/tools/tools/cfi/
H A Dcfi.c36 #include <sys/ioctl.h>
76 if (ioctl(fd, CFIOCGFACTORYPR, &v) < 0)
77 err(-1, "ioctl(CFIOCGFACTORYPR)");
87 if (ioctl(fd, CFIOCGOEMPR, &v) < 0)
88 err(-1, "ioctl(CFIOCGOEMPR)");
97 if (ioctl(fd, CFIOCSOEMPR, &v) < 0)
98 err(-1, "ioctl(CFIOCGOEMPR)");
107 if (ioctl(fd, CFIOCGPLR, &plr) < 0)
108 err(-1, "ioctl(CFIOCGPLR)");
117 if (ioctl(f
[all...]
/freebsd-current/sbin/ipf/ipsend/
H A Dsnit.c19 #include <sys/ioctl.h>
72 ioctl(fd, I_SRDOPT, (char*)RMSGD);
73 ioctl(fd, I_PUSH, "nbuf");
85 if (ioctl(fd, I_STR, (char*)&si) == -1)
87 perror("ioctl: NIT timeout");
99 if (ioctl(fd, I_STR, (char*)&si) == -1)
149 if (ioctl(fd, I_FLUSH, FLUSHW) == -1)
H A Dsbpf.c13 #include <sys/ioctl.h>
82 if (ioctl(fd, BIOCVERSION, (caddr_t)&bv) < 0)
98 if (ioctl(fd, BIOCSETIF, &ifr) == -1)
107 if (ioctl(fd, BIOCGBLEN, &bufsize) == -1)
119 if (ioctl(fd, BIOCSRTIMEOUT, (caddr_t)&to) == -1)
125 (void) ioctl(fd, BIOCFLUSH, 0);
/freebsd-current/lib/libvmmapi/aarch64/
H A Dvmmapi_machdep.c30 #include <sys/ioctl.h>
67 error = ioctl(ctx->fd, VM_GET_VGIC_VERSION, &vgic.ver);
76 return (ioctl(ctx->fd, VM_ATTACH_VGIC, &vgic));
87 return (ioctl(ctx->fd, VM_ASSERT_IRQ, &vi));
98 return (ioctl(ctx->fd, VM_DEASSERT_IRQ, &vi));
114 return (ioctl(ctx->fd, VM_RAISE_MSI, &vmsi));
/freebsd-current/contrib/capsicum-test/
H A Dioctl.cc1 // Test that ioctl works in capability mode.
6 #include <sys/ioctl.h>
11 // Ensure that ioctl() works consistently for both regular file descriptors and
28 EXPECT_OK(ioctl(fd, FIONREAD, &bytes));
29 EXPECT_NOTCAPABLE(ioctl(fd_no, FIONREAD, &bytes));
32 EXPECT_OK(ioctl(fd, FIOCLEX, &one));
33 EXPECT_NOTCAPABLE(ioctl(fd_no, FIOCLEX, &one));
44 // Restrict the ioctl(2) subrights of a normal FD.
48 EXPECT_OK(ioctl(fd, FIONREAD, &bytes));
50 EXPECT_NOTCAPABLE(ioctl(f
[all...]
/freebsd-current/tests/sys/ses/
H A Ddestructive.c29 #include <sys/ioctl.h>
76 r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj);
81 r = ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) map);
97 r = ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t)&elmstat);
106 r = ioctl(fd, ENCIOC_SETELMSTAT, (caddr_t)&elmstat);
130 r = ioctl(fd, ENCIOC_GETELMSTAT,
162 r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj);
167 r = ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) map);
184 r = ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t)&elmstat);
193 r = ioctl(f
[all...]
/freebsd-current/cddl/contrib/opensolaris/cmd/pyzfs/
H A Dpyzfs.py36 import zfs.ioctl namespace
50 zfs.ioctl.set_cmdstr(" ".join(["zfs"] + sys.argv[1:]))
/freebsd-current/contrib/dialog/
H A Dttysize.c39 # include <sys/ioctl.h>
76 if (ioctl(fd, IOCTL_WINSIZE, &size) >= 0) {
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/linux_dos_attributes/
H A Dread_dos_attributes.c18 * Under Linux, we provide ZFS_IOC_[GS]ETDOSFLAGS ioctl()s.
30 #include <sys/ioctl.h>
45 if (ioctl(fd, ZFS_IOC_GETDOSFLAGS, &flags) == -1)
/freebsd-current/contrib/tcp_wrappers/
H A Dtry-from.c56 if (ioctl(0, I_FIND, "timod") == 0)
57 ioctl(0, I_PUSH, "timod");
/freebsd-current/contrib/libpcap/
H A Dpcap-enet.c17 #include <sys/ioctl.h>
128 if (ioctl(fd, EIOSTATS, &es) == -1) {
129 perror("tcpdump: enet ioctl EIOSTATS error");
170 if (ioctl(if_fd, EIOCGETP, (char *)&ctl) == -1) {
171 perror("tcpdump: enet ioctl EIOCGETP error");
186 if (ioctl(if_fd, EIOCSETP, &ctl) == -1) {
187 perror("tcpdump: enet ioctl EIOCSETP error");
195 if (ioctl(if_fd, EIOCFLUSH) == -1) {
196 perror("tcpdump: enet ioctl EIOCFLUSH error");
203 if (ioctl(if_f
[all...]
/freebsd-current/share/examples/ses/srcs/
H A Dgetobjstat.c39 #include <sys/ioctl.h>
68 if (ioctl(fd, SESIOC_GETOBJSTAT, (caddr_t) &obj) < 0) {
/freebsd-current/tools/tools/iwn/iwnstats/
H A Diwn_ioctl.c31 * iwn ioctl API.
67 if (ioctl(is->s, SIOCZIWNSTATS, NULL) < 0)
68 err(-1, "ioctl");
80 err = ioctl(is->s, SIOCGIWNSTATS, (caddr_t) &d);
82 warn("ioctl");
/freebsd-current/usr.sbin/fstyp/
H A Dgeli.c47 error = ioctl(fileno(fp), DIOCGMEDIASIZE, &mediasize);
50 error = ioctl(fileno(fp), DIOCGSECTORSIZE, &sectorsize);
/freebsd-current/tools/tools/mfi/
H A Dmfi_checkq.c28 #include <sys/ioctl.h>
68 retval = ioctl(fd, MFIIO_STATS, &sr);
70 printf("error on ioctl: %s\n", strerror(errno));
/freebsd-current/tools/tools/aac/
H A Daac_checkq.c28 #include <sys/ioctl.h>
71 retval = ioctl(fd, AACIO_STATS, &sr);
73 printf("error on ioctl: %s\n", strerror(errno));
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/
H A Dstat.h51 (void) ioctl(fd, DIOCGMEDIASIZE, &sb->st_size);
66 /* In Linux we need to use an ioctl to get the size of a block device */
68 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0)
/freebsd-current/lib/libvmmapi/
H A Dppt.c30 #include <sys/ioctl.h>
49 return (ioctl(ctx->fd, VM_BIND_PPTDEV, &pptdev));
62 return (ioctl(ctx->fd, VM_UNBIND_PPTDEV, &pptdev));
79 return (ioctl(ctx->fd, VM_MAP_PPTDEV_MMIO, &pptmmio));
95 return (ioctl(ctx->fd, VM_UNMAP_PPTDEV_MMIO, &pptmmio));
112 return (ioctl(ctx->fd, VM_PPTDEV_MSI, &pptmsi));
130 return (ioctl(ctx->fd, VM_PPTDEV_MSIX, &pptmsix));
143 return (ioctl(ctx->fd, VM_PPTDEV_DISABLE_MSIX, &ppt));
/freebsd-current/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_comp.c35 #include <sys/ioctl.h>
55 res = ioctl(fd, CIOCGSESSION, &cs);
66 res = ioctl(fd, CIOCCRYPT, &co1);
82 res = ioctl(fd, CIOCCRYPT, &co2);
H A Dh_aesctr2.c34 #include <sys/ioctl.h>
65 res = ioctl(fd, CIOCGSESSION, &cs);
78 res = ioctl(fd, CIOCCRYPT, &co);
89 res = ioctl(fd, CIOCCRYPT, &co);

Completed in 292 milliseconds

1234567891011>>