/freebsd-13-stable/contrib/netbsd-tests/crypto/opencrypto/ |
H A D | h_gcm.c | 34 #include <sys/ioctl.h> 71 res = ioctl(fd, CIOCGSESSION, &cs); 85 res = ioctl(fd, CIOCCRYPT, &co); 116 res = ioctl(fd, CIOCCRYPT, &co);
|
H A D | h_md5.c | 34 #include <sys/ioctl.h> 86 res = ioctl(fd, CIOCGSESSION, &cs); 97 res = ioctl(fd, CIOCCRYPT, &co); 104 res = ioctl(fd, CIOCFSESSION, &cs.ses);
|
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/ttyio/ |
H A D | t_ttyio.c | 63 ATF_TC(ioctl); variable 64 ATF_TC_HEAD(ioctl, tc) 67 "Checks that ioctl calls are restarted " 78 ATF_TC_BODY(ioctl, tc) 161 ATF_TP_ADD_TC(tp, ioctl);
|
/freebsd-13-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-openpty.c | 46 # include <sys/ioctl.h> 128 ioctl(*aslave, I_PUSH, "ptem"); 129 ioctl(*aslave, I_PUSH, "ldterm"); 131 ioctl(*aslave, I_PUSH, "ttcompat");
|
/freebsd-13-stable/share/examples/ses/srcs/ |
H A D | sesd.c | 44 #include <sys/ioctl.h> 105 if (ioctl(fd, ENCIOC_INIT, NULL) < 0) { 133 if (ioctl(fd, ENCIOC_GETENCSTAT, (caddr_t) &stat) < 0) { 141 if (ioctl(fd, ENCIOC_SETENCSTAT,
|
H A D | setobjstat.c | 41 #include <sys/ioctl.h> 79 if (ioctl(fd, ENCIOC_SETELMSTAT, (caddr_t) &obj) < 0) {
|
/freebsd-13-stable/usr.sbin/cpucontrol/ |
H A D | amd.c | 42 #include <sys/ioctl.h> 61 error = ioctl(fd, CPUCTL_CPUID, &idargs); 63 WARN(0, "ioctl()"); 101 error = ioctl(devfd, CPUCTL_CPUID, &idargs); 103 WARN(0, "ioctl()"); 144 error = ioctl(devfd, CPUCTL_UPDATE, &args); 147 warn("ioctl()");
|
/freebsd-13-stable/usr.sbin/mixer/ |
H A D | mixer.c | 154 if (ioctl(baz, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) 156 if (ioctl(baz, SOUND_MIXER_READ_RECMASK, &recmask) == -1) 158 if (ioctl(baz, SOUND_MIXER_READ_RECSRC, &recsrc) == -1) 166 if (ioctl(baz, MIXER_READ(foo),&bar) == -1) { 263 if (ioctl(baz, MIXER_READ(dev), &bar) == -1) { 286 if (ioctl(baz, MIXER_READ(dev), &bar) == -1) { 313 if (ioctl(baz, MIXER_WRITE(dev), &l) == -1) 329 if (ioctl(baz, SOUND_MIXER_WRITE_RECSRC, &recsrc) == -1) 331 if (ioctl(baz, SOUND_MIXER_READ_RECSRC, &recsrc) == -1)
|
/freebsd-13-stable/tests/sys/audit/ |
H A D | Makefile | 13 ATF_TESTS_C+= ioctl 36 SRCS.ioctl+= ioctl.c 37 SRCS.ioctl+= utils.c
|
/freebsd-13-stable/lib/libvmmapi/ |
H A D | vmmapi.c | 36 #include <sys/ioctl.h> 239 error = ioctl(ctx->fd, VM_MMAP_MEMSEG, &memmap); 263 error = ioctl(ctx->fd, VM_MUNMAP_MEMSEG, &munmap); 276 error = ioctl(ctx->fd, VM_MMAP_GETNEXT, &memmap); 342 error = ioctl(ctx->fd, VM_ALLOC_MEMSEG, &memseg); 355 error = ioctl(ctx->fd, VM_GET_MEMSEG, &memseg); 584 error = ioctl(ctx->fd, VM_SET_SEGMENT_DESCRIPTOR, &vmsegdesc); 599 error = ioctl(ctx->fd, VM_GET_SEGMENT_DESCRIPTOR, &vmsegdesc); 629 error = ioctl(ctx->fd, VM_SET_REGISTER, &vmreg); 643 error = ioctl(ct [all...] |
/freebsd-13-stable/usr.bin/morse/ |
H A D | morse.c | 46 #include <sys/ioctl.h> 388 ioctl(line, TIOCMGET, &lflags); 391 ioctl(line, TIOCMSET, &lflags); 402 dot_clock = dot_clock * 100; /* scale for ioctl */ 408 cdot_clock = cdot_clock * 100; /* scale for ioctl */ 543 if (ioctl(spkr, SPKRTONE, &sound) == -1) { 544 err(1, "ioctl play"); 549 if (ioctl(spkr, SPKRTONE, &sound) == -1) { 550 err(1, "ioctl rest"); 555 ioctl(spk [all...] |
/freebsd-13-stable/lib/libusb/ |
H A D | libusb20_ugen20.c | 155 if (ioctl(f, IOUSB(USB_GET_PLUGTIME), &plugtime)) { 162 if (ioctl(f, IOUSB(USB_GET_DEVICE_DESC), &ddesc)) { 177 if (ioctl(f, IOUSB(USB_GET_DEVICEINFO), &devinfo)) { 224 if (ioctl(f, IOUSB(USB_GET_DEV_PORT_PATH), &udpp) == 0 && 258 if (ioctl(st->f, IOUSB(USB_READ_DIR), &st->urd)) { 330 if (ioctl(pdev->file, IOUSB(USB_FS_UNINIT), &fs_uninit)) { 370 if (ioctl(pdev->file, IOUSB(USB_FS_INIT), &fs_init)) { 404 if (ioctl(f, IOUSB(USB_GET_PLUGTIME), &plugtime)) { 447 if (ioctl(pdev->file, IOUSB(USB_FS_UNINIT), &fs_uninit)) { 485 error = ioctl(pde [all...] |
/freebsd-13-stable/tools/regression/capsicum/syscalls/ |
H A D | cap_ioctls_limit.c | 35 #include <sys/ioctl.h> 57 CHECK(ioctl(fd, FIOCLEX) == 0); 59 CHECK(ioctl(fd, FIONCLEX) == 0); 78 CHECK(ioctl(fd, FIOCLEX) == 0); 80 CHECK(ioctl(fd, FIONCLEX) == 0); 98 CHECK(ioctl(fd, FIOCLEX) == 0); 101 CHECK(ioctl(fd, FIONCLEX) == -1); 117 CHECK(ioctl(fd, FIOCLEX) == -1); 123 CHECK(ioctl(fd, FIONCLEX) == -1); 163 CHECK(ioctl(f [all...] |
/freebsd-13-stable/sbin/nos-tun/ |
H A D | nos-tun.c | 66 #include <sys/ioctl.h> 145 * On FreeBSD this ioctl returns error 149 if (ioctl(s, SIOCDIFADDR, &ifra) < 0) { 170 if (ioctl(s, SIOCAIFADDR, &ifra) < 0) { 178 if (ioctl(s, SIOCGIFFLAGS, &ifrq) < 0) { 184 if (!(ioctl(s, SIOCSIFFLAGS, &ifrq) < 0)) { 214 if (ioctl(s, SIOCGIFFLAGS, &ifrq) < 0) { 220 if (ioctl(s, SIOCSIFFLAGS, &ifrq) < 0) { 231 if (ioctl(s, SIOCDIFADDR, &ifra) < 0) {
|
/freebsd-13-stable/lib/libifconfig/ |
H A D | libifconfig_internal.c | 29 #include <sys/ioctl.h> 65 if (ioctl(s, request, data) != 0) {
|
/freebsd-13-stable/lib/libutil/ |
H A D | pty.c | 37 #include <sys/ioctl.h> 82 ioctl(slave, TIOCSWINSZ, (char *)winp);
|
/freebsd-13-stable/libexec/bootpd/ |
H A D | getether.c | 39 #include <sys/ioctl.h> 54 if (ioctl(fd, SIOCRPHYSADDR, &phys) < 0) { 55 report(LOG_ERR, "getether: ioctl SIOCRPHYSADDR failed"); 95 if (ioctl(nit, NIOCBIND, &ifrnit) < 0) { 99 if (ioctl(nit, SIOCGIFADDR, &ifrnit) < 0) { 117 #include <sys/ioctl.h> 142 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 || 340 #include <sys/ioctl.h> 358 if (ioctl(fd, SIOCGIFHWADDR, &phys) < 0) { 359 report(LOG_ERR, "getether: ioctl SIOCGIFHWADD [all...] |
/freebsd-13-stable/contrib/llvm-project/lldb/tools/driver/ |
H A D | Platform.h | 72 extern int ioctl(int d, int request, ...); 82 #include <sys/ioctl.h>
|
/freebsd-13-stable/contrib/ipfilter/ipsend/ |
H A D | sockraw.c | 14 #include <sys/ioctl.h> 52 if (ioctl(fd, SIOCGIFADDR, &ifr) == -1) 54 perror("ioctl SIOCGIFADDR");
|
/freebsd-13-stable/contrib/ipfilter/lib/ |
H A D | printhash_live.c | 7 #include <sys/ioctl.h> 53 while (!last && (ioctl(fd, SIOCLOOKUPITER, &obj) == 0)) {
|
/freebsd-13-stable/contrib/ipfilter/samples/ |
H A D | relay.c | 6 * Must be executed with permission enough to do an ioctl on /dev/ipl 18 #include <sys/ioctl.h> 161 if (ioctl(fd, SIOCGNATL, &obj) == -1) { 163 perror("ioctl"); 165 syslog(LOG_ERR, "ioctl: %m\n"); 182 (void) ioctl(fd, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK); 183 (void) ioctl(0, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK); 184 (void) ioctl( [all...] |
/freebsd-13-stable/contrib/ntp/include/ |
H A D | ntp_tty.h | 38 #define tcsetattr(fd, cmd, arg) ioctl(fd, cmd, arg) 53 #define tcflush(fd, arg) ioctl(fd, TCFLSH, arg)
|
/freebsd-13-stable/sys/sys/ |
H A D | timepps.h | 185 error = ioctl(filedes, PPS_IOC_CREATE, 0); 195 return (ioctl(handle, PPS_IOC_DESTROY, 0)); 201 return (ioctl(handle, PPS_IOC_SETPARAMS, ppsparams)); 207 return (ioctl(handle, PPS_IOC_GETPARAMS, ppsparams)); 213 return (ioctl(handle, PPS_IOC_GETCAP, mode)); 229 error = ioctl(handle, PPS_IOC_FETCH, &arg); 248 error = ioctl(handle, PPS_IOC_FETCH_FFCOUNTER, &arg); 262 return (ioctl(handle, PPS_IOC_KCBIND, &arg));
|
/freebsd-13-stable/crypto/heimdal/lib/roken/ |
H A D | get_window_size.c | 69 ret = ioctl(fd, TIOCGWINSZ, &ws); 82 ret = ioctl(fd, TIOCGSIZE, &ts);
|
/freebsd-13-stable/usr.sbin/bluetooth/l2control/ |
H A D | l2cap.c | 34 #include <sys/ioctl.h> 79 if (ioctl(s, SIOC_L2CAP_NODE_GET_FLAGS, &r, sizeof(r)) < 0) 100 if (ioctl(s, SIOC_L2CAP_NODE_GET_DEBUG, &r, sizeof(r)) < 0) 124 if (ioctl(s, SIOC_L2CAP_NODE_SET_DEBUG, &r, sizeof(r)) < 0) 153 if (ioctl(s, SIOC_L2CAP_NODE_GET_CON_LIST, &r, sizeof(r)) < 0) { 211 if (ioctl(s, SIOC_L2CAP_NODE_GET_CHAN_LIST, &r, sizeof(r)) < 0) { 244 if (ioctl(s, SIOC_L2CAP_NODE_GET_AUTO_DISCON_TIMO, &r, sizeof(r)) < 0) 271 if (ioctl(s, SIOC_L2CAP_NODE_SET_AUTO_DISCON_TIMO, &r, sizeof(r)) < 0)
|