Home
last modified time | relevance | path

Searched refs:FD (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/third_party/skia/third_party/externals/microhttpd/src/include/
Dautoinit_funcs.h81 #define GNUC_SET_INIT_AND_DEINIT(FI,FD) \ argument
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) argument
196 #define W32_SET_INIT_AND_DEINIT(FI,FD) \ argument
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) \ argument
210 else if(DLL_PROCESS_DETACH==reason) {(void)(FD)();} \
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DMemoryBuffer.cpp210 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
[all …]
Draw_ostream.cpp479 int FD; in getFD() local
480 EC = sys::fs::openFileForWrite(Filename, FD, Flags); in getFD()
484 return FD; in getFD()
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()
529 if (FD == 2) return; in ~raw_fd_ostream()
[all …]
/third_party/protobuf/src/google/protobuf/
Ddynamic_message.cc130 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::CPPTYPE_ENUM: in FieldSpaceUsed()
[all …]
Ddescriptor_unittest.cc2344 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::TYPE_STRING)); in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DMemoryBuffer.cpp185 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() local
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, Status)) in shouldUseMmap()
[all …]
Draw_ostream.cpp536 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()
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, Status); in raw_fd_ostream()
612 if (FD >= 0) { in ~raw_fd_ostream()
[all …]
DPath.cpp806 int FD; in createUniqueFile() local
807 auto EC = createUniqueFile(Model, FD, ResultPath, Mode); in createUniqueFile()
811 close(FD); in createUniqueFile()
843 int FD; in createTemporaryFile() local
844 auto EC = createTemporaryFile(Prefix, Suffix, FD, ResultPath); in createTemporaryFile()
848 close(FD); in createTemporaryFile()
1018 ErrorOr<MD5::MD5Result> md5_contents(int FD) { in md5_contents() argument
1025 BytesRead = read(FD, Buf.data(), BufSize); in md5_contents()
1039 int FD; in md5_contents() local
1040 if (auto EC = openFileForRead(Path, FD, OF_None)) in md5_contents()
[all …]
DTarWriter.cpp162 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()
DFileOutputBuffer.cpp99 int FD; in commit() local
102 openFileForWrite(FinalPath, FD, CD_CreateAlways, OF_None, Mode)) in commit()
104 raw_fd_ostream OS(FD, /*shouldClose=*/true, /*unbuffered=*/true); in commit()
141 if (auto EC = fs::resize_file(File.FD, Size)) { in createOnDiskBuffer()
150 fs::convertFDToNativeFile(File.FD), fs::mapped_file_region::readwrite, in createOnDiskBuffer()
DToolOutputFile.cpp44 ToolOutputFile::ToolOutputFile(StringRef Filename, int FD) in ToolOutputFile() argument
45 : Installer(Filename), OS(FD, true) {} in ToolOutputFile()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DGCMetadata.cpp110 GCFunctionInfo *FD = &getAnalysis<GCModuleInfo>().getFunctionInfo(F); in runOnFunction() local
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/
DFileSystem.h432 std::error_code resize_file(int FD, uint64_t Size);
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);
678 std::error_code setPermissions(int FD, perms Permissions);
710 std::error_code setLastAccessAndModificationTime(int FD, TimePoint<> AccessTime,
715 inline std::error_code setLastAccessAndModificationTime(int FD, in setLastAccessAndModificationTime() argument
[all …]
DGraphWriter.h321 std::string createGraphFilename(const Twine &Name, int &FD);
332 int FD; variable
337 Filename = createGraphFilename(N, FD);
339 std::error_code EC = sys::fs::openFileForWrite(Filename, FD);
349 raw_fd_ostream O(FD, /*shouldClose=*/ true);
351 if (FD == -1) {
/third_party/python/Include/
Dfileobject.h35 #define _PyIsSelectable_fd(FD) (1) argument
37 #define _PyIsSelectable_fd(FD) ((unsigned int)(FD) < (unsigned int)FD_SETSIZE) argument
/third_party/skia/third_party/externals/freetype/builds/windows/visualce/
Dfreetype.dsp47 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
48 …/O2 /I "..\..\..\include" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "FT2_BUILD_LIBRARY" /FD /c
71 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ …
72 …_ERROR" /D "FT_DEBUG_LEVEL_TRACE" /D "WIN32" /D "_MBCS" /D "_LIB" /D "FT2_BUILD_LIBRARY" /FD /GZ /c
95 …d /I "..\include\\" /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "FT_FLAT_COMPILE" /YX /FD /GZ /c
97 …_ERROR" /D "FT_DEBUG_LEVEL_TRACE" /D "WIN32" /D "_MBCS" /D "_LIB" /D "FT2_BUILD_LIBRARY" /FD /GZ /c
120 …X /O2 /I "..\include\\" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "FT_FLAT_COMPILE" /YX /FD /c
121 …/O2 /I "..\..\..\include" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "FT2_BUILD_LIBRARY" /FD /c
144 …go /MD /Za /W4 /GX /Zi /O2 /I "..\..\..\include" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /FD /c
146 …/O2 /I "..\..\..\include" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "FT2_BUILD_LIBRARY" /FD /c
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DProgram.inc99 static bool RedirectIO(const StringRef *Path, int FD, std::string* ErrMsg) {
110 int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY|O_CREAT, 0666);
113 + (FD == 0 ? "input" : "output"));
117 // Install it as the requested FD
118 if (dup2(InFD, FD) == -1) {
123 close(InFD); // Close the original FD
128 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
140 FileActions, FD, File,
141 FD == 0 ? O_RDONLY : O_WRONLY | O_CREAT, 0666))
226 // to the FD already open for stdout.
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
DProgram.inc96 static bool RedirectIO(Optional<StringRef> Path, int FD, std::string* ErrMsg) {
107 int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY|O_CREAT, 0666);
110 + (FD == 0 ? "input" : "output"));
114 // Install it as the requested FD
115 if (dup2(InFD, FD) == -1) {
120 close(InFD); // Close the original FD
125 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
137 FileActions, FD, File,
138 FD == 0 ? O_RDONLY : O_WRONLY | O_CREAT, 0666))
234 // to the FD already open for stdout.
[all …]
DPath.inc521 std::error_code is_local(int FD, bool &Result) {
523 if (::FSTATVFS(FD, &Vfs))
543 std::error_code resize_file(int FD, uint64_t Size) {
547 if (int Err = ::posix_fallocate(FD, 0, Size)) {
559 if (::ftruncate(FD, Size) == -1)
726 std::error_code status(int FD, file_status &Result) {
728 int StatRet = ::fstat(FD, &Status);
749 std::error_code setPermissions(int FD, perms Permissions) {
750 if (::fchmod(FD, Permissions))
755 std::error_code setLastAccessAndModificationTime(int FD, TimePoint<> AccessTime,
[all …]
/third_party/icu/icu4c/source/test/perf/ubrkperf/
Dubrkperfold.dsp47 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
48 …n" /I "..\..\i18n" /I "..\..\tools\toolutil" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
81 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ …
82 ….\i18n" /I "..\..\..\tools\toolutil" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
106 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN64" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
107 …DEBUG" /D "_CONSOLE" /D "_MBCS" /D "_IA64_" /D "WIN32" /D "_AFX_NO_DAO_SUPPORT" /FD /Wp64 /Zm600 /c
132 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN64" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ …
133 …D "_CONSOLE" /D "_MBCS" /D "_IA64_" /D "WIN32" /D "_AFX_NO_DAO_SUPPORT" /FR /FD /GZ /Wp64 /Zm600 /c
Dubrkperf20.dsp47 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
48 …il" /I "c:\src\oldICU\icu-2-0\source\common" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
81 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ …
82 …c:\src\oldICU\icu-2-0\source\common" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
106 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN64" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
107 …DEBUG" /D "_CONSOLE" /D "_MBCS" /D "_IA64_" /D "WIN32" /D "_AFX_NO_DAO_SUPPORT" /FD /Wp64 /Zm600 /c
132 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN64" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ …
133 …D "_CONSOLE" /D "_MBCS" /D "_IA64_" /D "WIN32" /D "_AFX_NO_DAO_SUPPORT" /FR /FD /GZ /Wp64 /Zm600 /c
Dubrkperf.dsp47 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
48 ….\..\..\tools\toolutil" /I "..\..\..\common" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
81 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ …
82 …tools\toolutil" /I "..\..\..\common" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
106 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN64" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
107 …DEBUG" /D "_CONSOLE" /D "_MBCS" /D "_IA64_" /D "WIN32" /D "_AFX_NO_DAO_SUPPORT" /FD /Wp64 /Zm600 /c
132 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN64" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ …
133 …D "_CONSOLE" /D "_MBCS" /D "_IA64_" /D "WIN32" /D "_AFX_NO_DAO_SUPPORT" /FR /FD /GZ /Wp64 /Zm600 /c
/third_party/mbedtls/scripts/data_files/
Dvs6-main-template.dsp43 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
44 …D CPP /nologo /W3 /GX /O2 /I "../../include" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /YX /FD /c
66 # ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
67 …ologo /W3 /GX /Z7 /Od /I "../../include" /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Windows/
DPath.inc329 std::error_code resize_file(int FD, uint64_t Size) {
331 errno_t error = ::_chsize_s(FD, Size);
333 errno_t error = ::_chsize(FD, Size);
509 std::error_code status(int FD, file_status &Result) {
510 HANDLE FileHandle = reinterpret_cast<HANDLE>(_get_osfhandle(FD));
514 std::error_code setLastModificationAndAccessTime(int FD, TimePoint<> Time) {
516 HANDLE FileHandle = reinterpret_cast<HANDLE>(_get_osfhandle(FD));
522 std::error_code mapped_file_region::init(int FD, uint64_t Offset,
528 HANDLE FileHandle = reinterpret_cast<HANDLE>(_get_osfhandle(FD));
728 int FD = ::_open_osfhandle(intptr_t(H), 0);
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Writer/
DBitWriter.cpp31 int LLVMWriteBitcodeToFD(LLVMModuleRef M, int FD, int ShouldClose, in LLVMWriteBitcodeToFD() argument
33 raw_fd_ostream OS(FD, ShouldClose, Unbuffered); in LLVMWriteBitcodeToFD()

12345678910>>...12