/external/chromium_org/third_party/leveldatabase/src/db/ |
D | filename_test.cc | 23 const char* fname; in TEST() member 40 std::string f = cases[i].fname; in TEST() 80 std::string fname; in TEST() local 82 fname = CurrentFileName("foo"); in TEST() 83 ASSERT_EQ("foo/", std::string(fname.data(), 4)); in TEST() 84 ASSERT_TRUE(ParseFileName(fname.c_str() + 4, &number, &type)); in TEST() 88 fname = LockFileName("foo"); in TEST() 89 ASSERT_EQ("foo/", std::string(fname.data(), 4)); in TEST() 90 ASSERT_TRUE(ParseFileName(fname.c_str() + 4, &number, &type)); in TEST() 94 fname = LogFileName("foo", 192); in TEST() [all …]
|
D | leveldb_main.cc | 23 bool GuessType(const std::string& fname, FileType* type) { in GuessType() argument 24 size_t pos = fname.rfind('/'); in GuessType() 27 basename = fname; in GuessType() 29 basename = std::string(fname.data() + pos + 1, fname.size() - pos - 1); in GuessType() 46 bool PrintLogContents(Env* env, const std::string& fname, in PrintLogContents() argument 49 Status s = env->NewSequentialFile(fname, &file); in PrintLogContents() 104 bool DumpLog(Env* env, const std::string& fname) { in DumpLog() argument 105 return PrintLogContents(env, fname, WriteBatchPrinter); in DumpLog() 120 bool DumpDescriptor(Env* env, const std::string& fname) { in DumpDescriptor() argument 121 return PrintLogContents(env, fname, VersionEditPrinter); in DumpDescriptor() [all …]
|
/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/chromium_org/third_party/leveldatabase/src/util/ |
D | env_posix.cc | 44 PosixSequentialFile(const std::string& fname, FILE* f) in PosixSequentialFile() argument 45 : filename_(fname), file_(f) { } in PosixSequentialFile() 78 PosixRandomAccessFile(const std::string& fname, int fd) in PosixRandomAccessFile() argument 79 : filename_(fname), fd_(fd) { } in PosixRandomAccessFile() 154 PosixMmapReadableFile(const std::string& fname, void* base, size_t length, in PosixMmapReadableFile() argument 156 : filename_(fname), mmapped_region_(base), length_(length), in PosixMmapReadableFile() 184 PosixWritableFile(const std::string& fname, FILE* f) in PosixWritableFile() argument 185 : filename_(fname), file_(f) { } in PosixWritableFile() 284 bool Insert(const std::string& fname) { in Insert() argument 286 return locked_files_.insert(fname).second; in Insert() [all …]
|
D | env.cc | 37 const std::string& fname, in DoWriteStringToFile() argument 40 Status s = env->NewWritableFile(fname, &file); in DoWriteStringToFile() 53 env->DeleteFile(fname); in DoWriteStringToFile() 59 const std::string& fname) { in WriteStringToFile() argument 60 return DoWriteStringToFile(env, data, fname, false); in WriteStringToFile() 64 const std::string& fname) { in WriteStringToFileSync() argument 65 return DoWriteStringToFile(env, data, fname, true); in WriteStringToFileSync() 68 Status ReadFileToString(Env* env, const std::string& fname, std::string* data) { in ReadFileToString() argument 71 Status s = env->NewSequentialFile(fname, &file); in ReadFileToString()
|
/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/chromium_org/third_party/leveldatabase/src/helpers/memenv/ |
D | memenv.cc | 240 virtual Status NewSequentialFile(const std::string& fname, in NewSequentialFile() argument 243 if (file_map_.find(fname) == file_map_.end()) { in NewSequentialFile() 245 return Status::IOError(fname, "File not found"); in NewSequentialFile() 248 *result = new SequentialFileImpl(file_map_[fname]); in NewSequentialFile() 252 virtual Status NewRandomAccessFile(const std::string& fname, in NewRandomAccessFile() argument 255 if (file_map_.find(fname) == file_map_.end()) { in NewRandomAccessFile() 257 return Status::IOError(fname, "File not found"); in NewRandomAccessFile() 260 *result = new RandomAccessFileImpl(file_map_[fname]); in NewRandomAccessFile() 264 virtual Status NewWritableFile(const std::string& fname, in NewWritableFile() argument 267 if (file_map_.find(fname) != file_map_.end()) { in NewWritableFile() [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/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/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/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/qemu/distrib/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/elfutils/0.153/src/ |
D | size.c | 105 static int process_file (const char *fname); 108 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname); 111 static void handle_elf (Elf *elf, const char *fullname, const char *fname); 116 #define INTERNAL_ERROR(fname) \ argument 118 fname, __LINE__, PACKAGE_VERSION, __DATE__, elf_errmsg (-1)) 296 process_file (const char *fname) in process_file() argument 298 int fd = open (fname, O_RDONLY); in process_file() 301 error (0, errno, gettext ("cannot open '%s'"), fname); in process_file() 311 handle_elf (elf, NULL, fname); in process_file() 314 INTERNAL_ERROR (fname); in process_file() [all …]
|
/external/chromium_org/third_party/leveldatabase/ |
D | env_chromium_stdio.cc | 68 FILE* fopen_internal(const char* fname, const char* mode) { in fopen_internal() argument 70 return _wfopen(base::UTF8ToUTF16(fname).c_str(), in fopen_internal() 73 return fopen(fname, mode); in fopen_internal() 84 ChromiumSequentialFile(const std::string& fname, in ChromiumSequentialFile() argument 87 : filename_(fname), file_(f), uma_logger_(uma_logger) {} in ChromiumSequentialFile() 124 ChromiumRandomAccessFile(const std::string& fname, in ChromiumRandomAccessFile() argument 127 : filename_(fname), file_(file.Pass()), uma_logger_(uma_logger) {} in ChromiumRandomAccessFile() 147 ChromiumWritableFile::ChromiumWritableFile(const std::string& fname, in ChromiumWritableFile() argument 152 : filename_(fname), in ChromiumWritableFile() 158 base::FilePath path = base::FilePath::FromUTF8Unsafe(fname); in ChromiumWritableFile() [all …]
|
D | env_chromium_win.cc | 55 ChromiumSequentialFileWin(const std::string& fname, in ChromiumSequentialFileWin() argument 58 : filename_(fname), file_(f), uma_logger_(uma_logger) { in ChromiumSequentialFileWin() 105 ChromiumRandomAccessFileWin(const std::string& fname, in ChromiumRandomAccessFileWin() argument 108 : filename_(fname), file_(file.Pass()), uma_logger_(uma_logger) {} in ChromiumRandomAccessFileWin() 147 const std::string& fname, in ChromiumWritableFileWin() argument 152 : filename_(fname), in ChromiumWritableFileWin() 159 base::FilePath path = base::FilePath::FromUTF8Unsafe(fname); in ChromiumWritableFileWin() 166 parent_dir_ = FilePathToString(ChromiumEnv::CreateFilePath(fname).DirName()); in ChromiumWritableFileWin() 245 Status ChromiumEnvWin::NewSequentialFile(const std::string& fname, in NewSequentialFile() argument 247 HANDLE f = CreateFile(base::UTF8ToUTF16(fname).c_str(), in NewSequentialFile() [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/openssl/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() 236 indent, fname, sname,pctx)) in asn1_item_print_ctx() 241 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx() 261 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx() 282 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx() 284 if (fname || sname) in asn1_item_print_ctx() [all …]
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
D | profiler.cc | 81 bool Start(const char* fname, const ProfilerOptions* options); 140 char fname[PATH_MAX]; in CpuProfiler() local 141 if (!GetUniquePathFromEnv("CPUPROFILE", fname)) { in CpuProfiler() 150 if (!Start(fname, NULL)) { in CpuProfiler() 152 fname, strerror(errno)); in CpuProfiler() 156 bool CpuProfiler::Start(const char* fname, const ProfilerOptions* options) { in Start() argument 168 if (!collector_.Start(fname, collector_options)) { in Start() 301 extern "C" PERFTOOLS_DLL_DECL int ProfilerStart(const char* fname) { in ProfilerStart() argument 302 return CpuProfiler::instance_.Start(fname, NULL); in ProfilerStart() 306 const char *fname, const ProfilerOptions *options) { in ProfilerStartWithOptions() argument [all …]
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
D | profiler.cc | 83 bool Start(const char* fname, const ProfilerOptions* options); 142 char fname[PATH_MAX]; in CpuProfiler() local 143 if (!GetUniquePathFromEnv("CPUPROFILE", fname)) { in CpuProfiler() 152 if (!Start(fname, NULL)) { in CpuProfiler() 154 fname, strerror(errno)); in CpuProfiler() 158 bool CpuProfiler::Start(const char* fname, const ProfilerOptions* options) { in Start() argument 170 if (!collector_.Start(fname, collector_options)) { in Start() 303 extern "C" PERFTOOLS_DLL_DECL int ProfilerStart(const char* fname) { in ProfilerStart() argument 304 return CpuProfiler::instance_.Start(fname, NULL); in ProfilerStart() 308 const char *fname, const ProfilerOptions *options) { in ProfilerStartWithOptions() argument [all …]
|
/external/chromium_org/third_party/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() 236 indent, fname, sname,pctx)) in asn1_item_print_ctx() 241 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx() 261 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx() 282 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx() 284 if (fname || sname) in asn1_item_print_ctx() [all …]
|
/external/elfutils/0.153/libasm/ |
D | asm_begin.c | 127 asm_begin (fname, ebl, textp) in asm_begin() argument 128 const char *fname; in asm_begin() 132 if (fname == NULL && ! textp) 135 size_t fname_len = fname != NULL ? strlen (fname) : 0; 149 if (fname != NULL) 152 result->fname = stpcpy (mempcpy (result->tmp_fname, fname, fname_len), 154 memcpy (result->fname, fname, fname_len + 1);
|
/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/fio/ |
D | filelock.c | 85 int fio_trylock_file(const char *fname) in fio_trylock_file() argument 90 hash = jhash(fname, strlen(fname), 0); in fio_trylock_file() 121 void fio_lock_file(const char *fname) in fio_lock_file() argument 126 hash = jhash(fname, strlen(fname), 0); in fio_lock_file() 136 void fio_unlock_file(const char *fname) in fio_unlock_file() argument 141 hash = jhash(fname, strlen(fname), 0); in fio_unlock_file()
|