Searched refs:ioctl (Results 201 - 225 of 943) sorted by relevance

1234567891011>>

/freebsd-13-stable/share/examples/libifconfig/
H A Dsetmtu.c33 #include <sys/ioctl.h>
83 "Failed to set MTU due to error in unexpected ioctl() call %lu. Error code: %i.\n",
/freebsd-13-stable/usr.sbin/diskinfo/
H A Ddiskinfo.c175 if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0) {
183 if (ioctl(fd, DIOCGIDENT, ident) == 0) {
190 error = ioctl(fd, DIOCGMEDIASIZE, &mediasize);
192 warnx("%s: ioctl(DIOCGMEDIASIZE) failed, probably not a disk.", argv[i]);
196 error = ioctl(fd, DIOCGSECTORSIZE, &sectorsize);
198 warnx("%s: ioctl(DIOCGSECTORSIZE) failed, probably not a disk.", argv[i]);
202 error = ioctl(fd, DIOCGFWSECTORS, &fwsectors);
205 error = ioctl(fd, DIOCGFWHEADS, &fwheads);
208 error = ioctl(fd, DIOCGSTRIPESIZE, &stripesize);
211 error = ioctl(f
[all...]
/freebsd-13-stable/usr.sbin/lptcontrol/
H A Dlptcontrol.c103 if (ioctl(fd, LPT_IRQ, &irq_status) < 0)
104 err(1, "ioctl");
/freebsd-13-stable/usr.sbin/trim/
H A Dtrim.c31 #include <sys/ioctl.h>
146 if (ioctl(fd, DIOCGATTR, &arg) == 0)
196 if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) < 0)
198 "ioctl(DIOCGMEDIASIZE) failed, probably not a disk: "
227 error = ioctl(fd, DIOCGDELETE, arg);
232 warn("ioctl(DIOCGDELETE) failed: %s", path);
/freebsd-13-stable/usr.sbin/uathload/
H A Duathload.c46 #include <sys/ioctl.h>
178 if (ioctl(msg, USB_SET_RX_TIMEOUT, &timeout) < 0)
180 if (ioctl(msg, USB_SET_RX_BUFFER_SIZE, &bufsize) < 0)
187 if (ioctl(data, USB_SET_TX_TIMEOUT, &timeout) < 0)
/freebsd-13-stable/tools/tools/ath/common/
H A Ddiag.h35 #include <sys/ioctl.h>
/freebsd-13-stable/usr.bin/tip/libacu/
H A Dv831.c144 ioctl(FD, TIOCCDTR, 0);
149 ioctl(FD, TIOCNXCL, NULL);
164 ioctl(FD, TIOCNXCL, NULL);
167 ioctl(FD, TIOCCDTR, 0);
H A Dventel.c51 #include <sys/ioctl.h>
231 * If you don't have the ioctl calls to diddle directly
234 ioctl(FD, TIOCCDTR, 0);
236 ioctl(FD, TIOCSDTR, 0);
247 if (ioctl(fd, FIONREAD, (caddr_t)&nread) < 0) {
248 perror("tip: ioctl");
H A Ddf.c97 ioctl(f, TIOCMBIC, &st); /* clear ST for 300 baud */
99 ioctl(f, TIOCMBIS, &st); /* set ST for 1200 baud */
H A Ddn11.c136 ioctl(FD, TIOCCDTR, 0);
149 ioctl(FD, TIOCCDTR, 0);
/freebsd-13-stable/tests/sys/netpfil/pf/
H A DMakefile6 TESTS_SUBDIRS+= ioctl
/freebsd-13-stable/tools/regression/netinet/msocket_ifnet_remove/
H A Dmsocket_ifnet_remove.c30 #include <sys/ioctl.h>
96 if (ioctl(s, SIOCIFCREATE, &ifr) < 0) {
97 warn("disc_setup: ioctl(%s, SIOCIFCREATE)", ifr.ifr_name);
122 if (ioctl(s, SIOCIFDESTROY, &ifr) < 0)
123 warn("disc_done: ioctl(%s, SIOCIFDESTROY)", ifr.ifr_name);
157 if (ioctl(s, SIOCAIFADDR, &ifra) < 0) {
158 warn("ifconfig_inet: ioctl(%s%d, SIOCAIFADDR, %s)", ifname,
/freebsd-13-stable/sbin/ifconfig/
H A Diflagg.c10 #include <sys/ioctl.h>
56 if (ioctl(s, SIOCSLAGGPORT, &rp) && errno != EEXIST) {
72 if (ioctl(s, SIOCSLAGGDELPORT, &rp))
96 if (ioctl(s, SIOCSLAGG, &ra) != 0)
112 if (ioctl(s, SIOCSLAGGOPTS, &ro) != 0)
128 if (ioctl(s, SIOCSLAGGOPTS, &ro) != 0)
158 if (ioctl(s, SIOCSLAGGOPTS, &ro) != 0)
186 if (ioctl(s, SIOCSLAGGHASH, &rf))
/freebsd-13-stable/usr.sbin/fdformat/
H A Dfdformat.c80 (void)ioctl(fd, FD_FORM, (caddr_t)&f);
90 if (ioctl(fd, FD_GOPTS, &fdopts) < 0)
91 warn("warning: ioctl(FD_GOPTS)");
95 (void)ioctl(fd, FD_SOPTS, &fdopts);
109 (void)ioctl(fd, FD_SOPTS, &ofdopts);
250 if(ioctl(fd, FD_GTYPE, &fdt) < 0)
252 if (ioctl(fd, FD_GDTYPE, &type) == -1)
253 err(EX_OSERR, "ioctl(FD_GDTYPE)");
267 if (ioctl(fd, FD_STYPE, &fdt) < 0)
268 err(EX_OSERR, "ioctl(FD_STYP
[all...]
/freebsd-13-stable/usr.sbin/rrenumd/
H A Dlexer.l38 #include <sys/ioctl.h>
/freebsd-13-stable/usr.sbin/rtsold/
H A Dif.c38 #include <sys/ioctl.h>
105 if (ioctl(ifsock, SIOCGIFFLAGS, (caddr_t)&ifr) < 0) {
106 warnmsg(LOG_WARNING, __func__, "ioctl(SIOCGIFFLAGS): %s",
112 if (ioctl(ifsock, SIOCSIFFLAGS, (caddr_t)&ifr) < 0)
114 "ioctl(SIOCSIFFLAGS): %s", strerror(errno));
122 if (ioctl(s, SIOCGIFINFO_IN6, (caddr_t)&nd) < 0) {
123 warnmsg(LOG_WARNING, __func__, "ioctl(SIOCGIFINFO_IN6): %s",
134 if (ioctl(s, SIOCSIFINFO_IN6, (caddr_t)&nd)) {
136 "ioctl(SIOCSIFINFO_IN6): %s",
151 if (ioctl(
[all...]
/freebsd-13-stable/tools/regression/sockets/listen_kqueue/
H A Dlisten_kqueue.c34 #include <sys/ioctl.h>
84 if (ioctl(sock, FIONBIO, &opt) == -1)
85 err(1, "ioctl(FIONBIO)");
/freebsd-13-stable/sbin/pfilctl/
H A Dpfilctl.c32 #include <sys/ioctl.h>
111 if (ioctl(dev, PFILIOC_LISTHEADS, &plh) != 0)
112 err(1, "ioctl(PFILIOC_LISTHEADS)");
125 if (ioctl(dev, PFILIOC_LISTHEADS, &plh) != 0)
126 err(1, "ioctl(PFILIOC_LISTHEADS)");
156 if (ioctl(dev, PFILIOC_LISTHEADS, &plh) != 0)
157 err(1, "ioctl(PFILIOC_LISTHEADS)");
165 if (ioctl(dev, PFILIOC_LISTHOOKS, &plh) != 0)
166 err(1, "ioctl(PFILIOC_LISTHOOKS)");
227 if (ioctl(de
[all...]
/freebsd-13-stable/contrib/libpcap/
H A Dfad-gifc.c40 #include <sys/ioctl.h>
108 * There is no ioctl that returns the amount of space required for all
198 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0
270 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) {
288 if (ioctl(fd, SIOCGIFNETMASK, (char *)&ifrnetmask) < 0) {
318 if (ioctl(fd, SIOCGIFBRDADDR,
357 if (ioctl(fd, SIOCGIFDSTADDR,
/freebsd-13-stable/crypto/openssh/
H A Dsandbox-systrace.c23 #include <sys/ioctl.h>
154 if (ioctl(dev_systrace, STRIOCCLONE, &box->systrace_fd) == -1)
155 fatal("%s: ioctl(STRIOCCLONE, %d): %s", __func__,
159 if (ioctl(box->systrace_fd, STRIOCATTACH, &child_pid) == -1)
160 fatal("%s: ioctl(%d, STRIOCATTACH, %d): %s", __func__,
167 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1)
168 fatal("%s: ioctl(%d, STRIOCPOLICY (new)): %s", __func__,
173 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1)
174 fatal("%s: ioctl(%d, STRIOCPOLICY (assign)): %s",
192 if (ioctl(bo
[all...]
/freebsd-13-stable/usr.sbin/acpi/acpiconf/
H A Dacpiconf.c37 #include <sys/ioctl.h>
66 ret = ioctl(acpifd, ACPIIO_REQSLPSTATE, &sleep_type);
77 ret = ioctl(acpifd, ACPIIO_ACKSLPSTATE, &err_val);
99 if (ioctl(acpifd, ACPIIO_BATT_GET_BIX, &battio) == -1)
158 if (ioctl(acpifd, ACPIIO_BATT_GET_BST, &battio) == -1)
165 if (ioctl(acpifd, ACPIIO_BATT_GET_BATTINFO, &battio) == -1)
/freebsd-13-stable/usr.sbin/memcontrol/
H A Dmemcontrol.c32 #include <sys/ioctl.h>
133 if (ioctl(memfd, MEMRANGE_GET, &mro))
144 if (ioctl(memfd, MEMRANGE_GET, &mro))
251 if (ioctl(memfd, MEMRANGE_SET, &mro))
303 if (ioctl(memfd, MEMRANGE_SET, &mro))
311 if (ioctl(memfd, MEMRANGE_SET, &mro))
/freebsd-13-stable/usr.sbin/sesutil/
H A Dsesutil.c39 #include <sys/ioctl.h>
137 if (ioctl(fd, ENCIOC_GETELMSTAT, (caddr_t) &o) < 0) {
154 if (ioctl(fd, ENCIOC_SETELMSTAT, (caddr_t) &o) < 0) {
248 if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) {
259 if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) objp) < 0) {
292 if (ioctl(fd, ENCIOC_GETELMDEVNAMES,
445 if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) {
456 if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) e_ptr) < 0) {
465 if (ioctl(fd, ENCIOC_GETENCNAME, (caddr_t) &stri) == 0)
469 if (ioctl(f
[all...]
/freebsd-13-stable/lib/libcuse/
H A Dcuse_lib.c202 error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_MEMORY, &info);
222 error = ioctl(f_cuse, CUSE_IOCTL_FREE_MEMORY, &info);
288 error = ioctl(f_cuse, CUSE_IOCTL_FREE_MEMORY, &info);
314 error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_UNIT_BY_ID, pnum);
333 error = ioctl(f_cuse, CUSE_IOCTL_FREE_UNIT_BY_ID, &num);
348 error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_UNIT, pnum);
363 error = ioctl(f_cuse, CUSE_IOCTL_FREE_UNIT, &num);
403 error = ioctl(f_cuse, CUSE_IOCTL_CREATE_DEV, &info);
428 error = ioctl(f_cuse, CUSE_IOCTL_DESTROY_DEV, &cdev);
472 error = ioctl(f_cus
[all...]
/freebsd-13-stable/crypto/openssl/crypto/engine/
H A Deng_devcrypto.c15 #include <sys/ioctl.h>
41 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) {
168 if (ioctl(cfd, CIOCGSESSION, &cipher_ctx->sess) < 0) {
220 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) {
362 if (ioctl(cfd, CIOCGSESSION, &sess) < 0
363 || ioctl(cfd, CIOCFSESSION, &sess.ses) < 0)
533 if (ioctl(cfd, CIOCGSESSION, &digest_ctx->sess) < 0) {
553 return ioctl(cfd, CIOCCRYPT, &cryp);
608 if (ioctl(cfd, CIOCCPHASH, &cphash) < 0) {
635 if (ioctl(cf
[all...]

Completed in 515 milliseconds

1234567891011>>