/freebsd-current/usr.bin/tip/libacu/ |
H A D | hayes.c | 61 #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 D | ipf.c | 10 #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 D | smbmsg.c | 43 #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 D | vlan_ioctl.c | 2 * 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 D | audio-pcm.c | 20 #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 D | cfi.c | 36 #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 D | snit.c | 19 #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 D | sbpf.c | 13 #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 D | vmmapi_machdep.c | 30 #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 D | ioctl.cc | 1 // 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 D | destructive.c | 29 #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 D | pyzfs.py | 36 import zfs.ioctl namespace 50 zfs.ioctl.set_cmdstr(" ".join(["zfs"] + sys.argv[1:]))
|
/freebsd-current/contrib/dialog/ |
H A D | ttysize.c | 39 # 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 D | read_dos_attributes.c | 18 * 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 D | try-from.c | 56 if (ioctl(0, I_FIND, "timod") == 0) 57 ioctl(0, I_PUSH, "timod");
|
/freebsd-current/contrib/libpcap/ |
H A D | pcap-enet.c | 17 #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 D | getobjstat.c | 39 #include <sys/ioctl.h> 68 if (ioctl(fd, SESIOC_GETOBJSTAT, (caddr_t) &obj) < 0) {
|
/freebsd-current/tools/tools/iwn/iwnstats/ |
H A D | iwn_ioctl.c | 31 * 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 D | geli.c | 47 error = ioctl(fileno(fp), DIOCGMEDIASIZE, &mediasize); 50 error = ioctl(fileno(fp), DIOCGSECTORSIZE, §orsize);
|
/freebsd-current/tools/tools/mfi/ |
H A D | mfi_checkq.c | 28 #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 D | aac_checkq.c | 28 #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 D | stat.h | 51 (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 D | ppt.c | 30 #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 D | h_comp.c | 35 #include <sys/ioctl.h> 55 res = ioctl(fd, CIOCGSESSION, &cs); 66 res = ioctl(fd, CIOCCRYPT, &co1); 82 res = ioctl(fd, CIOCCRYPT, &co2);
|
H A D | h_aesctr2.c | 34 #include <sys/ioctl.h> 65 res = ioctl(fd, CIOCGSESSION, &cs); 78 res = ioctl(fd, CIOCCRYPT, &co); 89 res = ioctl(fd, CIOCCRYPT, &co);
|