/system/extras/tests/bionic/libc/common/ |
H A D | bench_stdio.c | 53 void read_file(FILE* fp, int chunkSize) argument 57 fread(buffer, 1, chunkSize, fp); 61 void write_file(FILE* fp, int chunkSize) argument 65 fwrite(buffer, 1, chunkSize, fp); 80 FILE* fp = fopen("/dev/zero", "rw"); local 82 if (fp == NULL) { 87 BENCH(read_file(fp,1)); 88 BENCH(read_file(fp,2)); 89 BENCH(read_file(fp,3)); 90 BENCH(read_file(fp, [all...] |
/system/vold/ |
H A D | Xwarp.cpp | 45 FILE *fp; local 50 if (!(fp = fopen(XWARP_READY, "r"))) { 54 fscanf(fp, "%d", (int *) ready); 55 fclose(fp); 57 if (!(fp = fopen(XWARP_MIRROR_STATUS, "r"))) { 61 fscanf(fp, "%u %u", mirrorPos, maxSize); 62 fclose(fp);
|
H A D | CommandListener.cpp | 102 FILE *fp = fopen("/proc/mounts", "r"); local 103 if (fp) { 105 while (fgets(line, sizeof(line), fp)) { 109 fclose(fp);
|
H A D | Volume.cpp | 294 FILE *fp; local 297 if (!(fp = fopen("/proc/mounts", "r"))) { 302 while(fgets(line, sizeof(line), fp)) { 306 fclose(fp); 311 fclose(fp); 659 FILE* fp = popen(cmd.c_str(), "r"); local 660 if (!fp) { 668 if (fgets(line, sizeof(line), fp) != NULL) { 689 pclose(fp);
|
H A D | VolumeManager.cpp | 1189 FILE *fp; local 1192 if (!(fp = fopen("/proc/mounts", "r"))) { 1204 while(fgets(line, sizeof(line), fp)) { 1226 fclose(fp); 1317 FILE* fp; local 1319 if ((fp = fopen("/proc/sys/vm/dirty_ratio", "r+"))) { 1321 if (fgets(line, sizeof(line), fp) && sscanf(line, "%d", &mSavedDirtyRatio)) { 1322 fprintf(fp, "%d\n", mUmsDirtyRatio); 1326 fclose(fp); 1368 FILE* fp; local 1530 FILE *fp; local [all...] |
/system/core/libcutils/ |
H A D | open_memstream.c | 227 FILE* fp; local 239 fp = funopen(stream, 241 if (fp == NULL) { 251 return fp; 277 * fp = fopencookie(stream, "w", iofuncs);
|
H A D | sched_policy.c | 166 FILE *fp; local 169 if (!(fp = fopen(pathBuf, "r"))) { 173 while(fgets(lineBuf, sizeof(lineBuf) -1, fp)) { 205 fclose(fp); 210 fclose(fp); 214 fclose(fp);
|
/system/core/debuggerd/ |
H A D | backtrace.c | 41 FILE* fp; local 44 if ((fp = fopen(path, "r"))) { 45 procname = fgets(procnamebuf, sizeof(procnamebuf), fp); 46 fclose(fp); 70 FILE* fp; local 73 if ((fp = fopen(path, "r"))) { 74 threadname = fgets(threadnamebuf, sizeof(threadnamebuf), fp); 75 fclose(fp);
|
H A D | debuggerd.c | 165 FILE* fp = fopen(path, "r"); local 166 if (!fp) { 172 while (fgets(line, sizeof(line), fp)) { 185 fclose(fp);
|
H A D | tombstone.c | 200 FILE *fp; local 203 if ((fp = fopen(path, "r"))) { 204 threadname = fgets(threadnamebuf, sizeof(threadnamebuf), fp); 205 fclose(fp); 219 if ((fp = fopen(path, "r"))) { 220 procname = fgets(procnamebuf, sizeof(procnamebuf), fp); 221 fclose(fp);
|
/system/core/libcorkscrew/ |
H A D | map_info.c | 72 FILE* fp = popen(cmd, "r"); local 73 if (fp == NULL) { 79 while (fgets(line, sizeof(line), fp) != NULL) { 86 pclose(fp); 137 FILE* fp; local 141 fp = fopen(path, "r"); 142 if (fp) { 143 while(fgets(line, sizeof(line), fp)) { 150 fclose(fp);
|
/system/core/sh/ |
H A D | show.c | 73 shtree(union node *n, int ind, char *pfx, FILE *fp) argument 81 indent(ind, pfx, fp); 92 shtree(n->nbinary.ch1, ind, NULL, fp); 94 fputs(s, fp); 95 shtree(n->nbinary.ch2, ind, NULL, fp); 98 shcmd(n, fp); 100 putc('\n', fp); 104 shcmd(lp->n, fp); 106 fputs(" | ", fp); 109 fputs(" &", fp); 124 shcmd(union node *cmd, FILE *fp) argument 166 sharg(union node *arg, FILE *fp) argument 250 indent(int amount, char *pfx, FILE *fp) argument [all...] |
/system/core/toolbox/ |
H A D | cat.c | 53 cook_buf(FILE *fp) argument 59 for (prev = '\n'; (ch = getc(fp)) != EOF; prev = ch) { 127 FILE *fp; local 129 fp = stdin; 134 fp = stdin; 135 else if ((fp = fopen(*argv, 144 cook_buf(fp); 145 if (fp != stdin) 146 fclose(fp);
|
H A D | netstat.c | 92 FILE *fp = fopen(filename, "r"); local 93 if (fp == NULL) { 97 fgets(buf, BUFSIZ, fp); 98 while (fgets(buf, BUFSIZ, fp)){ 115 fclose(fp); 119 FILE *fp = fopen(filename, "r"); local 120 if (fp == NULL) { 124 fgets(buf, BUFSIZ, fp); 125 while (fgets(buf, BUFSIZ, fp)){ 143 fclose(fp); [all...] |
/system/core/libcutils/tests/memset_mips/ |
H A D | test_memset.c | 200 } *fp, functions[] = { local 222 for (fp = functions; fp < &functions[NFUNCTIONS]; fp++) { 223 (fp->fn)(arena, 0xffffffff, ARENASIZE); /* one call to get the code into Icache */ 225 sprintf(tag, "%10s: %7s %4d-%4d", fp->name, pp->type, pp->minbytes, pp->maxbytes); 229 testone(tag, fp->fn, pp->trials, pp->minbytes, pp->maxbytes, fp->size, threshold);
|
/system/core/libpixelflinger/ |
H A D | raster.cpp | 105 const GGLFormat* fp = &(c->formats[cb->format]); local 107 + (xs + (cb->stride * ys)) * fp->size; 109 + (xd + (cb->stride * yd)) * fp->size; 110 const size_t bpr = cb->stride * fp->size; 111 const size_t rowsize = width * fp->size;
|
H A D | scanline.cpp | 2231 const GGLFormat* fp = &(c->formats[cb->format]); local 2233 (x + (cb->stride * y)) * fp->size; 2239 (u + (tex->stride * v)) * fp->size; 2241 const size_t size = ct * fp->size; 2284 const GGLFormat* fp = &(c->formats[cb->format]); local 2286 (x + (cb->stride * y)) * fp->size; 2287 const size_t size = ct * fp->size; 2297 const GGLFormat* fp = &(c->formats[cb->format]); local 2299 (x + (cb->stride * y)) * fp->size; 2300 const size_t size = ct * fp 2322 const GGLFormat* fp = &(c->formats[cb->format]); local [all...] |
/system/core/libutils/ |
H A D | ProcessCallStack.cpp | 55 FILE* fp; local 58 if ((fp = fopen(path, "r"))) { 59 procName = fgets(procNameBuf, sizeof(procNameBuf), fp); 60 fclose(fp); 83 FILE* fp; local 86 if ((fp = fopen(path, "r"))) { 87 procName = fgets(procNameBuf, sizeof(procNameBuf), fp); 88 fclose(fp);
|
/system/extras/showmap/ |
H A D | showmap.c | 164 FILE *fp; local 171 fp = fopen(fn, "r"); 172 if (fp == 0) { 177 while (fgets(line, sizeof(line), fp) != 0) { 199 fclose(fp);
|
/system/extras/tests/lib/testUtil/ |
H A D | testUtil.c | 395 FILE *fp; local 405 if ((fp = popen(cmd, "r")) == NULL) { 411 while (fgets(str, sizeof(str), fp) != NULL) { 420 status = pclose(fp);
|
/system/extras/tests/wifi/stress/ |
H A D | wifiLoadScanAssoc.c | 127 FILE *fp; local
|
/system/core/logwrapper/ |
H A D | logwrap.c | 96 FILE *fp; member in struct:log_info 169 fprintf(log_info->fp, "%s\n", line); 347 log_info.fp = fdopen(fd, "a"); 459 fclose(log_info.fp); /* Also closes underlying fd */
|
/system/extras/tests/fstest/ |
H A D | perm_checker.c | 155 static int read_rules(FILE *fp) argument 165 while ((res = fscanf(fp, "%s %lo %lo %s %s %s %s\n", spec, 409 FILE *fp; local 422 if (!(fp = fopen(config_file, "r"))) { 426 read_rules(fp); 427 fclose(fp);
|
/system/core/libnetutils/ |
H A D | ifc_utils.c | 654 FILE *fp; local 657 fp = fopen("/proc/net/route", "r"); 658 if (fp == NULL) 661 if (fscanf(fp, "%*[^\n]\n") < 0) { 662 fclose(fp); 667 int nread = fscanf(fp, "%63s%X%X%X%d%d%d%X%d%d%d\n", 688 fclose(fp); 707 FILE *fp; local 709 fp = fopen("/proc/net/route", "r"); 710 if (fp [all...] |
/system/netd/ |
H A D | BandwidthController.cpp | 772 FILE *fp; local 777 fp = fopen(fname, "r"); 779 if (!fp) { 783 scanRes = fscanf(fp, "%lld", bytes); 785 fclose(fp); 823 FILE *fp; local 827 fp = fopen(fname, "w"); 829 if (!fp) { 833 fprintf(fp, "%lld\n", bytes); 834 fclose(fp); 1090 parseForwardChainStats(SocketClient *cli, const TetherStats filter, FILE *fp, std::string &extraProcessingInfo) argument 1241 parseAndFlushCostlyTables(FILE *fp, bool doRemove) argument [all...] |