Searched refs:fp (Results 1 - 25 of 29) sorted by relevance

12

/system/core/logcat/tests/
H A Dlogcat_test.cpp46 FILE *fp; local
48 ASSERT_TRUE(NULL != (fp = popen(
57 while (fgets(buffer, sizeof(buffer), fp)) {
68 pclose(fp);
76 FILE *fp; local
78 ASSERT_TRUE(NULL != (fp = popen(
86 while (fgets(buffer, sizeof(buffer), fp)) {
94 pclose(fp);
100 FILE *fp; local
102 ASSERT_TRUE(NULL != (fp
124 FILE *fp; local
148 FILE *fp; local
172 FILE *fp; local
244 FILE *fp; local
274 FILE *fp; local
354 FILE *fp; local
423 FILE *fp; local
499 FILE *fp; local
533 FILE *fp; local
601 FILE *fp; local
636 FILE *fp; local
[all...]
H A Dlogcat_benchmark.cpp26 FILE *fp; local
28 ASSERT_TRUE(NULL != (fp = popen(
85 while (fgets(buffer, sizeof(buffer), fp)) {
111 pclose(fp);
/system/core/toolbox/upstream-netbsd/lib/libc/string/
H A Dswab.c51 const char *fp; local
61 fp = (const char *)from;
63 #define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp
/system/core/toolbox/
H A Dnetstat.c92 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/libbacktrace/
H A Dmap_info.c71 FILE* fp = popen(cmd, "r"); local
72 if (fp == NULL) {
78 while (fgets(line, sizeof(line), fp) != NULL) {
85 pclose(fp);
135 FILE* fp; local
142 fp = fopen(path, "r");
143 if (fp) {
144 while(fgets(line, sizeof(line), fp)) {
151 fclose(fp);
H A DBacktraceMap.cpp112 FILE* fp = popen(cmd, "r"); local
116 FILE* fp = fopen(path, "r"); local
118 if (fp == NULL) {
122 while(fgets(line, sizeof(line), fp)) {
129 pclose(fp);
131 fclose(fp);
/system/core/debuggerd/
H A Dbacktrace.cpp40 FILE* fp; local
43 if ((fp = fopen(path, "r"))) {
44 procname = fgets(procnamebuf, sizeof(procnamebuf), fp);
45 fclose(fp);
70 FILE* fp; local
73 if ((fp = fopen(path, "r"))) {
74 threadname = fgets(threadnamebuf, sizeof(threadnamebuf), fp);
75 fclose(fp);
H A Ddebuggerd.cpp103 FILE* fp = fopen(path, "r"); local
104 if (!fp) {
110 while (fgets(line, sizeof(line), fp)) {
123 fclose(fp);
H A Dtombstone.cpp201 FILE *fp; local
204 if ((fp = fopen(path, "r"))) {
205 threadname = fgets(threadnamebuf, sizeof(threadnamebuf), fp);
206 fclose(fp);
225 if ((fp = fopen(path, "r"))) {
226 procname = fgets(procnamebuf, sizeof(procnamebuf), fp);
227 fclose(fp);
/system/core/toolbox/upstream-netbsd/bin/cat/
H A Dcat.c145 FILE *fp; local
147 fp = stdin;
152 fp = stdin;
153 else if ((fp = fopen(*argv,
162 cook_buf(fp);
163 if (fp != stdin)
164 (void)fclose(fp);
166 clearerr(fp);
171 cook_buf(FILE *fp) argument
176 for (prev = '\n'; (ch = getc(fp)) !
[all...]
/system/core/toolbox/upstream-netbsd/bin/kill/
H A Dkill.c212 printsignals(FILE *fp) argument
219 if (isatty(fileno(fp))) {
221 if (ioctl(fileno(fp), TIOCGWINSZ, &win) == 0 && win.ws_col > 0)
230 fprintf(fp, "\n");
234 fprintf(fp, " ");
236 fprintf(fp, "%s", name);
239 fprintf(fp, "\n");
/system/core/libutils/
H A DProcessCallStack.cpp55 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/core/libcutils/
H A Dsched_policy.c166 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);
H A Dopen_memstream.c227 FILE* fp; local
239 fp = funopen(stream,
241 if (fp == NULL) {
251 return fp;
277 * fp = fopencookie(stream, "w", iofuncs);
/system/vold/
H A DVolume.cpp294 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 DVolumeManager.cpp1472 FILE *fp; local
1475 if (!(fp = fopen("/proc/mounts", "r"))) {
1487 while(fgets(line, sizeof(line), fp)) {
1509 fclose(fp);
1600 FILE* fp; local
1602 if ((fp = fopen("/proc/sys/vm/dirty_ratio", "r+"))) {
1604 if (fgets(line, sizeof(line), fp) && sscanf(line, "%d", &mSavedDirtyRatio)) {
1605 fprintf(fp, "%d\n", mUmsDirtyRatio);
1609 fclose(fp);
1651 FILE* fp; local
1813 FILE *fp; local
[all...]
/system/core/libpixelflinger/
H A Draster.cpp105 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;
/system/core/logd/tests/
H A Dlogd_test.cpp290 FILE *fp; local
291 ASSERT_TRUE(NULL != (fp = fopen("/proc/sys/net/unix/max_dgram_qlen", "r")));
294 fscanf(fp, "%u", &max_dgram_qlen);
296 fclose(fp);
539 FILE *fp; local
542 ASSERT_TRUE(NULL != (fp = popen(
567 while (fgets(buffer, sizeof(buffer), fp)) {
577 int ret = pclose(fp);
/system/extras/tests/lib/testUtil/
H A DtestUtil.c395 FILE *fp; local
405 if ((fp = popen(cmd, "r")) == NULL) {
411 while (fgets(str, sizeof(str), fp) != NULL) {
420 status = pclose(fp);
/system/extras/showmap/
H A Dshowmap.c166 FILE *fp; local
173 fp = fopen(fn, "r");
174 if (fp == 0) {
179 while (fgets(line, sizeof(line), fp) != 0) {
201 fclose(fp);
/system/netd/server/
H A DBandwidthController.cpp781 FILE *fp; local
789 fp = fopen(fname, "r");
791 if (!fp) {
795 scanRes = fscanf(fp, "%" SCNd64, bytes);
797 fclose(fp);
837 FILE *fp; local
846 fp = fopen(fname, "w");
848 if (!fp) {
852 fprintf(fp, "%" PRId64"\n", bytes);
853 fclose(fp);
1131 parseForwardChainStats(SocketClient *cli, const TetherStats filter, FILE *fp, std::string &extraProcessingInfo) argument
1284 parseAndFlushCostlyTables(FILE *fp, bool doRemove) argument
[all...]
H A DBandwidthController.h158 * fp should be a file to the apropriate FORWARD chain of iptables rules.
165 static int parseForwardChainStats(SocketClient *cli, const TetherStats filter, FILE *fp,
175 static void parseAndFlushCostlyTables(FILE *fp, bool doRemove);
/system/extras/tests/fstest/
H A Dperm_checker.c155 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/liblog/tests/
H A Dliblog_test.cpp192 FILE *fp = fopen(buffer, "r"); local
193 if (!fp) {
197 char *cp = fgets(buffer, sizeof(buffer), fp);
198 fclose(fp);
/system/core/logwrapper/
H A Dlogwrap.c96 FILE *fp; member in struct:log_info
166 fprintf(log_info->fp, "%s\n", line);
343 log_info.fp = fdopen(fd, "a");
455 fclose(log_info.fp); /* Also closes underlying fd */

Completed in 3009 milliseconds

12