/external/openfst/src/script/ |
D | fst-class.cc | 44 FstT *ReadFst(istream &in, const string &fname) { in ReadFst() argument 46 LOG(ERROR) << "ReadFst: Can't open file: " << fname; in ReadFst() 51 if (!hdr.Read(in, fname)) { in ReadFst() 55 FstReadOptions read_options(fname, &hdr); in ReadFst() 72 FstClass *FstClass::Read(const string &fname) { in Read() argument 73 if (!fname.empty()) { in Read() 74 ifstream in(fname.c_str(), ifstream::in | ifstream::binary); in Read() 75 return ReadFst<FstClass>(in, fname); in Read() 89 MutableFstClass *MutableFstClass::Read(const string &fname, bool convert) { in Read() argument 91 if (!fname.empty()) { in Read() [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/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/nist-sip/java/gov/nist/javax/sip/address/ |
D | NetObject.java | 105 String fname = fieldType.toString(); in equals() local 106 if (fname.compareTo("int") == 0) { in equals() 109 } else if (fname.compareTo("short") == 0) { in equals() 112 } else if (fname.compareTo("char") == 0) { in equals() 115 } else if (fname.compareTo("long") == 0) { in equals() 118 } else if (fname.compareTo("boolean") == 0) { in equals() 121 } else if (fname.compareTo("double") == 0) { in equals() 124 } else if (fname.compareTo("float") == 0) { in equals() 195 String fname = fieldType.toString(); in match() local 196 if (fname.compareTo("int") == 0) { in match() [all …]
|
/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/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/src/ |
D | size.c | 97 static int process_file (const char *fname); 100 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname); 103 static void handle_elf (Elf *elf, const char *fullname, const char *fname); 108 #define INTERNAL_ERROR(fname) \ argument 110 fname, __LINE__, PACKAGE_VERSION, __DATE__, elf_errmsg (-1)) 288 process_file (const char *fname) in process_file() argument 290 int fd = open (fname, O_RDONLY); in process_file() 293 error (0, errno, gettext ("cannot open '%s'"), fname); in process_file() 303 handle_elf (elf, NULL, fname); in process_file() 306 INTERNAL_ERROR (fname); in process_file() [all …]
|
D | objdump.c | 92 static int process_file (const char *fname, bool more_than_one); 95 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname, 99 static int handle_elf (Elf *elf, const char *prefix, const char *fname, 103 #define INTERNAL_ERROR(fname) \ argument 105 fname, __LINE__, PACKAGE_VERSION, __DATE__, elf_errmsg (-1)) 251 process_file (const char *fname, bool more_than_one) in process_file() argument 254 int fd = open (fname, O_RDONLY); in process_file() 257 error (0, errno, gettext ("cannot open %s"), fname); in process_file() 268 fname, NULL); in process_file() 271 INTERNAL_ERROR (fname); in process_file() [all …]
|
D | strings.c | 48 static int read_fd (int fd, const char *fname, off64_t fdlen); 49 static int read_elf (Elf *elf, int fd, const char *fname, off64_t fdlen); 187 const char *fname = print_file_name ? argv[remaining] : NULL; in main() local 199 result |= read_fd (fd, fname, fdlen); in main() 201 result |= read_elf (elf, fd, fname, fdlen); in main() 325 process_chunk_mb (const char *fname, const unsigned char *buf, off64_t to, in process_chunk_mb() argument 359 if (unlikely (fname != NULL)) in process_chunk_mb() 361 fputs_unlocked (fname, stdout); in process_chunk_mb() 402 process_chunk (const char *fname, const unsigned char *buf, off64_t to, in process_chunk() argument 409 process_chunk_mb (fname, buf, to, len, unprinted); in process_chunk() [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 …]
|
D | ranlib.c | 48 static int handle_file (const char *fname); 156 handle_file (const char *fname) in handle_file() argument 158 int fd = open (fname, O_RDONLY); in handle_file() 161 error (0, errno, gettext ("cannot open '%s'"), fname); in handle_file() 168 error (0, errno, gettext ("cannot stat '%s'"), fname); in handle_file() 179 fname, elf_errmsg (-1)); in handle_file() 186 error (0, 0, gettext ("'%s' is no archive"), fname); in handle_file() 213 arlib_add_symbols (elf, fname, arhdr->ar_name, cur_off); in handle_file() 236 char tmpfname[strlen (fname) + 7]; in handle_file() 237 strcpy (stpcpy (tmpfname, fname), "XXXXXX"); in handle_file() [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 …]
|
D | findRegressions-simple.py | 18 fname = '' 30 fname = tmp[1].strip('\r\n') 32 fname = tmp[0].strip('\r\n') 34 if not test.has_key(fname): 35 test[fname] = {} 37 test[fname][t[1] + ' state'] = t[0] 38 test[fname][t[1] + ' time'] = float('nan') 47 test[fname]['compile time'] = float(t[2].split('program')[1].strip('\r\n')) 50 test[fname]['exec time'] = float(t[2].split('program')[1].strip('\r\n')) 52 print test[fname][string.replace(n, '-success', '')]
|
/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/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/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/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/elfutils/src/tests/ |
D | arls.c | 24 static int handle (const char *fname); 44 handle (const char *fname) in handle() argument 46 int fd = open (fname, O_RDONLY); in handle() 49 printf ("cannot open '%s': %m\n", fname); in handle() 57 fname, elf_errmsg (-1)); in handle() 64 printf ("'%s' is no archive\n", fname); in handle() 70 printf ("%s:\n", fname); in handle() 79 fname, elf_errmsg (-1)); in handle()
|
/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/elfutils/src/libasm/ |
D | asm_begin.c | 130 asm_begin (fname, ebl, textp) in asm_begin() argument 131 const char *fname; in asm_begin() 135 if (fname == NULL && ! textp) 138 size_t fname_len = fname != NULL ? strlen (fname) : 0; 152 if (fname != NULL) 155 result->fname = stpcpy (mempcpy (result->tmp_fname, fname, fname_len), 157 memcpy (result->fname, fname, fname_len + 1);
|
/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/src/libdwfl/ |
D | find-debuginfo.c | 44 char *fname; in try_open() local 47 fname = strdup (debuglink); in try_open() 48 if (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 (open64 (fname, O_RDONLY)); in try_open() 59 free (fname); in try_open() 70 *debuginfo_file_name = fname; in try_open() 257 char *fname = NULL; in find_debuginfo_in_path() local [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 = open64 (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 = open64 (fname, O_RDONLY); in grovel_auxv() 99 free (fname); in grovel_auxv() 294 char *fname; in INTDEF() local 295 if (asprintf (&fname, PROCMAPSFMT, pid) < 0) in INTDEF() [all …]
|
/external/fio/ |
D | filelock.c | 168 static int __fio_lock_file(const char *fname, int trylock) in __fio_lock_file() argument 173 hash = jhash(fname, strlen(fname), 0); in __fio_lock_file() 215 int fio_trylock_file(const char *fname) in fio_trylock_file() argument 217 return __fio_lock_file(fname, 1); in fio_trylock_file() 220 void fio_lock_file(const char *fname) in fio_lock_file() argument 222 __fio_lock_file(fname, 0); in fio_lock_file() 225 void fio_unlock_file(const char *fname) in fio_unlock_file() argument 230 hash = jhash(fname, strlen(fname), 0); in fio_unlock_file()
|
/external/wpa_supplicant_8/hostapd/ |
D | hlr_auc_gw.c | 275 static int read_gsm_triplets(const char *fname) in read_gsm_triplets() argument 282 if (fname == NULL) in read_gsm_triplets() 285 f = fopen(fname, "r"); in read_gsm_triplets() 287 printf("Could not open GSM tripler data file '%s'\n", fname); in read_gsm_triplets() 318 fname, line, pos); in read_gsm_triplets() 325 fname, line, pos); in read_gsm_triplets() 335 printf("%s:%d - Invalid Kc (%s)\n", fname, line, pos); in read_gsm_triplets() 341 printf("%s:%d - Invalid Kc (%s)\n", fname, line, pos); in read_gsm_triplets() 350 printf("%s:%d - Invalid SRES (%s)\n", fname, line, in read_gsm_triplets() 357 printf("%s:%d - Invalid SRES (%s)\n", fname, line, in read_gsm_triplets() [all …]
|