Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 33) sorted by relevance

12

/bionic/libc/dns/nameser/
Dns_print.c119 char tmp[100]; in ns_sprintrrf() local
152 len = snprintf(tmp, sizeof(tmp), " %s %s", p_class(class), p_type(type)); in ns_sprintrrf()
153 T(addstr(tmp, (size_t)len, &buf, &buflen)); in ns_sprintrrf()
215 len = snprintf(tmp, sizeof(tmp), "%lu", t); in ns_sprintrrf()
216 T(addstr(tmp, (size_t)len, &buf, &buflen)); in ns_sprintrrf()
272 len = snprintf(tmp, sizeof(tmp), "%u ", t); in ns_sprintrrf()
273 T(addstr(tmp, (size_t)len, &buf, &buflen)); in ns_sprintrrf()
290 len = snprintf(tmp, sizeof(tmp), "%u ", t); in ns_sprintrrf()
291 T(addstr(tmp, (size_t)len, &buf, &buflen)); in ns_sprintrrf()
429 len = snprintf(tmp, sizeof(tmp), " %u ( ", *rdata); in ns_sprintrrf()
[all …]
Dns_ttl.c98 u_long ttl, tmp; in ns_parse_ttl() local
102 tmp = 0; in ns_parse_ttl()
109 tmp *= 10; in ns_parse_ttl()
110 tmp += (ch - '0'); in ns_parse_ttl()
119 case 'W': tmp *= 7; /*FALLTHROUGH*/ in ns_parse_ttl()
120 case 'D': tmp *= 24; /*FALLTHROUGH*/ in ns_parse_ttl()
121 case 'H': tmp *= 60; /*FALLTHROUGH*/ in ns_parse_ttl()
122 case 'M': tmp *= 60; /*FALLTHROUGH*/ in ns_parse_ttl()
126 ttl += tmp; in ns_parse_ttl()
127 tmp = 0; in ns_parse_ttl()
[all …]
Dns_parse.c145 int tmp; in ns_parserr() local
148 tmp = section; in ns_parserr()
149 if (tmp < 0 || section >= ns_s_max) in ns_parserr()
208 int tmp; in ns_parserr2() local
211 tmp = section; in ns_parserr2()
212 if (tmp < 0 || section >= ns_s_max) in ns_parserr2()
Dns_name.c631 u_char tmp[NS_MAXCDNAME]; in ns_name_uncompress() local
634 if ((n = ns_name_unpack(msg, eom, src, tmp, sizeof tmp)) == -1) in ns_name_uncompress()
636 if (ns_name_ntop(tmp, dst, dstsiz) == -1) in ns_name_uncompress()
660 u_char tmp[NS_MAXCDNAME]; in ns_name_compress() local
662 if (ns_name_pton(src, tmp, sizeof tmp) == -1) in ns_name_compress()
664 return (ns_name_pack(tmp, dst, (int)dstsiz, dnptrs, lastdnptr)); in ns_name_compress()
/bionic/libc/upstream-openbsd/lib/libc/net/
Dres_random.c138 u_int left, right, tmp; in permute15() local
153 tmp = ru_prf->prf8[(i << (8 - 1)) | right] & 0x7f; in permute15()
155 tmp = ru_prf->prf7[((i - 1) << (7 - 1)) | right]; in permute15()
156 tmp ^= left; in permute15()
158 right = tmp; in permute15()
176 u_int32_t tmp; in res_initid() local
183 tmp = arc4random(); in res_initid()
184 ru_seed = (tmp >> 16) & 0x7FFF; in res_initid()
185 ru_seed2 = tmp & 0x7FFF; in res_initid()
188 tmp = arc4random(); in res_initid()
[all …]
Dinet_ntop.c74 char tmp[sizeof "255.255.255.255"]; in inet_ntop4() local
77 l = snprintf(tmp, sizeof(tmp), "%u.%u.%u.%u", in inet_ntop4()
83 strlcpy(dst, tmp, size); in inet_ntop4()
103 char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"]; in inet_ntop6() local
144 tp = tmp; in inet_ntop6()
145 ep = tmp + sizeof(tmp); in inet_ntop6()
199 if ((size_t)(tp - tmp) > size) { in inet_ntop6()
203 strlcpy(dst, tmp, size); in inet_ntop6()
Dinet_pton.c77 u_char tmp[INADDRSZ], *tp; in inet_pton4() local
81 *(tp = tmp) = 0; in inet_pton4()
107 memcpy(dst, tmp, INADDRSZ); in inet_pton4()
128 u_char tmp[IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
133 memset((tp = tmp), '\0', IN6ADDRSZ); in inet_pton6()
211 memcpy(dst, tmp, IN6ADDRSZ); in inet_pton6()
/bionic/libc/bionic/
Dsys_statvfs.cpp35 struct statfs tmp; in statvfs() local
36 if (statfs(path, &tmp) == -1) return -1; in statvfs()
37 __bionic_statfs_to_statvfs(&tmp, result); in statvfs()
42 struct statfs tmp; in fstatvfs() local
43 if (fstatfs(fd, &tmp) == -1) return -1; in fstatvfs()
44 __bionic_statfs_to_statvfs(&tmp, result); in fstatvfs()
Dndk_cruft.cpp86 char tmp = *p; in memswap() local
88 *q = tmp; in memswap()
Dfts.c256 FTSENT *p, *tmp; in fts_read() local
351 next: tmp = p; in fts_read()
353 free(tmp); in fts_read()
395 p = tmp->fts_parent; in fts_read()
396 free(tmp); in fts_read()
/bionic/libc/tzcode/
Dlocaltime.c1567 struct tm *const tmp) in localsub() argument
1576 return gmtsub(gmtptr, timep, 0, tmp); in localsub()
1602 result = localsub(sp, &newt, setname, tmp); in localsub()
1638 result = timesub(&t, ttisp->tt_utoff, sp, tmp); in localsub()
1653 localtime_rz(struct state *sp, time_t const *timep, struct tm *tmp) in localtime_rz() argument
1655 return localsub(sp, timep, 0, tmp); in localtime_rz()
1661 localtime_tzset(time_t const *timep, struct tm *tmp) in localtime_tzset() argument
1676 tmp = localsub(lclptr, timep, true, tmp); in localtime_tzset()
1678 return tmp; in localtime_tzset()
1688 localtime_r(const time_t *timep, struct tm *tmp) in localtime_r() argument
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
De_jnf.c114 float q0,q1,h,tmp; int32_t k,m; in __ieee754_jnf() local
119 tmp = z*q1 - q0; in __ieee754_jnf()
121 q1 = tmp; in __ieee754_jnf()
135 tmp = n; in __ieee754_jnf()
137 tmp = tmp*__ieee754_logf(fabsf(v*tmp)); in __ieee754_jnf()
138 if(tmp<(float)8.8721679688e+01) { in __ieee754_jnf()
De_jn.c157 double q0,q1,h,tmp; int32_t k,m; in __ieee754_jn() local
162 tmp = z*q1 - q0; in __ieee754_jn()
164 q1 = tmp; in __ieee754_jn()
178 tmp = n; in __ieee754_jn()
180 tmp = tmp*__ieee754_log(fabs(v*tmp)); in __ieee754_jn()
181 if(tmp<7.09782712893383973096e+02) { in __ieee754_jn()
/bionic/tests/
Dnetdb_test.cpp119 char tmp[16]; in TEST() local
126 ASSERT_EQ(0, getnameinfo(sa, too_much, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST()
127 ASSERT_STREQ("0.0.0.0", tmp); in TEST()
128 ASSERT_EQ(0, getnameinfo(sa, just_right, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST()
129 ASSERT_STREQ("0.0.0.0", tmp); in TEST()
130 ASSERT_EQ(EAI_FAMILY, getnameinfo(sa, too_little, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST()
137 ASSERT_EQ(0, getnameinfo(sa, too_much, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST()
138 ASSERT_STREQ("::", tmp); in TEST()
139 ASSERT_EQ(0, getnameinfo(sa, just_right, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST()
140 ASSERT_STREQ("::", tmp); in TEST()
[all …]
/bionic/benchmarks/linker_relocation/
Drun_bench_with_ninja.sh48 --keep-tmp-dir Don't delete the temporary directory on exit
110 json_file=$top/tmp/libandroid_servers_arm64.json
112 $top/gen_bench.sh --keep-tmp-dir --skip-gen-bench
122 target_dir=/data/local/tmp/linker-reloc-bench
Dgen_bench.sh37 --keep-tmp-dir)
50 work_dir=$top/tmp
D.gitignore3 /tmp
/bionic/build/
Dcoverage.sh25 DEVICE_TEST_DIR32=/data/local/tmp/bionic-coverage32
26 DEVICE_TEST_DIR64=/data/local/tmp/bionic-coverage64
27 DEVICE_PROF_DIR=/data/local/tmp/bionic-profraw
28 HOST_PROFDATA_DIR=/tmp/bionic-coverage
Drun-on-host.sh49 mkdir -p ${TARGET_OUT_DATA}/local/tmp
/bionic/libc/kernel/tools/
Dgenerate_uapi_headers.sh52 if [[ "${TMPDIR}" =~ /tmp ]] && [[ -d "${TMPDIR}" ]]; then
196 TMPDIR=$(mktemp -d /tmp/android_kernelXXXXXXXX)
/bionic/libc/dns/resolv/
Dres_query.c230 char tmp[NS_MAXDNAME]; in res_nsearch() local
248 if (!dots && (cp = res_hostalias(statp, name, tmp, sizeof tmp))!= NULL) in res_nsearch()
Dres_cache.c1316 struct pending_req_info *ri, *tmp; in _cache_flush_pending_requests_locked() local
1321 tmp = ri; in _cache_flush_pending_requests_locked()
1323 pthread_cond_broadcast(&tmp->cond); in _cache_flush_pending_requests_locked()
1325 pthread_cond_destroy(&tmp->cond); in _cache_flush_pending_requests_locked()
1326 free(tmp); in _cache_flush_pending_requests_locked()
/bionic/libc/upstream-openbsd/lib/libc/crypt/
Dchacha_private.h94 u8 tmp[64]; in chacha_encrypt_bytes() local
118 for (i = 0;i < bytes;++i) tmp[i] = m[i]; in chacha_encrypt_bytes()
119 m = tmp; in chacha_encrypt_bytes()
121 c = tmp; in chacha_encrypt_bytes()
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dengine.c102 states tmp; /* temporary */ member
297 SETUP(m->tmp); in matcher()
884 states tmp = m->tmp; in walk() local
996 ASSIGN(tmp, st); in walk()
1002 st = step(m->g, startst, stopst, tmp, c, st, sflags); in walk()
/bionic/libc/stdio/
Dstdio.cpp279 int tmp = fd_flags & O_ACCMODE; in fdopen() local
280 if (tmp != O_RDWR && (tmp != (mode_flags & O_ACCMODE))) { in fdopen()
292 if ((mode_flags & O_CLOEXEC) && !((tmp = fcntl(fd, F_GETFD)) & FD_CLOEXEC)) { in fdopen()
293 fcntl(fd, F_SETFD, tmp | FD_CLOEXEC); in fdopen()

12