Searched refs:name (Results 51 - 75 of 195) sorted by last modified time

12345678

/bionic/libc/bionic/
H A Dlibc_init_common.cpp174 // starts with '<name>=', and if so return the address of the
176 static const char* env_match(const char* envstr, const char* name) { argument
179 while (envstr[i] == name[i] && name[i] != '\0') {
183 if (name[i] == '\0' && envstr[i] == '=') {
190 static bool __is_valid_environment_variable(const char* name) { argument
195 if (name == nullptr) {
203 if (name[pos] == '\0') {
206 if (name[pos] == '=' && first_equal_pos < 0) {
225 static bool __is_unsafe_environment_variable(const char* name) { argument
[all...]
H A Dmalloc_info.cpp24 // name must be valid throughout lifetime of the object.
25 explicit Elem(FILE* fp, const char* name, argument
28 this->name = name;
30 fprintf(fp, "<%s", name);
42 fprintf(fp, "</%s>", name);
54 const char* name; member in class:Elem
H A Dpathconf.cpp77 static long __pathconf(const struct statfs& s, int name) { argument
78 switch (name) {
142 long pathconf(const char* path, int name) { argument
147 return __pathconf(sb, name);
150 long fpathconf(int fd, int name) { argument
155 return __pathconf(sb, name);
H A Dposix_timers.cpp177 // Give the thread a specific meaningful name.
179 char name[16]; // 16 is the kernel-imposed limit. local
180 snprintf(name, sizeof(name), "POSIX timer %d", to_kernel_timer_id(timer));
181 pthread_setname_np(timer->callback_thread, name);
H A Dpty.cpp118 int openpty(int* master, int* slave, char* name, const termios* t, const winsize* ws) { argument
130 if (name == NULL) {
131 name = buf;
133 if (ptsname_r(*master, name, sizeof(buf)) != 0) {
138 *slave = open(name, O_RDWR|O_NOCTTY);
154 int forkpty(int* amaster, char* name, const termios* t, const winsize* ws) { argument
157 if (openpty(&master, &slave, name, t, ws) == -1) {
H A Dstubs.cpp83 static int do_getpw_r(int by_name, const char* name, uid_t uid, argument
94 const passwd* src = by_name ? getpwnam(name) : getpwuid(uid); // NOLINT: see above.
133 int getpwnam_r(const char* name, passwd* pwd, argument
135 return do_getpw_r(1, name, -1, pwd, buf, byte_count, result);
145 snprintf(state->name_buffer_, sizeof(state->name_buffer_), "%s", iinfo->name);
160 snprintf(state->group_name_buffer_, sizeof(state->group_name_buffer_), "%s", iinfo->name);
178 static passwd* android_name_to_passwd(passwd_state_t* state, const char* name) { argument
180 if (!strcmp(android_ids[n].name, name)) {
196 static group* android_name_to_group(group_state_t* state, const char* name) { argument
211 app_id_from_name(const char* name, bool is_group) argument
318 oem_id_from_name(const char* name) argument
485 getgrnam_internal(const char* name, group_state_t* state) argument
498 getgrnam(const char* name) argument
506 getgroup_r(bool by_name, const char* name, gid_t gid, struct group* grp, char* buf, size_t buflen, struct group** result) argument
530 getgrnam_r(const char* name, struct group* grp, char* buf, size_t buflen, struct group **result) argument
[all...]
H A Dsysconf.cpp50 long sysconf(int name) { argument
51 switch (name) {
H A Dsystem_properties.cpp66 * Each property's name is delimited at '.' characters, and the tokens are put
107 char name[0]; member in struct:prop_bt
109 prop_bt(const char *name, const uint8_t name_length) { argument
111 memcpy(this->name, name, name_length);
112 this->name[name_length] = '\0';
130 const prop_info *find(const char *name);
131 bool add(const char *name, unsigned int namelen,
142 prop_bt *new_prop_bt(const char *name, uint8_t namelen, uint_least32_t *const off);
143 prop_info *new_prop_info(const char *name, uint8_
176 char name[0]; member in struct:prop_info
178 prop_info(const char *name, const uint8_t namelen, const char *value, const uint8_t valuelen) argument
360 new_prop_bt(const char *name, uint8_t namelen, uint_least32_t *const off) argument
373 new_prop_info(const char *name, uint8_t namelen, const char *value, uint8_t valuelen, uint_least32_t *const off) argument
421 find_prop_bt(prop_bt *const bt, const char *name, uint8_t namelen, bool alloc_if_needed) argument
472 find_property(prop_bt *const trie, const char *name, uint8_t namelen, const char *value, uint8_t valuelen, bool alloc_if_needed) argument
633 find(const char *name) argument
637 add(const char *name, unsigned int namelen, const char *value, unsigned int valuelen) argument
831 get_prop_area_for_name(const char* name) argument
1078 __system_property_find(const char *name) argument
1105 __system_property_read(const prop_info *pi, char *name, char *value) argument
1134 __system_property_get(const char *name, char *value) argument
1201 __system_property_add(const char *name, unsigned int namelen, const char *value, unsigned int valuelen) argument
[all...]
H A Dsystem_properties_compat.c62 char name[PROP_NAME_MAX]; member in struct:prop_info_compat
71 __LIBC_HIDDEN__ const prop_info *__system_property_find_compat(const char *name) argument
76 unsigned len = strlen(name);
89 if(memcmp(name, pi->name, len)) continue;
97 __LIBC_HIDDEN__ int __system_property_read_compat(const prop_info *_pi, char *name, char *value) argument
111 if(name != 0) {
112 strcpy(name, pi->name);
H A Dvdso.cpp107 if (strcmp(vdso[j].name, strtab + symtab[i].st_name) == 0) {
/bionic/libc/
H A Dcrt.mk129 # name clash between gcc and bionic.
/bionic/libc/dns/include/
H A Dresolv_private.h15 * 3. Neither the name of the University nor the names of its contributors
66 /* Despite this file's name, it's part of libresolv. On Android, that means it's part of libc :-( */
69 // Linux defines MAXHOSTNAMELEN as 64, while the domain name limit in
111 * initial name server(s) to query and the domain search list.
135 const char * name; /* Its symbolic name, like "MX" */ member in struct:res_sym
136 const char * humanname; /* Its fun name, like "mail exchanger" */
143 #define LOCALDOMAINPARTS 2 /* min levels in name that is "local" */
164 int nscount; /* number of name servers */
166 nsaddr_list[MAXNS]; /* address of name serve
[all...]
/bionic/libc/dns/nameser/
H A Dns_parse.c171 handle->_msg_ptr, rr->name, NS_MAXDNAME);
H A Dns_print.c57 static size_t prune_origin(const char *name, const char *origin);
109 const char *name, ns_class class, ns_type type,
125 if (name_ctx != NULL && ns_samename(name_ctx, name) == 1) {
128 len = (int)prune_origin(name, origin);
129 if (*name == '\0') {
134 T(addstr(name, (size_t)len, &buf, &buflen));
138 name[len] == '\0')) && name[len - 1] != '.') {
200 /* Server name. */
204 /* Administrator name
108 ns_sprintrrf(const u_char *msg, size_t msglen, const char *name, ns_class class, ns_type type, u_long ttl, const u_char *rdata, size_t rdlen, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
1108 prune_origin(const char *name, const char *origin) argument
[all...]
/bionic/libc/dns/net/
H A Dgetaddrinfo.c16 * 3. Neither the name of the project nor the names of its contributors
212 const char *name; /* domain name */ member in struct:res_target
257 "Temporary failure in name resolution", /* EAI_AGAIN */
259 "Non-recoverable failure in name resolution", /* EAI_FAIL */
484 // char *ai_canonname; /* canonical name for hostname */
736 * hostname as alphabetical name.
962 * the canonical name, based on a
983 * the canonical name, based on a
1350 /* res_send() has already verified that the query name i
1875 const char *name; local
2028 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) argument
2097 const char *name; local
2137 res_queryN(const char *name, struct res_target *target, res_state res) argument
2242 res_searchN(const char *name, struct res_target *target, res_state res) argument
2390 res_querydomainN(const char *name, const char *domain, struct res_target *target, res_state res) argument
[all...]
H A Dgethnamaddr.c17 * 3. Neither the name of the University nor the names of its contributors
38 * the name of Digital Equipment Corporation not be used in advertising or
259 /* res_send() has already verified that the query name is the
260 * same as the one we sent; this just gets the expanded name
283 cp += n; /* name */
316 /* Get canonical name. */
337 /* Get canonical name. */
511 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, argument
522 _DIAGASSERT(name != NULL);
525 *result = gethostbyname_internal(name, AF_INET
544 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf, size_t buflen, struct hostent **result, int *errorp) argument
699 gethostbyname_internal_real(const char *name, int af, res_state res, struct hostent *hp, char *buf, size_t buflen, int *he) argument
817 gethostbyname_internal(const char *name, int af, res_state res, struct hostent *hp, char *hbuf, size_t hbuflen, int *errorp, unsigned netid, unsigned mark) argument
962 char *p, *name; local
1173 const char *name; local
1474 char name[INET6_ADDRSTRLEN]; /* XXX enough? */ local
1526 const char *name; local
1570 gethostbyname(const char *name) argument
1580 gethostbyname2(const char *name, int af) argument
1590 android_gethostbynamefornet(const char *name, int af, unsigned netid, unsigned mark) argument
[all...]
H A Dgetservbyname.c33 struct servent* getservbyname(const char* name, const char* proto) { argument
38 if (strcmp(s->s_name, name) == 0 && (proto == NULL || strcmp(s->s_proto, proto) == 0)) {
H A Dnsdispatch.c22 * 4. Neither the name of The NetBSD Foundation nor the names of its
120 while (srclist[srclistsize].name != NULL)
126 cb = _nsmethod(srclist[i].name, database, method,
H A Dsethostent.c15 * 3. Neither the name of the University nor the names of its contributors
92 const char *name; local
98 name = va_arg(ap, char *);
108 hp = _hf_gethtbyname2(name, AF_INET6, info);
112 hp = _hf_gethtbyname2(name, AF_INET, info);
116 hp = _hf_gethtbyname2(name, af, info);
128 _hf_gethtbyname2(const char *name, int af, struct getnamaddr *info) argument
137 _DIAGASSERT(name != NULL);
171 if (strcasecmp(hp->h_name, name) != 0) {
174 if (strcasecmp(*cp, name)
[all...]
/bionic/libc/dns/resolv/
H A Dres_data.c170 const char *dname, /* domain name */
200 res_query(const char *name, /* domain name */ argument
209 return (res_nquery(&_nres, name, class, type, answer, anslen));
269 res_search(const char *name, /* domain name */ argument
279 return (res_nsearch(&_nres, name, class, type, answer, anslen));
283 res_querydomain(const char *name, argument
294 return (res_nquerydomain(&_nres, name, domain,
306 hostalias(const char *name) { argument
[all...]
H A Dres_debug.c36 * 4. Neither the name of the University nor the names of its contributors
59 * the name of Digital Equipment Corporation not be used in advertising or
79 * all paragraphs of this notice appear in all copies, and that the name of IBM
352 char name[MAXDNAME]; local
355 if ((n = dn_expand(msg, msg + len, cp, name, (int)sizeof name)) < 0)
357 if (name[0] == '\0')
360 fputs(name, file);
369 /* Return a fully-qualified domain name from a compressed name (wit
373 p_fqnname(const u_char *cp, const u_char *msg, int msglen, char *name, int namelen) argument
395 char name[MAXDNAME]; local
558 sym_ston(const struct res_sym *syms, const char *name, int *success) argument
1131 dn_count_labels(const char *name) argument
[all...]
H A Dres_init.c19 * 4. Neither the name of the University nor the names of its contributors
42 * the name of Digital Equipment Corporation not be used in advertising or
141 * INADDR_ANY and the default domain name comes from the gethostname().
144 * rather than INADDR_ANY ("0.0.0.0") as the default name server address
147 * it had to be "up" in order for you to reach your own name server. It
286 #define MATCH(line, name) \
287 (!strncmp(line, name, sizeof(name) - 1) && \
288 (line[sizeof(name) - 1] == ' ' || \
289 line[sizeof(name)
[all...]
H A Dres_query.c19 * 4. Neither the name of the University nor the names of its contributors
42 * the name of Digital Equipment Corporation not be used in advertising or
129 const char *name, /* domain name */
146 printf(";; res_query(%s, %d, %d)\n", name, class, type);
149 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL,
223 const char *name, /* domain name */
241 for (cp = name; *cp != '\0'; cp++)
244 if (cp > name
128 res_nquery(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument
222 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument
378 res_nquerydomain(res_state statp, const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument
423 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) argument
[all...]
H A Dres_send.c20 * 4. Neither the name of the University nor the names of its contributors
43 * the name of Digital Equipment Corporation not be used in advertising or
85 * Send query to name server and wait for reply.
274 * res_nameinquery(name, type, class, buf, eom)
275 * look for (name,type,class) in the query section of packet (buf,eom)
286 res_nameinquery(const char *name, int type, int class, argument
305 ns_samename(tname, name) == 1)
313 * is there a 1:1 mapping of (name,type,class)
557 * queries that deterministically fail (e.g., a name that always returns
1276 (stdout, ";; wrong query name
[all...]
/bionic/libc/include/arpa/
H A Dnameser.h32 * 3. Neither the name of the University nor the names of its contributors
75 #define NS_MAXDNAME 1025 /* maximum domain name (presentation format)*/
77 #define NS_MAXCDNAME 255 /* maximum compressed domain name */
79 #define NS_MAXLABELS 128 /* theoretical max #/labels per domain name */
80 #define NS_MAXNNAME 256 /* maximum uncompressed (binary) domain name*/
90 #define NS_CMPRSFLGS 0xc0 /* Flag bits indicating name compression. */
109 * Network name (compressed or not) type. Equivilent to a pointer when used
160 char name[NS_MAXDNAME]; member in struct:__ns_rr
181 #define ns_rr_name(rr) (((rr).name[0] != '\0') ? (rr).name
258 char name[NS_MAXDNAME], alg[NS_MAXDNAME]; member in struct:ns_tsig_key
[all...]

Completed in 303 milliseconds

12345678