Searched refs:ioctl (Results 51 - 75 of 356) sorted by relevance

1234567891011>>

/haiku-fatelf/src/kits/network/
H A Dinterfaces.cpp54 if (ioctl(socket.FD(), SIOCGIFINDEX, &request, sizeof(struct ifreq)) < 0)
70 if (ioctl(socket.FD(), SIOCGIFNAME, &request, sizeof(struct ifreq)) < 0)
89 if (ioctl(socket.FD(), SIOCGIFCOUNT, &config, sizeof(struct ifconf)) < 0)
101 if (ioctl(socket.FD(), SIOCGIFCONF, &config, sizeof(struct ifconf)) < 0)
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dioctl.c24 ioctl(int fd, ulong cmd, ...) function
H A Dttyname.c41 if (ioctl(fd, B_GET_PATH_FOR_DEVICE, buffer, bufferSize) < 0)
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Ddevice.c53 #include <sys/ioctl.h>
537 if (dev->d_ops->ioctl(dev, BLKGETSIZE64, &size) >= 0) {
548 if (dev->d_ops->ioctl(dev, BLKGETSIZE, &size) >= 0) {
558 if (dev->d_ops->ioctl(dev, FDGETPRM, &this_floppy) >= 0) {
571 if (dev->d_ops->ioctl(dev, DIOCGMEDIASIZE, &size) >= 0) {
586 if (sector_size >= 0 && dev->d_ops->ioctl(dev,
603 if (dev->d_ops->ioctl(dev, B_GET_PARTITION_INFO, &partitionInfo) == 0)
605 else if (dev->d_ops->ioctl(dev, B_GET_GEOMETRY, &geometry) == 0) {
615 * We couldn't figure it out by using a specialized ioctl,
642 * EOPNOTSUPP System does not support HDIO_GETGEO ioctl
[all...]
/haiku-fatelf/src/system/kernel/fs/
H A Dvfs_net_boot.cpp160 if (ioctl(fSocket, SIOCGIFINDEX, &request, sizeof(request)) < 0) {
171 if (ioctl(fSocket, SIOCAIFADDR, &aliasRequest,
180 if (ioctl(fSocket, SIOCGIFFLAGS, &request, sizeof(request)) < 0) {
190 if (ioctl(fSocket, SIOCSIFFLAGS, &request, sizeof(request)) < 0) {
198 if (ioctl(fLinkSocket, SIOCGIFADDR, &request, sizeof(request)) < 0) {
238 if (ioctl(fSocket, SIOCSIFADDR, &request, sizeof(request)) < 0) {
246 if (ioctl(fSocket, SIOCSIFNETMASK, &request, sizeof(request)) < 0) {
254 if (ioctl(fSocket, SIOCSIFBRDADDR, &request, sizeof(request)) < 0) {
264 if (ioctl(fSocket, SIOCSIFFLAGS, &request, sizeof(request)) < 0) {
277 ioctl(fSocke
[all...]
/haiku-fatelf/src/add-ons/media/media-add-ons/opensound/
H A DOpenSoundDeviceEngine.cpp93 if (ioctl(fFD, SNDCTL_DSP_COOKEDMODE, &v, sizeof(int)) < 0) {
104 if (ioctl(fFD, SNDCTL_DSP_SETFRAGMENT, &v, sizeof(int)) < 0) {
162 if (ioctl(fFD, SNDCTL_ENGINEINFO, &fAudioInfo, sizeof(oss_audioinfo)) < 0)
196 if (ioctl(fFD, SNDCTL_DSP_CHANNELS, &chans, sizeof(int)) < 0) {
207 if (ioctl(fFD, SNDCTL_DSP_CHANNELS, &chans, sizeof(int)) < 0) {
221 if (ioctl(fFD, SNDCTL_DSP_GETFMTS, &fmt, sizeof(int)) < 0) {
232 if (ioctl(fFD, SNDCTL_DSP_SETFMT, &fmt, sizeof(int)) < 0) {
245 if (ioctl(fFD, SNDCTL_DSP_SPEED, &speed, sizeof(int)) < 0) {
256 if (ioctl(fFD, SNDCTL_DSP_SPEED, &speed, sizeof(int)) < 0) {
275 if (ioctl(fF
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/netfs/netfs_config/
H A Dnetfs_config.cpp42 if (ioctl(fd, NET_FS_IOCTL_ADD_SERVER, &params) < 0)
56 if (ioctl(fd, NET_FS_IOCTL_REMOVE_SERVER, &params) < 0)
97 // do the ioctl
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dinput_avail.c52 # include <sys/ioctl.h>
98 result = ioctl (fd, FIONREAD, &chars_avail);
H A Dshtty.c45 return ioctl(fd, TCGETA, ttp);
47 return ioctl(fd, TIOCGETP, ttp);
61 return ioctl(fd, TCSETAW, ttp);
63 return ioctl(fd, TIOCSETN, ttp);
/haiku-fatelf/src/libs/bsd/
H A Dpty.cpp34 && ioctl(master, TIOCSWINSZ, windowSize, sizeof(winsize)) != 0)) {
55 if (ioctl(fd, TIOCSCTTY, NULL) != 0)
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/netfs_config/
H A Dnetfs_config.cpp40 if (ioctl(fd, NET_FS_IOCTL_ADD_SERVER, &params) < 0)
54 if (ioctl(fd, NET_FS_IOCTL_REMOVE_SERVER, &params) < 0)
95 // do the ioctl
/haiku-fatelf/src/apps/powerstatus/
H A DACPIDriverInterface.cpp83 status = ioctl(fDriverHandler, GET_BATTERY_INFO, &fCachedAcpiInfo,
115 status = ioctl(fDriverHandler, GET_EXTENDED_BATTERY_INFO, info,
126 fInitStatus = ioctl(fDriverHandler, IDENTIFY_DEVICE, &magicId,
131 fInitStatus = ioctl(fDriverHandler, GET_EXTENDED_BATTERY_INFO,
136 fInitStatus = ioctl(fDriverHandler, GET_BATTERY_INFO, &fCachedAcpiInfo,
/haiku-fatelf/src/bin/bash/lib/readline/
H A Drltty.c41 # include <sys/ioctl.h>
83 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 (tt
[all...]
/haiku-fatelf/src/bin/gdb/readline/
H A Drltty.c41 # include <sys/ioctl.h>
150 if (ioctl (tty, TIOCGWINSZ, &w) == 0)
151 (void) ioctl (tty, TIOCSWINSZ, &w);
236 if (ioctl (tty, TIOCGETP, &(tiop->sgttyb)) < 0)
241 if (ioctl (tty, TIOCLGET, &(tiop->lflag)) == 0)
246 if (ioctl (tty, TIOCGETC, &(tiop->tchars)) == 0)
251 if (ioctl (tty, TIOCGLTC, &(tiop->ltchars)) == 0)
265 ioctl (tty, TIOCSETN, &(tiop->sgttyb));
273 ioctl (tty, TIOCLSET, &(tiop->lflag));
281 ioctl (tt
[all...]
/haiku-fatelf/src/bin/network/telnet/
H A Dsys_bsd.c85 # define tcgetattr(f, t) ioctl(f, TCGETS, (char *)t)
90 # define tcgetattr(f, t) ioctl(f, TCGETA, (char *)t)
94 # define tcgetattr(f, t) ioctl(f, TIOCGETA, (char *)t)
97 # define tcsetattr(f, a, t) ioctl(f, a, (char *)t)
156 ioctl(0, TIOCLGET, (char *)&flush);
225 (void) ioctl(fileno(stdout), TIOCFLUSH, (char *) 0);
227 (void) ioctl(fileno(stdout), TCFLSH, (char *) 0);
235 ioctl(0, TIOCGETP, (char *)&ottyb);
236 ioctl(0, TIOCGETC, (char *)&otc);
237 ioctl(
[all...]
/haiku-fatelf/src/bin/network/tcpdump/libpcap/
H A Dpcap-bpf.c35 #include <sys/ioctl.h>
129 if (ioctl(p->fd, BIOCGSTATS, (caddr_t)&s) < 0) {
348 if (ioctl(p->fd, BIOCSHDRCMPLT, &spoof_eth_src) == -1) {
624 if (ioctl(fd, BIOCVERSION, (caddr_t)&bv) < 0) {
645 if ((ioctl(fd, BIOCGBLEN, (caddr_t)&v) < 0) || v < 32768)
653 (void) ioctl(fd, BIOCSBLEN, (caddr_t)&v);
656 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) >= 0)
673 if (ioctl(fd, BIOCGDLT, (caddr_t)&v) < 0) {
745 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)&bdl) == 0) {
756 if (ioctl(f
[all...]
H A Dfad-gifc.c46 #include <sys/ioctl.h>
108 * There is no ioctl that returns the amount of space required for all
212 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) {
317 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0
380 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) {
401 if (ioctl(fd, SIOCGIFNETMASK, (char *)&ifrnetmask) < 0) {
431 if (ioctl(fd, SIOCGIFBRDADDR,
470 if (ioctl(fd, SIOCGIFDSTADDR,
H A Dfad-glifc.c46 #include <sys/ioctl.h>
127 if (ioctl(fd4, SIOCGLIFNUM, (char *)&ifn) < 0) {
156 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) {
216 if (ioctl(fd, SIOCGLIFFLAGS, (char *)&ifrflags) < 0) {
237 if (ioctl(fd, SIOCGLIFNETMASK, (char *)&ifrnetmask) < 0) {
264 if (ioctl(fd, SIOCGLIFBRDADDR,
299 if (ioctl(fd, SIOCGLIFDSTADDR,
H A Dpcap-snit.c41 #include <sys/ioctl.h>
244 if (ioctl(fd, I_STR, (char *)&si) < 0) {
256 if (ioctl(fd, I_STR, (char *)&si) < 0) {
268 struct strioctl si; /* struct for ioctl() */
312 if (ioctl(fd, I_SRDOPT, (char *)RMSGD) < 0) {
317 if (ioctl(fd, I_PUSH, "nbuf") < 0) {
327 if (ioctl(fd, I_STR, (char *)&si) < 0) {
339 if (ioctl(fd, I_STR, (char *)&si) < 0) {
349 if (ioctl(fd, I_STR, (char *)&si) < 0) {
358 (void)ioctl(f
[all...]
/haiku-fatelf/src/kits/device/
H A DSerialPort.cpp368 status_t status = ioctl(ffd, TCSETDTR, &asserted);
378 status_t status = ioctl(ffd, TCSETRTS, &asserted);
409 unsigned int bits = ioctl(ffd, TCGETBITS, 0);
424 unsigned int bits = ioctl(ffd, TCGETBITS, 0);
439 unsigned int bits = ioctl(ffd, TCGETBITS, 0);
454 unsigned int bits = ioctl(ffd, TCGETBITS, 0);
473 int err = ioctl(ffd, TCWAITEVENT, &size, sizeof size);
/haiku-fatelf/src/add-ons/accelerants/et6x00/
H A DInitAccelerant.c14 #include <sys/ioctl.h>
30 result = ioctl(fd, ET6000_GET_PRIVATE_DATA, &gpd, sizeof(gpd));
155 result = ioctl(fd, ET6000_DEVICE_NAME, &dn, sizeof(dn));
/haiku-fatelf/src/libs/util/
H A Dpty.c44 #include <sys/ioctl.h>
93 ioctl(slave, TIOCSWINSZ, (char *)winp);
136 (void) ioctl(slave, TIOCSWINSZ,
/haiku-fatelf/src/add-ons/media/media-add-ons/dvb/
H A DDVBCard.cpp30 #include <sys/ioctl.h>
149 if (ioctl(fDev, DVB_SET_TUNING_PARAMETERS, (void *)(&param)) < 0) {
269 if (ioctl(fDev, DVB_CAPTURE, &cap) < 0)
286 res = ioctl(fDev, op, arg);
290 if (i != 0) printf("ioctl %lx repeated %d times\n", op, i);
/haiku-fatelf/src/bin/
H A Didestatus.c68 if (ioctl(fd, IDE_GET_STATUS, &st, sizeof(ide_status_t *)) < 0) {
/haiku-fatelf/src/bin/network/traceroute/
H A Dfindsaddr-generic.c40 #include <sys/ioctl.h>

Completed in 310 milliseconds

1234567891011>>