/prebuilts/go/linux-x86/src/cmd/cgo/ |
main.go | 3 // license that can be found in the LICENSE file. 50 // A File collects information about a single Go input file. 51 type File struct { 52 AST *ast.File // parsed AST 53 Comments []*ast.CommentGroup // comments from file 58 ExpFunc []*ExpFunc // exported functions for this file 64 func (f *File) offset(p token.Pos) int { 118 // Such functions are identified in the Go input file 150 fmt.Fprint(os.Stderr, "usage: cgo -- [compiler options] file.go ...\n" [all...] |
/prebuilts/go/linux-x86/src/cmd/cover/ |
cover.go | 3 // license that can be found in the LICENSE file. 33 Write out an HTML file instead of launching a web browser: 55 output = flag.String("o", "", "file for output; default: stdout") 62 var counterStmt func(*File, string) string 133 return fmt.Errorf("missing source file") 152 // File is a wrapper for the state of a file used in the parser. 154 type File struct { 156 name string // Name of file. 157 astFile *ast.File [all...] |
/prebuilts/go/linux-x86/src/go/token/ |
position.go | 3 // license that can be found in the LICENSE file. 17 // including the file, line, and column location. 32 // file:line:column valid position with file name 33 // line:column valid position without file name 34 // file invalid position with file name 35 // - invalid position without file name 51 // Pos is a compact encoding of a source position within a file set. 55 // The Pos value for a given file is a number in the range [base, base+size] 410 func (s *FileSet) file(p Pos) *File { func [all...] |
/prebuilts/go/linux-x86/src/net/ |
unixsock.go | 3 // license that can be found in the LICENSE file. 289 // File returns a copy of the underlying os.File, set to blocking 293 // The returned os.File's file descriptor is different from the 296 func (l *UnixListener) File() (f *os.File, err error) { 300 f, err = l.file() 302 err = &OpError{Op: "file", Net: l.fd.net, Source: nil, Addr: l.fd.laddr, Err: err}
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
mimify.py | 12 of a file or an open file object. Only a readline() method is used 13 on the input file, only a write() method is used on the output file. 14 When using file names, the input and output file names may be the 47 class File: 48 """A simple fake file object that knows about limited read-ahead and 51 def __init__(self, file, boundary): 52 self.file = fil [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
mimify.py | 12 of a file or an open file object. Only a readline() method is used 13 on the input file, only a write() method is used on the output file. 14 When using file names, the input and output file names may be the 47 class File: 48 """A simple fake file object that knows about limited read-ahead and 51 def __init__(self, file, boundary): 52 self.file = fil [all...] |
/device/linaro/bootloader/edk2/ArmPlatformPkg/FileSystem/BootMonFs/ |
BootMonFsDir.c | 1 /** @file
33 *Root = &Instance->RootFile->File;
40 IN BOOTMON_FS_FILE *File
50 // Look at all Flash areas to determine file size
52 FileSize += File->HwDescription.Region[Index].Size;
56 for (RegionToFlushLink = GetFirstNode (&File->RegionToFlushLink);
57 !IsNull (&File->RegionToFlushLink, RegionToFlushLink);
58 RegionToFlushLink = GetNextNode (&File->RegionToFlushLink, RegionToFlushLink)
72 IN BOOTMON_FS_FILE* File
76 if (File->HwDescription.RegionCount == 0) { [all...] |
BootMonFsOpenClose.c | 1 /** @file
17 // Clear a file's image description on storage media:
18 // UEFI allows you to seek past the end of a file, a subsequent write will grow
19 // the file. It does not specify how space between the former end of the file
21 // BootMonFs metadata, that comes after the end of a file, could be left there
26 IN BOOTMON_FS_FILE *File
35 DiskIo = File->Instance->DiskIo;
36 BlockIo = File->Instance->BlockIo;
47 File->HwDescAddress, [all...] |
/device/linaro/bootloader/edk2/ArmVirtPkg/Library/PlatformBootManagerLib/ |
QemuKernel.c | 1 /** @file
30 // Static data that hosts the fw_cfg blobs and serves file requests.
82 // The "file in the EFI stub filesystem" abstraction.
98 EFI_FILE_PROTOCOL File; // Standard protocol interface.
102 CR (FilePointer, STUB_FILE, File, STUB_FILE_SIG)
105 // Tentative definition of the file protocol template. The initializer
112 // Protocol member functions for File.
116 Opens a new file relative to the source file's location.
119 the file handle to the source location. This would [all...] |
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/ |
Command.c | 1 /** @file
740 Argv[1] - Device or File to dump.
758 EFI_OPEN_FILE *File;
775 File = EfiOpen (Argv[1], EFI_FILE_MODE_READ, 0);
776 if (File == NULL) {
781 Size = (Argc > 3) ? AsciiStrHexToUintn (Argv[3]) : EfiTell (File, NULL);
787 // Make sure size includes the part of the file we have skipped
792 Status = EfiSeek (File, Offset, EfiSeekStart);
799 Status = EfiRead (File, Location, &Chunk);
801 AsciiPrint ("Error reading file content\n"); [all...] |
Main.c | 1 /** @file
480 EFI_OPEN_FILE *File;
488 File = EfiDeviceOpenByType (EfiOpenBlockIo, Index);
489 if (File != NULL) {
490 if (File->FsBlockIoMedia->RemovableMedia) {
494 File->FsBlockIo->ReadBlocks (File->FsBlockIo, File->FsBlockIo->Media->MediaId, (EFI_LBA)0, 0, NULL);
496 EfiClose (File);
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FvSimpleFileSystemDxe/ |
FvSimpleFileSystem.c | 1 /** @file
5 It will expose a single directory, containing one file for each file in the firmware
6 volume. If a file has a UI section, its contents will be used as a filename.
63 representing a file's info.
66 @param Buffer Pointer to a pointer to a data buffer to contain file content.
71 @retval EFI_NOT_FOUND The requested file was not found in the firmware volume.
110 representing a file's info.
112 @retval EFI_SUCCESS The file size was gotten correctly.
113 @retval Others The file size wasn't gotten correctly. [all...] |
/device/linaro/bootloader/edk2/OvmfPkg/Sec/ |
SecMain.c | 1 /** @file
142 @retval EFI_SUCCESS The file and section was found
143 @retval EFI_NOT_FOUND The file and section was not found
163 // Loop through the FFS file sections within the PEI Core FFS file
213 @retval EFI_SUCCESS The file and section was found
214 @retval EFI_NOT_FOUND The file and section was not found
236 Locates a FFS file with the specified file type and a section
237 within that file with the specified section type. [all...] |
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/ |
DmpStore.c | 1 /** @file
2 Main file for DmpStore shell Debug1 function.
121 Load the variable data from file and set to variable data base.
123 @param[in] FileHandle The file to be read.
128 @retval SHELL_DEVICE_ERROR Cannot access the file.
129 @retval SHELL_VOLUME_CORRUPTED The file is in bad format.
290 Append one variable to file.
292 @param[in] FileHandle The file to be appended.
300 @retval EFI_SUCCESS The variable is appended to file successfully.
301 @retval others Failed to append the variable to file. [all...] |
/external/clang/include/clang/Basic/ |
FileManager.h | 1 //===--- FileManager.h - File System Probing and Caching --------*- C++ -*-===// 5 // This file is distributed under the University of Illinois Open Source 10 /// \file 39 /// the virtual file system). 48 /// \brief Cached information about one file (either on disk 49 /// or in the virtual file system). 51 /// If the 'File' member is valid, then this FileEntry has an open file 52 /// descriptor for the file. 54 const char *Name; // Name of the file [all...] |
VirtualFileSystem.h | 1 //===- VirtualFileSystem.h - Virtual File System Layer ----------*- C++ -*-===// 5 // This file is distributed under the University of Illinois Open Source 9 /// \file 10 /// \brief Defines the virtual file system interface vfs::FileSystem. 59 /// \brief Returns the name that should be used for this file or directory. 85 /// \brief Represents an open file. 86 class File { 88 /// \brief Destroy the file after closing it (if open). 91 virtual ~File(); 92 /// \brief Get the status of the file [all...] |
/external/clang/lib/Frontend/Rewrite/ |
InclusionRewriter.cpp | 5 // This file is distributed under the University of Illinois Open Source 11 // a file with all included files merged into it. 45 /// Tracks where inclusions that change the file are found. 68 CharSourceRange FilenameRange, const FileEntry *File, 124 // file, so certain warnings should be suppressed." 139 /// FileChanged - Whenever the preprocessor enters or exits a #include file 148 // we didn't reach this file (eg: the main file) via an inclusion directive 164 "A file, that wasn't found via an inclusion directive, was skipped"); 169 /// directives. It does not say whether the file has been included, but i [all...] |
/external/clang/lib/Serialization/ |
MultiOnDiskHashTable.h | 5 // This file is distributed under the University of Illinois Open Source 10 // This file provides a hash table data structure suitable for incremental and 33 /// A handle to a file, used when overriding tables. 49 file_type File; 52 OnDiskTable(file_type File, unsigned NumBuckets, unsigned NumEntries, 55 : File(File), 118 bool Remove = Files.count(ODT->File); 151 Merged->Files.push_back(ODT->File); 181 /// \brief Add the table \p Data loaded from file \p File [all...] |
/external/clang/lib/Tooling/ |
JSONCompilationDatabase.cpp | 5 // This file is distributed under the University of Illinois Open Source 10 // This file contains the implementation of the JSONCompilationDatabase. 140 // This anchor is used to force the linker to link in the generated object file 263 llvm::yaml::ScalarNode *File = nullptr; 304 } else if (KeyValue == "file") { 305 File = ValueString; 312 if (!File) { 313 ErrorMessage = "Missing key: \"file\"."; 325 StringRef FileName = File->getValue(FileStorage); 336 auto Cmd = CompileCommandRef(Directory, File, *Command) [all...] |
/external/clang/tools/libclang/ |
CIndexDiagnostic.cpp | 5 |* This file is distributed under the University of Illinois Open Source *| 264 // Print source location (file:line), along with optional column 266 CXFile File; 269 &File, &Line, &Column, nullptr); 270 if (File) { 271 CXString FName = clang_getFileName(File); 291 if (StartFile != EndFile || StartFile != File)
|
CIndexHigh.cpp | 5 // This file is distributed under the University of Illinois Open Source 132 /// \brief For a macro \arg Loc, returns the file spelling location and sets 197 // We are looking for identifiers in a specific file. 216 const FileEntry *File, 221 FileID FID = SM.translateFile(File); 249 const FileEntry *File; 253 FindFileMacroRefVisitData(ASTUnit &Unit, const FileEntry *File, 256 : Unit(Unit), File(File), Macro(Macro), visitor(visitor) { } 292 // We are looking for identifiers in a specific file [all...] |
/external/clang/unittests/AST/ |
CommentParser.cpp | 5 // This file is distributed under the University of Illinois Open Source 58 FileID File = SourceMgr.createFileID(std::move(Buf)); 59 SourceLocation Begin = SourceMgr.getLocForStartOfFile(File); [all...] |
/external/clang/unittests/Basic/ |
VirtualFileSystemTest.cpp | 5 // This file is distributed under the University of Illinois Open Source 25 struct DummyFile : public vfs::File { 57 ErrorOr<std::unique_ptr<vfs::File>> 61 return std::unique_ptr<vfs::File>(new DummyFile{*S}); 309 ScopedDir TestDirectory("virtual-file-system-test", /*Unique*/true); 336 ScopedDir TestDirectory("virtual-file-system-test", /*Unique*/true); 582 auto File = FS.openFileForRead("/a"); 583 ASSERT_EQ("a", (*(*File)->getBuffer("ignored"))->getBuffer()); 584 File = FS.openFileForRead("/a"); // Open again. 585 ASSERT_EQ("a", (*(*File)->getBuffer("ignored"))->getBuffer()) [all...] |
/external/clang/unittests/Lex/ |
PPCallbacksTest.cpp | 5 // This file is distributed under the University of Illinois Open Source 58 CharSourceRange FilenameRange, const FileEntry *File, 66 this->File = File; 77 const FileEntry* File; 132 // Register a header path as a known file and add its location
|
/external/clang/unittests/Tooling/ |
RefactoringTest.cpp | 5 // This file is distributed under the University of Illinois Open Source 95 Replacement Replace("nonexistent-file.cpp", 0, 1, ""); 100 Replacement Replace("/path/to/file.cpp", 0, 1, ""); 101 EXPECT_EQ("/path/to/file.cpp", Replace.getFilePath()); 154 // This test depends on the value of the file name of an invalid source 280 const FileEntry *File = Context.Files.getFile(Path); 281 assert(File != nullptr); 287 return Context.Sources.createFileID(File, SourceLocation(), SrcMgr::C_User); 294 // a FileEntry, as otherwise we'd read through an already opened file 297 // reopen the file [all...] |