Searched defs:tmp (Results 26 - 50 of 52) sorted by relevance

123

/system/core/cpio/
H A Dmkbootfs.c236 char *tmp; local
242 tmp = (char*) malloc(s.st_size);
243 if(tmp == 0) die("cannot allocate %d bytes", s.st_size);
245 if(read(fd, tmp, s.st_size) != s.st_size) {
249 _eject(&s, out, olen, tmp, s.st_size);
251 free(tmp);
/system/core/include/private/pixelflinger/
H A Dggl_fixed.h198 GGLfixed result,tmp,tmp1,tmp2; local
204 : [res]"=&r"(result),[tmp]"=&r"(tmp)
211 "li %[tmp],1\t\n"
212 "sll %[tmp],%[tmp],0x1f\t\n"
214 "addu %[tmp1],%[tmp],%[res] \t\n"
215 "sltu %[tmp1],%[tmp1],%[tmp]\t\n" /*obit*/
216 "sra %[tmp],%[tmp],
[all...]
/system/core/libnl_2/
H A Dattr.c52 uint64_t tmp; local
53 nla_memcpy(&tmp, nla, sizeof(tmp));
54 return tmp;
/system/core/libsparse/
H A Dsparse.c283 struct sparse_file *tmp; local
286 tmp = sparse_file_new(in_s->block_size, in_s->len);
287 if (!tmp) {
299 backed_block_list_move(s->backed_block_list, tmp->backed_block_list,
306 backed_block_list_move(tmp->backed_block_list, in_s->backed_block_list,
309 sparse_file_destroy(tmp);
/system/core/toolbox/
H A Ddu.c252 uint64_t tmp; local
257 const int HTBITS = CHAR_BIT * sizeof(tmp);
294 tmp = dev;
295 tmp <<= HTBITS>>1;
296 tmp |= ino;
297 tmp *= HTCONST;
298 h = tmp >> (HTBITS - htshift);
299 h2 = 1 | ( tmp >> (HTBITS - (htshift<<1) - 1)); /* must be odd */
H A Dls.c102 char tmp[1024]; local
114 snprintf(tmp, sizeof(tmp), "/%s", de->d_name);
116 snprintf(tmp, sizeof(tmp), "%s/%s", dirname, de->d_name);
118 if (lstat(tmp, &s) < 0) {
119 fprintf(stderr, "stat failed on %s: %s\n", tmp, strerror(errno));
315 char tmp[4096]; local
319 snprintf(tmp, sizeof(tmp), "
336 char tmp[4096]; local
[all...]
H A Dps.c185 char tmp[128]; local
189 sprintf(tmp,"/proc/%d/task",pid);
190 d = opendir(tmp);
H A Dschedtop.c251 struct thread_table tmp; local
252 tmp = last_processes;
254 processes = tmp;
256 tmp = last_threads;
258 threads = tmp;
H A Ddd.c1057 struct arg *ap, tmp; local
1074 tmp.name = oper;
1075 if (!(ap = (struct arg *)bsearch(&tmp, args,
1078 fprintf(stderr, "unknown operand %s\n", tmp.name);
1085 tmp.name);
1286 struct conv *cp, tmp; local
1289 tmp.name = strsep(&arg, ",");
1290 if (!(cp = (struct conv *)bsearch(&tmp, clist,
1293 errx(EXIT_FAILURE, "unknown conversion %s", tmp.name);
1297 errx(EXIT_FAILURE, "%s: illegal conversion combination", tmp
[all...]
/system/extras/sound/
H A Dplaywav.c199 unsigned char tmp; local
263 while (read(0, &tmp, 1) == 1) {
264 if ((tmp == 13) || (tmp == 10)) goto done;
/system/security/keystore-engine/
H A Deng_keystore.cpp228 const unsigned char* tmp = reinterpret_cast<const unsigned char*>(reply.get()); local
229 Unique_EVP_PKEY pkey(d2i_PUBKEY(NULL, &tmp, reply.length()));
/system/security/softkeymaster/
H A Dkeymaster_openssl.cpp190 EVP_PKEY* tmp = pkey.get(); local
191 d2i_PublicKey(type, &tmp, &p, publicLen);
204 d2i_PrivateKey(type, &tmp, &p, privateLen);
328 unsigned char* tmp = reinterpret_cast<unsigned char*>(key.get()); local
329 if (i2d_PUBKEY(pkey.get(), &tmp) != len) {
390 unsigned char* tmp = reinterpret_cast<unsigned char*>(signedDataPtr.get()); local
391 if (RSA_private_encrypt(dataLength, data, tmp, rsa.get(), RSA_NO_PADDING) <= 0) {
446 unsigned char* tmp = reinterpret_cast<unsigned char*>(dataPtr.get()); local
447 if (!RSA_public_decrypt(signatureLength, signature, tmp, rsa.get(), RSA_NO_PADDING)) {
454 result |= tmp[
[all...]
/system/vold/
H A DDirectVolume.cpp153 const char *tmp = evt->findParam("NPARTS"); local
154 if (tmp) {
155 mDiskNumParts = atoi(tmp);
188 const char *tmp = evt->findParam("PARTN"); local
190 if (tmp) {
191 part_num = atoi(tmp);
247 const char *tmp = evt->findParam("NPARTS"); local
248 if (tmp) {
249 mDiskNumParts = atoi(tmp);
/system/core/init/
H A Dproperty_service.c492 char *key, *value, *eol, *sol, *tmp; local
506 tmp = value - 2;
507 while((tmp > key) && isspace(*tmp)) *tmp-- = 0;
510 tmp = eol - 2;
511 while((tmp > value) && isspace(*tmp)) *tmp-- = 0;
H A Dbuiltins.c365 char tmp[64]; local
399 sprintf(tmp, "/dev/block/mtdblock%d", n);
402 wait_for_file(tmp, COMMAND_RETRY_TIMEOUT);
403 if (mount(tmp, target, system, flags, options) < 0) {
419 sprintf(tmp, "/dev/block/loop%d", n);
420 loop = open(tmp, mode);
431 if (mount(tmp, target, system, flags, options) < 0) {
H A Dinit.c242 char tmp[32]; local
263 sprintf(tmp, "%d,%d", dup(fd), sz);
264 add_environment("ANDROID_PROPERTY_WORKSPACE", tmp);
352 char *tmp = strdup(dynamic_args); local
353 char *next = tmp;
460 char *tmp = NULL; local
466 tmp = strdup(name);
467 args = strchr(tmp, ':');
471 svc = service_find_by_name(tmp);
479 if (tmp)
576 char tmp[PROP_VALUE_MAX]; local
655 char tmp[PROP_VALUE_MAX]; local
842 char tmp[32]; local
[all...]
/system/extras/tests/fstest/
H A Dperm_checker.c362 char tmp[MAX_NAME_LEN + 1]; local
395 snprintf(tmp, sizeof(tmp), "%s%s", namebuf, de->d_name);
396 retval |= check_path(tmp);
/system/media/audio_utils/
H A Decho_reference.c342 struct timespec tmp; local
351 tmp.tv_sec = buffer->time_stamp.tv_sec - er->wr_render_time.tv_sec - 1;
352 tmp.tv_nsec = 1000000000 + buffer->time_stamp.tv_nsec - er->wr_render_time.tv_nsec;
354 tmp.tv_sec = buffer->time_stamp.tv_sec - er->wr_render_time.tv_sec;
355 tmp.tv_nsec = buffer->time_stamp.tv_nsec - er->wr_render_time.tv_nsec;
357 timeDiff = (((int64_t)tmp.tv_sec * 1000000000 + tmp.tv_nsec));
/system/core/adb/
H A Dfile_sync_client.c305 char tmp[64]; local
310 snprintf(tmp, sizeof(tmp), ",%d", mode);
311 r = strlen(tmp);
374 writex(fd, rpath, len) || writex(fd, tmp, r)) {
684 char *tmp = malloc(tmplen); local
685 if(tmp == 0) return -1;
686 snprintf(tmp, tmplen, "%s/",lpath);
687 lpath = tmp;
691 char *tmp local
783 char *tmp = malloc(strlen(name) + strlen(rpath) + 2); local
883 char *tmp = malloc(tmplen); local
890 char *tmp = malloc(tmplen); local
977 char *tmp = malloc(tmplen); local
[all...]
H A Dcommandline.c1020 char *tmp; local
1031 tmp = adb_query(buf);
1032 if(tmp) {
1034 printf("%s\n", tmp);
1042 char *tmp; local
1048 tmp = adb_query(buf);
1049 if(tmp) {
1050 printf("%s\n", tmp);
1058 char *tmp; local
1068 tmp
1315 char *tmp; local
[all...]
/system/core/fastboot/
H A Dfastboot.c635 char *tmp; local
641 tmp = malloc(sz + 128);
642 if (tmp == 0) die("out of memory");
643 sprintf(tmp,"board=%sversion-baseband=0.66.04.19\n",(char*)data);
644 data = tmp;
645 sz = strlen(tmp);
/system/extras/ext4_utils/
H A Dallocate.c568 struct region *tmp; local
590 tmp = alloc->list.iter;
592 return tmp;
/system/netd/
H A DCommandListener.cpp529 char *tmp; local
530 asprintf(&tmp, "/proc/sys/net/ipv6/conf/%s/use_tempaddr", argv[2]);
532 if (writeFile(tmp, !strncmp(argv[3], "enable", 7) ? "2" : "0", 1) < 0) {
533 free(tmp);
539 free(tmp);
550 char *tmp; local
551 asprintf(&tmp, "/proc/sys/net/ipv6/conf/%s/disable_ipv6", argv[2]);
553 if (writeFile(tmp, !strncmp(argv[3], "enable", 7) ? "0" : "1", 1) < 0) {
554 free(tmp);
560 free(tmp);
603 char *tmp = NULL; local
649 char *tmp = NULL; local
[all...]
H A DBandwidthController.cpp173 char *tmp; local
202 while ((tmp = strsep(&next, " "))) {
203 argv[argc++] = tmp;
/system/core/charger/
H A Dcharger.c276 int tmp; local
283 tmp = strtol(buf, &end, 0);
288 *val = tmp;

Completed in 117 milliseconds

123