/freebsd-13-stable/contrib/smbfs/lib/smb/ |
H A D | file.c | 37 #include <sys/ioctl.h> 63 if (ioctl(ctx->ct_fd, SMBIOC_READ, &rwrq) == -1) 78 if (ioctl(ctx->ct_fd, SMBIOC_WRITE, &rwrq) == -1)
|
/freebsd-13-stable/sbin/ifconfig/ |
H A D | ifipsec.c | 32 #include <sys/ioctl.h> 59 if (ioctl(s, IPSECGREQID, &ifr) == -1) 77 if (ioctl(s, IPSECSREQID, &ifr) == -1) { 78 warn("ioctl(IPSECSREQID)");
|
/freebsd-13-stable/contrib/bmake/filemon/ |
H A D | filemon_dev.c | 34 #include <sys/ioctl.h> 93 if (ioctl(F->fd, FILEMON_SET_FD, &fd) == -1) 114 return ioctl(F->fd, FILEMON_SET_PID, &pid);
|
/freebsd-13-stable/contrib/ipfilter/lib/ |
H A D | printpool_live.c | 7 #include <sys/ioctl.h> 52 while (!last && (ioctl(fd, SIOCLOOKUPITER, &obj) == 0)) { 68 (void) ioctl(fd,SIOCIPFDELTOK, &iter.ili_key);
|
/freebsd-13-stable/contrib/ipfilter/samples/ |
H A D | userauth.c | 6 #include <sys/ioctl.h> 29 while (ioctl(fd, SIOCAUTHW, &frap) == 0) { 57 if (ioctl(fd, SIOCAUTHR, &frap) != 0)
|
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/ |
H A D | tst.fds.c | 27 #include <sys/ioctl.h> 69 * ioctl() calls until DTrace hits us with a SIGUSR1 to start the test. 73 (void) ioctl(-1, 0, NULL); 92 * issue a bogus ioctl() on each fd with cmd 0 and arg NULL to whack 96 (void) ioctl(fds[i], 0, NULL);
|
/freebsd-13-stable/contrib/ntp/libntp/ |
H A D | iosignal.c | 25 # include <sys/ioctl.h> 87 if (ioctl(rio->fd, I_SETSIG, S_INPUT) < 0) 90 "init_clock_sig: ioctl(I_SETSIG, S_INPUT) failed: %m"); 107 if (ioctl(rio->fd, FIOSSAIOOWN, (char *)&pgrp) == -1) 109 msyslog(LOG_ERR, "ioctl(FIOSSAIOOWN) fails for clock I/O: %m - EXITING"); 117 if (ioctl(rio->fd, FIOSNBIO, (char *)&on) == -1) 119 msyslog(LOG_ERR, "ioctl(FIOSNBIO) fails for clock I/O: %m - EXITING"); 124 if (ioctl(rio->fd, FIOSSAIOSTAT, (char *)&on) == -1) 126 msyslog(LOG_ERR, "ioctl(FIOSSAIOSTAT) fails for clock I/O: %m - EXITING"); 143 if (ioctl(ri [all...] |
/freebsd-13-stable/contrib/netbsd-tests/crypto/opencrypto/ |
H A D | h_arc4.c | 34 #include <sys/ioctl.h> 61 res = ioctl(fd, CIOCGSESSION, &cs); 72 res = ioctl(fd, CIOCCRYPT, &co);
|
H A D | h_cbcdes.c | 34 #include <sys/ioctl.h> 62 res = ioctl(fd, CIOCGSESSION, &cs); 74 res = ioctl(fd, CIOCCRYPT, &co);
|
H A D | h_null.c | 34 #include <sys/ioctl.h> 57 res = ioctl(fd, CIOCGSESSION, &cs); 68 res = ioctl(fd, CIOCCRYPT, &co);
|
/freebsd-13-stable/share/examples/ses/srcs/ |
H A D | getobjmap.c | 41 #include <sys/ioctl.h> 59 if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t) &nobj) < 0) { 75 if (ioctl(fd, SESIOC_GETOBJMAP, (caddr_t) objp) < 0) {
|
/freebsd-13-stable/tools/tools/wtap/vis_map/ |
H A D | vis_map.c | 34 #include <sys/ioctl.h> 46 if (ioctl(dev, VISIOCTLOPEN, &op) < 0) { 54 if (ioctl(dev, VISIOCTLLINK, l) < 0) { 113 printf("wtap ioctl: unknown command '%c'\n", *argv[1]);
|
/freebsd-13-stable/usr.bin/mkuzip/ |
H A D | mkuz_insize.c | 31 #include <sys/ioctl.h> 64 if (ioctl(ffd, DIOCGMEDIASIZE, &ms) < 0) { 65 warn("ioctl(DIOCGMEDIASIZE)"); 72 if (ioctl(cfp->fdr, DIOCGMEDIASIZE, &ms) < 0) { 73 warn("ioctl(DIOCGMEDIASIZE)");
|
/freebsd-13-stable/tests/sys/audit/ |
H A D | ioctl.c | 28 #include <sys/ioctl.h> 50 "ioctl(2) call"); 59 "ioctl.*%#lx.*%#x.*return,success", request, filedesc); 62 ATF_REQUIRE(ioctl(filedesc, request) != -1); 77 "ioctl(2) call"); 83 "ioctl.*%#lx.*return,failure : Bad file descriptor", request); 87 ATF_REQUIRE_EQ(-1, ioctl(-1, request));
|
/freebsd-13-stable/lib/lib80211/ |
H A D | lib80211_ioctl.c | 61 #include <sys/ioctl.h> 109 return ioctl(s, SIOCG80211, &ireq); 123 if (ioctl(s, SIOCG80211, &ireq) < 0) 137 if (ioctl(s, SIOCG80211, &ireq) < 0) 155 if (ioctl(s, SIOCS80211, &ireq) < 0)
|
/freebsd-13-stable/lib/libusbhid/ |
H A D | descr.c | 42 #include <sys/ioctl.h> 52 ret = ioctl(fd, USB_SET_IMMED, &enable); 87 ret = ioctl(fd, USB_GET_REPORT_ID, &temp); 110 if (ioctl(fd, USB_GET_REPORT_DESC, &ugd) < 0) { 131 if (ioctl(fd, USB_GET_REPORT_DESC, &ugd) < 0) {
|
/freebsd-13-stable/usr.sbin/bluetooth/hccontrol/ |
H A D | node.c | 34 #include <sys/ioctl.h> 53 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_STATE, &r, sizeof(r)) < 0) 65 if (ioctl(s, SIOC_HCI_RAW_NODE_INIT) < 0) 78 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_DEBUG, &r, sizeof(r)) < 0) 102 if (ioctl(s, SIOC_HCI_RAW_NODE_SET_DEBUG, &r, sizeof(r)) < 0) 115 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BUFFER, &r, sizeof(r)) < 0) 143 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BDADDR, &r, sizeof(r)) < 0) 160 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_FEATURES, &r, sizeof(r)) < 0) 179 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_STAT, &r, sizeof(r)) < 0) 198 if (ioctl( [all...] |
/freebsd-13-stable/tools/tools/ath/common/ |
H A D | ctrl.c | 41 * For now this'll be a drop-in replacement for the existing ioctl() 85 * a direct ioctl on the file descriptor. 131 ret = ioctl(req->s, cmd, ad); 133 warn("%s: ioctl", __func__); 151 /* ioctl */ 152 ret = ioctl(req->s, SIOCZATHSTATS, &ifr); 154 warn("%s: ioctl", __func__); 172 /* ioctl */ 173 ret = ioctl(req->s, SIOCGATHSTATS, &ifr); 175 warn("%s: ioctl", __func_ [all...] |
/freebsd-13-stable/libexec/rbootd/ |
H A D | bpf.c | 54 #include <sys/ioctl.h> 113 if (ioctl(BpfFd, BIOCSETIF, (caddr_t)&ifr) < 0) { 114 syslog(LOG_ERR, "bpf: ioctl(BIOCSETIF,%s): %m", IntfName); 121 if (ioctl(BpfFd, BIOCGDLT, (caddr_t)&n) < 0) { 122 syslog(LOG_ERR, "bpf: ioctl(BIOCGDLT): %m"); 135 if (ioctl(BpfFd, BIOCIMMEDIATE, (caddr_t)&n) < 0) { 136 syslog(LOG_ERR, "bpf: ioctl(BIOCIMMEDIATE): %m"); 151 if (ioctl(BpfFd, BIOCPROMISC, (caddr_t)0) < 0) { 159 if (ioctl(BpfFd, BIOCGBLEN, (caddr_t)&BpfLen) < 0) { 160 syslog(LOG_ERR, "bpf: ioctl(BIOCGBLE [all...] |
/freebsd-13-stable/usr.sbin/i2c/ |
H A D | i2c.c | 41 #include <sys/ioctl.h> 196 error = ioctl(fd, I2CRSTCARD, &cmd); 208 error = ioctl(fd, I2CRDWR, &rdwrdata); 212 error = ioctl(fd, I2CSTART, &cmd); 218 ioctl(fd, I2CSTOP); 239 error = ioctl(fd, I2CRSTCARD, &cmd); 266 error = ioctl(fd, I2CRSTCARD, &cmd); 311 error = ioctl(fd, I2CSTART, &cmd); 313 err_msg = "ioctl: error sending start condition"; 337 error = ioctl(f [all...] |
/freebsd-13-stable/usr.sbin/vidcontrol/ |
H A D | vidcontrol.c | 112 if (ioctl(0, VT_GETACTIVE, &cur_info.active_vty) == -1) 116 if (ioctl(0, CONS_GETINFO, &cur_info.console_info) == -1) 121 ioctl(0, GIO_SCRNMAP, &cur_info.screen_map) == -1) 124 if (ioctl(0, CONS_GET, &cur_info.video_mode_number) == -1) 129 if (ioctl(0, CONS_MODEINFO, &cur_info.video_mode_info) == -1) 148 ioctl(0, VT_ACTIVATE, cur_info.active_vty); 150 ioctl(0, KDSBORDER, cur_info.console_info.mv_ovscan); 155 ioctl(0, PIO_SCRNMAP, &cur_info.screen_map); 159 ioctl(0, 163 ioctl( [all...] |
/freebsd-13-stable/usr.sbin/bluetooth/bthidd/ |
H A D | btuinput.c | 32 #include <sys/ioctl.h> 328 if (ioctl(fd, UI_SET_PHYS, phys) < 0 || 329 ioctl(fd, UI_SET_BSDUNIQ, uniq) < 0 || 330 ioctl(fd, UI_DEV_SETUP, &uisetup) < 0) 352 if (ioctl(fd, UI_SET_EVBIT, EV_SYN) < 0 || 353 ioctl(fd, UI_SET_EVBIT, EV_KEY) < 0 || 354 ioctl(fd, UI_SET_EVBIT, EV_REL) < 0 || 355 ioctl(fd, UI_SET_RELBIT, REL_X) < 0 || 356 ioctl(fd, UI_SET_RELBIT, REL_Y) < 0 || 357 (p->has_wheel && ioctl(f [all...] |
/freebsd-13-stable/tools/tools/pciroms/ |
H A D | pciroms.c | 31 #include <sys/ioctl.h> 192 if (ioctl(pci_fd, PCIOCGETCONF, &pc) == -1) { 193 perror("ioctl PCIOCGETCONF"); 277 if (ioctl(pci_fd, PCIOCWRITE, &io) == -1) 283 if (ioctl(pci_fd, PCIOCREAD, &io) == -1) 296 if (ioctl(pci_fd, PCIOCWRITE, &io) == -1) 356 if (ioctl(pci_fd, PCIOCREAD, &io) == -1) 361 if (ioctl(pci_fd, PCIOCWRITE, &io) == -1) 371 if (ioctl(pci_fd, PCIOCWRITE, &io) == -1) 389 if (ioctl(pci_f [all...] |
/freebsd-13-stable/usr.sbin/apm/ |
H A D | apm.c | 20 #include <sys/ioctl.h> 118 if (ioctl(fd, APMIO_SUSPEND, NULL) == -1) 119 err(1, "ioctl(APMIO_SUSPEND)"); 125 if (ioctl(fd, APMIO_STANDBY, NULL) == -1) 126 err(1, "ioctl(APMIO_STANDBY)"); 132 if (ioctl(fd, APMIO_GETINFO, aip) == -1) 133 err(1, "ioctl(APMIO_GETINFO)"); 140 if (ioctl(fd, APMIO_ENABLE) == -1) 141 err(1, "ioctl(APMIO_ENABLE)"); 143 if (ioctl(f [all...] |
/freebsd-13-stable/sys/opencrypto/ |
H A D | cryptodev.c | 67 SDT_PROBE_DEFINE1(opencrypto, dev, ioctl, error, "int"/*line number*/); 433 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); 469 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); 487 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); 504 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); 537 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); 542 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); 557 SDT_PROBE1(opencrypto, dev, ioctl, error, 566 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); 575 SDT_PROBE1(opencrypto, dev, ioctl, erro [all...] |