Searched refs:fd (Results 151 - 175 of 1316) sorted by relevance

1234567891011>>

/external/qemu/distrib/sdl-1.2.15/src/video/svga/
H A DSDL_svgaevents_c.h29 extern int SVGA_initkeymaps(int fd);
/external/qemu/target-i386/
H A Dhax-windows.c20 static int hax_open_device(hax_fd *fd) argument
25 if (!fd)
44 *fd = hDevice;
45 dprint("device fd:%d\n", *fd);
53 hax_fd fd; local
55 ret = hax_open_device(&fd);
59 return fd;
69 if (!hax_global.vm || !hax_global.vm->fd)
78 hDeviceVM = hax_global.vm->fd;
402 hax_fd fd; local
435 hax_fd fd; local
467 hax_fd fd; local
500 hax_fd fd; local
[all...]
/external/webkit/Source/WebKit/android/wds/client/
H A Dmain.cpp51 int fd = socket(PF_INET, SOCK_STREAM, 0); local
52 if (fd < 0) {
57 if (connect(fd, (sockaddr*)&addr, sizeof(addr)) < 0) {
61 return fd;
65 void wds_close(int fd) { argument
66 if (fd != -1) {
67 shutdown(fd, SHUT_RDWR);
68 close(fd);
/external/chromium/net/tools/flip_server/
H A Depoll_server.h24 // as well as providing a per-fd-registered summary of
68 // fd - the file descriptor which was registered
72 virtual void OnRegistration(EpollServer* eps, int fd, int event_mask) = 0;
77 // fd - the file descriptor which was registered
81 virtual void OnModification(int fd, int event_mask) = 0;
87 // fd - the file descriptor which was registered
92 // this fd on the ready list.
93 virtual void OnEvent(int fd, EpollEvent* event) = 0;
98 // fd - the file descriptor which was registered, and of this call, is now
102 virtual void OnUnregistration(int fd, boo
496 SetFlags(int fd, int flags) argument
529 CBAndEventMask(EpollCallbackInterface* cb, int event_mask, int fd) argument
550 int fd; member in struct:net::EpollServer::CBAndEventMask
764 RecordFDMaskEvent(int fd, int mask, const char* function) argument
778 RecordEpollEvent(int fd, int event_mask) argument
801 RecordUnregistration(int fd) argument
823 FDMaskOutput(int fd, int mask, const char* function) argument
[all...]
/external/elfutils/lib/
H A Dcrc32_file.c56 crc32_file (int fd, uint32_t *resp) argument
64 if (fstat (fd, &st) == 0)
68 void *mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0);
75 fd, 0)) == MAP_FAILED && errno == ENOMEM)
92 fd, off) == mapped);
97 while ((count = TEMP_FAILURE_RETRY (pread (fd, buffer, sizeof buffer,
/external/kernel-headers/original/asm-x86/
H A Dposix_types_32.h52 #define __FD_SET(fd,fdsetp) \
54 "+m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd)))
57 #define __FD_CLR(fd,fdsetp) \
59 "+m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd)))
62 #define __FD_ISSET(fd,fdsetp) (__extension__ ({ \
65 :"=q" (__result) :"r" ((int) (fd)), \
/external/libselinux/src/
H A Dcanonicalize_context.c18 int fd, ret; local
26 fd = open(path, O_RDWR);
27 if (fd < 0)
38 ret = write(fd, buf, strlen(buf) + 1);
43 ret = read(fd, buf, size - 1);
59 close(fd);
H A Dcompute_av.c22 int fd, ret; local
30 fd = open(path, O_RDWR);
31 if (fd < 0)
44 ret = write(fd, buf, strlen(buf));
49 ret = read(fd, buf, len - 1);
69 close(fd);
H A Dcompute_create.c21 int fd, ret; local
29 fd = open(path, O_RDWR);
30 if (fd < 0)
41 ret = write(fd, buf, strlen(buf));
46 ret = read(fd, buf, size - 1);
59 close(fd);
/external/openssh/
H A Dmsg.c44 ssh_msg_send(int fd, u_char type, Buffer *m) argument
53 if (atomicio(vwrite, fd, buf, sizeof(buf)) != sizeof(buf)) {
57 if (atomicio(vwrite, fd, buffer_ptr(m), mlen) != mlen) {
65 ssh_msg_recv(int fd, Buffer *m) argument
72 if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) {
84 if (atomicio(read, fd, buffer_ptr(m), msg_len) != msg_len) {
H A Dsshpty.c106 int fd; local
115 fd = open(tty, O_RDWR|O_NOCTTY);
116 if (fd != -1) {
118 ioctl(fd, TCVHUP, (char *)NULL);
121 close(fd);
128 fd = open("/dev/tty", O_RDWR);
129 if (fd < 0)
132 *ttyfd = fd;
137 fd = open(_PATH_TTY, O_RDWR | O_NOCTTY);
138 if (fd >
[all...]
H A Dmonitor_fdpass.c47 mm_send_fd(int sock, int fd) argument
65 msg.msg_accrights = (caddr_t)&fd;
66 msg.msg_accrightslen = sizeof(fd);
74 *(int *)CMSG_DATA(cmsg) = fd;
82 pfd.fd = sock;
86 debug3("%s: sendmsg(%d): %s", __func__, fd, strerror(errno));
90 error("%s: sendmsg(%d): %s", __func__, fd,
122 int fd; local
131 msg.msg_accrights = (caddr_t)&fd;
132 msg.msg_accrightslen = sizeof(fd);
[all...]
/external/sonivox/arm-wt-22k/host_src/
H A Deas_hostmm.c92 int fd; member in struct:eas_hw_file_tag
125 file->fd = -1;
241 int fd; local
256 if (file->fd < 0)
260 if ((fd = open(locator->path, O_RDONLY)) < 0) {
265 fd = dup(locator->fd);
270 if (lseek(fd, 0, SEEK_END) < 0) {
271 close(fd);
274 if ((file->fileSize = lseek(fd,
[all...]
/external/bison/lib/
H A Dfcntl.c52 /* Mingw has no way to create an arbitrary fd. Iterate until all
155 F_DUPFD - duplicate FD, with int ARG being the minimum target fd.
160 target fd. If successful, return the duplicate, which will not be
169 rpl_fcntl (int fd, int action, /* arg */...) argument
181 result = dupfd (fd, target, 0);
193 /* Haiku alpha 2 loses fd flags on original. */
194 int flags = fcntl (fd, F_GETFD);
200 result = fcntl (fd, action, target);
201 if (0 <= result && fcntl (fd, F_SETFD, flags) == -1)
210 result = _gl_register_dup (fd, resul
[all...]
/external/qemu/
H A Daio.c32 int fd; member in struct:AioHandler
42 static AioHandler *find_aio_handler(int fd) argument
47 if (node->fd == fd)
55 int qemu_aio_set_fd_handler(int fd, argument
64 node = find_aio_handler(fd);
66 /* Are we deleting the fd handler? */
85 node->fd = fd;
96 qemu_set_fd_handler2(fd, NUL
[all...]
/external/bluetooth/bluedroid/stack/include/
H A Dgoep_fs.h102 tGOEP_FD fd; member in struct:__anon1390
110 tGOEP_FD fd; member in struct:__anon1391
118 tGOEP_FD fd; member in struct:__anon1392
163 typedef void (tGOEP_CLOSE_CBACK) (tGOEP_FD fd, UINT8 app_id);
182 typedef void (tGOEP_READ_CBACK) (tGOEP_FD fd, void *p_data, INT16 size,
200 typedef void (tGOEP_WRITE_CBACK) (tGOEP_FD fd, const void *p_data, INT16 size,
214 typedef void (tGOEP_SEEK_CBACK) (tGOEP_FD fd, INT32 offset, INT16 origin, UINT8 app_id);
328 ** Parameters: fd - File handle.
336 GOEP_API extern void GOEP_OpenRsp (tGOEP_FD fd, tGOEP_STATUS status,
345 ** Parameters: fd
[all...]
/external/qemu/android/utils/
H A Dtempfile.c142 atexit_fds_add( AtExitFds* t, int fd )
145 t->fds[t->count++] = fd;
153 atexit_fds_del( AtExitFds* t, int fd )
157 if (t->fds[nn] == fd) {
176 atexit_close_fd(int fd) argument
178 if (fd >= 0)
179 atexit_fds_add(_atexit_fds, fd);
183 atexit_close_fd_remove(int fd) argument
185 if (fd >= 0)
186 atexit_fds_del(_atexit_fds, fd);
[all...]
/external/bluetooth/bluedroid/hci/src/
H A Duserial_mct.c79 int fd[CH_MAX]; member in struct:__anon1042
153 /* Initialize the input fd set */
157 FD_SET(userial_cb.fd[CH_EVT], &input);
158 FD_SET(userial_cb.fd[CH_ACL_IN], &input);
162 fd_max = (fd_max>userial_cb.fd[CH_EVT]) ? fd_max : userial_cb.fd[CH_EVT];
163 fd_max = (fd_max>userial_cb.fd[CH_ACL_IN]) ? fd_max : userial_cb.fd[CH_ACL_IN];
192 if (FD_ISSET(userial_cb.fd[CH_EVT], &input))
197 if (FD_ISSET(userial_cb.fd[CH_ACL_I
[all...]
/external/dhcpcd/
H A Dbpf.c54 int fd = -1; local
64 fd = open(_PATH_BPF, O_RDWR | O_NONBLOCK);
72 fd = open(device, O_RDWR | O_NONBLOCK);
73 } while (fd == -1 && errno == EBUSY);
77 if (fd == -1)
80 if (ioctl(fd, BIOCVERSION, &pv) == -1)
90 if (ioctl(fd, BIOCSETIF, &ifr) == -1)
94 if (ioctl(fd, BIOCGBLEN, &buf_len) == -1)
105 if (ioctl(fd, BIOCIMMEDIATE, &flags) == -1)
119 if (ioctl(fd, BIOCSET
143 int fd; local
165 int fd = -1; local
[all...]
/external/iproute2/misc/
H A Drtacct.c79 void nread(int fd, char *buf, int tot) argument
84 int n = read(fd, buf+count, tot-count);
100 int fd; local
106 fd = open("/dev/mem", O_RDONLY);
107 if (fd < 0) {
114 fd, magic_number);
119 close(fd);
123 fd = net_rtacct_open();
124 if (fd >= 0) {
125 nread(fd, (cha
334 send_db(int fd) argument
364 server_loop(int fd) argument
413 verify_forging(int fd) argument
441 int fd; local
[all...]
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dvlan_init.c46 int fd; local
49 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
58 if (ioctl(fd, SIOCGIFFLAGS, &ifr) != 0) {
62 close(fd);
71 if (ioctl(fd, SIOCSIFFLAGS, &ifr) != 0) {
75 close(fd);
79 close(fd);
113 int fd; local
119 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
131 close(fd);
164 int fd; local
213 int fd; local
248 int fd; local
298 int fd; local
343 int fd; local
386 int fd; local
453 int fd; local
[all...]
/external/wpa_supplicant_8/src/ap/
H A Dvlan_init.c46 int fd; local
49 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
58 if (ioctl(fd, SIOCGIFFLAGS, &ifr) != 0) {
62 close(fd);
71 if (ioctl(fd, SIOCSIFFLAGS, &ifr) != 0) {
75 close(fd);
79 close(fd);
113 int fd; local
119 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
131 close(fd);
164 int fd; local
213 int fd; local
248 int fd; local
298 int fd; local
343 int fd; local
386 int fd; local
453 int fd; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dvlan_init.c46 int fd; local
49 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
58 if (ioctl(fd, SIOCGIFFLAGS, &ifr) != 0) {
62 close(fd);
71 if (ioctl(fd, SIOCSIFFLAGS, &ifr) != 0) {
75 close(fd);
79 close(fd);
113 int fd; local
119 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
131 close(fd);
164 int fd; local
213 int fd; local
248 int fd; local
298 int fd; local
343 int fd; local
386 int fd; local
453 int fd; local
[all...]
/external/bluetooth/bluedroid/btif/co/
H A Dbta_hh_co.c40 static int uhid_write(int fd, const struct uhid_event *ev) argument
43 ret = write(fd, ev, sizeof(*ev));
68 ret = read(p_dev->fd, &ev, sizeof(ev));
162 APPL_TRACE_DEBUG2("%s: Thread created fd = %d", __FUNCTION__, p_dev->fd);
165 pfds[0].fd = p_dev->fd;
197 void bta_hh_co_destroy(int fd) argument
202 uhid_write(fd, &ev);
203 close(fd);
206 bta_hh_co_write(int fd, UINT8* rpt, UINT16 len) argument
[all...]
/external/elfutils/tests/
H A Darextract.c42 int fd; local
53 fd = open (argv[1], O_RDONLY);
54 if (fd == -1)
65 elf = elf_begin (fd, cmd, NULL);
80 while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
118 ssize_t n = pread (fd, buf, MIN (sizeof buf, todo), offset);
147 close (fd);

Completed in 732 milliseconds

1234567891011>>