/external/yaffs2/yaffs2/direct/ |
H A D | dtest.c | 593 int fd; local 597 fd = yaffs_open(path,tflags,0); 599 if((fd >= 0) != (expectedResult > 0)) 609 yaffs_close(fd);
|
H A D | yaffsfs.c | 477 int yaffs_close(int fd) argument 484 h = yaffsfs_GetHandlePointer(fd); 495 yaffsfs_PutHandle(fd); 510 int yaffs_read(int fd, void *buf, unsigned int nbyte) argument 519 h = yaffsfs_GetHandlePointer(fd); 520 obj = yaffsfs_GetHandleObject(fd); 571 int yaffs_write(int fd, const void *buf, unsigned int nbyte) argument 580 h = yaffsfs_GetHandlePointer(fd); 581 obj = yaffsfs_GetHandleObject(fd); 623 int yaffs_truncate(int fd, off_ argument 650 yaffs_lseek(int fd, off_t offset, int whence) argument 904 yaffs_fstat(int fd, struct yaffs_stat *buf) argument 974 yaffs_fchmod(int fd, mode_t mode) argument [all...] |
/external/zlib/src/contrib/iostream/ |
H A D | zfstream.cpp | 261 void gzfilestream_common::attach( int fd, int io_mode ) { argument 263 if ( !buffer.attach( fd, io_mode) ) 303 gzifstream::gzifstream( int fd, int io_mode ) : argument 306 gzfilestream_common::attach( fd, io_mode ); 323 gzofstream::gzofstream( int fd, int io_mode ) : argument 326 gzfilestream_common::attach( fd, io_mode );
|
/external/zlib/src/contrib/iostream3/ |
H A D | zfstream.cc | 79 gzfilebuf::attach(int fd, argument 95 if ((file = gzdopen(fd, char_mode)) == NULL) 388 gzifstream::gzifstream(int fd, argument 393 this->attach(fd, mode); 409 gzifstream::attach(int fd, argument 412 if (!sb.attach(fd, mode | std::ios_base::in)) 443 gzofstream::gzofstream(int fd, argument 448 this->attach(fd, mode); 464 gzofstream::attach(int fd, argument 467 if (!sb.attach(fd, mod [all...] |
/external/zlib/src/examples/ |
H A D | gzappend.c | 171 int fd; /* file descriptor */ member in struct:__anon34352 184 len = read(in->fd, in->buf, 1 << in->size); 210 if (lseek(in->fd, (off_t)bypass, SEEK_CUR) == -1) 270 gz.fd = open(name, O_RDWR, 0); 271 if (gz.fd == -1) bye("cannot open ", name); 291 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; 331 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - strm->avail_in; 340 end = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; 355 lseek(gz.fd, lastoff - (lastbit != 0), SEEK_SET); 356 if (read(gz.fd, g 390 int fd, len, ret; local [all...] |
H A D | gzjoin.c | 80 int fd; /* file descriptor */ member in struct:__anon34353 90 if (in->fd != -1) 91 close(in->fd); 108 in->fd = open(name, O_RDONLY, 0); 109 if (in->buf == NULL || in->fd == -1) { 131 len = (long)read(in->fd, in->buf + in->left, CHUNK - in->left); 182 lseek(in->fd, skip - 1, SEEK_CUR); 183 if (read(in->fd, in->buf, 1) != 1) 189 lseek(in->fd, skip - left, SEEK_CUR);
|
H A D | gzlog.c | 291 int fd; /* file descriptor for .gz file, opened read/write */ member in struct:log 350 int fd; local 354 while ((fd = open(log->path, O_CREAT | O_EXCL, 0644)) < 0) { 363 close(fd); 409 file descriptor log->fd. */ 415 if (lseek(log->fd, 0, SEEK_SET) < 0 || 416 read(log->fd, buf, HEAD + EXTRA) != HEAD + EXTRA || 450 fsync(log->fd); 451 ret = lseek(log->fd, HEAD, SEEK_SET) < 0 || 452 write(log->fd, ex 610 int fd; local 740 int fd, ret = 0; local 910 int fd, ret; local 997 int fd, ret; local [all...] |
/external/zlib/src/ |
H A D | gzguts.h | 169 int fd; /* file descriptor */ member in struct:__anon34354 170 char *path; /* path or fd for error messages */
|
/external/webrtc/src/system_wrappers/source/android/ |
H A D | cpu-features.c | 73 int fd, len; local 75 fd = open(pathname, O_RDONLY); 76 if (fd < 0) 80 len = read(fd, buffer, buffsize); 83 close(fd);
|
/external/wpa_supplicant_8/hostapd/ |
H A D | hostapd_cli.c | 1183 int fd, res; local 1188 fd = wpa_ctrl_get_fd(ctrl); 1192 FD_SET(fd, &rfds); 1195 res = select(fd + 1, &rfds, NULL, NULL, &tv); 1201 if (FD_ISSET(fd, &rfds))
|
/external/wpa_supplicant_8/hostapd/src/ap/ |
H A D | vlan_init.c | 40 int fd; local 43 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { 52 if (ioctl(fd, SIOCGIFFLAGS, &ifr) != 0) { 56 close(fd); 65 if (ioctl(fd, SIOCSIFFLAGS, &ifr) != 0) { 69 close(fd); 73 close(fd); 107 int fd; local 113 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { 125 close(fd); 158 int fd; local 207 int fd; local 242 int fd; local 292 int fd; local 337 int fd; local 380 int fd; local 447 int fd; local [all...] |
/external/wpa_supplicant_8/hostapd/src/common/ |
H A D | wpa_helpers.c | 103 int fd, ret; local 110 fd = wpa_ctrl_get_fd(mon); 111 if (fd < 0) 119 FD_SET(fd, &rfd); 122 ret = select(fd + 1, &rfd, NULL, NULL, &tv);
|
/external/wpa_supplicant_8/hostapd/src/crypto/ |
H A D | random.c | 216 int fd; local 233 fd = open("/dev/random", O_RDONLY | O_NONBLOCK); 234 if (fd < 0) { 244 res = read(fd, dummy_key + dummy_key_avail, 255 close(fd);
|
H A D | tls_nss.c | 34 PRFileDesc *fd; member in struct:tls_connection 43 static PRStatus nss_io_close(PRFileDesc *fd) argument 50 static PRInt32 nss_io_read(PRFileDesc *fd, void *buf, PRInt32 amount) argument 57 static PRInt32 nss_io_write(PRFileDesc *fd, const void *buf, PRInt32 amount) argument 64 static PRInt32 nss_io_writev(PRFileDesc *fd, const PRIOVec *iov, argument 72 static PRInt32 nss_io_recv(PRFileDesc *fd, void *buf, PRInt32 amount, argument 75 struct tls_connection *conn = (struct tls_connection *) fd->secret; 104 static PRInt32 nss_io_send(PRFileDesc *fd, const void *buf, PRInt32 amount, argument 107 struct tls_connection *conn = (struct tls_connection *) fd->secret; 127 static PRInt32 nss_io_recvfrom(PRFileDesc *fd, voi argument 136 nss_io_sendto(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout) argument 145 nss_io_getpeername(PRFileDesc *fd, PRNetAddr *addr) argument 161 nss_io_getsocketoption(PRFileDesc *fd, PRSocketOptionData *data) argument 286 nss_bad_cert_cb(void *arg, PRFileDesc *fd) argument 316 nss_handshake_cb(PRFileDesc *fd, void *client_data) argument [all...] |
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | driver_roboswitch.c | 61 int fd, is_5350; member in struct:wpa_driver_roboswitch_data 93 if (ioctl(drv->fd, SIOCGMIIREG, &drv->ifr) < 0) { 110 if (ioctl(drv->fd, SIOCSMIIREG, &drv->ifr) < 0) { 387 drv->fd = socket(PF_INET, SOCK_DGRAM, 0); 388 if (drv->fd < 0) { 396 if (ioctl(drv->fd, SIOCGMIIPHY, &drv->ifr) < 0) { 459 close(drv->fd);
|
H A D | rfkill.c | 48 int fd; member in struct:rfkill_data 60 len = read(rfkill->fd, &event, sizeof(event)); 111 rfkill->fd = open("/dev/rfkill", O_RDONLY); 112 if (rfkill->fd < 0) { 118 if (fcntl(rfkill->fd, F_SETFL, O_NONBLOCK) < 0) { 125 len = read(rfkill->fd, &event, sizeof(event)); 155 eloop_register_read_sock(rfkill->fd, rfkill_receive, rfkill, NULL); 160 close(rfkill->fd); 172 if (rfkill->fd >= 0) { 173 eloop_unregister_read_sock(rfkill->fd); [all...] |
/external/wpa_supplicant_8/hostapd/src/l2_packet/ |
H A D | l2_packet_linux.c | 20 int fd; /* packet socket for EAPOL frames */ member in struct:l2_packet_data 46 ret = send(l2->fd, buf, len, 0); 58 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll, 109 l2->fd = socket(PF_PACKET, l2_hdr ? SOCK_RAW : SOCK_DGRAM, 111 if (l2->fd < 0) { 119 if (ioctl(l2->fd, SIOCGIFINDEX, &ifr) < 0) { 122 close(l2->fd); 132 if (bind(l2->fd, (struct sockaddr *) &ll, sizeof(ll)) < 0) { 135 close(l2->fd); 140 if (ioctl(l2->fd, SIOCGIFHWADD [all...] |
H A D | l2_packet_none.c | 26 int fd; member in struct:l2_packet_data 86 l2->fd = -1; 87 if (l2->fd >= 0) 88 eloop_register_read_sock(l2->fd, l2_packet_receive, l2, NULL); 99 if (l2->fd >= 0) { 100 eloop_unregister_read_sock(l2->fd);
|
H A D | l2_packet_privsep.c | 19 int fd; /* UNIX domain socket for privsep access */ member in struct:l2_packet_data 46 if (sendmsg(l2->fd, &msg, 0) < 0) { 84 if (sendmsg(l2->fd, &msg, 0) < 0) { 163 l2->fd = socket(PF_UNIX, SOCK_DGRAM, 0); 164 if (l2->fd < 0) { 175 if (bind(l2->fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 189 FD_SET(l2->fd, &rfds); 192 res = select(l2->fd + 1, &rfds, NULL, NULL, &tv); 198 if (FD_ISSET(l2->fd, &rfds)) { 199 res = recv(l2->fd, repl [all...] |
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | eloop.c | 280 ev.data.fd = sock; 282 wpa_printf(MSG_ERROR, "%s: epoll_ctl(ADD) for fd=%d " 321 wpa_printf(MSG_ERROR, "%s: epoll_ctl(DEL) for fd=%d " 332 static struct pollfd * find_pollfd(struct pollfd **pollfds_map, int fd, int mx) argument 334 if (fd < mx && fd >= 0) 335 return pollfds_map[fd]; 349 int fd; local 357 fd = readers->table[i].sock; 358 assert(fd > [all...] |
/external/wpa_supplicant_8/hostapd/src/wps/ |
H A D | http_server.c | 24 int fd; member in struct:http_request 33 int fd; member in struct:http_server 61 static struct http_request * http_request_init(struct http_server *srv, int fd, argument 76 req->fd = fd; 79 req->hread = httpread_create(req->fd, http_request_cb, req, 116 close(req->fd); 141 res = send(req->fd, wpabuf_head(resp), wpabuf_len(resp), 0); 207 conn = accept(srv->fd, (struct sockaddr *) &addr, &addr_len); 243 srv->fd [all...] |
/external/wpa_supplicant_8/src/ap/ |
H A D | vlan_init.c | 40 int fd; local 43 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { 52 if (ioctl(fd, SIOCGIFFLAGS, &ifr) != 0) { 56 close(fd); 65 if (ioctl(fd, SIOCSIFFLAGS, &ifr) != 0) { 69 close(fd); 73 close(fd); 107 int fd; local 113 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { 125 close(fd); 158 int fd; local 207 int fd; local 242 int fd; local 292 int fd; local 337 int fd; local 380 int fd; local 447 int fd; local [all...] |
/external/wpa_supplicant_8/src/common/ |
H A D | wpa_helpers.c | 103 int fd, ret; local 110 fd = wpa_ctrl_get_fd(mon); 111 if (fd < 0) 119 FD_SET(fd, &rfd); 122 ret = select(fd + 1, &rfd, NULL, NULL, &tv);
|
/external/wpa_supplicant_8/src/crypto/ |
H A D | random.c | 216 int fd; local 233 fd = open("/dev/random", O_RDONLY | O_NONBLOCK); 234 if (fd < 0) { 244 res = read(fd, dummy_key + dummy_key_avail, 255 close(fd);
|
H A D | tls_nss.c | 34 PRFileDesc *fd; member in struct:tls_connection 43 static PRStatus nss_io_close(PRFileDesc *fd) argument 50 static PRInt32 nss_io_read(PRFileDesc *fd, void *buf, PRInt32 amount) argument 57 static PRInt32 nss_io_write(PRFileDesc *fd, const void *buf, PRInt32 amount) argument 64 static PRInt32 nss_io_writev(PRFileDesc *fd, const PRIOVec *iov, argument 72 static PRInt32 nss_io_recv(PRFileDesc *fd, void *buf, PRInt32 amount, argument 75 struct tls_connection *conn = (struct tls_connection *) fd->secret; 104 static PRInt32 nss_io_send(PRFileDesc *fd, const void *buf, PRInt32 amount, argument 107 struct tls_connection *conn = (struct tls_connection *) fd->secret; 127 static PRInt32 nss_io_recvfrom(PRFileDesc *fd, voi argument 136 nss_io_sendto(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout) argument 145 nss_io_getpeername(PRFileDesc *fd, PRNetAddr *addr) argument 161 nss_io_getsocketoption(PRFileDesc *fd, PRSocketOptionData *data) argument 286 nss_bad_cert_cb(void *arg, PRFileDesc *fd) argument 316 nss_handshake_cb(PRFileDesc *fd, void *client_data) argument [all...] |