Home
last modified time | relevance | path

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

12345678910>>...118

/external/libcups/cups/
Dfile.c68 static ssize_t cups_compress(cups_file_t *fp, const char *buf, size_t bytes);
70 static ssize_t cups_fill(cups_file_t *fp);
72 static ssize_t cups_read(cups_file_t *fp, char *buf, size_t bytes);
73 static ssize_t cups_write(cups_file_t *fp, const char *buf, size_t bytes);
352 cupsFileClose(cups_file_t *fp) /* I - CUPS file */ in cupsFileClose() argument
359 DEBUG_printf(("cupsFileClose(fp=%p)", (void *)fp)); in cupsFileClose()
365 if (!fp) in cupsFileClose()
372 if (fp->mode == 'w') in cupsFileClose()
373 status = cupsFileFlush(fp); in cupsFileClose()
378 if (fp->compressed && status >= 0) in cupsFileClose()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_print.c39 print_tabs(unsigned num_tabs, FILE *fp) in print_tabs() argument
42 fprintf(fp, "\t"); in print_tabs()
46 FILE *fp; member
83 FILE *fp = state->fp; in print_register() local
85 fprintf(fp, "/* %s */ ", reg->name); in print_register()
87 fprintf(fp, "gr%u", reg->index); in print_register()
89 fprintf(fp, "r%u", reg->index); in print_register()
97 FILE *fp = state->fp; in print_register_decl() local
98 fprintf(fp, "decl_reg %s %u ", sizes[reg->num_components], reg->bit_size); in print_register_decl()
100 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/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/syslinux/dos/
Dmalloc.c27 struct free_arena_header *fp; in __init_memory_arena() local
29 fp = (struct free_arena_header *)__mem_end; in __init_memory_arena()
30 fp->a.type = ARENA_TYPE_FREE; in __init_memory_arena()
31 fp->a.size = __heap_end - (char *)__mem_end; in __init_memory_arena()
34 fp->a.next = fp->a.prev = &__malloc_head; in __init_memory_arena()
35 fp->next_free = fp->prev_free = &__malloc_head; in __init_memory_arena()
36 __malloc_head.a.next = __malloc_head.a.prev = fp; in __init_memory_arena()
37 __malloc_head.next_free = __malloc_head.prev_free = fp; in __init_memory_arena()
40 static void *__malloc_from_block(struct free_arena_header *fp, size_t size) in __malloc_from_block() argument
45 fsize = fp->a.size; in __malloc_from_block()
[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/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/contrib/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/syslinux/core/mem/
Dinit.c19 struct free_arena_header *fp; in scan_highmem_area() local
37 fp = (struct free_arena_header *)start; in scan_highmem_area()
38 fp->a.attrs = ARENA_TYPE_USED | (HEAP_MAIN << ARENA_HEAP_POS); in scan_highmem_area()
40 fp->a.magic = ARENA_MAGIC; in scan_highmem_area()
42 ARENA_SIZE_SET(fp->a.attrs, len); in scan_highmem_area()
44 __inject_free_block(fp); in scan_highmem_area()
55 struct free_arena_header *fp;
59 fp = head->next_free;
60 while (fp != head) {
61 size = ARENA_SIZE_GET(fp->a.attrs);
[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/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 …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cShaderStorageBufferObjectTests.cpp1410 float* fp = reinterpret_cast<float*>(&in_data[0]); in GetInput430c1() local
1412 fp[0] = 1.0f; in GetInput430c1()
1413 fp[1] = 2.0f; in GetInput430c1()
1414 fp[2] = 3.0f; in GetInput430c1()
1415 fp[3] = 4.0f; in GetInput430c1()
1448 float* fp = reinterpret_cast<float*>(&in_data[0]); in GetInput430c2() local
1449 fp[0] = 1.0f; in GetInput430c2()
1450 fp[1] = 2.0f; in GetInput430c2()
1451 fp[2] = 3.0f; in GetInput430c2()
1452 fp[3] = 4.0f; in GetInput430c2()
[all …]
Dgl4cES31CompatibilityShaderStorageBufferObjectTests.cpp1354 float* fp = reinterpret_cast<float*>(&in_data[0]); in GetInput430c1() local
1356 fp[0] = 1.0f; in GetInput430c1()
1357 fp[1] = 2.0f; in GetInput430c1()
1358 fp[2] = 3.0f; in GetInput430c1()
1359 fp[3] = 4.0f; in GetInput430c1()
1392 float* fp = reinterpret_cast<float*>(&in_data[0]); in GetInput430c2() local
1393 fp[0] = 1.0f; in GetInput430c2()
1394 fp[1] = 2.0f; in GetInput430c2()
1395 fp[2] = 3.0f; in GetInput430c2()
1396 fp[3] = 4.0f; in GetInput430c2()
[all …]
/external/deqp/external/openglcts/modules/gles31/
Des31cShaderStorageBufferObjectTests.cpp1348 float* fp = reinterpret_cast<float*>(&in_data[0]); in GetInput430c1() local
1350 fp[0] = 1.0f; in GetInput430c1()
1351 fp[1] = 2.0f; in GetInput430c1()
1352 fp[2] = 3.0f; in GetInput430c1()
1353 fp[3] = 4.0f; in GetInput430c1()
1385 float* fp = reinterpret_cast<float*>(&in_data[0]); in GetInput430c2() local
1386 fp[0] = 1.0f; in GetInput430c2()
1387 fp[1] = 2.0f; in GetInput430c2()
1388 fp[2] = 3.0f; in GetInput430c2()
1389 fp[3] = 4.0f; in GetInput430c2()
[all …]
/external/ppp/pppd/plugins/rp-pppoe/
Ddebug.c37 dumpHex(FILE *fp, unsigned char const *buf, int len) in dumpHex() argument
42 if (!fp) return; in dumpHex()
46 fprintf(fp, "(PAP Authentication Frame -- Contents not dumped)\n"); in dumpHex()
53 fprintf(fp, "%02x ", (unsigned) buf[i]); in dumpHex()
55 fprintf(fp, " "); in dumpHex()
58 fprintf(fp, " "); in dumpHex()
62 fprintf(fp, "%c", buf[i]); in dumpHex()
64 fprintf(fp, "."); in dumpHex()
70 fprintf(fp, "\n"); in dumpHex()
86 dumpPacket(FILE *fp, PPPoEPacket *packet, char const *dir) in dumpPacket() argument
[all …]

12345678910>>...118