| /openbsd-src/gnu/llvm/llvm/include/llvm/BinaryFormat/ |
| H A D | MachO.h | 1140 sys::swapByteOrder(mh.magic); in swapStruct() 1141 sys::swapByteOrder(mh.nfat_arch); in swapStruct() 1145 sys::swapByteOrder(mh.cputype); in swapStruct() 1146 sys::swapByteOrder(mh.cpusubtype); in swapStruct() 1147 sys::swapByteOrder(mh.offset); in swapStruct() 1148 sys::swapByteOrder(mh.size); in swapStruct() 1149 sys::swapByteOrder(mh.align); in swapStruct() 1153 sys::swapByteOrder(mh.cputype); in swapStruct() 1154 sys::swapByteOrder(mh.cpusubtype); in swapStruct() 1155 sys::swapByteOrder(mh.offset); in swapStruct() [all …]
|
| H A D | DXContainer.h | 55 void swapBytes() { sys::swapByteOrder(Flags); } in swapBytes() 63 sys::swapByteOrder(Major); in swapBytes() 64 sys::swapByteOrder(Minor); in swapBytes() 77 sys::swapByteOrder(FileSize); in swapBytes() 78 sys::swapByteOrder(PartCount); in swapBytes() 89 void swapBytes() { sys::swapByteOrder(Size); } in swapBytes() 106 sys::swapByteOrder(MinorVersion); in swapBytes() 107 sys::swapByteOrder(MajorVersion); in swapBytes() 108 sys::swapByteOrder(Offset); in swapBytes() 109 sys::swapByteOrder(Size); in swapBytes() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | FileCollector.cpp | 29 assert(sys::fs::is_directory(Dir)); in addDirectory() 38 if (sys::fs::real_path(Path, TmpDest)) in isCaseSensitivePath() 47 if (!sys::fs::real_path(UpperDest, RealDest) && Path.equals(RealDest)) in isCaseSensitivePath() 54 assert(sys::path::is_absolute(Root) && "Root not absolute"); in FileCollector() 55 assert(sys::path::is_absolute(OverlayRoot) && "OverlayRoot not absolute"); in FileCollector() 61 StringRef Filename = sys::path::filename(SrcPath); in updateWithRealPath() 62 StringRef Directory = sys::path::parent_path(SrcPath); in updateWithRealPath() 72 if (sys::fs::real_path(Directory, RealPath)) in updateWithRealPath() 84 sys::path::append(RealPath, Filename); in updateWithRealPath() 93 sys::fs::make_absolute(Path); in makeAbsolute() [all …]
|
| H A D | MemoryBuffer.cpp | 179 constexpr sys::fs::mapped_file_region::mapmode Mapmode = 180 sys::fs::mapped_file_region::readonly; 182 constexpr sys::fs::mapped_file_region::mapmode Mapmode<MemoryBuffer> = 183 sys::fs::mapped_file_region::readonly; 185 constexpr sys::fs::mapped_file_region::mapmode Mapmode<WritableMemoryBuffer> = 186 sys::fs::mapped_file_region::priv; 188 constexpr sys::fs::mapped_file_region::mapmode 189 Mapmode<WriteThroughMemoryBuffer> = sys::fs::mapped_file_region::readwrite; 196 sys::fs::mapped_file_region MFR; 199 return Offset & ~(sys::fs::mapped_file_region::alignment() - 1); in getLegalMapOffset() [all …]
|
| H A D | raw_ostream.cpp | 518 if (sys::Process::ColorNeedsFlush() && !is_displayed()) in prepare_colors() 521 if (sys::Process::ColorNeedsFlush()) in prepare_colors() 533 ? sys::Process::OutputBold(bg) in changeColor() 534 : sys::Process::OutputColor(static_cast<char>(colors), bold, bg); in changeColor() 544 if (const char *colorcode = sys::Process::ResetColor()) in resetColor() 553 if (const char *colorcode = sys::Process::OutputReverse()) in reverseColor() 573 sys::fs::CreationDisposition Disp, sys::fs::FileAccess Access, in getFD() 574 sys::fs::OpenFlags Flags) { in getFD() 575 assert((Access & sys::fs::FA_Write) && in getFD() 583 sys::ChangeStdoutMode(Flags); in getFD() [all …]
|
| H A D | LockFileManager.cpp | 61 sys::fs::remove(LockFileName); in readLockFile() 78 sys::fs::remove(LockFileName); in readLockFile() 142 sys::RemoveFileOnSignal(Filename, nullptr); in RemoveUniqueLockFileOnSignal() 151 sys::fs::remove(Filename); in ~RemoveUniqueLockFileOnSignal() 152 sys::DontRemoveFileOnSignal(Filename); in ~RemoveUniqueLockFileOnSignal() 163 if (std::error_code EC = sys::fs::make_absolute(this->FileName)) { in LockFileManager() 181 if (std::error_code EC = sys::fs::createUniqueFile( in LockFileManager() 198 Out << HostID << ' ' << sys::Process::getProcessId(); in LockFileManager() 207 sys::fs::remove(UniqueLockFileName); in LockFileManager() 219 sys::fs::create_link(UniqueLockFileName, LockFileName); in LockFileManager() [all …]
|
| H A D | Caching.cpp | 45 sys::path::append(EntryPath, CacheDirectoryPath, "llvmcache-" + Key); in localCache() 48 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead( in localCache() 49 Twine(EntryPath), sys::fs::OF_UpdateAtime, &ResultPath); in localCache() 56 sys::fs::closeFile(*FDOrErr); in localCache() 80 sys::fs::TempFile TempFile; in localCache() 85 sys::fs::TempFile TempFile, std::string EntryPath, in localCache() 101 sys::fs::convertFDToNativeFile(TempFile.FD), ObjectPathName, in localCache() 146 if (std::error_code EC = sys::fs::create_directories( in localCache() 152 sys::path::append(TempFilenameModel, CacheDirectoryPath, in localCache() 154 Expected<sys::fs::TempFile> Temp = sys::fs::TempFile::create( in localCache() [all …]
|
| /openbsd-src/usr.bin/kdump/ |
| H A D | Makefile | 5 SYS_DIR=${.CURDIR}/../../sys 35 ${SYS_DIR}/sys/ataio.h \ 36 ${SYS_DIR}/sys/audioio.h \ 37 ${SYS_DIR}/sys/cdio.h \ 38 ${SYS_DIR}/sys/chio.h \ 39 ${SYS_DIR}/sys/dkio.h \ 40 ${SYS_DIR}/sys/filio.h \ 41 ${SYS_DIR}/sys/gpio.h \ 42 ${SYS_DIR}/sys/ioctl.h \ 43 ${SYS_DIR}/sys/kcov.h \ [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/scripts/ |
| H A D | sancov.py | 12 import sys 17 sys.stderr.write( 45 if sys.byteorder == 'little': 54 idx = 1 if sys.byteorder == 'little' else 0 75 sys.stderr.write( 83 sys.stderr.write( 93 sys.stderr.write("%s: 1 file merged; %d PCs total\n" % (prog_name, len(s))) 98 if sys.stdout.isatty(): 104 stdout_buf = getattr(sys.stdout, 'buffer', sys.stdout) 112 sys.stderr.write("%s: unpacking %s\n" % (prog_name, path)) [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/ |
| H A D | SectionMemoryManager.cpp | 75 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection() 81 sys::MemoryBlock &PendingMB = in allocateSection() 83 PendingMB = sys::MemoryBlock(PendingMB.base(), in allocateSection() 89 sys::MemoryBlock((void *)(Addr + Size), EndOfBlock - Addr - Size); in allocateSection() 104 sys::MemoryBlock MB = MMapper.allocateMappedMemory( in allocateSection() 106 sys::Memory::MF_READ | sys::Memory::MF_WRITE, ec); in allocateSection() 133 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection() 140 FreeMB.Free = sys::MemoryBlock((void *)(Addr + Size), FreeSize); in allocateSection() 155 sys::Memory::MF_READ | sys::Memory::MF_EXEC); in finalizeMemory() 164 ec = applyMemoryGroupPermissions(RODataMem, sys::Memory::MF_READ); in finalizeMemory() [all …]
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/googletest-crash/DummySubDir/ |
| H A D | OneTest.py | 4 import sys 6 if len(sys.argv) == 3 and sys.argv[1] == "--gtest_list_tests": 7 if sys.argv[2] != '--gtest_filter=-*DISABLED_*': 8 raise ValueError("unexpected argument: %s" % (sys.argv[2])) 19 sys.exit(0) 20 elif len(sys.argv) != 1: 22 raise ValueError("unexpected argument: %r" % (' '.join(sys.argv[1:]))) 43 print('I am about to crash', file=sys.stderr, flush=True) 51 sys.exit(exit_code)
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/ |
| H A D | OneTest.py | 4 import sys 6 if len(sys.argv) == 3 and sys.argv[1] == "--gtest_list_tests": 7 if sys.argv[2] != '--gtest_filter=-*DISABLED_*': 8 raise ValueError("unexpected argument: %s" % (sys.argv[2])) 19 sys.exit(0) 20 elif len(sys.argv) != 1: 22 raise ValueError("unexpected argument: %r" % (' '.join(sys.argv[1:]))) 99 print('I am subTest B output', file=sys.stderr, flush=True) 108 sys.exit(exit_code)
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/googletest-format-respect-gtest-sharding-env-vars/DummySubDir/ |
| H A D | OneTest.py | 4 import sys 6 if len(sys.argv) == 3 and sys.argv[1] == "--gtest_list_tests": 7 if sys.argv[2] != '--gtest_filter=-*DISABLED_*': 8 raise ValueError("unexpected argument: %s" % (sys.argv[2])) 19 sys.exit(0) 20 elif len(sys.argv) != 1: 22 raise ValueError("unexpected argument: %r" % (' '.join(sys.argv[1:]))) 99 print('I am subTest B output', file=sys.stderr, flush=True) 108 sys.exit(exit_code)
|
| /openbsd-src/gnu/llvm/clang/lib/Lex/ |
| H A D | UnicodeCharSets.h | 14 static const llvm::sys::UnicodeCharRange XIDStartRanges[] = { 242 static const llvm::sys::UnicodeCharRange XIDContinueRanges[] = { 372 static const llvm::sys::UnicodeCharRange 390 static const llvm::sys::UnicodeCharRange 400 static const llvm::sys::UnicodeCharRange C11AllowedIDCharRanges[] = { 430 static const llvm::sys::UnicodeCharRange C99AllowedIDCharRanges[] = { 649 static const llvm::sys::UnicodeCharRange C11DisallowedInitialIDCharRanges[] = { 657 static const llvm::sys::UnicodeCharRange C99DisallowedInitialIDCharRanges[] = { 666 static const llvm::sys::UnicodeCharRange UnicodeWhitespaceCharRanges[] = {
|
| /openbsd-src/gnu/llvm/lldb/bindings/python/ |
| H A D | get-python-config.py | 4 import sys 34 print(relpath_nodots(sysconfig.get_path("platlib"), sys.prefix)) 39 print('lib/python%d.%d/site-packages' % sys.version_info[:2]) 46 exe = sys.executable 47 prefix = os.path.realpath(sys.prefix) 60 … print("Could not find a relative path to sys.executable under sys.prefix", file=sys.stderr) 62 print("tried:", e, file=sys.stderr) 63 print("realpath(sys.prefix):", prefix, file=sys.stderr) 64 print("sys.prefix:", sys.prefix, file=sys.stderr) 65 sys.exit(1)
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/googletest-detect-duplicate/DummySubDir/ |
| H A D | OneTest.py | 4 import sys 6 if len(sys.argv) == 3 and sys.argv[1] == "--gtest_list_tests": 7 if sys.argv[2] != '--gtest_filter=-*DISABLED_*': 8 raise ValueError("unexpected argument: %s" % (sys.argv[2])) 12 sys.exit(0) 13 elif len(sys.argv) != 1: 15 raise ValueError("unexpected argument: %r" % (' '.join(sys.argv[1:]))) 55 sys.exit(exit_code)
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/googletest-sanitizer-error/DummySubDir/ |
| H A D | OneTest.py | 4 import sys 6 if len(sys.argv) == 3 and sys.argv[1] == "--gtest_list_tests": 7 if sys.argv[2] != '--gtest_filter=-*DISABLED_*': 8 raise ValueError("unexpected argument: %s" % (sys.argv[2])) 12 sys.exit(0) 13 elif len(sys.argv) != 1: 15 raise ValueError("unexpected argument: %r" % (' '.join(sys.argv[1:]))) 59 sys.exit(exit_code)
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/lit/builtin_commands/ |
| H A D | cat.py | 2 import sys 40 sys.stderr.write("Unsupported: 'cat': %s\n" % str(err)) 41 sys.exit(1) 47 writer = getattr(sys.stdout, 'buffer', None) 49 writer = sys.stdout 50 if sys.platform == "win32": 52 msvcrt.setmode(sys.stdout.fileno(),os.O_BINARY) 60 sys.stdout.flush() 63 sys.stderr.write(str(error)) 64 sys.exit(1) [all …]
|
| H A D | diff.py | 7 import sys 36 stdin_fileno = sys.stdin.fileno() 71 sys.stdout.write(to_string(diff)) 103 sys.stdout.write(to_string(diff)) 112 sys.stdout.write(msg % (dir_path, file_path) + "\n") 119 sys.stdout.write(msg % (file_path, dir_path) + "\n") 122 sys.stdout.write("Only in %s: %s\n" % (os.path.join(basedir, path), name)) 183 if sys.platform == "win32": 184 if hasattr(sys.stdout, 'buffer'): 186 sys.stdout = io.TextIOWrapper(sys.stdout.buffer, newline='\n') [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/vms/ |
| H A D | piped_child.c | 101 sys$dassgn (siop->read_chan); 107 sys$qio (0, siop->write_chan, IO$_WRITEOF, &iosb, 113 sys$dassgn (siop->write_chan); 115 sys$synch (siop->event_flag, &siop->write_iosb); 168 rs1 = sys$crembx (0, &siop->read_chan, 2048, 2048, 0, 0, 0, 0); 169 rs2 = sys$crembx (0, &siop->write_chan, 2048, 2048, 0, 0, 0, 0); 181 rs1 = sys$getdviw (0, siop->read_chan, 0, &read_mbxlist, 184 rs2 = sys$getdviw (0, siop->write_chan, 0, &write_mbxlist, 192 sys$dassgn (siop->read_chan); 193 sys$dassgn (siop->write_chan); [all …]
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/googletest-timeout/DummySubDir/ |
| H A D | OneTest.py | 4 import sys 6 if len(sys.argv) == 3 and sys.argv[1] == "--gtest_list_tests": 7 if sys.argv[2] != '--gtest_filter=-*DISABLED_*': 8 raise ValueError("unexpected argument: %s" % (sys.argv[2])) 14 sys.exit(0) 15 elif len(sys.argv) != 1: 17 raise ValueError("unexpected argument: %r" % (' '.join(sys.argv[1:]))) 66 sys.exit(exit_code)
|
| /openbsd-src/gnu/llvm/lldb/utils/lldb-repro/ |
| H A D | lldb-repro.py | 21 import sys 26 print("usage: {} capture|replay [args]".format(sys.argv[0])) 30 if len(sys.argv) < 2: 37 h.update(' '.join(sys.argv[2:]).encode('utf-8')) 45 lldb = os.path.join(os.path.dirname(sys.argv[0]), 'lldb') 47 if sys.argv[1] == "replay": 49 elif sys.argv[1] == "capture": 54 new_args.extend(sys.argv[2:]) 64 if sys.argv[1] == "replay": 74 elif sys.argv[1] == "capture":
|
| /openbsd-src/gnu/usr.bin/cvs/ |
| H A D | cvsnt.mak | 608 {$(INCLUDE)}"\sys\Types.h"\ 609 {$(INCLUDE)}"\sys\Stat.h"\ 610 {$(INCLUDE)}"\sys\Timeb.h"\ 611 {$(INCLUDE)}"\sys\Utime.h"\ 646 {$(INCLUDE)}"\sys\Types.h"\ 647 {$(INCLUDE)}"\sys\Stat.h"\ 648 {$(INCLUDE)}"\sys\Timeb.h"\ 649 {$(INCLUDE)}"\sys\Utime.h"\ 683 {$(INCLUDE)}"\sys\Types.h"\ 684 {$(INCLUDE)}"\sys\Stat.h"\ [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-debuginfo-analyzer/ |
| H A D | llvm-debuginfo-analyzer.cpp | 58 sys::path::remove_dots(BundlePath); in expandBundle() 60 if (sys::fs::is_directory(BundlePath) && in expandBundle() 61 sys::path::extension(BundlePath) == ".dSYM") { in expandBundle() 63 sys::path::append(BundlePath, "Contents", "Resources", "DWARF"); in expandBundle() 64 for (sys::fs::directory_iterator Dir(BundlePath, EC), DirEnd; in expandBundle() 67 sys::fs::file_status Status; in expandBundle() 68 EC = sys::fs::status(Path, Status); in expandBundle() 71 case sys::fs::file_type::regular_file: in expandBundle() 72 case sys::fs::file_type::symlink_file: in expandBundle() 73 case sys::fs::file_type::type_unknown: in expandBundle() [all …]
|
| /openbsd-src/sys/arch/arm64/dev/ |
| H A D | smbios.c | 327 struct smbios_sys *sys; in smbios_info() local 343 sys = (struct smbios_sys *)stbl.tblhdr; in smbios_info() 381 if ((p = smbios_get_string(&stbl, sys->vendor, sminfo, in smbios_info() 398 if ((p = smbios_get_string(&stbl, sys->product, sminfo, in smbios_info() 417 if ((p = smbios_get_string(&stbl, sys->version, sminfo, in smbios_info() 427 if ((p = smbios_get_string(&stbl, sys->serial, sminfo, in smbios_info() 445 for (i = 0; i < sizeof(sys->uuid); i++) { in smbios_info() 446 if (sys->uuid[i] != 0xff) in smbios_info() 448 if (sys->uuid[i] != 0) in smbios_info() 457 for (i = 0; i < sizeof(sys->uuid); i++) in smbios_info() [all …]
|