Home
last modified time | relevance | path

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

12345678910>>...100

/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
327 DEBUG_printf(("cupsFileClose(fp=%p)", (void *)fp)); in cupsFileClose()
333 if (!fp) in cupsFileClose()
340 if (fp->mode == 'w') in cupsFileClose()
341 status = cupsFileFlush(fp); in cupsFileClose()
346 if (fp->compressed && status >= 0) in cupsFileClose()
[all …]
Dtestfile.c40 static int count_lines(cups_file_t *fp);
55 cups_file_t *fp; /* File pointer */ in main() local
129 if ((fp = cupsFileOpen("../data/media.defs", "r")) == NULL) in main()
139 if ((count = count_lines(fp)) != 201) in main()
149 if (cupsFileRewind(fp) != 0) in main()
159 if ((count = count_lines(fp)) != 201) in main()
169 cupsFileClose(fp); in main()
208 if ((fp = cupsFileOpen(argv[1], "r")) == NULL) in main()
217 while (cupsFileGets(fp, line, sizeof(line))) in main()
220 if (!cupsFileEOF(fp)) in main()
[all …]
Dfile.h67 extern int cupsFileClose(cups_file_t *fp) _CUPS_API_1_2;
68 extern int cupsFileCompression(cups_file_t *fp) _CUPS_API_1_2;
69 extern int cupsFileEOF(cups_file_t *fp) _CUPS_API_1_2;
73 extern int cupsFileFlush(cups_file_t *fp) _CUPS_API_1_2;
74 extern int cupsFileGetChar(cups_file_t *fp) _CUPS_API_1_2;
75 extern char *cupsFileGetConf(cups_file_t *fp, char *buf,
78 extern size_t cupsFileGetLine(cups_file_t *fp, char *buf,
80 extern char *cupsFileGets(cups_file_t *fp, char *buf, size_t buflen)
82 extern int cupsFileLock(cups_file_t *fp, int block) _CUPS_API_1_2;
83 extern int cupsFileNumber(cups_file_t *fp) _CUPS_API_1_2;
[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/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/iproute2/ip/
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()
74 fprintf(fp, "spi 0x%08x", spi); in xfrm_acquire_print()
76 fprintf(fp, "(%u)", spi); in xfrm_acquire_print()
77 fprintf(fp, " "); in xfrm_acquire_print()
79 fprintf(fp, "%s", _SL_); in xfrm_acquire_print()
81 xfrm_selector_print(&xacq->sel, family, fp, " sel "); in xfrm_acquire_print()
83 xfrm_policy_info_print(&xacq->policy, tb, fp, " ", " policy "); in xfrm_acquire_print()
86 fprintf(fp, " seq 0x%08u ", xacq->seq); in xfrm_acquire_print()
[all …]
Dipxfrm.c282 FILE *fp, const char *prefix, const char *title) in xfrm_id_info_print() argument
287 fputs(title, fp); in xfrm_id_info_print()
290 fprintf(fp, "src %s ", rt_addr_n2a(family, sizeof(*saddr), in xfrm_id_info_print()
293 fprintf(fp, "dst %s", rt_addr_n2a(family, sizeof(id->daddr), in xfrm_id_info_print()
295 fprintf(fp, "%s", _SL_); in xfrm_id_info_print()
298 fputs(prefix, fp); in xfrm_id_info_print()
299 fprintf(fp, "\t"); in xfrm_id_info_print()
301 fprintf(fp, "proto %s ", strxf_xfrmproto(id->proto)); in xfrm_id_info_print()
305 fprintf(fp, "spi 0x%08x", spi); in xfrm_id_info_print()
307 fprintf(fp, "(%u)", spi); in xfrm_id_info_print()
[all …]
Dipntable.c354 FILE *fp = (FILE*)arg; in print_ntable() local
400 fprintf(fp, "inet "); in print_ntable()
402 fprintf(fp, "inet6 "); in print_ntable()
404 fprintf(fp, "dnet "); in print_ntable()
406 fprintf(fp, "(%d) ", ndtm->ndtm_family); in print_ntable()
410 fprintf(fp, "%s ", name); in print_ntable()
413 fprintf(fp, "%s", _SL_); in print_ntable()
418 fprintf(fp, " "); in print_ntable()
422 fprintf(fp, "thresh1 %u ", thresh1); in print_ntable()
426 fprintf(fp, "thresh2 %u ", thresh2); in print_ntable()
[all …]
Dipaddress.c96 static void print_link_flags(FILE *fp, unsigned flags, unsigned mdown) in print_link_flags() argument
98 fprintf(fp, "<"); in print_link_flags()
100 fprintf(fp, "NO-CARRIER%s", flags ? "," : ""); in print_link_flags()
104 fprintf(fp, #f "%s", flags ? "," : ""); } in print_link_flags()
125 fprintf(fp, "%x", flags); in print_link_flags()
127 fprintf(fp, ",M-DOWN"); in print_link_flags()
128 fprintf(fp, "> "); in print_link_flags()
223 static void print_linktype(FILE *fp, struct rtattr *tb) in print_linktype() argument
236 fprintf(fp, "%s", _SL_); in print_linktype()
237 fprintf(fp, " %s ", kind); in print_linktype()
[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/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/mesa3d/src/gallium/drivers/nv30/
Dnv30_fragprog.c37 struct nv30_fragprog *fp = nv30->fragprog.program; in nv30_fragprog_upload() local
43 if (unlikely(!fp->buffer)) { in nv30_fragprog_upload()
44 fp->buffer = pipe_buffer_create(pipe->screen, 0, 0, fp->insn_len * 4); in nv30_fragprog_upload()
47 map = pipe_buffer_map(pipe, fp->buffer, PIPE_TRANSFER_WRITE, &transfer); in nv30_fragprog_upload()
49 memcpy(map, fp->insn, fp->insn_len * 4); in nv30_fragprog_upload()
51 for (i = 0; i < fp->insn_len; i++) in nv30_fragprog_upload()
52 *map++ = (fp->insn[i] >> 16) | (fp->insn[i] << 16); in nv30_fragprog_upload()
56 if (nv04_resource(fp->buffer)->domain != NOUVEAU_BO_VRAM) in nv30_fragprog_upload()
57 nouveau_buffer_migrate(nv, nv04_resource(fp->buffer), NOUVEAU_BO_VRAM); in nv30_fragprog_upload()
65 struct nv30_fragprog *fp = nv30->fragprog.program; in nv30_fragprog_validate() local
[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.c49 struct policy_file *fp; member
53 static int avrule_write_list(avrule_t * avrules, struct policy_file *fp);
55 static int ebitmap_write(ebitmap_t * e, struct policy_file *fp) in ebitmap_write() argument
70 items = put_entry(buf, sizeof(uint32_t), 3, fp); in ebitmap_write()
76 items = put_entry(&bit, sizeof(uint32_t), 1, fp); in ebitmap_write()
80 items = put_entry(&map, sizeof(uint64_t), 1, fp); in ebitmap_write()
100 avtab_ptr_t cur, struct policy_file *fp, in avtab_write_item() argument
154 ERR(fp->handle, "null entry"); in avtab_write_item()
158 ERR(fp->handle, "entry has both access " in avtab_write_item()
184 ERR(fp->handle, "missing node"); in avtab_write_item()
[all …]
/external/iproute2/misc/
Difstat.c178 static void load_raw_table(FILE *fp) in load_raw_table() argument
184 while (fgets(buf, sizeof(buf), fp) != NULL) { in load_raw_table()
241 static void dump_raw_db(FILE *fp, int to_hist) in dump_raw_db() argument
243 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_raw_db()
252 fprintf(fp, "#%s\n", info_source); in dump_raw_db()
280 fprintf(fp, "%d %s ", n->ifindex, n->name); in dump_raw_db()
282 fprintf(fp, "%llu %u ", vals[i], in dump_raw_db()
284 fprintf(fp, "\n"); in dump_raw_db()
298 static void format_rate(FILE *fp, const unsigned long long *vals, in format_rate() argument
304 fprintf(fp, "%7lluM ", vals[i]/mega); in format_rate()
[all …]
/external/valgrind/memcheck/tests/
Dorigin6-fp.stderr.exp-glibc212-tilegx2 at 0x........: __divdf3 (in /u/zliu/WS1/valgrind/valgrind-latest/memcheck/tests/origin6-fp)
3 by 0x........: do3x3smooth (origin6-fp.c:47)
4 by 0x........: main (origin6-fp.c:89)
6 at 0x........: setup_arr (origin6-fp.c:75)
7 by 0x........: main (origin6-fp.c:87)
10 at 0x........: __divdf3 (in /u/zliu/WS1/valgrind/valgrind-latest/memcheck/tests/origin6-fp)
11 by 0x........: do3x3smooth (origin6-fp.c:47)
12 by 0x........: main (origin6-fp.c:89)
14 at 0x........: setup_arr (origin6-fp.c:75)
15 by 0x........: main (origin6-fp.c:87)
[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 …]
/external/pdfium/third_party/lcms2-2.6/src/
Dcmssm.c593 FILE* fp;
598 fp = fopen (fname, "wt");
599 if (fp == NULL)
602 fprintf (fp, "#VRML V2.0 utf8\n");
605 fprintf (fp, "DEF CamTest Group {\n");
606 fprintf (fp, "\tchildren [\n");
607 fprintf (fp, "\t\tDEF Cameras Group {\n");
608 fprintf (fp, "\t\t\tchildren [\n");
609 fprintf (fp, "\t\t\t\tDEF DefaultView Viewpoint {\n");
610 fprintf (fp, "\t\t\t\t\tposition 0 0 340\n");
[all …]
/external/syslinux/com32/lib/sys/
Dzfile.c45 int __file_get_block(struct file_info *fp);
46 int __file_close(struct file_info *fp);
60 static int gzip_file_init(struct file_info *fp) in gzip_file_init() argument
67 fp->i.pvt = zs; in gzip_file_init()
69 zs->next_in = (void *)fp->i.datap; in gzip_file_init()
70 zs->avail_in = fp->i.nbytes; in gzip_file_init()
77 fp->iop = &gzip_file_dev; in gzip_file_init()
78 fp->i.fd.size = -1; /* Unknown */ in gzip_file_init()
83 static ssize_t gzip_file_read(struct file_info *fp, void *ptr, size_t n) in gzip_file_read() argument
85 z_streamp zs = fp->i.pvt; in gzip_file_read()
[all …]
Dfileread.c42 int __file_get_block(struct file_info *fp) in __file_get_block() argument
46 bytes_read = pmapi_read_file(&fp->i.fd.handle, fp->i.buf, in __file_get_block()
47 MAXBLOCK >> fp->i.fd.blocklg2); in __file_get_block()
53 fp->i.nbytes = bytes_read; in __file_get_block()
54 fp->i.datap = fp->i.buf; in __file_get_block()
58 ssize_t __file_read(struct file_info * fp, void *buf, size_t count) in __file_read() argument
65 if (fp->i.nbytes == 0) { in __file_read()
66 if (fp->i.offset >= fp->i.fd.size || !fp->i.fd.handle) in __file_read()
71 ncopy = pmapi_read_file(&fp->i.fd.handle, bufp, in __file_read()
72 count >> fp->i.fd.blocklg2); in __file_read()
[all …]
/external/llvm/test/MC/Mips/
Dmodule-directive-bad.s5 .module fp=64
9 .module fp=32
13 .module fp=64
17 .module fp=32
21 .module fp=64
25 .module fp=32
29 .module fp=64
33 .module fp=32
37 .module fp=64
41 .module fp=32
[all …]
/external/libopus/silk/
Ddebug.c85 FILE *fp; in silk_TimerSave() local
106 fp = fopen(file_name, "w"); in silk_TimerSave()
107 … fprintf(fp, " min avg %% max count\n"); in silk_TimerSave()
110 fprintf(fp, "%-28s", silk_Timer_tags[k]); in silk_TimerSave()
112 fprintf(fp, " %-27s", silk_Timer_tags[k]); in silk_TimerSave()
114 fprintf(fp, " %-26s", silk_Timer_tags[k]); in silk_TimerSave()
116 fprintf(fp, " %-25s", silk_Timer_tags[k]); in silk_TimerSave()
118 fprintf(fp, " %-24s", silk_Timer_tags[k]); in silk_TimerSave()
121 … fprintf(fp, "%8.2f", (1e6 * (silk_max_64(silk_Timer_min[k] - del, 0))) / lpFrequency.QuadPart); in silk_TimerSave()
122 fprintf(fp, "%12.2f %6.2f", avg, 100.0 * avg / sum_avg * silk_Timer_cnt[k]); in silk_TimerSave()
[all …]
/external/bison/m4/
Dfpending.m438 'fp->_IO_write_ptr - fp->_IO_write_base' \
41 'fp->_ptr - fp->_base' \
44 'fp->_p - fp->_bf._base' \
47 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
50 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
53 'fp->__bufp - fp->__buffer' \
56 'fp->_pptr - fp->_pbase' \
59 'fp->_ptr - fp->_buffer' \
62 'fp->_ptr - fp->_buf' \
65 'fp->wp - fp->buf' \
[all …]
/external/boringssl/src/crypto/x509/
Dx_all.c136 X509 *d2i_X509_fp(FILE *fp, X509 **x509) in d2i_X509_fp() argument
138 return ASN1_item_d2i_fp(ASN1_ITEM_rptr(X509), fp, x509); in d2i_X509_fp()
141 int i2d_X509_fp(FILE *fp, X509 *x509) in i2d_X509_fp() argument
143 return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509), fp, x509); in i2d_X509_fp()
158 X509_CRL *d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl) in d2i_X509_CRL_fp() argument
160 return ASN1_item_d2i_fp(ASN1_ITEM_rptr(X509_CRL), fp, crl); in d2i_X509_CRL_fp()
163 int i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl) in i2d_X509_CRL_fp() argument
165 return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509_CRL), fp, crl); in i2d_X509_CRL_fp()
180 X509_REQ *d2i_X509_REQ_fp(FILE *fp, X509_REQ **req) in d2i_X509_REQ_fp() argument
182 return ASN1_item_d2i_fp(ASN1_ITEM_rptr(X509_REQ), fp, req); in d2i_X509_REQ_fp()
[all …]

12345678910>>...100