Home
last modified time | relevance | path

Searched refs:FileName (Results 1 – 25 of 84) sorted by relevance

1234

/external/jhead/
Djhead.c294 printf("not resizing %dx%x '%s'\n",ImageInfo.Height, ImageInfo.Width, ImageInfo.FileName);
352 static void DoCommand(const char * FileName, int ShowIt)
363 a = strlen(FileName)-1;
364 while(a > 0 && FileName[a-1] != SLASH) a--;
365 memcpy(TempName, FileName, a);
379 e += shellescape(ExecString+e, FileName);
410 unlink(FileName);
411 rename(TempName, FileName);
480 void RenameAssociated(const char * FileName, char * NewBaseName)
490 for(ExtPos = strlen(FileName);FileName[ExtPos-1] != '.';){
[all …]
Djhead.h79 char FileName [PATH_MAX+1]; member
226 void MyGlob(const char * Pattern , void (*FileFuncParm)(const char * FileName));
231 int EnsurePathExists(const char * FileName);
238 int ReadJpegFile(const char * FileName, ReadMode_t ReadMode);
244 int WriteJpegFile(const char * FileName);
Djpgfile.c520 int ReadJpegFile(const char * FileName, ReadMode_t ReadMode) in ReadJpegFile() argument
525 infile = fopen(FileName, "rb"); // Unix ignores 'b', windows needs it. in ReadJpegFile()
528 ALOGE("can't open '%s'", FileName); in ReadJpegFile()
529 fprintf(stderr, "can't open '%s'\n", FileName); in ReadJpegFile()
537 ALOGV("Cannot parse JPEG sections for file: %s", FileName); in ReadJpegFile()
538 fprintf(stderr,"Not JPEG: %s\n",FileName); in ReadJpegFile()
784 int WriteJpegFile(const char * FileName) in WriteJpegFile() argument
794 outfile = fopen(FileName,"wb"); in WriteJpegFile()
/external/netperf/
Dnetserver.c174 char FileName[PATH_MAX]; /* for opening the debug log file */ in open_debug_file() local
175 strcpy(FileName, DEBUG_LOG_FILE); in open_debug_file()
179 snprintf(&FileName[strlen(FileName)], sizeof(FileName) - strlen(FileName), "_%d", getpid()); in open_debug_file()
180 if ((where = fopen(FileName, "w")) == NULL) { in open_debug_file()
185 chmod(FileName,0644); in open_debug_file()
797 char FileName[PATH_MAX]; /* for opening the debug log file */ in main() local
918 strcpy(FileName, DEBUG_LOG_FILE); in main()
921 snprintf(&FileName[strlen(FileName)], sizeof(FileName) - strlen(FileName), "_%d", getpid()); in main()
922 if ((where = fopen(FileName, "w")) == NULL) { in main()
930 snprintf(&FileName[strlen(FileName)], sizeof(FileName) - strlen(FileName), "_%x", getpid()); in main()
[all …]
/external/clang/lib/Tooling/
DFileMatchTrie.cpp98 StringRef FileName, in findEquivalent() argument
102 if (Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent()
106 StringRef Element(llvm::sys::path::filename(FileName.drop_back( in findEquivalent()
112 Comparator, FileName, IsAmbiguous, in findEquivalent()
121 if (Comparator.equivalent(AllChildren[i], FileName)) { in findEquivalent()
174 StringRef FileMatchTrie::findEquivalent(StringRef FileName, in findEquivalent() argument
176 if (llvm::sys::path::is_relative(FileName)) { in findEquivalent()
181 StringRef Result = Root->findEquivalent(*Comparator, FileName, IsAmbiguous); in findEquivalent()
DJSONCompilationDatabase.cpp304 StringRef FileName = File->getValue(FileStorage); in parse() local
306 if (llvm::sys::path::is_relative(FileName)) { in parse()
310 llvm::sys::path::append(AbsolutePath, FileName); in parse()
313 llvm::sys::path::native(FileName, NativeFilePath); in parse()
/external/clang/lib/Frontend/
DDependencyGraph.cpp51 StringRef FileName,
73 StringRef FileName, in InclusionDirective() argument
119 StringRef FileName = AllFiles[I]->getName(); in OutputGraphFile() local
120 if (FileName.startswith(SysRoot)) in OutputGraphFile()
121 FileName = FileName.substr(SysRoot.size()); in OutputGraphFile()
123 OS << DOT::EscapeString(FileName) in OutputGraphFile()
DDependencyFile.cpp60 StringRef FileName,
134 StringRef FileName, in InclusionDirective() argument
143 AddFilename(FileName); in InclusionDirective()
/external/clang/include/clang/Frontend/
DCommandLineSourceLoc.h26 std::string FileName; member
42 PSL.FileName = LineSplit.first; in FromString()
46 if (PSL.FileName == "-") in FromString()
47 PSL.FileName = "<stdin>"; in FromString()
76 if (Val.FileName.empty()) { in parse()
/external/llvm/include/llvm/DebugInfo/
DDIContext.h32 SmallString<16> FileName; variable
38 : FileName("<invalid>"), FunctionName("<invalid>"), in DILineInfo()
43 : FileName(fileName), FunctionName(functionName), in DILineInfo()
46 const char *getFileName() { return FileName.c_str(); } in getFileName()
53 FileName.equals(RHS.FileName) &&
/external/clang/lib/Serialization/
DModuleManager.cpp40 ModuleManager::addModule(StringRef FileName, ModuleKind Type, in addModule() argument
43 const FileEntry *Entry = FileMgr.getFile(FileName, /*openFile=*/false, in addModule()
45 if (!Entry && FileName != "-") { in addModule()
57 New->FileName = FileName.str(); in addModule()
65 if (llvm::MemoryBuffer *Buffer = lookupBuffer(FileName)) { in addModule()
72 if (FileName == "-") { in addModule()
77 New->Buffer.reset(FileMgr.getBufferForFile(FileName, &ErrorStr)); in addModule()
139 void ModuleManager::addInMemoryBuffer(StringRef FileName, in addInMemoryBuffer() argument
142 const FileEntry *Entry = FileMgr.getVirtualFile(FileName, in addInMemoryBuffer()
392 return llvm::sys::path::stem(M->FileName); in getNodeLabel()
/external/llvm/lib/DebugInfo/
DDWARFContext.cpp298 std::string &FileName) { in getFileNameForCompileUnit() argument
302 FileName)) in getFileNameForCompileUnit()
304 if (NeedsAbsoluteFilePath && sys::path::is_relative(FileName)) { in getFileNameForCompileUnit()
310 sys::path::append(AbsolutePath, FileName); in getFileNameForCompileUnit()
311 FileName = AbsolutePath.str(); in getFileNameForCompileUnit()
320 std::string &FileName, in getFileLineInfoForCompileUnit() argument
331 NeedsAbsoluteFilePath, FileName)) in getFileLineInfoForCompileUnit()
343 std::string FileName = "<invalid>"; in getLineInfoForAddress() local
365 FileName, Line, Column); in getLineInfoForAddress()
367 return DILineInfo(StringRef(FileName), StringRef(FunctionName), in getLineInfoForAddress()
[all …]
/external/clang/unittests/Tooling/
DCompilationDatabaseTest.cpp115 static CompileCommand findCompileArgsInJsonDatabase(StringRef FileName, in findCompileArgsInJsonDatabase() argument
122 std::vector<CompileCommand> Commands = Database->getCompileCommands(FileName); in findCompileArgsInJsonDatabase()
215 StringRef FileName("//net/path/to/a-file.cpp"); in TEST() local
219 FileName, in TEST()
222 "\"file\":\"" + FileName + "\"}]").str(), in TEST()
236 "\"file\":\"" + FileName + "\"}]").str(), in TEST()
244 StringRef FileName("//net/path/to/a-file.cpp"); in TEST() local
248 FileName, in TEST()
251 "\"file\":\"" + FileName + "\"}]").str(), in TEST()
261 StringRef FileName("//net/path/to/a-file.cpp"); in TEST() local
[all …]
/external/llvm/lib/Support/
DLockFileManager.cpp65 LockFileManager::LockFileManager(StringRef FileName) in LockFileManager() argument
67 this->FileName = FileName; in LockFileManager()
68 LockFileName = FileName; in LockFileManager()
199 if (!sys::fs::exists(FileName.str(), Exists) && Exists) in waitForUnlock()
/external/clang/unittests/AST/
DMatchVerifier.h74 StringRef FileName; in match() local
78 FileName = "input.c"; in match()
82 FileName = "input.c"; in match()
86 FileName = "input.cc"; in match()
89 FileName = "input.cl"; in match()
94 if (!tooling::runToolOnCodeWithArgs(Factory->create(), Code, Args, FileName)) in match()
/external/llvm/lib/MC/
DMCContext.cpp301 unsigned MCContext::GetDwarfFile(StringRef Directory, StringRef FileName, in GetDwarfFile() argument
324 StringRef tFileName = sys::path::filename(FileName); in GetDwarfFile()
326 Directory = sys::path::parent_path(FileName); in GetDwarfFile()
328 FileName = tFileName; in GetDwarfFile()
358 char *Buf = static_cast<char *>(Allocate(FileName.size())); in GetDwarfFile()
359 memcpy(Buf, FileName.data(), FileName.size()); in GetDwarfFile()
360 File = new (*this) MCDwarfFile(StringRef(Buf, FileName.size()), DirIndex); in GetDwarfFile()
/external/llvm/lib/ExecutionEngine/
DEventListenerCommon.h49 StringRef FileName = DIScope.getFilename(); in getFullPath() local
54 if (FileName != "") { in getFullPath()
55 sys::path::append(FullPath, FileName); in getFullPath()
/external/clang/utils/analyzer/
DSATestBuild.py231 def hasNoExtension(FileName): argument
232 (Root, Ext) = os.path.splitext(FileName)
237 def isValidSingleInputFile(FileName): argument
238 (Root, Ext) = os.path.splitext(FileName)
263 FileName = os.path.basename(FullFileName)
267 if (hasNoExtension(FileName)):
269 if (isValidSingleInputFile(FileName) == False):
274 OutputOption = "-o " + os.path.join(PlistPath, FileName) + ".plist "
275 Command = CmdPrefix + OutputOption + os.path.join(Dir, FileName)
276 LogFile = open(os.path.join(FailPath, FileName + ".stderr.txt"), "w+b")
/external/clang/include/clang/Lex/
DPPCallbacks.h76 virtual bool FileNotFound(StringRef FileName, in FileNotFound() argument
120 StringRef FileName, in InclusionDirective() argument
287 virtual bool FileNotFound(StringRef FileName, in FileNotFound() argument
289 return First->FileNotFound(FileName, RecoveryPath) || in FileNotFound()
290 Second->FileNotFound(FileName, RecoveryPath); in FileNotFound()
295 StringRef FileName, in InclusionDirective() argument
302 First->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, in InclusionDirective()
305 Second->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, in InclusionDirective()
/external/clang/lib/Lex/
DPreprocessingRecord.cpp27 StringRef FileName, in InclusionDirective() argument
35 = (char*)PPRec.Allocate(FileName.size() + 1, llvm::alignOf<char>()); in InclusionDirective()
36 memcpy(Memory, FileName.data(), FileName.size()); in InclusionDirective()
37 Memory[FileName.size()] = 0; in InclusionDirective()
38 this->FileName = StringRef(Memory, FileName.size()); in InclusionDirective()
430 StringRef FileName, in InclusionDirective() argument
470 = new (*this) clang::InclusionDirective(*this, Kind, FileName, !IsAngled, in InclusionDirective()
/external/clang/lib/Rewrite/Frontend/
DInclusionRewriter.cpp58 StringRef FileName,
257 const char *FileName = FromFile.getBufferIdentifier(); in Process() local
264 WriteLineInfo(FileName, 1, FileType, EOL, " 1"); in Process()
300 WriteLineInfo(FileName, Line, FileType, EOL, " 2"); in Process()
304 WriteLineInfo(FileName, Line, FileType, EOL); in Process()
316 WriteLineInfo(FileName, Line, FileType, EOL); in Process()
322 WriteLineInfo(FileName, Line, FileType, EOL); in Process()
/external/clang/test/CodeGen/
Dtypes.c3 struct FileName { struct
4 struct FileName *next; argument
/external/clang/unittests/Lex/
DPPCallbacksTest.cpp50 StringRef FileName, in InclusionDirective() argument
59 this->FileName = FileName.str(); in InclusionDirective()
70 SmallString<16> FileName; member in __anon5862e8160111::InclusionDirectiveCallbacks
/external/llvm/include/llvm/Support/
DLockFileManager.h44 SmallString<128> FileName;
61 LockFileManager(StringRef FileName);
/external/clang/include/clang/Serialization/
DModuleManager.h166 addModule(StringRef FileName, ModuleKind Type, SourceLocation ImportLoc,
174 void addInMemoryBuffer(StringRef FileName, llvm::MemoryBuffer *Buffer);

1234