/freebsd-13-stable/share/examples/libifconfig/ |
H A D | setmtu.c | 33 #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 D | diskinfo.c | 175 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, §orsize); 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 D | lptcontrol.c | 103 if (ioctl(fd, LPT_IRQ, &irq_status) < 0) 104 err(1, "ioctl");
|
/freebsd-13-stable/usr.sbin/trim/ |
H A D | trim.c | 31 #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 D | uathload.c | 46 #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 D | diag.h | 35 #include <sys/ioctl.h>
|
/freebsd-13-stable/usr.bin/tip/libacu/ |
H A D | v831.c | 144 ioctl(FD, TIOCCDTR, 0); 149 ioctl(FD, TIOCNXCL, NULL); 164 ioctl(FD, TIOCNXCL, NULL); 167 ioctl(FD, TIOCCDTR, 0);
|
H A D | ventel.c | 51 #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 D | df.c | 97 ioctl(f, TIOCMBIC, &st); /* clear ST for 300 baud */ 99 ioctl(f, TIOCMBIS, &st); /* set ST for 1200 baud */
|
H A D | dn11.c | 136 ioctl(FD, TIOCCDTR, 0); 149 ioctl(FD, TIOCCDTR, 0);
|
/freebsd-13-stable/tests/sys/netpfil/pf/ |
H A D | Makefile | 6 TESTS_SUBDIRS+= ioctl
|
/freebsd-13-stable/tools/regression/netinet/msocket_ifnet_remove/ |
H A D | msocket_ifnet_remove.c | 30 #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 D | iflagg.c | 10 #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 D | fdformat.c | 80 (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 D | lexer.l | 38 #include <sys/ioctl.h>
|
/freebsd-13-stable/usr.sbin/rtsold/ |
H A D | if.c | 38 #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 D | listen_kqueue.c | 34 #include <sys/ioctl.h> 84 if (ioctl(sock, FIONBIO, &opt) == -1) 85 err(1, "ioctl(FIONBIO)");
|
/freebsd-13-stable/sbin/pfilctl/ |
H A D | pfilctl.c | 32 #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 D | fad-gifc.c | 40 #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 D | sandbox-systrace.c | 23 #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 D | acpiconf.c | 37 #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 D | memcontrol.c | 32 #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 D | sesutil.c | 39 #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 D | cuse_lib.c | 202 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 D | eng_devcrypto.c | 15 #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...] |