/external/elfutils/tests/ |
D | elfstrmerge.c | 95 fail (const char *msg, const char *fname) in fail() argument 98 if (fname != NULL) in fail() 99 error (1, 0, "%s: %s", fname, msg); in fail() 106 fail_errno (const char *msg, const char *fname) in fail_errno() argument 109 if (fname != NULL) in fail_errno() 110 error (1, errno, "%s: %s", fname, msg); in fail_errno() 117 fail_idx (const char *msg, const char *fname, size_t idx) in fail_idx() argument 120 if (fname != NULL) in fail_idx() 121 error (1, 0, "%s: %s %zd", fname, msg, idx); in fail_idx() 128 fail_elf (const char *msg, const char *fname) in fail_elf() argument [all …]
|
D | arls.c | 28 static int handle (const char *fname); 48 handle (const char *fname) in handle() argument 50 int fd = open (fname, O_RDONLY); in handle() 53 printf ("cannot open '%s': %m\n", fname); in handle() 61 fname, elf_errmsg (-1)); in handle() 68 printf ("'%s' is no archive\n", fname); in handle() 74 printf ("%s:\n", fname); in handle() 83 fname, elf_errmsg (-1)); in handle()
|
/external/zlib/src/contrib/untgz/ |
D | untgz.c | 98 char *fname; member 206 int setfiletime (char *fname,time_t ftime) in setfiletime() argument 234 hFile = CreateFile(fname, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, in setfiletime() 246 return utime(fname,&settime); in setfiletime() 253 void push_attr(struct attr_item **list,char *fname,int mode,time_t time) in push_attr() argument 260 item->fname = strdup(fname); in push_attr() 276 setfiletime(item->fname,item->time); in restore_attr() 277 chmod(item->fname,item->mode); in restore_attr() 371 int matchname (int arg,int argc,char **argv,char *fname) in matchname() argument 377 if (ExprMatch(fname,argv[arg++])) in matchname() [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | radattr.c | 70 char fname[512]; in print_attributes() local 75 slprintf(fname, sizeof(fname), "/var/run/radattr.%s", ifname); in print_attributes() 76 fp = fopen(fname, "w"); in print_attributes() 78 warn("radattr plugin: Could not open %s for writing: %m", fname); in print_attributes() 90 dbglog("RADATTR plugin wrote %d line(s) to file %s.", cnt, fname); in print_attributes() 106 char fname[512]; in cleanup() local 108 slprintf(fname, sizeof(fname), "/var/run/radattr.%s", ifname); in cleanup() 109 (void) remove(fname); in cleanup() 110 dbglog("RADATTR plugin removed file %s.", fname); in cleanup()
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | SIPObject.java | 111 String fname = fieldType.toString(); in equals() local 112 if (fname.compareTo("int") == 0) { in equals() 115 } else if (fname.compareTo("short") == 0) { in equals() 118 } else if (fname.compareTo("char") == 0) { in equals() 121 } else if (fname.compareTo("long") == 0) { in equals() 124 } else if (fname.compareTo("boolean") == 0) { in equals() 127 } else if (fname.compareTo("double") == 0) { in equals() 130 } else if (fname.compareTo("float") == 0) { in equals() 201 String fname = fieldType.toString(); in match() local 202 if (fname.compareTo("int") == 0) { in match() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/address/ |
D | NetObject.java | 109 String fname = fieldType.toString(); in equals() local 110 if (fname.compareTo("int") == 0) { in equals() 113 } else if (fname.compareTo("short") == 0) { in equals() 116 } else if (fname.compareTo("char") == 0) { in equals() 119 } else if (fname.compareTo("long") == 0) { in equals() 122 } else if (fname.compareTo("boolean") == 0) { in equals() 125 } else if (fname.compareTo("double") == 0) { in equals() 128 } else if (fname.compareTo("float") == 0) { in equals() 199 String fname = fieldType.toString(); in match() local 200 if (fname.compareTo("int") == 0) { in match() [all …]
|
/external/autotest/client/cros/ |
D | kernel_trace.py | 78 fname = os.path.join(self._TRACE_ROOT, 'tracing_on') 79 result = int(utils.read_one_line(fname).strip()) 101 fname = os.path.join(self._TRACE_ROOT, 'tracing_on') 102 result = int(utils.read_one_line(fname).strip()) 125 fname = os.path.join(self._TRACE_ROOT, 'events', event_path, 'enable') 127 if not os.path.exists(fname): 128 logging.warning("Unable to locate tracing event %s", fname) 130 utils.write_one_line(fname, val) 132 fname = os.path.join(self._TRACE_ROOT, "set_event") 134 with open(fname) as fd: [all …]
|
/external/ipsec-tools/src/racoon/ |
D | logger.c | 64 log_open(siz, fname) in log_open() argument 66 char *fname; 91 if (fname) 92 p->fname = racoon_strdup(fname); 128 if (p->fname == NULL) 130 fp = fopen(p->fname, "a"); 146 if (p->fname == NULL) in log_vprint() 148 fp = fopen(p->fname, "a"); in log_vprint() 165 if (p->fname == NULL) in log_vaprint() 167 fp = fopen(p->fname, "a"); in log_vaprint() [all …]
|
/external/elfutils/src/ |
D | size.c | 96 static int process_file (const char *fname); 99 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname); 102 static void handle_elf (Elf *elf, const char *fullname, const char *fname); 107 #define INTERNAL_ERROR(fname) \ argument 109 fname, __LINE__, PACKAGE_VERSION, elf_errmsg (-1)) 284 process_file (const char *fname) in process_file() argument 286 int fd = open (fname, O_RDONLY); in process_file() 289 error (0, errno, gettext ("cannot open '%s'"), fname); in process_file() 299 handle_elf (elf, NULL, fname); in process_file() 302 INTERNAL_ERROR (fname); in process_file() [all …]
|
D | objdump.c | 91 static int process_file (const char *fname, bool more_than_one); 94 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname, 98 static int handle_elf (Elf *elf, const char *prefix, const char *fname, 102 #define INTERNAL_ERROR(fname) \ argument 104 fname, __LINE__, PACKAGE_VERSION, elf_errmsg (-1)) 247 process_file (const char *fname, bool more_than_one) in process_file() argument 250 int fd = open (fname, O_RDONLY); in process_file() 253 error (0, errno, gettext ("cannot open %s"), fname); in process_file() 264 fname, NULL); in process_file() 267 INTERNAL_ERROR (fname); in process_file() [all …]
|
D | findtextrel.c | 89 static int process_file (const char *fname, bool more_than_one); 95 const char *fname, bool more_than_one, 200 process_file (const char *fname, bool more_than_one) in process_file() argument 205 size_t fname_len = strlen (fname); in process_file() 207 const char *real_fname = fname; in process_file() 208 if (fname[0] == '/' && (rootdir[0] != '/' || rootdir[1] != '\0')) in process_file() 214 fname, fname_len)) = '\0'; in process_file() 221 error (0, errno, gettext ("cannot open '%s'"), fname); in process_file() 229 fname, elf_errmsg (-1)); in process_file() 239 fname, elf_errmsg (-1)); in process_file() [all …]
|
/external/nist-sip/java/gov/nist/core/ |
D | GenericObject.java | 239 String fname = fieldType.toString(); in merge() local 243 if (fname.compareTo("int") == 0) { in merge() 246 } else if (fname.compareTo("short") == 0) { in merge() 249 } else if (fname.compareTo("char") == 0) { in merge() 252 } else if (fname.compareTo("long") == 0) { in merge() 255 } else if (fname.compareTo("boolean") == 0) { in merge() 258 } else if (fname.compareTo("double") == 0) { in merge() 261 } else if (fname.compareTo("float") == 0) { in merge() 436 String fname = fieldType.toString(); in equals() local 437 if (fname.compareTo("int") == 0) { in equals() [all …]
|
/external/llvm/utils/release/ |
D | findRegressions-nightly.py | 22 fname = '' 33 fname = tmp[1].strip('\r\n') 35 fname = tmp[0].strip('\r\n') 37 if not test.has_key(fname) : 38 test[fname] = {} 41 test[fname][k] = 'NA' 42 test[fname][t[1]] = t[0] 44 print test[fname][t[1]] 53 test[fname][tp + n] = float(t[2].split(' ')[2]) 55 print test[fname][tp + n] [all …]
|
/external/libselinux/src/ |
D | booleans.c | 89 char *fname = NULL; in hidden_def() local 102 fname = (char *)malloc(sizeof(char) * len); in hidden_def() 103 if (!fname) in hidden_def() 105 snprintf(fname, len, "%s%s%s", selinux_mnt, SELINUX_BOOL_DIR, name); in hidden_def() 107 fd = open(fname, O_RDONLY); in hidden_def() 116 free(fname); in hidden_def() 121 if (fname) in hidden_def() 122 free(fname); in hidden_def() 164 char buf[2], *fname; in hidden_def() local 176 fname = (char *)malloc(sizeof(char) * len); in hidden_def() [all …]
|
/external/libpcap/ |
D | sf-pcap.c | 608 pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname) in pcap_setup_dump() argument 626 fname, pcap_strerror(errno)); in pcap_setup_dump() 638 pcap_dump_open(pcap_t *p, const char *fname) in pcap_dump_open() argument 650 fname); in pcap_dump_open() 657 fname, p->linktype); in pcap_dump_open() 662 if (fname[0] == '-' && fname[1] == '\0') { in pcap_dump_open() 664 fname = "standard output"; in pcap_dump_open() 667 f = fopen(fname, "w"); in pcap_dump_open() 669 f = fopen(fname, "wb"); in pcap_dump_open() 673 fname, pcap_strerror(errno)); in pcap_dump_open() [all …]
|
/external/boringssl/src/crypto/asn1/ |
D | tasn_prn.c | 161 const char *fname, const char *sname, 169 const char *fname, const char *sname, 173 const char *fname, const char *sname, 192 const char *fname, const char *sname, in asn1_item_print_ctx() argument 216 fname, sname, pctx)) in asn1_item_print_ctx() 237 indent, fname, sname,pctx)) in asn1_item_print_ctx() 242 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx() 262 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx() 283 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx() 285 if (fname || sname) in asn1_item_print_ctx() [all …]
|
/external/liblzf/ |
D | lzf.c | 331 compose_name (const char *fname, char *oname) in compose_name() argument 337 if (strlen (fname) > PATH_MAX - 4) in compose_name() 339 fprintf (stderr, "%s: %s.lzf: name too long", imagename, fname); in compose_name() 343 strcpy (oname, fname); in compose_name() 348 if (strlen (fname) > PATH_MAX) in compose_name() 350 fprintf (stderr, "%s: %s: name too long\n", imagename, fname); in compose_name() 354 strcpy (oname, fname); in compose_name() 358 fprintf (stderr, "%s: %s: unknown suffix\n", imagename, fname); in compose_name() 369 run_file (const char *fname) in run_file() argument 377 if (compose_name (fname, oname)) in run_file() [all …]
|
/external/vboot_reference/tests/ |
D | vb21_host_keyblock_tests.c | 29 char fname[1024]; in keyblock_tests() local 39 sprintf(fname, "%s/key_rsa2048.keyb", keys_dir); in keyblock_tests() 40 TEST_SUCC(vb2_public_key_read_keyb(&pubk2048, fname), in keyblock_tests() 45 sprintf(fname, "%s/key_rsa4096.keyb", keys_dir); in keyblock_tests() 46 TEST_SUCC(vb2_public_key_read_keyb(&pubk4096, fname), in keyblock_tests() 51 sprintf(fname, "%s/key_rsa8192.keyb", keys_dir); in keyblock_tests() 52 TEST_SUCC(vb2_public_key_read_keyb(&pubk8192, fname), in keyblock_tests() 57 sprintf(fname, "%s/key_rsa4096.pem", keys_dir); in keyblock_tests() 58 TEST_SUCC(vb2_private_key_read_pem(&prik4096, fname), in keyblock_tests() 64 sprintf(fname, "%s/key_rsa8192.pem", keys_dir); in keyblock_tests() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/message/ |
D | MessageObject.java | 85 String fname = fieldType.toString(); in debugDump() local 86 sprint(fname + ":"); in debugDump() 87 if (fname.compareTo("int") == 0) { in debugDump() 90 } else if (fname.compareTo("short") == 0) { in debugDump() 93 } else if (fname.compareTo("char") == 0) { in debugDump() 96 } else if (fname.compareTo("long") == 0) { in debugDump() 99 } else if (fname.compareTo("boolean") == 0) { in debugDump() 102 } else if (fname.compareTo("double") == 0) { in debugDump() 105 } else if (fname.compareTo("float") == 0) { in debugDump()
|
/external/elfutils/libdwfl/ |
D | find-debuginfo.c | 44 char *fname; in try_open() local 47 fname = strdup (debuglink); in try_open() 48 if (unlikely (fname == NULL)) in try_open() 51 else if ((subdir == NULL ? asprintf (&fname, "%s/%s", dir, debuglink) in try_open() 52 : dir == NULL ? asprintf (&fname, "%s/%s", subdir, debuglink) in try_open() 53 : asprintf (&fname, "%s/%s/%s", dir, subdir, debuglink)) < 0) in try_open() 57 int fd = TEMP_FAILURE_RETRY (open (fname, O_RDONLY)); in try_open() 59 free (fname); in try_open() 65 free (fname); in try_open() 71 *debuginfo_file_name = fname; in try_open() [all …]
|
D | linux-proc-maps.c | 58 char *fname; in get_pid_class() local 59 if (asprintf (&fname, PROCEXEFMT, pid) < 0) in get_pid_class() 62 int fd = open (fname, O_RDONLY); in get_pid_class() 63 free (fname); in get_pid_class() 94 char *fname; in grovel_auxv() local 95 if (asprintf (&fname, PROCAUXVFMT, pid) < 0) in grovel_auxv() 98 int fd = open (fname, O_RDONLY); in grovel_auxv() 99 free (fname); in grovel_auxv() 297 char *fname; in INTDEF() local 298 if (asprintf (&fname, PROCMAPSFMT, pid) < 0) in INTDEF() [all …]
|
/external/libmicrohttpd/src/examples/ |
D | spdy_fileserver.c | 45 #define GET_MIME_TYPE(fname, mime) do {\ argument 46 unsigned int __len = strlen(fname);\ 47 if (__len < 4 || '.' != (fname)[__len - 4]) \ 50 printf("MIME for %s is applic...\n", (fname));\ 53 const char * __ext = &(fname)[__len - 3];\ 62 printf("MIME for %s is applic...\n", (fname));\ 165 char *fname; in standard_request_handler() local 176 asprintf(&fname,"%s%s",basedir,path); in standard_request_handler() 177 if(0 == access(fname, R_OK)) in standard_request_handler() 179 if(NULL == (fd = fopen(fname,"r")) in standard_request_handler() [all …]
|
/external/libdivsufsort/examples/ |
D | suftest.c | 71 const char *fname; local 87 if(fopen_s(&fp, fname = argv[1], "rb") != 0) { 89 if((fp = LFS_FOPEN(fname = argv[1], "rb")) == NULL) { 91 fprintf(stderr, "%s: Cannot open file `%s': ", argv[0], fname); 104 fname = "stdin"; 113 fprintf(stderr, "%s: Cannot ftell `%s': ", argv[0], fname); 118 fprintf(stderr, "%s: Input file `%s' is too big.\n", argv[0], fname); 122 fprintf(stderr, "%s: Cannot fseek `%s': ", argv[0], fname); 147 fprintf(stderr, "%s: %" PRIdOFF_T " bytes ... ", fname, n);
|
D | mksary.c | 71 const char *fname, *ofname; local 87 if(fopen_s(&fp, fname = argv[1], "rb") != 0) { 89 if((fp = LFS_FOPEN(fname = argv[1], "rb")) == NULL) { 91 fprintf(stderr, "%s: Cannot open file `%s': ", argv[0], fname); 104 fname = "stdin"; 137 fprintf(stderr, "%s: Cannot ftell `%s': ", argv[0], fname); 142 fprintf(stderr, "%s: Input file `%s' is too big.\n", argv[0], fname); 146 fprintf(stderr, "%s: Cannot fseek `%s': ", argv[0], fname); 164 fname); 171 fprintf(stderr, "%s: %" PRIdOFF_T " bytes ... ", fname, n);
|
/external/elfutils/libasm/ |
D | asm_begin.c | 130 asm_begin (const char *fname, Ebl *ebl, bool textp) in asm_begin() argument 132 if (fname == NULL && ! textp) in asm_begin() 135 size_t fname_len = fname != NULL ? strlen (fname) : 0; in asm_begin() 149 if (fname != NULL) in asm_begin() 152 result->fname = stpcpy (mempcpy (result->tmp_fname, fname, fname_len), in asm_begin() 154 memcpy (result->fname, fname, fname_len + 1); in asm_begin()
|