Home
last modified time | relevance | path

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

12

/xen/tools/libfsimage/common/
A Dfsimage_plugin.c92 if (fp == NULL) in init_plugin()
98 free(fp); in init_plugin()
107 fp->fp_ops = init(FSIMAGE_PLUGIN_VERSION, fp, &fp->fp_name); in init_plugin()
108 if (fp->fp_ops == NULL || in init_plugin()
112 fp->fp_next = plugins; in init_plugin()
113 plugins = fp; in init_plugin()
117 (void) dlclose(fp->fp_dlh); in init_plugin()
118 free(fp); in init_plugin()
180 fsi_plugin_t *fp; in find_plugin() local
186 for (fp = plugins; fp != NULL; fp = fp->fp_next) { in find_plugin()
[all …]
/xen/tools/fuzz/x86_instruction_emulator/
A Dafl-harness.c14 FILE *fp = NULL; in main() local
58 fp = stdin; in main()
75 fp = fopen(argv[optind + count], "rb"); in main()
76 if ( fp == NULL ) in main()
90 fseek(fp, 0, SEEK_SET); in main()
94 size = fread(input, 1, INPUT_SIZE, fp); in main()
96 if ( ferror(fp) ) in main()
103 if ( feof(fp) ) in main()
115 if ( fp != stdin ) in main()
117 fclose(fp); in main()
[all …]
/xen/tools/fuzz/libelf/
A Dafl-libelf-fuzzer.c14 FILE *fp; in main() local
24 fp = fopen(argv[1], "rb"); in main()
25 if ( fp == NULL ) in main()
31 size = fread(input, 1, INPUT_SIZE, fp); in main()
33 if ( ferror(fp) ) in main()
39 if ( !feof(fp) ) in main()
45 fclose(fp); in main()
/xen/tools/fuzz/cpu-policy/
A Dafl-policy-fuzzer.c104 FILE *fp = NULL; in main() local
140 fp = stdin; in main()
151 if ( fp != stdin ) in main()
154 fp = fopen(argv[optind], "rb"); in main()
156 if ( !fp ) in main()
168 fread(cp, sizeof(*cp), 1, fp); in main()
169 fread(mp, sizeof(*mp), 1, fp); in main()
171 if ( !feof(fp) ) in main()
181 if ( fp != stdin ) in main()
183 fclose(fp); in main()
[all …]
/xen/xen/xsm/flask/ss/
A Dpolicydb.c977 rc = next_entry(key, fp, len); in perm_read()
1026 rc = next_entry(key, fp, len); in common_read()
1191 rc = next_entry(key, fp, len); in class_read()
1288 rc = next_entry(key, fp, len); in role_read()
1297 rc = ebitmap_read(&role->types, fp); in role_read()
1372 rc = next_entry(key, fp, len); in type_read()
1407 if ( ebitmap_read(&lp->cat, fp) ) in mls_read_level()
1453 rc = next_entry(key, fp, len); in user_read()
1510 rc = next_entry(key, fp, len); in sens_read()
1566 rc = next_entry(key, fp, len); in cat_read()
[all …]
A Dconditional.c235 rc = next_entry(buf, fp, sizeof buf); in cond_read_bool()
250 rc = next_entry(key, fp, len); in cond_read_bool()
363 static int cond_read_av_list(struct policydb *p, void *fp, in cond_read_av_list() argument
374 rc = next_entry(buf, fp, sizeof(u32)); in cond_read_av_list()
422 rc = next_entry(buf, fp, sizeof(u32)); in cond_read_node()
429 rc = next_entry(buf, fp, sizeof(u32)); in cond_read_node()
438 rc = next_entry(buf, fp, sizeof(u32) * 2); in cond_read_node()
463 if ( cond_read_av_list(p, fp, &node->true_list, NULL) != 0 ) in cond_read_node()
473 int cond_read_list(struct policydb *p, void *fp) in cond_read_list() argument
480 rc = next_entry(buf, fp, sizeof buf); in cond_read_list()
[all …]
A Dpolicydb.h260 extern int policydb_read(struct policydb *p, void *fp);
284 static inline int next_entry(void *buf, struct policy_file *fp, size_t bytes) in next_entry() argument
286 if ( bytes > fp->len ) in next_entry()
289 memcpy(buf, fp->data, bytes); in next_entry()
290 fp->data += bytes; in next_entry()
291 fp->len -= bytes; in next_entry()
A Dconditional.h70 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp);
71 int cond_read_list(struct policydb *p, void *fp);
A Davtab.c341 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, in avtab_read_item() argument
359 rc = next_entry(buf32, fp, sizeof(u32)); in avtab_read_item()
372 rc = next_entry(buf32, fp, sizeof(u32)*items2); in avtab_read_item()
436 rc = next_entry(buf16, fp, sizeof(u16)*4); in avtab_read_item()
469 rc = next_entry(buf32, fp, sizeof(u32)); in avtab_read_item()
491 int avtab_read(struct avtab *a, void *fp, struct policydb *pol) in avtab_read() argument
497 rc = next_entry(buf, fp, sizeof(u32)); in avtab_read()
515 rc = avtab_read_item(a, fp, pol, avtab_insertf, NULL); in avtab_read()
A Davtab.h70 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol,
75 int avtab_read(struct avtab *a, void *fp, struct policydb *pol);
A Debitmap.c223 int ebitmap_read(struct ebitmap *e, void *fp) in ebitmap_read() argument
233 rc = next_entry(buf, fp, sizeof buf); in ebitmap_read()
261 rc = next_entry(&startbit, fp, sizeof(u32)); in ebitmap_read()
310 rc = next_entry(&map, fp, sizeof(u64)); in ebitmap_read()
/xen/tools/xenstore/
A Dxenstored_control.c95 FILE *fp; in do_control_memreport() local
105 fp = fopen(tracefile, "a"); in do_control_memreport()
114 fp = fdopen(fd, "a"); in do_control_memreport()
115 if (!fp) in do_control_memreport()
119 fp = fopen(vec[0], "a"); in do_control_memreport()
121 if (!fp) in do_control_memreport()
124 talloc_report_full(NULL, fp); in do_control_memreport()
125 fclose(fp); in do_control_memreport()
/xen/xen/tools/kconfig/
A Dconfdata.c621 fprintf(fp, "#"); in kconfig_print_comment()
623 fprintf(fp, " "); in kconfig_print_comment()
624 xfwrite(p, l, 1, fp); in kconfig_print_comment()
627 fprintf(fp, "\n"); in kconfig_print_comment()
676 fprintf(fp, "#define %s%s %s\n", in header_print_symbol()
691 fprintf(fp, "/*\n"); in header_print_comment()
694 fprintf(fp, " *"); in header_print_comment()
696 fprintf(fp, " "); in header_print_comment()
697 xfwrite(p, l, 1, fp); in header_print_comment()
700 fprintf(fp, "\n"); in header_print_comment()
[all …]
/xen/stubdom/grub.patches/
A D30savedefault.diff43 + FILE *fp;
79 + if(!(fp = fopen(default_file,"r")))
85 + fgets(line, bytes, fp);
86 + fclose(fp);
105 + if(!(fp = fopen(default_file,"w")))
111 + fprintf(fp, buf);
114 + fclose(fp);
/xen/tools/libfsimage/zfs/
A Dfsi_zfs.c144 fsi_init_plugin(int version, fsi_plugin_t *fp, const char **name) in fsi_init_plugin() argument
154 return (fsig_init(fp, &ops)); in fsi_init_plugin()
/xen/xen/include/asm-arm/
A Dcpufeature.h16 #define cpu_has_fp (boot_cpu_feature64(fp) < 8)
153 unsigned long fp:4; /* Floating Point */ member
/xen/xen/arch/x86/
A Ddomctl.c350 unsigned int fp = domctl->u.ioport_permission.first_port; in arch_do_domctl() local
354 if ( (fp + np) <= fp || (fp + np) > MAX_IOPORTS ) in arch_do_domctl()
356 else if ( !ioports_access_permitted(currd, fp, fp + np - 1) || in arch_do_domctl()
357 xsm_ioport_permission(XSM_HOOK, d, fp, fp + np - 1, allow) ) in arch_do_domctl()
360 ret = ioports_permit_access(d, fp, fp + np - 1); in arch_do_domctl()
362 ret = ioports_deny_access(d, fp, fp + np - 1); in arch_do_domctl()
/xen/xen/include/asm-arm/arm32/
A Dprocessor.h23 uint32_t fp; member
/xen/tools/libfsimage/ufs/
A Dfsys_ufs.c266 fsi_init_plugin(int version, fsi_plugin_t *fp, const char **name) in fsi_init_plugin() argument
276 return (fsig_init(fp, &ops)); in fsi_init_plugin()
/xen/xen/include/asm-arm/arm64/
A Dprocessor.h58 __DECL_REG(/* x29 */ fp, /* r13_fiq */ sp_fiq);
/xen/tools/debugger/kdd/
A Dkdd-xen.c228 memcpy(r->fp, cpu->fpu_regs, 112); // 108 save area + 4 of ??? in kdd_get_regs_x86_32()
249 memcpy(cpu->fpu_regs, r->fp, 112); // 108 save area + 4 of ??? in kdd_set_regs_x86_32()
289 memcpy(r->fp, cpu->fpu_regs, 112); // Definitely not right in kdd_get_regs_x86_64()
324 memcpy(r->fp, cpu->fpu_regs, 112); // Definitely not right in kdd_set_regs_x86_64()
/xen/xen/arch/arm/arm32/
A Dentry.S441 stmia ip!, {r4 - sl, fp, sp, lr} /* Save register state */
444 ldmia r4, {r4 - sl, fp, sp, pc} /* Load registers and return */
/xen/xen/arch/arm/arm64/
A Ddomain.c18 C(x28,x28); C(fp,x29); C(lr,x30); C(pc,pc64); \
/xen/tools/libfsimage/iso9660/
A Dfsys_iso9660.c451 fsi_init_plugin(int version, fsi_plugin_t *fp, const char **name) in fsi_init_plugin() argument
461 return (fsig_init(fp, &ops)); in fsi_init_plugin()
/xen/tools/libfsimage/fat/
A Dfsys_fat.c473 fsi_init_plugin(int version, fsi_plugin_t *fp, const char **name) in fsi_init_plugin() argument
483 return (fsig_init(fp, &ops)); in fsi_init_plugin()

Completed in 35 milliseconds

12