Searched refs:ioctl (Results 1 - 25 of 918) sorted by relevance

1234567891011>>

/freebsd-10-stable/lib/libc/net/
H A Dsockatmark.c27 #include <sys/ioctl.h>
33 if (ioctl(s, SIOCATMARK, &atmark) == -1)
/freebsd-10-stable/tools/regression/audit/audit_pipe_ioctl/
H A Daudit_pipe_ioctl.c38 #include <sys/ioctl.h>
61 if (ioctl(fd, AUDITPIPE_GET_QLEN, &len) < 0)
67 if (ioctl(fd, AUDITPIPE_GET_QLIMIT_MIN, &minlen) < 0)
73 if (ioctl(fd, AUDITPIPE_GET_QLIMIT_MAX, &maxlen) < 0)
79 if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
95 if (ioctl(fd, AUDITPIPE_SET_QLIMIT, &len) < 0)
98 if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
105 if (ioctl(fd, AUDITPIPE_SET_QLIMIT, &len) < 0)
108 if (ioctl(fd, AUDITPIPE_GET_QLIMIT, &len) < 0)
119 if (ioctl(f
[all...]
/freebsd-10-stable/contrib/tcsh/
H A Dtc.disc.c75 if (ioctl(f, TCGETA, (ioctl_t) & termiob) == 0) {
84 if (ioctl(f, TCSETA, (ioctl_t) & termiob) != 0)
104 if (ioctl(f, TCGETA, (ioctl_t) & termiob) == 0) {
109 if (ioctl(f, TIOCGLTC, (ioctl_t) & ltcbuf) != 0)
118 if (ioctl(f, TIOCSLTC, (ioctl_t) & ltcbuf) != 0)
122 if (ioctl(f, TCSETAF, (ioctl_t) & termiob) != 0)
138 if (ioctl(f, TXGETLD, (ioctl_t) & tx) == 0) {
140 if (ioctl(f, TXADDCD, (ioctl_t) strPOSIX) == 0) {
152 if (ioctl(f, TIOCGETD, (ioctl_t) & oldisc) == 0) {
156 if (ioctl(
[all...]
/freebsd-10-stable/sbin/sconfig/
H A Dsconfig.c30 #include <sys/ioctl.h>
165 * Open a socket for doing the ioctl operations.
173 if (ioctl (s, SIOCGIFFLAGS, (caddr_t) &ifr) >= 0) {
195 if (ioctl (p, TIOCSETD, &ppp_disc) < 0) {
244 if (ioctl (fd, TIOCMGET, &status) < 0) {
270 if (ioctl (fd, SERIAL_GETPROTO, &protocol) >= 0 &&
311 if (ioctl (fd, SERIAL_GETSTAT, &st) < 0) {
353 if (ioctl (fd, SERIAL_CLRSTAT, 0) < 0) {
425 if (ioctl (fd, SERIAL_GETESTAT, &st) < 0)
545 if (ioctl (f
[all...]
/freebsd-10-stable/tools/tools/wtap/wtap/
H A Dwtap.c34 #include <sys/ioctl.h>
42 if(ioctl(dev, WTAPIOCTLCRT, &id) < 0){
49 if(ioctl(dev, WTAPIOCTLDEL, &id) < 0){
78 printf("wtap ioctl: unknown command '%c'\n", *argv[1]);
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_compat.h38 #define ioctl(fd, ioc, zc) zcmd_ioctl((fd), (ioc), (zc)) macro
/freebsd-10-stable/lib/libusbhid/
H A Ddescr_compat.c44 #include <sys/ioctl.h>
54 return (ioctl(fd, USB_SET_IMMED, &enable));
62 if (ioctl(fd, USB_GET_REPORT_ID, &temp) < 0)
74 if (ioctl(fd, USB_GET_REPORT_DESC, &rep) < 0)
/freebsd-10-stable/usr.sbin/lmcconfig/
H A Dlmcconfig.c70 #include <sys/ioctl.h>
254 if ((error = ioctl(fdcs, cmd, (caddr_t)iohdr)) < 0)
256 fprintf(stderr, "%s: ioctl() returned error code %d: %s\n",
275 struct ioctl ioctl;
277 ioctl.iohdr.direction = DIR_IOWR;
278 ioctl.iohdr.length = sizeof(struct ioctl);
279 ioctl.cmd = IOCTL_RW_PCI;
280 ioctl
274 struct ioctl ioctl; local
289 struct ioctl ioctl; local
303 struct ioctl ioctl; local
318 struct ioctl ioctl; local
332 struct ioctl ioctl; local
347 struct ioctl ioctl; local
361 struct ioctl ioctl; local
376 struct ioctl ioctl; local
390 struct ioctl ioctl; local
405 struct ioctl ioctl; local
419 struct ioctl ioctl; local
434 struct ioctl ioctl; local
448 struct ioctl ioctl; local
461 struct ioctl ioctl; local
474 struct ioctl ioctl; local
486 struct ioctl ioctl; local
498 struct ioctl ioctl; local
512 struct ioctl ioctl; local
525 struct ioctl ioctl; local
538 struct ioctl ioctl; local
[all...]
/freebsd-10-stable/contrib/tcp_wrappers/
H A Dncr.c50 if ((num_mod = ioctl(fd, I_LIST, NULL)) < 0)
52 if (ioctl(fd, I_LIST, &str_list) < 0)
59 if (ioctl(fd, I_POP, 0) < 0)
65 if (ioctl(fd, I_PUSH, "timod") < 0)
72 if (ioctl(fd, I_POP, 0) < 0)
79 if (ioctl(fd, I_PUSH, mod_buffer[i].l_name) < 0)
H A Dptx.c70 #define SWAP_MODULE(f, old, new) (ioctl(f, I_POP, old), ioctl(f, I_PUSH, new))
96 if (ioctl(fd, I_FIND, "timod") != 0)
97 ioctl(fd, I_POP, "timod");
98 if (ioctl(fd, I_FIND, "sockmod") == 0)
99 ioctl(fd, I_PUSH, "sockmod");
/freebsd-10-stable/lib/libvgl/
H A Dkeyboard.c34 #include <sys/ioctl.h>
49 ioctl(0, KDGKBMODE, &VGLKeyboardMode);
66 ioctl(0, KDSKBMODE, K_RAW);
69 ioctl(0, KDSKBMODE, K_CODE);
72 ioctl(0, KDSKBMODE, K_XLATE);
82 ioctl(0, KDSKBMODE, VGLKeyboardMode);
/freebsd-10-stable/crypto/openssh/openbsd-compat/
H A Dbsd-nextstep.c49 return (ioctl(fd, TIOCGETA, t));
64 return (ioctl(fd, TIOCSETA, t));
66 return (ioctl(fd, TIOCSETAW, t));
68 return (ioctl(fd, TIOCSETAF, t));
77 return (ioctl(fd, TIOCSPGRP, &pgrp));
/freebsd-10-stable/sbin/comcontrol/
H A Dcomcontrol.c41 #include <sys/ioctl.h>
74 if (ioctl(fd, TIOCMGDTRWAIT, &dtrwait) < 0) {
81 if (ioctl(fd, TIOCGDRAINWAIT, &drainwait) < 0) {
113 if (ioctl(fd, TIOCMSDTRWAIT, &dtrwait) < 0) {
119 if (ioctl(fd, TIOCSDRAINWAIT, &drainwait) < 0) {
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/
H A Dt_ioctl.c38 #include <sys/ioctl.h>
50 atf_tc_set_md_var(tc, "descr", "Checks KFILTER_BYFILTER ioctl");
66 RL(ioctl(kq, KFILTER_BYFILTER, &km));
71 ATF_REQUIRE_EQ(ioctl(kq, KFILTER_BYFILTER, &km), -1);
77 atf_tc_set_md_var(tc, "descr", "Checks KFILTER_BYNAME ioctl");
102 RL(ioctl(kq, KFILTER_BYNAME, &km));
107 ATF_REQUIRE_EQ(ioctl(kq, KFILTER_BYNAME, &km), -1);
/freebsd-10-stable/tools/regression/filemon/
H A Dfilemontest.c31 #include <sys/ioctl.h>
61 if (ioctl(fm_fd, FILEMON_SET_FD, &fm_log) == -1)
71 if (ioctl(fm_fd, FILEMON_SET_PID, &child) == -1)
/freebsd-10-stable/usr.sbin/procctl/
H A Dprocctl.c53 #include <sys/ioctl.h>
72 if (ioctl(fd, PIOCBIC, ~0) == -1)
74 if (ioctl(fd, PIOCCONT, 0) == -1 && errno != EINVAL)
/freebsd-10-stable/sbin/ifconfig/
H A Difgre.c30 #include <sys/ioctl.h>
55 if (ioctl(s, GREGKEY, &ifr) == 0)
59 if (ioctl(s, GREGOPTS, &ifr) != 0 || opts == 0)
73 if (ioctl(s, GRESKEY, (caddr_t)&ifr) < 0)
74 warn("ioctl (set grekey)");
83 if (ioctl(s, GREGOPTS, &ifr) == -1) {
84 warn("ioctl(GREGOPTS)");
93 if (ioctl(s, GRESOPTS, &ifr) == -1) {
94 warn("ioctl(GIFSOPTS)");
/freebsd-10-stable/contrib/ipfilter/lib/
H A Dcheckrev.c11 #include <sys/ioctl.h>
35 if (ioctl(vfd, SIOCGETFS, &obj)) {
36 ipferror(vfd, "ioctl(SIOCGETFS)");
/freebsd-10-stable/contrib/libpcap/lbl/
H A Dos-ultrix4.h35 int ioctl(int, int, caddr_t);
/freebsd-10-stable/contrib/tcpdump/lbl/
H A Dos-ultrix4.h35 int ioctl(int, int, caddr_t);
/freebsd-10-stable/share/examples/ses/srcs/
H A Dgetnobj.c42 #include <sys/ioctl.h>
59 if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t) &nobj) < 0) {
H A Dinienc.c41 #include <sys/ioctl.h>
56 if (ioctl(fd, SESIOC_INIT, NULL) < 0) {
H A Dsetencstat.c41 #include <sys/ioctl.h>
64 if (ioctl(fd, ENCIOC_SETENCSTAT, (caddr_t) &stat) < 0) {
/freebsd-10-stable/share/examples/perfmon/
H A Dperfmon.c33 #include <sys/ioctl.h>
118 if (ioctl(fd, PMIOSETUP, &pmc) < 0)
119 err(1, "ioctl(PMIOSETUP)");
121 if (ioctl(fd, PMIOTSTAMP, &then) < 0)
122 err(1, "ioctl(PMIOTSTAMP)");
125 if (ioctl(fd, PMIOSTART, &num) < 0)
126 err(1, "ioctl(PMIOSTART)");
130 if (ioctl(fd, PMIOSTOP, &num) < 0)
131 err(1, "ioctl(PMIOSTOP)");
132 if (ioctl(f
[all...]
/freebsd-10-stable/contrib/top/
H A Dscreen.c16 * Paul Vixie, February 1987: converted to use ioctl() instead of stty/gtty.
26 #include <sys/ioctl.h>
212 /* get the actual screen size with an ioctl, if needed */
219 if (ioctl(STDOUT, TIOCGETP, &old_settings) == -1)
225 if (ioctl(STDOUT, TCGETA, &old_settings) == -1)
244 if (ioctl(STDOUT, TIOCGETP, &old_settings) != -1)
252 (void) ioctl(STDOUT, TIOCSETP, &new_settings);
260 (void) ioctl(STDOUT, TIOCLGET, &old_lword);
264 (void) ioctl(STDOUT, TIOCLSET, &new_lword);
274 if (ioctl(STDOU
[all...]

Completed in 318 milliseconds

1234567891011>>