Searched defs:addr (Results 26 - 50 of 56) sorted by relevance

123

/system/core/libcorkscrew/
H A Dsymbol_table.c49 uintptr_t addr = *(const uintptr_t*)key; local
51 if (addr < symbol->start) return -1;
52 if (addr >= symbol->end) return 1;
215 const symbol_t* find_symbol(const symbol_table_t* table, uintptr_t addr) { argument
217 return (const symbol_t*)bsearch(&addr, table->symbols, table->num_symbols,
/system/core/libcutils/
H A Dproperties.c98 struct sockaddr_un addr; local
107 strcpy(addr.sun_path, fileName); // max 108 bytes
108 addr.sun_family = AF_UNIX;
109 cc = connect(sock, (struct sockaddr*) &addr, SUN_LEN(&addr));
/system/core/libnl_2/
H A Dnetlink.c250 struct sockaddr addr; local
268 addrlen = sizeof(addr);
269 getsockname(sk->s_fd, &addr, &addrlen);
/system/core/libpixelflinger/codeflinger/
H A Dload_store.cpp31 void GGLAssembler::store(const pointer_t& addr, const pixel_t& s, uint32_t flags) argument
33 const int bits = addr.size;
37 if (inc) STR(AL, s.reg, addr.reg, immed12_post(4));
38 else STR(AL, s.reg, addr.reg);
43 STRB(AL, s.reg, addr.reg, immed12_pre(0));
45 STRB(AL, s.reg, addr.reg, immed12_pre(1));
47 STRB(AL, s.reg, addr.reg, immed12_pre(2));
52 ADD(AL, 0, addr.reg, addr.reg, imm(3));
55 if (inc) STRH(AL, s.reg, addr
65 load(const pointer_t& addr, const pixel_t& s, uint32_t flags) argument
[all...]
/system/core/libsysutils/src/
H A DSocketListener.cpp188 struct sockaddr addr; local
193 alen = sizeof(addr);
194 c = accept(mSock, &addr, &alen);
/system/core/netcfg/
H A Dnetcfg.c37 const char *ipaddr(in_addr_t addr) argument
41 in_addr.s_addr = addr;
53 unsigned addr, flags; local
57 if(ifc_get_info(name, &addr, &prefixLength, &flags)) {
62 printf("%40s", ipaddr(addr));
93 struct ether_addr *addr = ether_aton(asc); local
94 if (!addr) {
98 return ifc_set_hwaddr(name, addr->ether_addr_octet);
/system/core/toolbox/
H A Dnetstat.c74 /* addr + : + port + \0 */
77 static void addr2str(int af, const void *addr, unsigned port, char *buf) argument
79 if (inet_ntop(af, addr, buf, ADDR_LEN) == NULL) {
/system/bluetooth/tools/
H A Dsock_shutdown_test.c123 struct sockaddr *addr = NULL; local
128 addr = (struct sockaddr *) &local_addr_un;
132 addr = (struct sockaddr *) &local_addr_rc;
136 addr = (struct sockaddr *) &local_addr_sco;
140 addr = (struct sockaddr *) &local_addr_l2;
144 addr = (struct sockaddr *) &local_addr_in;
150 ret = bind(fd, addr, len);
171 struct sockaddr *addr = NULL; local
175 addr = (struct sockaddr *) &remote_addr_un;
179 addr
[all...]
H A Dasocket_test.c141 struct sockaddr *addr = NULL; local
146 addr = (struct sockaddr *) &local_addr_un;
150 addr = (struct sockaddr *) &local_addr_rc;
154 addr = (struct sockaddr *) &local_addr_sco;
158 addr = (struct sockaddr *) &local_addr_l2;
162 addr = (struct sockaddr *) &local_addr_in;
168 ret = bind(fd, addr, len);
202 struct sockaddr *addr = NULL; local
206 addr = (struct sockaddr *) &remote_addr_un;
210 addr
241 struct sockaddr *addr = NULL; local
[all...]
H A Dsocktest.c140 struct sockaddr *addr = NULL; local
145 addr = (struct sockaddr *) &local_addr_un;
149 addr = (struct sockaddr *) &local_addr_rc;
153 addr = (struct sockaddr *) &local_addr_sco;
157 addr = (struct sockaddr *) &local_addr_l2;
161 addr = (struct sockaddr *) &local_addr_in;
167 ret = bind(fd, addr, len);
201 struct sockaddr *addr = NULL; local
205 addr = (struct sockaddr *) &remote_addr_un;
209 addr
254 struct sockaddr *addr = NULL; local
[all...]
/system/core/adb/
H A Dtransport_local.c157 struct sockaddr addr; local
174 alen = sizeof(addr);
176 fd = adb_socket_accept(serverfd, &addr, &alen);
H A Djdwp_service.c452 struct sockaddr_un addr; local
455 int maxpath = sizeof(addr.sun_path);
464 memset(&addr, 0, sizeof(addr));
465 addr.sun_family = AF_UNIX;
466 memcpy(addr.sun_path, sockname, socknamelen);
475 addrlen = (pathlen + sizeof(addr.sun_family));
477 if (bind(s, (struct sockaddr*)&addr, addrlen) < 0) {
515 struct sockaddr addr; local
516 socklen_t addrlen = sizeof(addr);
[all...]
H A Dsysdeps.h214 extern int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen);
400 static __inline__ int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen) argument
404 fd = accept(serverfd, addr, addrlen);
/system/core/libcorkscrew/arch-mips/
H A Dbacktrace-mips.c82 uintptr_t addr; local
95 for (addr = state->pc; maxcheck-- > 0 && !found_start; addr -= 4) {
97 if (!try_get_word(memory, addr, &op))
100 // ALOGV("@0x%08x: 0x%08x\n", addr, op);
109 ALOGV("@0x%08x: found stack adjustment=%d\n", addr, stack_size);
115 ALOGV("@0x%08x: found ra offset=%d\n", addr, ra_offset);
118 ALOGV("@0x%08x: found function boundary\n", addr);
/system/core/libnetutils/
H A Ddhcp_utils.c159 static const char *ipaddr_to_string(in_addr_t addr) argument
163 in_addr.s_addr = addr;
H A Ddhcpclient.c88 const char *ipaddr(in_addr_t addr) argument
92 in_addr.s_addr = addr;
153 char addr[20], gway[20], mask[20]; local
156 strcpy(addr, ipaddr(info->ipaddr));
158 ALOGD("ip %s gw %s prefixLength %d", addr, gway, info->prefixLength);
533 printerr("failed to set ip addr for %s to 0.0.0.0: %s\n", iname, strerror(errno));
/system/extras/tests/directiotest/
H A Ddirectiotest.c63 static void pagealign_free(void *addr, size_t size) argument
65 int ret = munmap(addr, size);
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp41 SockInfo() : fd(-1), addr(NULL) {};
45 void *addr; member in class:android::SockInfo
122 * return it when *addr == NULL.
152 if (addr) {
154 asprintf(&match_template, "sock=%lx %s", addr, "tag=0x%llx (uid=%u)");
167 if (pos && !addr) {
171 &addr, &k_tag, &k_uid, &dummy_pid, &dummy_count );
173 testPrintE("Unable to read sock addr res=%d", res);
174 addr = 0;
177 testPrintI("Got sock_addr %lx", addr);
[all...]
/system/netd/
H A DDnsProxyListener.cpp194 void* addr = malloc(sizeof(struct in6_addr)); local
196 int result = inet_pton(addrFamily, addrStr, addr);
202 free(addr);
209 new DnsProxyListener::GetHostByAddrHandler(cli, addr, addrLen, addrFamily);
/system/core/debuggerd/
H A Ddebuggerd.c456 struct sockaddr addr; local
460 alen = sizeof(addr);
462 fd = accept(s, &addr, &alen);
H A Dtombstone.c157 _LOG(log, false, "signal %d (%s), code %d (%s), fault addr %08x\n",
162 _LOG(log, false, "signal %d (%s), code %d (%s), fault addr --------\n",
342 uintptr_t addr = (uintptr_t) si.si_addr; local
343 addr &= ~0xfff; /* round to 4K page boundary */
344 if (addr == 0) { /* null-pointer deref */
348 _LOG(log, false, "\nmemory map around fault addr %08x:\n", (int)si.si_addr);
358 if (addr >= map->start && addr < map->end) {
361 } else if (addr >= map->end) {
/system/core/init/
H A Dproperty_service.c416 struct sockaddr_un addr; local
417 socklen_t addr_size = sizeof(addr);
421 if ((s = accept(property_set_fd, (struct sockaddr *) &addr, &addr_size)) < 0) {
H A Dutil.c90 struct sockaddr_un addr; local
102 memset(&addr, 0 , sizeof(addr));
103 addr.sun_family = AF_UNIX;
104 snprintf(addr.sun_path, sizeof(addr.sun_path), ANDROID_SOCKET_DIR"/%s",
107 ret = unlink(addr.sun_path);
116 ret = selabel_lookup(sehandle, &secon, addr.sun_path, S_IFSOCK);
122 ret = bind(fd, (struct sockaddr *) &addr, sizeof (addr));
[all...]
/system/extras/ext4_utils/
H A Dext4_utils.h49 static inline void *mmap64(void *addr, size_t length, int prot, int flags, argument
52 return __mmap2(addr, length, prot, flags, fd, offset >> 12);
/system/extras/tests/memtest/
H A Dmemtest.cpp63 static void preload(volatile char* addr, size_t s) argument
66 char c = addr[i];
599 void* addr = malloc(size); local
600 if (addr == 0) {
605 printf("size = %9zd, addr = %p (total = %9zd (%zd MB))\n",
606 size, addr, total, total / (1024*1024));
610 memset(addr, 0, size);

Completed in 121 milliseconds

123