Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 4557) sorted by relevance

12345678910>>...183

/external/libcups/cups/
Dfile.c35 static ssize_t cups_compress(cups_file_t *fp, const char *buf, size_t bytes);
37 static ssize_t cups_fill(cups_file_t *fp);
39 static ssize_t cups_read(cups_file_t *fp, char *buf, size_t bytes);
40 static ssize_t cups_write(cups_file_t *fp, const char *buf, size_t bytes);
319 cupsFileClose(cups_file_t *fp) /* I - CUPS file */ in cupsFileClose() argument
326 DEBUG_printf(("cupsFileClose(fp=%p)", (void *)fp)); in cupsFileClose()
332 if (!fp) in cupsFileClose()
339 if (fp->mode == 'w') in cupsFileClose()
340 status = cupsFileFlush(fp); in cupsFileClose()
345 if (fp->compressed && status >= 0) in cupsFileClose()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_print.c35 print_tabs(unsigned num_tabs, FILE *fp) in print_tabs() argument
38 fprintf(fp, "\t"); in print_tabs()
42 FILE *fp; member
79 FILE *fp = state->fp; in print_register() local
81 fprintf(fp, "/* %s */ ", reg->name); in print_register()
83 fprintf(fp, "gr%u", reg->index); in print_register()
85 fprintf(fp, "r%u", reg->index); in print_register()
93 FILE *fp = state->fp; in print_register_decl() local
94 fprintf(fp, "decl_reg %s %u ", sizes[reg->num_components], reg->bit_size); in print_register_decl()
96 fprintf(fp, "(packed) "); in print_register_decl()
[all …]
/external/expat/xmlwf/
Dxmlwf.c62 FILE *fp; member
75 FILE *fp = ((XmlwfUserData *)userData)->fp; in characterData() local
79 fputts(T("&"), fp); in characterData()
82 fputts(T("<"), fp); in characterData()
85 fputts(T(">"), fp); in characterData()
89 fputts(T("
"), fp); in characterData()
93 fputts(T("""), fp); in characterData()
98 ftprintf(fp, T("&#%d;"), *s); in characterData()
102 puttc(*s, fp); in characterData()
109 attributeValue(FILE *fp, const XML_Char *s) in attributeValue() argument
[all …]
/external/iproute2/ip/
Dipxfrm.c275 FILE *fp, const char *prefix, const char *title) in xfrm_id_info_print() argument
278 fputs(title, fp); in xfrm_id_info_print()
280 fprintf(fp, "src %s ", rt_addr_n2a(family, sizeof(*saddr), saddr)); in xfrm_id_info_print()
281 fprintf(fp, "dst %s", rt_addr_n2a(family, sizeof(id->daddr), &id->daddr)); in xfrm_id_info_print()
282 fprintf(fp, "%s", _SL_); in xfrm_id_info_print()
285 fputs(prefix, fp); in xfrm_id_info_print()
286 fprintf(fp, "\t"); in xfrm_id_info_print()
288 fprintf(fp, "proto %s ", strxf_xfrmproto(id->proto)); in xfrm_id_info_print()
293 fprintf(fp, "spi 0x%08x", spi); in xfrm_id_info_print()
295 fprintf(fp, "(%u)", spi); in xfrm_id_info_print()
[all …]
Dxfrm_monitor.c49 FILE *fp = (FILE *)arg; in xfrm_acquire_print() local
69 fprintf(fp, "acquire "); in xfrm_acquire_print()
71 fprintf(fp, "proto %s ", strxf_xfrmproto(xacq->id.proto)); in xfrm_acquire_print()
75 fprintf(fp, "spi 0x%08x", spi); in xfrm_acquire_print()
77 fprintf(fp, "(%u)", spi); in xfrm_acquire_print()
78 fprintf(fp, " "); in xfrm_acquire_print()
80 fprintf(fp, "%s", _SL_); in xfrm_acquire_print()
82 xfrm_selector_print(&xacq->sel, family, fp, " sel "); in xfrm_acquire_print()
84 xfrm_policy_info_print(&xacq->policy, tb, fp, " ", " policy "); in xfrm_acquire_print()
87 fprintf(fp, " seq 0x%08u ", xacq->seq); in xfrm_acquire_print()
[all …]
Dipntable.c343 FILE *fp = (FILE *)arg; in print_ntable() local
389 fprintf(fp, "inet "); in print_ntable()
391 fprintf(fp, "inet6 "); in print_ntable()
393 fprintf(fp, "dnet "); in print_ntable()
395 fprintf(fp, "(%d) ", ndtm->ndtm_family); in print_ntable()
400 fprintf(fp, "%s ", name); in print_ntable()
403 fprintf(fp, "%s", _SL_); in print_ntable()
408 fprintf(fp, " "); in print_ntable()
413 fprintf(fp, "thresh1 %u ", thresh1); in print_ntable()
418 fprintf(fp, "thresh2 %u ", thresh2); in print_ntable()
[all …]
/external/tensorflow/tensorflow/lite/experimental/microfrontend/lib/
Dfrontend_io.c28 FILE* fp = fopen(header, "w"); in WriteFrontendStateMemmap() local
29 if (!fp) { in WriteFrontendStateMemmap()
33 fprintf(fp, "#ifndef FRONTEND_STATE_MEMMAP_H_\n"); in WriteFrontendStateMemmap()
34 fprintf(fp, "#define FRONTEND_STATE_MEMMAP_H_\n"); in WriteFrontendStateMemmap()
35 fprintf(fp, "\n"); in WriteFrontendStateMemmap()
36 fprintf(fp, "#include \"frontend.h\"\n"); in WriteFrontendStateMemmap()
37 fprintf(fp, "\n"); in WriteFrontendStateMemmap()
38 fprintf(fp, "struct FrontendState* GetFrontendStateMemmap();\n"); in WriteFrontendStateMemmap()
39 fprintf(fp, "\n"); in WriteFrontendStateMemmap()
40 fprintf(fp, "#endif // FRONTEND_STATE_MEMMAP_H_\n"); in WriteFrontendStateMemmap()
[all …]
Dfilterbank_io.c17 static void PrintArray(FILE* fp, const char* name, const int16_t* values, in PrintArray() argument
19 fprintf(fp, "static int16_t filterbank_%s[] = {", name); in PrintArray()
22 fprintf(fp, "%d", values[i]); in PrintArray()
24 fprintf(fp, ", "); in PrintArray()
27 fprintf(fp, "};\n"); in PrintArray()
30 void FilterbankWriteMemmapPreamble(FILE* fp, in FilterbankWriteMemmapPreamble() argument
34 PrintArray(fp, "channel_frequency_starts", state->channel_frequency_starts, in FilterbankWriteMemmapPreamble()
36 PrintArray(fp, "channel_weight_starts", state->channel_weight_starts, in FilterbankWriteMemmapPreamble()
38 PrintArray(fp, "channel_widths", state->channel_widths, num_channels_plus_1); in FilterbankWriteMemmapPreamble()
44 PrintArray(fp, "weights", state->weights, num_weights); in FilterbankWriteMemmapPreamble()
[all …]
/external/selinux/checkpolicy/test/
Ddispol.c46 FILE * fp) in render_access_mask() argument
49 fprintf(fp, "{"); in render_access_mask()
52 fprintf(fp, "%s ", perm); in render_access_mask()
53 fprintf(fp, "}"); in render_access_mask()
57 int render_type(uint32_t type, policydb_t * p, FILE * fp) in render_type() argument
59 fprintf(fp, "%s", p->p_type_val_to_name[type - 1]); in render_type()
63 int render_key(avtab_key_t * key, policydb_t * p, FILE * fp) in render_key() argument
70 fprintf(fp, "%s %s : %s ", stype, ttype, tclass); in render_key()
72 fprintf(fp, "%s %u : %s ", stype, key->target_type, tclass); in render_key()
74 fprintf(fp, "%u %s : %s ", key->source_type, ttype, tclass); in render_key()
[all …]
Ddismod.c75 FILE * fp) in render_access_mask() argument
78 fprintf(fp, "{"); in render_access_mask()
81 fprintf(fp, "%s ", perm); in render_access_mask()
82 fprintf(fp, "}"); in render_access_mask()
86 policydb_t * p, FILE * fp) in render_access_bitmap() argument
90 fprintf(fp, "{"); in render_access_bitmap()
95 fprintf(fp, " %s", perm); in render_access_bitmap()
98 fprintf(fp, " }"); in render_access_bitmap()
101 static void display_id(policydb_t * p, FILE * fp, uint32_t symbol_type, in display_id() argument
109 fprintf(fp, " [%s%s]", prefix, id); in display_id()
[all …]
/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_policy_memory_test.c46 FILE *fp = fopen("/sys/kernel/security/tomoyo/meminfo", "r"); in get_meminfo() local
47 if (!fp || fscanf(fp, "Policy: %u", policy_memory) != 1 || fclose(fp)) in get_meminfo()
53 FILE *fp = fopen(policy_file, "r"); in check_policy_common() local
57 if (!fp) in check_policy_common()
59 while (fgets(buffer, sizeof(buffer) - 1, fp)) { in check_policy_common()
68 fclose(fp); in check_policy_common()
76 static inline void check_policy_written(FILE * fp, const int id) in check_policy_written() argument
78 fflush(fp); in check_policy_written()
82 static inline void check_policy_deleted(FILE * fp, const int id) in check_policy_deleted() argument
84 fflush(fp); in check_policy_deleted()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_fragprog.c38 struct nv30_fragprog *fp = nv30->fragprog.program; in nv30_fragprog_upload() local
41 if (unlikely(!fp->buffer)) in nv30_fragprog_upload()
42 fp->buffer = pipe_buffer_create(pipe->screen, 0, 0, fp->insn_len * 4); in nv30_fragprog_upload()
45 pipe_buffer_write(pipe, fp->buffer, 0, fp->insn_len * 4, fp->insn); in nv30_fragprog_upload()
52 map = pipe_buffer_map(pipe, fp->buffer, in nv30_fragprog_upload()
55 for (i = 0; i < fp->insn_len; i++) in nv30_fragprog_upload()
56 *map++ = (fp->insn[i] >> 16) | (fp->insn[i] << 16); in nv30_fragprog_upload()
61 if (nv04_resource(fp->buffer)->domain != NOUVEAU_BO_VRAM) in nv30_fragprog_upload()
62 nouveau_buffer_migrate(nv, nv04_resource(fp->buffer), NOUVEAU_BO_VRAM); in nv30_fragprog_upload()
70 struct nv30_fragprog *fp = nv30->fragprog.program; in nv30_fragprog_validate() local
[all …]
/external/python/cpython2/Tools/unicode/
Dmakeunicodedata.py228 fp = open(FILE, "w")
229 print >>fp, "/* this file was generated by %s %s */" % (SCRIPT, VERSION)
230 print >>fp
231 print >>fp, '#define UNIDATA_VERSION "%s"' % UNIDATA_VERSION
232 print >>fp, "/* a list of unique database records */"
233 print >>fp, \
236 print >>fp, " {%d, %d, %d, %d, %d, %d}," % item
237 print >>fp, "};"
238 print >>fp
240 print >>fp, "/* Reindexing of NFC first characters. */"
[all …]
/external/python/cpython3/Parser/
Dprintgrammar.c16 printgrammar(grammar *g, FILE *fp) in printgrammar() argument
18 fprintf(fp, "/* Generated by Parser/pgen */\n\n"); in printgrammar()
19 fprintf(fp, "#include \"pgenheaders.h\"\n"); in printgrammar()
20 fprintf(fp, "#include \"grammar.h\"\n"); in printgrammar()
21 fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n"); in printgrammar()
22 printdfas(g, fp); in printgrammar()
23 printlabels(g, fp); in printgrammar()
24 fprintf(fp, "grammar _PyParser_Grammar = {\n"); in printgrammar()
25 fprintf(fp, " %d,\n", g->g_ndfas); in printgrammar()
26 fprintf(fp, " dfas,\n"); in printgrammar()
[all …]
/external/python/cpython2/Parser/
Dprintgrammar.c14 printgrammar(grammar *g, FILE *fp) in printgrammar() argument
16 fprintf(fp, "/* Generated by Parser/pgen */\n\n"); in printgrammar()
17 fprintf(fp, "#include \"pgenheaders.h\"\n"); in printgrammar()
18 fprintf(fp, "#include \"grammar.h\"\n"); in printgrammar()
19 fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n"); in printgrammar()
20 printdfas(g, fp); in printgrammar()
21 printlabels(g, fp); in printgrammar()
22 fprintf(fp, "grammar _PyParser_Grammar = {\n"); in printgrammar()
23 fprintf(fp, " %d,\n", g->g_ndfas); in printgrammar()
24 fprintf(fp, " dfas,\n"); in printgrammar()
[all …]
/external/icu/icu4c/source/i18n/
Drematch.cpp2693 inline REStackFrame *RegexMatcher::StateSave(REStackFrame *fp, int64_t savePatIdx, UErrorCode &stat… in StateSave() argument
2695 return fp; in StateSave()
2708 return fp; in StateSave()
2710 fp = (REStackFrame *)(newFP - fFrameSize); // in case of realloc of stack. in StateSave()
2713 int64_t *source = (int64_t *)fp; in StateSave()
2726 fp->fPatIdx = savePatIdx; in StateSave()
2780 REStackFrame *fp = resetStack(); in MatchAt() local
2786 fp->fPatIdx = 0; in MatchAt()
2787 fp->fInputIdx = startIdx; in MatchAt()
2800 op = (int32_t)pat[fp->fPatIdx]; in MatchAt()
[all …]
/external/u-boot/arch/m68k/lib/
Dtraps.c19 static void show_frame(struct pt_regs *fp) in show_frame() argument
21 printf ("Vector Number: %d Format: %02x Fault Status: %01x\n\n", (fp->vector & 0x3fc) >> 2, in show_frame()
22 fp->format, (fp->vector & 0x3) | ((fp->vector & 0xc00) >> 8)); in show_frame()
23 printf ("PC: %08lx SR: %08lx SP: %08lx\n", fp->pc, (long) fp->sr, (long) fp); in show_frame()
25 fp->d0, fp->d1, fp->d2, fp->d3); in show_frame()
27 fp->d4, fp->d5, fp->d6, fp->d7); in show_frame()
29 fp->a0, fp->a1, fp->a2, fp->a3); in show_frame()
31 fp->a4, fp->a5, fp->a6); in show_frame()
34 void exc_handler(struct pt_regs *fp) { in exc_handler() argument
36 show_frame (fp); in exc_handler()
/external/selinux/libsepol/src/
Dwrite.c50 struct policy_file *fp; member
55 avrule_t * avrules, struct policy_file *fp);
57 static int ebitmap_write(ebitmap_t * e, struct policy_file *fp) in ebitmap_write() argument
72 items = put_entry(buf, sizeof(uint32_t), 3, fp); in ebitmap_write()
78 items = put_entry(&bit, sizeof(uint32_t), 1, fp); in ebitmap_write()
82 items = put_entry(&map, sizeof(uint64_t), 1, fp); in ebitmap_write()
102 avtab_ptr_t cur, struct policy_file *fp, in avtab_write_item() argument
156 ERR(fp->handle, "null entry"); in avtab_write_item()
160 ERR(fp->handle, "entry has both access " in avtab_write_item()
186 ERR(fp->handle, "missing node"); in avtab_write_item()
[all …]
/external/tensorflow/tensorflow/lite/testing/
Dgenerate_examples_report.py32 def make_report_table(fp, title, reports): argument
52 fp.write("<td style='background-color: %s' onclick='%s'>%s</td>\n" % (
55 fp.write("""<html>
70 fp.write("<script> \n")
71 fp.write("""
78 fp.write("var data = \n")
79 fp.write(json.dumps([[cgi.escape(x[1]["tf_log"], quote=True),
82 fp.write(";</script>\n")
85 fp.write("""
97 fp.write("<table>\n")
[all …]
/external/v8/src/snapshot/
Dmksnapshot.cc60 FILE* fp = GetFileDescriptorOrDie(snapshot_blob_path_); in MaybeWriteStartupBlob() local
61 size_t written = fwrite(blob.begin(), 1, blob.length(), fp); in MaybeWriteStartupBlob()
62 fclose(fp); in MaybeWriteStartupBlob()
73 FILE* fp = GetFileDescriptorOrDie(snapshot_cpp_path_); in MaybeWriteSnapshotFile() local
75 WriteSnapshotFilePrefix(fp); in MaybeWriteSnapshotFile()
76 WriteSnapshotFileData(fp, blob); in MaybeWriteSnapshotFile()
77 WriteSnapshotFileSuffix(fp); in MaybeWriteSnapshotFile()
79 fclose(fp); in MaybeWriteSnapshotFile()
82 static void WriteSnapshotFilePrefix(FILE* fp) { in WriteSnapshotFilePrefix() argument
83 fprintf(fp, "// Autogenerated snapshot file. Do not edit.\n\n"); in WriteSnapshotFilePrefix()
[all …]
/external/u-boot/tools/
Dbmp_logo.c36 void skip_bytes (FILE *fp, int n) in skip_bytes() argument
39 fgetc (fp); in skip_bytes()
43 int error (char * msg, FILE *fp) in error() argument
47 fclose (fp); in error()
76 FILE *fp; in main() local
95 fp = fopen(argv[2], "rb"); in main()
96 if (!fp) { in main()
101 if (fgetc (fp) != 'B' || fgetc (fp) != 'M') in main()
102 error ("Input file is not a bitmap", fp); in main()
108 skip_bytes (fp, 8); in main()
[all …]
/external/python/cpython3/Tools/unicode/
Dmakeunicodedata.py261 fp = open(FILE, "w")
262 print("/* this file was generated by %s %s */" % (SCRIPT, VERSION), file=fp)
263 print(file=fp)
264 print('#define UNIDATA_VERSION "%s"' % UNIDATA_VERSION, file=fp)
265 print("/* a list of unique database records */", file=fp)
266 print("const _PyUnicode_DatabaseRecord _PyUnicode_Database_Records[] = {", file=fp)
268 print(" {%d, %d, %d, %d, %d, %d}," % item, file=fp)
269 print("};", file=fp)
270 print(file=fp)
272 print("/* Reindexing of NFC first characters. */", file=fp)
[all …]
/external/python/cpython2/Lib/plat-mac/
Dgensuitemodule.py484 fp = open(initfilename, 'w')
486 fp.write('"""\n')
487 fp.write("Package generated from %s\n"%ascii(fname))
489 fp.write("Resource %s resid %d %s\n"%(ascii(resinfo[1]), resinfo[0], ascii(resinfo[2])))
490 fp.write('"""\n')
491 fp.write('import aetools\n')
492 fp.write('Error = aetools.Error\n')
495 fp.write("import %s\n" % modname)
496 fp.write("\n\n_code_to_module = {\n")
498 fp.write(" '%s' : %s,\n"%(ascii(code), modname))
[all …]
/external/libchrome/base/debug/
Dstack_trace.cc49 uintptr_t GetNextStackFrame(uintptr_t fp) { in GetNextStackFrame() argument
50 return reinterpret_cast<const uintptr_t*>(fp)[0] - kStackFrameAdjustment; in GetNextStackFrame()
53 uintptr_t GetStackFramePC(uintptr_t fp) { in GetStackFramePC() argument
54 return reinterpret_cast<const uintptr_t*>(fp)[1]; in GetStackFramePC()
57 bool IsStackFrameValid(uintptr_t fp, uintptr_t prev_fp, uintptr_t stack_end) { in IsStackFrameValid() argument
60 if (fp <= prev_fp) return false; in IsStackFrameValid()
63 if (fp - prev_fp > 100000) return false; in IsStackFrameValid()
66 if (fp & (sizeof(uintptr_t) - 1)) return false; in IsStackFrameValid()
70 if (fp > stack_end - 2 * sizeof(uintptr_t)) return false; in IsStackFrameValid()
73 if (GetStackFramePC(fp) < 32768) return false; in IsStackFrameValid()
[all …]
/external/pdfium/third_party/lcms/src/
Dcmssm.c594 FILE* fp;
599 fp = fopen (fname, "wt");
600 if (fp == NULL)
603 fprintf (fp, "#VRML V2.0 utf8\n");
606 fprintf (fp, "DEF CamTest Group {\n");
607 fprintf (fp, "\tchildren [\n");
608 fprintf (fp, "\t\tDEF Cameras Group {\n");
609 fprintf (fp, "\t\t\tchildren [\n");
610 fprintf (fp, "\t\t\t\tDEF DefaultView Viewpoint {\n");
611 fprintf (fp, "\t\t\t\t\tposition 0 0 340\n");
[all …]

12345678910>>...183