/haiku-fatelf/src/bin/gdb/gdb/rdi-share/ |
H A D | unixcomm.c | 41 #include <sys/ioctl.h> 58 # include <sys/ioctl.h> 66 # include <sys/ioctl.h> 262 if (ioctl(serpfd, TIOCEXCL) < 0) { 264 perror("ioctl: TIOCEXCL"); 354 (void)ioctl(serpfd, FIONBIO, &nonblockingIO); 357 (void)ioctl(parpfd, FIONBIO, &nonblockingIO); 534 if (ioctl(parpfd, BPPIOC_GETPARMS, &tp) < 0) 537 perror("ioctl(BPPIOCGETPARMS)"); 545 if (ioctl(parpf [all...] |
/haiku-fatelf/src/bin/network/tcpdump/libpcap/ |
H A D | pcap-haiku.cpp | 134 if (ioctl(handle->fd, SIOCGIFSTATS, &request, sizeof(struct ifreq)) < 0) { 173 if (ioctl(socket, SIOCGIFINDEX, &request, sizeof(request)) < 0) { 193 if (ioctl(socket, SIOCSPACKETCAP, &request, sizeof(struct ifreq)) < 0) { 267 if (ioctl(socket, SIOCGIFCOUNT, &config, sizeof(struct ifconf)) < 0) { 289 if (ioctl(socket, SIOCGIFCONF, &config, sizeof(struct ifconf)) < 0) { 314 if (ioctl(linkSocket, SIOCGIFADDR, &request, sizeof(struct ifreq))
|
H A D | pcap-pf.c | 39 #include <sys/ioctl.h> 344 if (ioctl(p->fd, EIOCMBIS, (caddr_t)&enmode) < 0) { 352 (void)ioctl(p->fd, EIOCMBIS, (caddr_t)&enmode);/* OK if this fails */ 355 if (ioctl(p->fd, EIOCSETW, (caddr_t)&backlog) < 0) { 361 if (ioctl(p->fd, EIOCDEVP, (caddr_t)&devparams) < 0) { 458 if (ioctl(p->fd, EIOCTRUNCATE, (caddr_t)&snaplen) < 0) { 468 if (ioctl(p->fd, EIOCSETF, (caddr_t)&Filter) < 0) { 478 if (ioctl(p->fd, EIOCSRTIMEOUT, (caddr_t)&timeout) < 0) { 539 if (ioctl(p->fd, BIOCVERSION, (caddr_t)&bv) >= 0) { 550 if (ioctl( [all...] |
H A D | pcap-snoop.c | 32 #include <sys/ioctl.h> 164 if (ioctl(p->fd, SIOCRAWSTATS, (char *)rs) < 0) { 233 if (ioctl(fd, SIOCADDSNOOP, &sf) < 0) { 319 if (ioctl(fd, SIOCGIFMTU, (char *)&ifr) < 0) { 353 if (ioctl(fd, SIOCSNOOPLEN, &snooplen) < 0) { 360 if (ioctl(fd, SIOCSNOOPING, &v) < 0) {
|
/haiku-fatelf/src/kits/device/ |
H A D | USBDevice.cpp | 60 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_VERSION, &command, sizeof(command)) 67 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_DEVICE_DESCRIPTOR, &command, 257 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_STRING_DESCRIPTOR, &command, 305 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_DESCRIPTOR, &command, 349 if (ioctl(fRawFD, B_USB_RAW_COMMAND_SET_CONFIGURATION, &command, 373 if (ioctl(fRawFD, B_USB_RAW_COMMAND_CONTROL_TRANSFER, &command,
|
H A D | USBEndpoint.cpp | 26 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_ENDPOINT_DESCRIPTOR_ETC, &command, 149 if (ioctl(fRawFD, B_USB_RAW_COMMAND_CONTROL_TRANSFER, &command, 169 if (ioctl(fRawFD, B_USB_RAW_COMMAND_INTERRUPT_TRANSFER, &command, 189 if (ioctl(fRawFD, B_USB_RAW_COMMAND_BULK_TRANSFER, &command, 212 if (ioctl(fRawFD, B_USB_RAW_COMMAND_ISOCHRONOUS_TRANSFER, &command,
|
H A D | USBInterface.cpp | 140 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_GENERIC_DESCRIPTOR_ETC, &command, 171 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_ALT_INTERFACE_COUNT, &command, 213 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_ACTIVE_ALT_INTERFACE_INDEX, &command, 228 if (ioctl(fRawFD, B_USB_RAW_COMMAND_SET_ALT_INTERFACE, &command, 245 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_INTERFACE_DESCRIPTOR_ETC, &command,
|
/haiku-fatelf/src/bin/pcmcia-cs/ |
H A D | cardctl.c | 47 #include <sys/ioctl.h> 275 ret = ioctl(fd, DS_GET_FIRST_WINDOW, &arg1); 278 ioctl(fd, DS_GET_MEM_PAGE, &arg2); 296 ret = ioctl(fd, DS_GET_NEXT_WINDOW, &arg1); 307 if ((ioctl(fd, DS_GET_FIRST_TUPLE, arg) == 0) && 308 (ioctl(fd, DS_GET_TUPLE_DATA, arg) == 0) && 309 (ioctl(fd, DS_PARSE_TUPLE, arg) == 0)) 344 if ((ioctl(fd, DS_GET_CONFIGURATION_INFO, &config) == 0) && 400 if (ioctl(fd, DS_GET_STATUS, &status) == 0) 407 perror("ioctl()"); [all...] |
/haiku-fatelf/src/bin/makebootable/platform/bios_ia32/ |
H A D | makebootable.cpp | 28 # include <sys/ioctl.h> 35 # include <sys/ioctl.h> 41 # include <sys/ioctl.h> 412 if (ioctl(baseFD, DIOCGMEDIASIZE, &deviceSize) == -1) { 497 if (ioctl(baseFD, BLKGETSIZE64, &deviceSize) == 0 500 } else if (ioctl(baseFD, HDIO_GETGEO, &geometry) == 0) { 569 if (ioctl(baseFD, DKIOCGETBLOCKSIZE, &blockSize) == -1) { 575 if (ioctl(baseFD, DKIOCGETBLOCKCOUNT, &blockCount) == -1) { 643 if (ioctl(fd, B_GET_PARTITION_INFO, &partitionInfo, 695 if (ioctl(mountF [all...] |
/haiku-fatelf/src/add-ons/media/media-add-ons/firewire_dv/ |
H A D | FireWireCard.cpp | 49 #include <sys/ioctl.h> 193 if (ioctl(fDev, FW_SSTBUF, &bufreq) < 0) 199 if (ioctl(fDev, FW_SRSTREAM, &isoreq) < 0) 250 if (ioctl(fDev, FW_SSTBUF, &bufreq) < 0) 256 if (ioctl(fDev, FW_SRSTREAM, &isoreq) < 0) 360 if (ioctl(fDev, FW_SSTBUF, &bufreq) < 0) 366 if (ioctl(fDev, FW_SRSTREAM, &isoreq) < 0)
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/fs_shell/ |
H A D | sysdep.c | 22 #include <sys/ioctl.h> 52 return 0; /* XXXdbg should do an ioctl or something */ 58 if (ioctl(fd, B_GET_GEOMETRY, &dg) < 0) 71 return 512; /* XXXdbg should do an ioctl or something */ 76 if (ioctl(fd, B_GET_GEOMETRY, &dg) < 0) { 93 fstat(fd, &st); /* XXXdbg should be an ioctl or something */ 100 if (ioctl(fd, B_GET_GEOMETRY, &dg) >= 0) { 106 /* if the ioctl fails, try just stat'ing in case it's a regular file */ 118 return 0; /* XXXdbg should do an ioctl or something */ 122 if (ioctl(f [all...] |
/haiku-fatelf/src/add-ons/kernel/network/devices/ethernet/ |
H A D | ethernet.cpp | 54 if (ioctl(device->fd, ETHER_GET_LINK_STATE, &state, 172 if (ioctl(device->fd, ETHER_INIT, &dummy, sizeof(dummy)) < 0) 175 if (ioctl(device->fd, ETHER_GETADDR, device->address.data, ETHER_ADDRESS_LENGTH) < 0) 178 if (ioctl(device->fd, ETHER_GETFRAMESIZE, &device->frame_size, sizeof(uint32)) < 0) { 188 ioctl(device->fd, ETHER_SET_LINK_STATE_SEM, &sLinkChangeSemaphore, 238 return ioctl(device->fd, op, argument, length); 369 if (ioctl(device->fd, ETHER_SETPROMISC, &value, sizeof(value)) < 0) 395 return ioctl(device->fd, ETHER_ADDMULTI, LLADDR(address), 6); 411 return ioctl(device->fd, ETHER_REMMULTI, LLADDR(address), 6);
|
/haiku-fatelf/src/kits/network/libnetapi/ |
H A D | NetworkRoster.cpp | 48 if (ioctl(socket, SIOCGIFCOUNT, &config, sizeof(struct ifconf)) != 0) 74 if (ioctl(socket, SIOCGIFCOUNT, &config, sizeof(struct ifconf)) < 0) 89 if (ioctl(socket, SIOCGIFCONF, &config, sizeof(struct ifconf)) < 0) 121 if (ioctl(socket, SIOCAIFADDR, &request, sizeof(request)) != 0) 147 if (ioctl(socket, SIOCDIFADDR, &request, sizeof(request)) != 0)
|
/haiku-fatelf/src/preferences/network/ |
H A D | Settings.cpp | 82 if (ioctl(fSocket, SIOCGIFADDR, &request, sizeof(request)) < 0) 94 if (ioctl(fSocket, SIOCGIFNETMASK, &request, sizeof(request)) < 0) 108 if (ioctl(fSocket, SIOCGRTSIZE, &config, sizeof(struct ifconf)) < 0) 123 if (ioctl(fSocket, SIOCGRTTABLE, &config, sizeof(struct ifconf)) < 0) 150 if (ioctl(fSocket, SIOCGIFFLAGS, &request, sizeof(struct ifreq)) == 0)
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/server/ |
H A D | sysdep.c | 28 return 0; /* XXXdbg should do an ioctl or something */ 34 if (ioctl(fd, B_GET_GEOMETRY, &dg) < 0) 47 return 512; /* XXXdbg should do an ioctl or something */ 52 if (ioctl(fd, B_GET_GEOMETRY, &dg) < 0) { 69 fstat(fd, &st); /* XXXdbg should be an ioctl or something */ 76 if (ioctl(fd, B_GET_GEOMETRY, &dg) >= 0) { 82 /* if the ioctl fails, try just stat'ing in case it's a regular file */ 94 return 0; /* XXXdbg should do an ioctl or something */ 98 if (ioctl(fd, B_GET_GEOMETRY, &dg) < 0) { 114 return 0; /* XXXdbg should do an ioctl o [all...] |
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | ser-unix.c | 125 if (ioctl (scb->fd, TCGETA, &state->termio) < 0) 131 if (ioctl (scb->fd, TIOCGETP, &state->sgttyb) < 0) 133 if (ioctl (scb->fd, TIOCGETC, &state->tc) < 0) 135 if (ioctl (scb->fd, TIOCGLTC, &state->ltc) < 0) 137 if (ioctl (scb->fd, TIOCLGET, &state->lmode) < 0) 155 if (ioctl (scb->fd, TCSETA, &state->termio) < 0) 161 if (ioctl (scb->fd, TIOCSETN, &state->sgttyb) < 0) 163 if (ioctl (scb->fd, TIOCSETC, &state->tc) < 0) 165 if (ioctl (scb->fd, TIOCSLTC, &state->ltc) < 0) 167 if (ioctl (sc [all...] |
H A D | ser-tcp.c | 32 #include <sys/ioctl.h> /* For FIONBIO. */ 111 ioctl (scb->fd, FIONBIO, &tmp); 179 ioctl (scb->fd, FIONBIO, &tmp);
|
H A D | inflow.c | 42 #include <sys/ioctl.h> 148 ioctl (0, TIOCGPGRP, &our_process_group); 160 /* Macro for printing errors from ioctl operations */ 281 result = ioctl (0, TIOCSPGRP, &inferior_process_group); 324 to do the ioctl()'s below. Checking gdb_has_a_terminal 325 avoids attempting all the ioctl's when running in batch. */ 355 ioctl (0, TIOCGPGRP, &inferior_process_group); 391 result = ioctl (0, TIOCSPGRP, &our_process_group); 539 ioctl (tty, TIOCNOTTY, 0);
|
/haiku-fatelf/src/add-ons/accelerants/nvidia/engine/ |
H A D | nv_agp.c | 50 ioctl(fd, NV_GET_NTH_AGP_INFO, &nai, sizeof(nai)); 114 ioctl(fd, NV_ENABLE_AGP, &nca, sizeof(nca)); 124 ioctl(fd, NV_ENABLE_AGP, &nca, sizeof(nca));
|
/haiku-fatelf/src/add-ons/accelerants/skeleton/engine/ |
H A D | agp.c | 47 ioctl(fd, ENG_GET_NTH_AGP_INFO, &nai, sizeof(nai)); 113 ioctl(fd, ENG_ENABLE_AGP, &nca, sizeof(nca)); 124 ioctl(fd, ENG_ENABLE_AGP, &nca, sizeof(nca));
|
/haiku-fatelf/src/add-ons/kernel/network/ppp/shared/libppp/ |
H A D | PPPInterface.cpp | 138 return ioctl(fFD, NET_STACK_CONTROL_NET_MODULE, &args); 261 return ioctl(fFD, NET_STACK_CONTROL_NET_MODULE, &args) == B_OK; 279 return ioctl(fFD, NET_STACK_CONTROL_NET_MODULE, &args) == B_OK;
|
/haiku-fatelf/src/bin/debug/strace/ |
H A D | ioctl.cpp | 170 Syscall *ioctl = get_syscall("_kern_ioctl"); local 172 ioctl->GetParameter("cmd")->SetHandler( 174 ioctl->GetParameter("data")->SetHandler(
|
/haiku-fatelf/src/bin/fwcontrol/ |
H A D | fwmpegts.c | 38 #include <sys/ioctl.h> 189 if (ioctl(d, FW_SSTBUF, &bufreq) < 0) 190 err(1, "ioctl"); 195 if (ioctl(d, FW_SRSTREAM, &isoreq) < 0) 196 err(1, "ioctl");
|
/haiku-fatelf/src/bin/multiuser/ |
H A D | login.cpp | 37 if (ioctl(STDIN_FILENO, TCGETA, &termios) != 0) 49 if (ioctl(STDIN_FILENO, TCSETA, &termios) != 0) 156 if (ioctl(STDIN_FILENO, TIOCSPGRP, &pid) != 0)
|
/haiku-fatelf/src/add-ons/accelerants/3dfx/ |
H A D | accelerant.cpp | 32 status_t result = ioctl(gInfo.deviceFileDesc, TDFX_GET_SHARED_DATA, 129 ioctl(gInfo.deviceFileDesc, TDFX_DEVICE_NAME, data, B_OS_NAME_LENGTH);
|