Home
last modified time | relevance | path

Searched refs:ioctl (Results 1 – 25 of 513) sorted by relevance

12345678910>>...21

/dragonfly/usr.bin/window/
HDwwtty.c47 if (ioctl(d, TIOCGETP, (char *)&t->ww_sgttyb) < 0) in wwgettty()
49 if (ioctl(d, TIOCGETC, (char *)&t->ww_tchars) < 0) in wwgettty()
51 if (ioctl(d, TIOCGLTC, (char *)&t->ww_ltchars) < 0) in wwgettty()
53 if (ioctl(d, TIOCLGET, (char *)&t->ww_lmode) < 0) in wwgettty()
55 if (ioctl(d, TIOCGETD, (char *)&t->ww_ldisc) < 0) in wwgettty()
79 while (ioctl(d, TIOCOUTQ, &i) >= 0 && i > 0) in wwsettty()
81 if (ioctl(d, TIOCSETN, (char *)&t->ww_sgttyb) < 0) in wwsettty()
83 if (ioctl(d, TIOCSETC, (char *)&t->ww_tchars) < 0) in wwsettty()
85 if (ioctl(d, TIOCSLTC, (char *)&t->ww_ltchars) < 0) in wwsettty()
87 if (ioctl(d, TIOCLSET, (char *)&t->ww_lmode) < 0) in wwsettty()
[all …]
/dragonfly/contrib/tcsh-6/
HDtc.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(f, TIOCSETD, (ioctl_t) & ldisc) != 0)
[all …]
HDsh.file.c97 (void) ioctl(SHIN, TCGETA, (ioctl_t) &tchars); in setup_tty()
128 (void) ioctl(SHIN, on, (ioctl_t) &tchars); in setup_tty()
135 (void) ioctl(SHIN, TIOCGETC, (ioctl_t) & tchars); in setup_tty()
137 (void) ioctl(SHIN, TIOCSETC, (ioctl_t) & tchars); in setup_tty()
142 (void) ioctl(SHIN, TIOCGETP, (ioctl_t) & sgtty); in setup_tty()
145 (void) ioctl(SHIN, TIOCSETP, (ioctl_t) & sgtty); in setup_tty()
150 (void) ioctl(SHIN, TIOCSETC, (ioctl_t) & tchars); in setup_tty()
178 (void) ioctl(SHOUT, TCGETA, (ioctl_t) &tty_normal); in back_to_col_1()
186 (void) ioctl(SHOUT, TCSETAW, (ioctl_t) &tty); in back_to_col_1()
192 (void) ioctl(SHOUT, TCSETAW, (ioctl_t) &tty_normal); in back_to_col_1()
[all …]
/dragonfly/lib/libvgl/
HDmain.c76 ioctl(0, _IO('S', VGLOldMode), 0); in VGLEnd()
77 ioctl(0, KDDISABIO, 0); in VGLEnd()
78 ioctl(0, KDSETMODE, KD_TEXT); in VGLEnd()
80 ioctl(0, VT_SETMODE, &smode); in VGLEnd()
131 if (ioctl(0, CONS_GET, &VGLOldMode) || ioctl(0, CONS_CURRENT, &adptype)) in VGLInit()
134 if (ioctl(0, CONS_MODEINFO, &VGLModeInfo)) /* FBIO_MODEINFO */ in VGLInit()
141 if (ioctl(0, KDENABIO, 0)) { in VGLInit()
178 ioctl(0, VT_WAITACTIVE, 0); in VGLInit()
179 ioctl(0, KDSETMODE, KD_GRAPHICS); in VGLInit()
180 if (ioctl(0, CONS_SET, &mode)) { in VGLInit()
[all …]
HDkeyboard.c48 ioctl(0, KDGKBMODE, &VGLKeyboardMode); in VGLKeyboardInit()
65 ioctl(0, KDSKBMODE, K_RAW); in VGLKeyboardInit()
68 ioctl(0, KDSKBMODE, K_CODE); in VGLKeyboardInit()
71 ioctl(0, KDSKBMODE, K_XLATE); in VGLKeyboardInit()
81 ioctl(0, KDSKBMODE, VGLKeyboardMode); in VGLKeyboardEnd()
/dragonfly/usr.bin/truss/
HDsetup.c88 if (ioctl(fd, PIOCBIS, mask) == -1) in setup_and_wait()
96 if (ioctl(fd, PIOCSFL, flags) == -1) in setup_and_wait()
100 ioctl(fd, PIOCBIC, ~0); in setup_and_wait()
122 if (ioctl(fd, PIOCWAIT, &pfs) == -1) in setup_and_wait()
126 ioctl(fd, PIOCCONT, 0); in setup_and_wait()
164 if (ioctl(fd, PIOCSTATUS, &tmp) == -1) { in start_tracing()
169 if (ioctl(fd, PIOCBIS, flags) == -1) in start_tracing()
178 if (ioctl(fd, PIOCSFL, 0) == -1) in start_tracing()
192 ioctl(Procfd, PIOCBIC, ~0); in restore_proc()
194 ioctl(Procfd, PIOCBIS, evflags); in restore_proc()
/dragonfly/usr.bin/top/
HDscreen.c175 if (ioctl (1, TIOCGWINSZ, &ws) != -1) in screen_getsize()
192 if (ioctl (1, TIOCGSIZE, &ts) != -1) in screen_getsize()
328 if (ioctl(STDOUT, TIOCGETP, &old_settings) == -1) in screen_readtermcap()
334 if (ioctl(STDOUT, TCGETA, &old_settings) == -1) in screen_readtermcap()
355 if (ioctl(STDOUT, TIOCGETP, &old_settings) != -1) in screen_init()
363 (void) ioctl(STDOUT, TIOCSETP, &new_settings); in screen_init()
372 (void) ioctl(STDOUT, TIOCLGET, &old_lword); in screen_init()
376 (void) ioctl(STDOUT, TIOCLSET, &new_lword); in screen_init()
386 if (ioctl(STDOUT, TCGETA, &old_settings) != -1) in screen_init()
396 (void) ioctl(STDOUT, TCSETA, &new_settings); in screen_init()
[all …]
/dragonfly/usr.sbin/vidcontrol/
HDvidcontrol.c104 if (ioctl(0, VT_GETACTIVE, &cur_info.active_vty) == -1) in init()
109 if (ioctl(0, CONS_GETINFO, &cur_info.console_info) == -1) in init()
112 if (ioctl(0, GIO_SCRNMAP, &cur_info.screen_map) == -1) in init()
115 if (ioctl(0, CONS_GET, &cur_info.video_mode_number) == -1) in init()
120 if (ioctl(0, CONS_MODEINFO, &cur_info.video_mode_info) == -1) in init()
142 ioctl(0, VT_ACTIVATE, (caddr_t) (long) cur_info.active_vty); in revert()
150 ioctl(0, PIO_SCRNMAP, &cur_info.screen_map); in revert()
151 ioctl(0, CONS_SET, &cur_info.video_mode_number); in revert()
159 ioctl(0, KDRASTER, size); in revert()
274 if (ioctl(0, PIO_SCRNMAP, &scrnmap) == -1) { in load_scrnmap()
[all …]
/dragonfly/sys/dev/disk/dm/doc/
HDdesign.txt53 in: struct dm-ioctl
55 out: struct dm-ioctl
58 sends libdevmapper ioctl protocol version to kernel and ask for kernel version.
68 This ioctl will remove all DM devices/tables from DM driver.
86 in: struct dm-ioctl(name/uuid)
96 in: struct dm-ioctl(name/uuid)
105 in: struct dm-ioctl(name/uuid) and string found after dm-ioctl struct in buffer
119 in: dm-ioctl(name/uuid)
124 Suspend all io's on device, after this ioctl. Already started io's will be done.
129 in: dm-ioctl(name/uuid)
[all …]
/dragonfly/lib/libusb/
HDlibusb20_ugen20.c152 if (ioctl(f, IOUSB(USB_GET_PLUGTIME), &plugtime)) { in ugen20_enumerate()
159 if (ioctl(f, IOUSB(USB_GET_DEVICE_DESC), &ddesc)) { in ugen20_enumerate()
174 if (ioctl(f, IOUSB(USB_GET_DEVICEINFO), &devinfo)) { in ugen20_enumerate()
248 if (ioctl(st->f, IOUSB(USB_READ_DIR), &st->urd)) { in ugen20_readdir()
320 if (ioctl(pdev->file, IOUSB(USB_FS_UNINIT), &fs_uninit)) { in ugen20_tr_release()
360 if (ioctl(pdev->file, IOUSB(USB_FS_INIT), &fs_init)) { in ugen20_tr_renew()
394 if (ioctl(f, IOUSB(USB_GET_PLUGTIME), &plugtime)) { in ugen20_open_device()
437 if (ioctl(pdev->file, IOUSB(USB_FS_UNINIT), &fs_uninit)) { in ugen20_close_device()
475 error = ioctl(pdev->file_ctrl, IOUSB(USB_GET_FULL_DESC), &gen_desc); in ugen20_get_config_desc_full()
495 error = ioctl(pdev->file_ctrl, IOUSB(USB_GET_FULL_DESC), &gen_desc); in ugen20_get_config_desc_full()
[all …]
/dragonfly/sbin/vinum/
HDcommands.c115 if (ioctl(superdev, VINUM_STARTCONFIG, &force)) { /* can't get config? */ in vinum_create()
140 ioctl(superdev, VINUM_CREATE, buffer); in vinum_create()
154 if (ioctl(superdev, VINUM_STARTCONFIG, &force)) /* can't get config? */ in vinum_create()
160 error = ioctl(superdev, VINUM_SAVECONFIG, &ioctltype); /* save the config to disk */ in vinum_create()
188 if (ioctl(superdev, VINUM_STARTCONFIG, &force)) { /* can't get config? */ in vinum_read()
192 ioctl(superdev, VINUM_CREATE, &buffer); in vinum_read()
195 error = ioctl(superdev, VINUM_RELEASECONFIG, NULL); /* save the config to disk */ in vinum_read()
199 error = ioctl(superdev, VINUM_RELEASECONFIG, NULL); /* save the config to disk */ in vinum_read()
220 ioctl(superdev, VINUM_DEBUG, (caddr_t) & info); in vinum_debug()
259 ioctl(superdev, VINUM_REMOVE, message); in vinum_rm()
[all …]
/dragonfly/sbin/ifconfig/
HDifcarp.c69 if (ioctl(s, SIOCGVH, &ifr) == -1) in carp_status()
88 if (ioctl(s, SIOCGDRVSPEC, &ifd) < 0) in carp_status()
107 if (ioctl(s, SIOCGVH, &ifr) == -1) in setcarp_passwd()
113 if (ioctl(s, SIOCSVH, &ifr) == -1) in setcarp_passwd()
135 if (ioctl(s, SIOCGVH, &ifr) == -1) in setcarp_vhid()
140 if (ioctl(s, SIOCSVH, &ifr) == -1) in setcarp_vhid()
160 if (ioctl(s, SIOCGVH, &ifr) == -1) in setcarp_advskew()
165 if (ioctl(s, SIOCSVH, &ifr) == -1) in setcarp_advskew()
185 if (ioctl(s, SIOCGVH, &ifr) == -1) in setcarp_advbase()
190 if (ioctl(s, SIOCSVH, &ifr) == -1) in setcarp_advbase()
[all …]
/dragonfly/tools/multimedia/cxm/setchannel/
HDcxm_setchannel.c197 if (ioctl(tfd, TVTUNER_SETAFC, &afc) < 0) { in main()
203 if (ioctl(tfd, METEORSINPUT, &device) < 0) { in main()
209 if (ioctl(tfd, BT848_SAUDIO, &audio) < 0) { in main()
214 if (ioctl(tfd, BT848_GAUDIO, &audio) < 0) { in main()
222 if (ioctl(tfd, BT848_SCAPAREA, &cap) < 0) { in main()
228 if (ioctl(tfd, TVTUNER_SETTYPE, &channel_set) < 0) { in main()
234 if (ioctl(tfd, TVTUNER_SETCHNL, &channel) < 0) { in main()
243 if (ioctl(tfd, RADIO_SETFREQ, &freq) < 0) { in main()
251 if (ioctl(tfd, TVTUNER_SETFREQ, &freq) < 0) { in main()
/dragonfly/usr.sbin/burncd/
HDburncd.c141 if (ioctl(fd, CDRIOCGETBLOCKSIZE, &saved_block_size) < 0) in main()
144 if (ioctl(fd, CDRIOCWRITESPEED, &speed) < 0) in main()
158 if (ioctl(fd, CDIOREADTOCHEADER, &header) < 0) in main()
163 if (ioctl(fd, CDIOREADTOCENTRY, &entry) < 0) in main()
165 if (ioctl(fd, CDRIOCNEXTWRITEABLEADDR, &addr) < 0) in main()
183 if (ioctl(fd, CDRIOCBLANK, &blank) < 0) in main()
187 error = ioctl(fd, CDRIOCGETPROGRESS, &percent); in main()
257 if (ioctl(fd, CDIOCSTART, 0) < 0) in main()
260 if (ioctl(fd, CDRIOCINITWRITER, &test_write) < 0) in main()
272 if (ioctl(fd, CDRIOCFIXATE, &multi) < 0) in main()
[all …]
/dragonfly/contrib/tcp_wrappers/
HDncr.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)
HDptx.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");
/dragonfly/sbin/slattach/
HDslattach.c210 if (ioctl(fd, TIOCMGET, &comstate) < 0) in main()
237 if (fd >= 0 && ioctl(fd, TIOCSETD, &ttydisc) < 0) { in acquire_line()
299 if (ioctl(fd, TIOCSCTTY, 0) < 0) { in acquire_line()
324 if (ioctl(fd, TIOCSDTR) < 0) { in setup_line()
339 if (ioctl(fd, TIOCSETD, &slipdisc) < 0) { in slip_discipline()
344 if (sl_unit >= 0 && ioctl(fd, SLIOCSUNIT, &sl_unit) < 0) { in slip_discipline()
350 if (ioctl(fd, SLIOCGUNIT, (caddr_t)&tmp_unit) < 0) { in slip_discipline()
362 if (ioctl(fd, SLIOCSKEEPAL, &keepal) < 0) { in slip_discipline()
367 if (outfill > 0 && ioctl(fd, SLIOCSOUTFILL, &outfill) < 0) { in slip_discipline()
381 if (ioctl(s, SIOCGIFFLAGS, (caddr_t)&ifr) < 0) { in slip_discipline()
[all …]
/dragonfly/libexec/rbootd/
HDbpf.c101 if (ioctl(BpfFd, BIOCSETIF, (caddr_t)&ifr) < 0) { in BpfOpen()
109 if (ioctl(BpfFd, BIOCGDLT, (caddr_t)&n) < 0) { in BpfOpen()
123 if (ioctl(BpfFd, BIOCIMMEDIATE, (caddr_t)&n) < 0) { in BpfOpen()
139 if (ioctl(BpfFd, BIOCPROMISC, (caddr_t)0) < 0) { in BpfOpen()
147 if (ioctl(BpfFd, BIOCGBLEN, (caddr_t)&BpfLen) < 0) { in BpfOpen()
181 if (ioctl(BpfFd, BIOCSETF, (caddr_t)&bpf_pgm) < 0) { in BpfOpen()
226 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 || in BpfGetIntfName()
237 if (ioctl(fd, SIOCGIFFLAGS, (char *)ifrp) < 0) { in BpfGetIntfName()
391 if (ioctl(BpfFd, SIOCDELMULTI, (caddr_t)&ifr) < 0) in BpfClose()
392 (void) ioctl(BpfFd, BIOCPROMISC, (caddr_t)0); in BpfClose()
/dragonfly/contrib/wpa_supplicant/src/drivers/
HDlinux_ioctl.c30 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { in linux_set_iface_flags()
47 if (ioctl(sock, SIOCSIFFLAGS, &ifr) != 0) { in linux_set_iface_flags()
70 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { in linux_iface_up()
87 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) { in linux_get_ifhwaddr()
113 if (ioctl(sock, SIOCSIFHWADDR, &ifr)) { in linux_set_ifhwaddr()
125 if (ioctl(sock, SIOCBRADDBR, brname) < 0) { in linux_br_add()
140 if (ioctl(sock, SIOCBRDELBR, brname) < 0) { in linux_br_del()
162 if (ioctl(sock, SIOCBRADDIF, &ifr) < 0) { in linux_br_add_if()
187 if (ioctl(sock, SIOCBRDELIF, &ifr) < 0) { in linux_br_del_if()
/dragonfly/contrib/gdb-7/gdb/
HDser-unix.c128 if (ioctl (scb->fd, TCGETA, &state->termio) < 0) in get_tty_state()
134 if (ioctl (scb->fd, TIOCGETP, &state->sgttyb) < 0) in get_tty_state()
136 if (ioctl (scb->fd, TIOCGETC, &state->tc) < 0) in get_tty_state()
138 if (ioctl (scb->fd, TIOCGLTC, &state->ltc) < 0) in get_tty_state()
140 if (ioctl (scb->fd, TIOCLGET, &state->lmode) < 0) in get_tty_state()
158 if (ioctl (scb->fd, TCSETA, &state->termio) < 0) in set_tty_state()
164 if (ioctl (scb->fd, TIOCSETN, &state->sgttyb) < 0) in set_tty_state()
166 if (ioctl (scb->fd, TIOCSETC, &state->tc) < 0) in set_tty_state()
168 if (ioctl (scb->fd, TIOCSLTC, &state->ltc) < 0) in set_tty_state()
170 if (ioctl (scb->fd, TIOCLSET, &state->lmode) < 0) in set_tty_state()
[all …]
/dragonfly/contrib/gdb-7/readline/
HDrltty.c83 if (ioctl (tty, TIOCGWINSZ, &w) == 0)
84 (void) ioctl (tty, TIOCSWINSZ, &w);
174 if (ioctl (tty, TIOCGETP, &(tiop->sgttyb)) < 0)
179 if (ioctl (tty, TIOCLGET, &(tiop->lflag)) == 0)
184 if (ioctl (tty, TIOCGETC, &(tiop->tchars)) == 0)
189 if (ioctl (tty, TIOCGLTC, &(tiop->ltchars)) == 0)
203 ioctl (tty, TIOCSETN, &(tiop->sgttyb));
211 ioctl (tty, TIOCLSET, &(tiop->lflag));
219 ioctl (tty, TIOCSETC, &(tiop->tchars));
227 ioctl (tty, TIOCSLTC, &(tiop->ltchars));
[all …]
/dragonfly/lib/libnvmm/
HDlibnvmm.c210 ret = ioctl(nvmm_fd, NVMM_IOC_CAPABILITY, &args); in nvmm_capability()
237 ret = ioctl(nvmm_fd, NVMM_IOC_MACHINE_CREATE, &args); in nvmm_machine_create()
262 ret = ioctl(nvmm_fd, NVMM_IOC_MACHINE_DESTROY, &args); in nvmm_machine_destroy()
282 ret = ioctl(nvmm_fd, NVMM_IOC_MACHINE_CONFIGURE, &args); in nvmm_machine_configure()
300 ret = ioctl(nvmm_fd, NVMM_IOC_VCPU_CREATE, &args); in nvmm_vcpu_create()
324 ret = ioctl(nvmm_fd, NVMM_IOC_VCPU_DESTROY, &args); in nvmm_vcpu_destroy()
359 ret = ioctl(nvmm_fd, NVMM_IOC_VCPU_CONFIGURE, &args); in nvmm_vcpu_configure()
397 ret = ioctl(nvmm_fd, NVMM_IOC_VCPU_GETSTATE, &args); in nvmm_vcpu_getstate()
425 ret = ioctl(nvmm_fd, NVMM_IOC_VCPU_RUN, &args); in nvmm_vcpu_run()
452 ret = ioctl(nvmm_fd, NVMM_IOC_GPA_MAP, &args); in nvmm_gpa_map()
[all …]
/dragonfly/usr.bin/telnet/
HDsys_bsd.c78 # define tcgetattr(f, t) ioctl(f, TCGETS, (char *)t)
83 # define tcgetattr(f, t) ioctl(f, TCGETA, (char *)t)
87 # define tcgetattr(f, t) ioctl(f, TIOCGETA, (char *)t)
90 # define tcsetattr(f, a, t) ioctl(f, a, (char *)t)
149 ioctl(0, TIOCLGET, (char *)&flush); in TerminalAutoFlush()
218 (void) ioctl(fileno(stdout), TIOCFLUSH, NULL); in TerminalFlushOutput()
220 (void) ioctl(fileno(stdout), TCFLSH, NULL); in TerminalFlushOutput()
228 ioctl(0, TIOCGETP, (char *)&ottyb); in TerminalSaveState()
229 ioctl(0, TIOCGETC, (char *)&otc); in TerminalSaveState()
230 ioctl(0, TIOCGLTC, (char *)&oltc); in TerminalSaveState()
[all …]
/dragonfly/sys/sys/
HDtimepps.h135 error = ioctl(filedes, PPS_IOC_CREATE, 0); in time_pps_create()
145 return (ioctl(handle, PPS_IOC_DESTROY, 0)); in time_pps_destroy()
151 return (ioctl(handle, PPS_IOC_SETPARAMS, ppsparams)); in time_pps_setparams()
157 return (ioctl(handle, PPS_IOC_GETPARAMS, ppsparams)); in time_pps_getparams()
163 return (ioctl(handle, PPS_IOC_GETCAP, mode)); in time_pps_getcap()
179 error = ioctl(handle, PPS_IOC_FETCH, &arg); in time_pps_fetch()
193 return (ioctl(handle, PPS_IOC_KCBIND, &arg)); in time_pps_kcbind()
/dragonfly/usr.sbin/pfctl/
HDpfctl_radix.c66 if (ioctl(dev_fd, DIOCRCLRTABLES, &io)) in pfr_clr_tables()
87 if (ioctl(dev_fd, DIOCRADDTABLES, &io)) in pfr_add_tables()
108 if (ioctl(dev_fd, DIOCRDELTABLES, &io)) in pfr_del_tables()
132 if (ioctl(dev_fd, DIOCRGETTABLES, &io)) in pfr_get_tables()
155 if (ioctl(dev_fd, DIOCRGETTSTATS, &io)) in pfr_get_tstats()
173 if (ioctl(dev_fd, DIOCRCLRADDRS, &io)) in pfr_clr_addrs()
196 if (ioctl(dev_fd, DIOCRADDADDRS, &io)) in pfr_add_addrs()
219 if (ioctl(dev_fd, DIOCRDELADDRS, &io)) in pfr_del_addrs()
243 if (ioctl(dev_fd, DIOCRSETADDRS, &io)) in pfr_set_addrs()
273 if (ioctl(dev_fd, DIOCRGETADDRS, &io)) in pfr_get_addrs()
[all …]

12345678910>>...21