/system/core/toolbox/ |
H A D | route.c | 42 static inline int set_address(const char *address, struct sockaddr *sa) { argument 43 return inet_aton(address, &((struct sockaddr_in *)sa)->sin_addr);
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_udp.c | 31 printf(" -a<inet> use specific IP address\n"); 41 int address = htonl(INADDR_ANY); local 68 address = si_other.sin_addr.s_addr; 83 si_me.sin_addr.s_addr = address; 106 si_other.sin_addr.s_addr = address;
|
/system/core/libpixelflinger/codeflinger/ |
H A D | disassem.c | 77 * a - address operand of ldr/str instruction 78 * e - address operand of ldrh/strh instruction 86 * b - branch address 87 * t - thumb branch address (bits 24, 0-23) 300 static u_int disassemble_readword(u_int address); 301 static void disassemble_printaddr(u_int address); 382 /* a - address operand of ldr/str instruction */ 386 /* e - address operand of ldrh/strh instruction */ 421 /* b - branch address */ 428 /* t - blx address */ 692 disassemble_readword(u_int address) argument 698 disassemble_printaddr(u_int address) argument 708 disassemble(u_int address) argument [all...] |
/system/core/run-as/ |
H A D | package.c | 72 /* Open 'filename' and map it into our address-space. 73 * Returns buffer address, or NULL on error 82 void* address = NULL; local 132 address = mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0); 133 } while (address == MAP_FAILED && errno == EINTR); 134 if (address == MAP_FAILED) { 135 address = NULL; 148 return address; 153 unmap_file(void* address, size_t size) argument 156 TEMP_FAILURE_RETRY(munmap(address, siz [all...] |
/system/extras/procmem/ |
H A D | procmem.c | 57 unsigned long address; uint64_t mapentry; local 192 address = pm_map_start(mi->map) + j * ker->pagesize;
|
/system/netd/server/ |
H A D | DnsProxyListener.cpp | 391 void* address, 397 mAddress(address), 390 GetHostByAddrHandler(SocketClient* c, void* address, int addressLen, int addressFamily, unsigned netId, uint32_t mark) argument
|
H A D | NetdConstants.cpp | 177 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { argument 178 if (!prefix || !family || !address || !prefixlen) { 182 // Find the '/' separating address from prefix length. 197 // Copy the address part of the prefix to a local buffer. We have to copy 198 // because inet_pton and getaddrinfo operate on null-terminated address 199 // strings, but prefix is const and has '/' after the address. 202 // Parse the address. 212 // Convert the address string to raw address bytes. 246 memcpy(address, rawAddres [all...] |
H A D | NetlinkHandler.cpp | 77 const char *address = evt->findParam("ADDRESS"); local 80 if (action == evt->NlActionAddressRemoved && iface && address) { 81 int resetMask = strchr(address, ':') ? RESET_IPV6_ADDRESSES : RESET_IPV4_ADDRESSES; 84 ALOGE("ifc_reset_connections failed on iface %s for address %s (%s)", iface, 85 address, strerror(ret)); 89 notifyAddressChanged(action, address, iface, flags, scope);
|
/system/core/debuggerd/ |
H A D | tombstone.cpp | 357 _LOG(log, logtype::MAPS, "\nmemory map: %s\n", has_fault_address ? "(fault address prefixed with --->)" : ""); 360 _LOG(log, logtype::MAPS, "--->Fault address falls at %" PRIPTR " before any mapped regions\n", addr); 366 _LOG(log, logtype::MAPS, "--->Fault address falls at %" PRIPTR " between mapped regions\n", addr); 373 _LOG(log, logtype::MAPS, "--->Fault address falls at %" PRIPTR " after any mapped regions\n", addr); 573 static void dump_abort_message(Backtrace* backtrace, log_t* log, uintptr_t address) { argument 574 if (address == 0) { 578 address += sizeof(size_t); // Skip the buffer length. 586 if (!backtrace->ReadWord(address, &data)) { 589 address += sizeof(word_t); 711 struct sockaddr_un address; local [all...] |
/system/core/libnetutils/ |
H A D | ifc_utils.c | 244 * Adds or deletes an IP address on an interface. 247 * - RTM_NEWADDR (to add a new address) 248 * - RTM_DELADDR (to delete an existing address) 252 int ifc_act_on_address(int action, const char *name, const char *address, argument 261 // Allow for IPv6 address, headers, and padding. 280 ret = string_to_ip(address, &ss); 285 // Determine address type and length. 307 // Interface address message header. 312 // Routing attribute. Contains the actual IP address. 342 int ifc_add_address(const char *name, const char *address, in argument 346 ifc_del_address(const char *name, const char * address, int prefixlen) argument 664 ifc_configure(const char *ifname, in_addr_t address, uint32_t prefixLength, in_addr_t gateway, in_addr_t dns1, in_addr_t dns2) argument [all...] |
/system/extras/f2fs_utils/ |
H A D | f2fs_sparseblock.c | 321 off64_t address = info->sit_blkaddr + sit_block; local 324 address += info->blocks_per_sit; 326 SLOGD("Reading cache block starting at block %"PRIu64, address); 327 if (read_structure(fd, address * F2FS_BLKSIZE, &info->sit_blocks[sit_block], sizeof(struct f2fs_sit_block))) { 328 SLOGE("Could not read sit block at block %"PRIu64, address);
|
/system/core/include/system/ |
H A D | audio.h | 35 /* device address used to refer to the standard remote submix */ 876 /* maximum audio device address length */ 884 char address[AUDIO_DEVICE_MAX_ADDRESS_LEN]; /* device address. "" if N/A */ member in struct:audio_port_config_device_ext 947 char address[AUDIO_DEVICE_MAX_ADDRESS_LEN]; member in struct:audio_port_device_ext 1354 /* converts device address to string sent to audio HAL via set_parameters */ 1355 static char *audio_device_address_to_parameter(audio_devices_t device, const char *address) argument 1361 snprintf(param, kSize, "%s=%s", "a2dp_sink_address", address); 1363 snprintf(param, kSize, "%s=%s", "mix", address); 1365 snprintf(param, kSize, "%s", address); [all...] |