/third_party/skia/third_party/externals/microhttpd/src/include/ |
H A D | autoinit_funcs.h | 81 #define GNUC_SET_INIT_AND_DEINIT(FI,FD) \ 84 void __attribute__ ((destructor)) _GNUC_deinit_helper_##FD(void) \ 85 { (void)(FD)(); } \ 88 #define _SET_INIT_AND_DEINIT_FUNCS(FI,FD) GNUC_SET_INIT_AND_DEINIT(FI,FD) 196 #define W32_SET_INIT_AND_DEINIT(FI,FD) \ 197 void __cdecl _W32_deinit_helper_##FD(void) \ 198 { (void)(FD)(); } \ 200 { (void)(FI)(); atexit(_W32_deinit_helper_##FD); return 0; } \ 207 #define W32_SET_INIT_AND_DEINIT(FI,FD) \ [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
H A D | MemoryBuffer.cpp | 210 MemoryBufferMMapFile(bool RequiresNullTerminator, int FD, uint64_t Len, in MemoryBufferMMapFile() argument 212 : MFR(FD, sys::fs::mapped_file_region::readonly, in MemoryBufferMMapFile() 236 getMemoryBufferForStream(int FD, const Twine &BufferName) { in getMemoryBufferForStream() argument 243 ReadBytes = read(FD, Buffer.end(), ChunkSize); in getMemoryBufferForStream() 263 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize, 270 int FD; in getFileAux() local 271 std::error_code EC = sys::fs::openFileForRead(Filename, FD); in getFileAux() 276 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux() 278 close(FD); in getFileAux() 282 static bool shouldUseMmap(int FD, in shouldUseMmap() argument 339 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize, uint64_t MapSize, int64_t Offset, bool RequiresNullTerminator, bool IsVolatileSize) getOpenFileImpl() argument 417 getOpenFile(int FD, const Twine &Filename, uint64_t FileSize, bool RequiresNullTerminator, bool IsVolatileSize) getOpenFile() argument 424 getOpenFileSlice(int FD, const Twine &Filename, uint64_t MapSize, int64_t Offset) getOpenFileSlice() argument 443 int FD; getFileAsStream() local [all...] |
H A D | raw_ostream.cpp | 479 int FD; in getFD() local 480 EC = sys::fs::openFileForWrite(Filename, FD, Flags); in getFD() 484 return FD; in getFD() 491 /// FD is the file descriptor that this writes to. If ShouldClose is true, this 494 : raw_pwrite_stream(unbuffered), FD(fd), ShouldClose(shouldClose), in raw_fd_ostream() 496 if (FD < 0 ) { in raw_fd_ostream() 502 off_t loc = ::lseek(FD, 0, SEEK_CUR); in raw_fd_ostream() 506 std::error_code EC = status(FD, Status); in raw_fd_ostream() 518 if (FD >= 0) { in ~raw_fd_ostream() 520 if (ShouldClose && sys::Process::SafelyCloseFileDescriptor(FD)) in ~raw_fd_ostream() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | MemoryBuffer.cpp | 185 MemoryBufferMMapFile(bool RequiresNullTerminator, sys::fs::file_t FD, uint64_t Len, in MemoryBufferMMapFile() argument 187 : MFR(FD, MB::Mapmode, getLegalMapSize(Len, Offset), in MemoryBufferMMapFile() 211 getMemoryBufferForStream(sys::fs::file_t FD, const Twine &BufferName) { in getMemoryBufferForStream() argument 218 FD, makeMutableArrayRef(Buffer.end(), ChunkSize)); in getMemoryBufferForStream() 239 getOpenFileImpl(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize, 251 sys::fs::file_t FD = *FDOrErr; in getFileAux() 252 auto Ret = getOpenFileImpl<MB>(FD, Filename, FileSize, MapSize, Offset, in getFileAux() 254 sys::fs::closeFile(FD); in getFileAux() 308 static bool shouldUseMmap(sys::fs::file_t FD, in shouldUseMmap() argument 335 if (sys::fs::status(FD, Statu in shouldUseMmap() 418 getOpenFileImpl(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize, uint64_t MapSize, int64_t Offset, bool RequiresNullTerminator, bool IsVolatile) getOpenFileImpl() argument 482 getOpenFile(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize, bool RequiresNullTerminator, bool IsVolatile) getOpenFile() argument 489 getOpenFileSlice(sys::fs::file_t FD, const Twine &Filename, uint64_t MapSize, int64_t Offset, bool IsVolatile) getOpenFileSlice() argument [all...] |
H A D | raw_ostream.cpp | 536 int FD; in getFD() local 538 EC = sys::fs::openFileForReadWrite(Filename, FD, Disp, Flags); in getFD() 540 EC = sys::fs::openFileForWrite(Filename, FD, Disp, Flags); in getFD() 544 return FD; in getFD() 571 /// FD is the file descriptor that this writes to. If ShouldClose is true, this 574 : raw_pwrite_stream(unbuffered), FD(fd), ShouldClose(shouldClose) { in raw_fd_ostream() 575 if (FD < 0 ) { in raw_fd_ostream() 586 if (FD <= STDERR_FILENO) in raw_fd_ostream() 596 off_t loc = ::lseek(FD, 0, SEEK_CUR); in raw_fd_ostream() 600 std::error_code EC = status(FD, Statu in raw_fd_ostream() 652 write_console_impl(int FD, StringRef Data) write_console_impl() argument [all...] |
H A D | Path.cpp | 806 int FD; 807 auto EC = createUniqueFile(Model, FD, ResultPath, Mode); 810 // FD is only needed to avoid race conditions. Close it right away. 811 close(FD); 843 int FD; 844 auto EC = createTemporaryFile(Prefix, Suffix, FD, ResultPath); 847 // FD is only needed to avoid race conditions. Close it right away. 848 close(FD); 1018 ErrorOr<MD5::MD5Result> md5_contents(int FD) { 1025 BytesRead = read(FD, Bu [all...] |
H A D | FileOutputBuffer.cpp | 99 int FD; variable 102 openFileForWrite(FinalPath, FD, CD_CreateAlways, OF_None, Mode)) 104 raw_fd_ostream OS(FD, /*shouldClose=*/true, /*unbuffered=*/true); 141 if (auto EC = fs::resize_file(File.FD, Size)) { in createOnDiskBuffer() 150 fs::convertFDToNativeFile(File.FD), fs::mapped_file_region::readwrite, in createOnDiskBuffer()
|
H A D | TarWriter.cpp | 162 int FD; in create() local 164 openFileForWrite(OutputPath, FD, CD_CreateAlways, OF_None)) in create() 166 return std::unique_ptr<TarWriter>(new TarWriter(FD, BaseDir)); in create() 169 TarWriter::TarWriter(int FD, StringRef BaseDir) in TarWriter() argument 170 : OS(FD, /*shouldClose=*/true, /*unbuffered=*/false), BaseDir(BaseDir) {} in TarWriter()
|
H A D | ToolOutputFile.cpp | 44 ToolOutputFile::ToolOutputFile(StringRef Filename, int FD) in ToolOutputFile() argument 45 : Installer(Filename), OS(FD, true) {} in ToolOutputFile()
|
H A D | FileCollector.cpp | 109 int FD; in copyAccessAndModificationTime() local 112 sys::fs::openFileForWrite(Filename, FD, sys::fs::CD_OpenExisting)) in copyAccessAndModificationTime() 116 FD, Stat.getLastAccessedTime(), Stat.getLastModificationTime())) in copyAccessAndModificationTime() 119 if (auto EC = sys::Process::SafelyCloseFileDescriptor(FD)) in copyAccessAndModificationTime()
|
H A D | GraphWriter.cpp | 79 std::string llvm::createGraphFilename(const Twine &Name, int &FD) { in createGraphFilename() argument 80 FD = -1; in createGraphFilename() 82 std::error_code EC = sys::fs::createTemporaryFile(Name, "dot", FD, Filename); in createGraphFilename()
|
/third_party/protobuf/src/google/protobuf/ |
H A D | dynamic_message.cc | 130 typedef FieldDescriptor FD; // avoid line wrapping in FieldSpaceUsed() typedef 131 if (field->label() == FD::LABEL_REPEATED) { in FieldSpaceUsed() 133 case FD::CPPTYPE_INT32: in FieldSpaceUsed() 135 case FD::CPPTYPE_INT64: in FieldSpaceUsed() 137 case FD::CPPTYPE_UINT32: in FieldSpaceUsed() 139 case FD::CPPTYPE_UINT64: in FieldSpaceUsed() 141 case FD::CPPTYPE_DOUBLE: in FieldSpaceUsed() 143 case FD::CPPTYPE_FLOAT: in FieldSpaceUsed() 145 case FD::CPPTYPE_BOOL: in FieldSpaceUsed() 147 case FD in FieldSpaceUsed() 203 typedef FieldDescriptor FD; // avoid line wrapping OneofFieldSpaceUsed() typedef [all...] |
H A D | descriptor_unittest.cc | 2344 typedef FieldDescriptor FD; // avoid ugly line wrapping in TEST_F() typedef 2346 EXPECT_STREQ("double", GetTypeNameForFieldType(FD::TYPE_DOUBLE)); in TEST_F() 2347 EXPECT_STREQ("float", GetTypeNameForFieldType(FD::TYPE_FLOAT)); in TEST_F() 2348 EXPECT_STREQ("int64", GetTypeNameForFieldType(FD::TYPE_INT64)); in TEST_F() 2349 EXPECT_STREQ("uint64", GetTypeNameForFieldType(FD::TYPE_UINT64)); in TEST_F() 2350 EXPECT_STREQ("int32", GetTypeNameForFieldType(FD::TYPE_INT32)); in TEST_F() 2351 EXPECT_STREQ("fixed64", GetTypeNameForFieldType(FD::TYPE_FIXED64)); in TEST_F() 2352 EXPECT_STREQ("fixed32", GetTypeNameForFieldType(FD::TYPE_FIXED32)); in TEST_F() 2353 EXPECT_STREQ("bool", GetTypeNameForFieldType(FD::TYPE_BOOL)); in TEST_F() 2354 EXPECT_STREQ("string", GetTypeNameForFieldType(FD in TEST_F() 2369 typedef FieldDescriptor FD; // avoid ugly line wrapping TEST_F() typedef 2394 typedef FieldDescriptor FD; // avoid ugly line wrapping TEST_F() typedef 2419 typedef FieldDescriptor FD; // avoid ugly line wrapping TEST_F() typedef 2444 typedef FieldDescriptor FD; // avoid ugly line wrapping TEST_F() typedef 2461 typedef FieldDescriptor FD; // avoid ugly line wrapping TEST_F() typedef 2486 typedef FieldDescriptor FD; // avoid ugly line wrapping TEST_F() typedef 2519 typedef FieldDescriptorProto FD; // avoid ugly line wrapping TEST_F() typedef [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
H A D | GCMetadata.cpp | 110 GCFunctionInfo *FD = &getAnalysis<GCModuleInfo>().getFunctionInfo(F); in runOnFunction() 112 OS << "GC roots for " << FD->getFunction().getName() << ":\n"; in runOnFunction() 113 for (GCFunctionInfo::roots_iterator RI = FD->roots_begin(), in runOnFunction() 114 RE = FD->roots_end(); in runOnFunction() 118 OS << "GC safe points for " << FD->getFunction().getName() << ":\n"; in runOnFunction() 119 for (GCFunctionInfo::iterator PI = FD->begin(), PE = FD->end(); PI != PE; in runOnFunction() 125 for (GCFunctionInfo::live_iterator RI = FD->live_begin(PI), in runOnFunction() 126 RE = FD->live_end(PI); in runOnFunction()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | FileSystem.h | 428 /// @param FD Input file descriptor. 432 std::error_code resize_file(int FD, uint64_t Size); 436 /// @param FD Input file descriptor. 439 ErrorOr<MD5::MD5Result> md5_contents(int FD); 526 std::error_code is_local(int FD, bool &result); 537 inline bool is_local(int FD) { in is_local() argument 539 return !is_local(FD, Result) && Result; in is_local() 649 std::error_code status(int FD, file_status &Result); 653 std::error_code status(file_t FD, file_status &Result); 676 /// TODO Delete the path based overload once we implement the FD base 715 setLastAccessAndModificationTime(int FD, TimePoint<> Time) setLastAccessAndModificationTime() argument 860 int FD = -1; global() member in llvm::sys::fs::TempFile 979 convertFDToNativeFile(int FD) convertFDToNativeFile() argument [all...] |
H A D | GraphWriter.h | 321 std::string createGraphFilename(const Twine &Name, int &FD); 332 int FD; in WriteGraph() local 337 Filename = createGraphFilename(N, FD); in WriteGraph() 339 std::error_code EC = sys::fs::openFileForWrite(Filename, FD); in WriteGraph() 349 raw_fd_ostream O(FD, /*shouldClose=*/ true); in WriteGraph() 351 if (FD == -1) { in WriteGraph()
|
/third_party/python/Include/ |
H A D | fileobject.h | 35 #define _PyIsSelectable_fd(FD) (1) 37 #define _PyIsSelectable_fd(FD) ((unsigned int)(FD) < (unsigned int)FD_SETSIZE)
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Writer/ |
H A D | BitWriter.cpp | 31 int LLVMWriteBitcodeToFD(LLVMModuleRef M, int FD, int ShouldClose, in LLVMWriteBitcodeToFD() argument 33 raw_fd_ostream OS(FD, ShouldClose, Unbuffered); in LLVMWriteBitcodeToFD()
|
/third_party/python/Lib/test/ |
H A D | test_poll.py | 84 FD, w = os.pipe() 85 os.close(FD) 88 p.register(FD) 90 self.assertEqual(r[0], (FD, select.POLLNVAL))
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
H A D | IceBrowserCompileServer.cpp | 129 StrBuf << "Invalid FD given for onInitCallback " << ObjFileFD << "\n"; in onInitCallback() 177 std::unique_ptr<llvm::raw_fd_ostream> getOutputStream(int FD) { in getOutputStream() argument 178 if (FD <= 0) in getOutputStream() 179 llvm::report_fatal_error("Invalid output FD"); in getOutputStream() 183 new llvm::raw_fd_ostream(FD, CloseOnDtor, Unbuffered)); in getOutputStream()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/ |
H A D | ArchiveWriter.cpp | 82 sys::fs::file_t FD = *FDOrErr; in getFile() 83 assert(FD != sys::fs::kInvalidFile); in getFile() 85 if (auto EC = sys::fs::status(FD, Status)) in getFile() 95 MemoryBuffer::getOpenFile(FD, FileName, Status.getSize(), false); in getFile() 99 if (auto EC = sys::fs::closeFile(FD)) in getFile() 612 raw_fd_ostream Out(Temp->FD, false); in writeArchive()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
H A D | MemoryBuffer.h | 89 getOpenFileSlice(int FD, const Twine &Filename, uint64_t MapSize, 99 getOpenFile(int FD, const Twine &Filename, uint64_t FileSize,
|
H A D | FileSystem.h | 382 /// @param FD Input file descriptor. 386 std::error_code resize_file(int FD, uint64_t Size); 532 std::error_code status(int FD, file_status &Result); 554 std::error_code setLastModificationAndAccessTime(int FD, TimePoint<> Time); 589 /// @returns errc::success if Result{FD,Path} have been successfully set, 620 /// @param FD File descriptor to a currently open file 622 std::error_code getPathFromOpenFD(int FD, SmallVectorImpl<char> &ResultPath); 698 std::error_code init(int FD, uint64_t Offset, mapmode Mode);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/ |
H A D | Caching.cpp | 92 sys::fs::convertFDToNativeFile(TempFile.FD), TempFile.TmpName, in localCache() 146 std::make_unique<raw_fd_ostream>(Temp->FD, /* ShouldClose */ false), in localCache()
|
/third_party/lzma/C/ |
H A D | Aes.c | 194 #define FD(i, x) InvS[gb(x, m[(i - x) & 3])]
macro 195 #define FD4(i) dest[i] = Ui32(FD(i, 0), FD(i, 1), FD(i, 2), FD(i, 3)) ^ w[i];
|