Home
last modified time | relevance | path

Searched refs:sys (Results 1 – 25 of 2245) sorted by relevance

12345678910>>...90

/external/libxml2/python/tests/
Dreader.py7 import sys
24 sys.exit(1)
28 sys.exit(1)
32 sys.exit(1)
36 sys.exit(1)
40 sys.exit(1)
44 sys.exit(1)
48 sys.exit(1)
53 sys.exit(1)
57 sys.exit(1)
[all …]
Dreader3.py5 import sys
32 sys.exit(1)
37 sys.exit(1)
40 sys.exit(1)
44 sys.exit(1)
47 sys.exit(1)
51 sys.exit(1)
54 sys.exit(1)
58 sys.exit(1)
70 sys.exit(1)
[all …]
Dserialize.py2 import sys
17 sys.exit(1)
23 sys.exit(1)
31 sys.exit(1)
39 sys.exit(1)
48 sys.exit(1)
52 sys.exit(1)
58 sys.exit(1)
64 sys.exit(1)
76 sys.exit(1)
[all …]
Dreadernext.py7 import sys
24 sys.exit(1)
28 sys.exit(1)
32 sys.exit(1)
36 sys.exit(1)
40 sys.exit(1)
44 sys.exit(1)
48 sys.exit(1)
51 sys.exit(1)
55 sys.exit(1)
[all …]
/external/llvm/include/llvm/Support/
DMachO.h997 sys::swapByteOrder(mh.magic); in swapStruct()
998 sys::swapByteOrder(mh.cputype); in swapStruct()
999 sys::swapByteOrder(mh.cpusubtype); in swapStruct()
1000 sys::swapByteOrder(mh.filetype); in swapStruct()
1001 sys::swapByteOrder(mh.ncmds); in swapStruct()
1002 sys::swapByteOrder(mh.sizeofcmds); in swapStruct()
1003 sys::swapByteOrder(mh.flags); in swapStruct()
1007 sys::swapByteOrder(H.magic); in swapStruct()
1008 sys::swapByteOrder(H.cputype); in swapStruct()
1009 sys::swapByteOrder(H.cpusubtype); in swapStruct()
[all …]
/external/llvm/unittests/Support/
DSwapByteOrderTest.cpp30 sys::getSwappedBytes(sys::getSwappedBytes(original_uint8))); in TEST()
34 sys::getSwappedBytes(sys::getSwappedBytes(original_uint16))); in TEST()
38 sys::getSwappedBytes(sys::getSwappedBytes(original_uint32))); in TEST()
42 sys::getSwappedBytes(sys::getSwappedBytes(original_uint64))); in TEST()
55 sys::getSwappedBytes(sys::getSwappedBytes(original_int8))); in TEST()
59 sys::getSwappedBytes(sys::getSwappedBytes(original_int16))); in TEST()
63 sys::getSwappedBytes(sys::getSwappedBytes(original_int32))); in TEST()
67 sys::getSwappedBytes(sys::getSwappedBytes(original_int64))); in TEST()
74 sys::getSwappedBytes(sys::getSwappedBytes(original_int8))); in TEST()
78 sys::getSwappedBytes(sys::getSwappedBytes(original_int16))); in TEST()
[all …]
DLockFileManagerTest.cpp23 EC = sys::fs::createUniqueDirectory("LockFileManagerTestDir", TmpDir); in TEST()
27 sys::path::append(LockedFile, "file.lock"); in TEST()
41 EXPECT_FALSE(sys::fs::exists(StringRef(LockedFile))); in TEST()
43 EC = sys::fs::remove(StringRef(TmpDir)); in TEST()
50 EC = sys::fs::createUniqueDirectory("LockFileManagerTestDir", TmpDir); in TEST()
54 sys::path::append(LockedFile, "file"); in TEST()
57 sys::path::append(FileLocK, "file.lock"); in TEST()
60 sys::path::append(TmpFileLock, "file.lock-000"); in TEST()
63 EC = sys::fs::openFileForWrite(StringRef(TmpFileLock), FD, sys::fs::F_None); in TEST()
69 EC = sys::fs::create_link(TmpFileLock.str(), FileLocK.str()); in TEST()
[all …]
/external/llvm/lib/Support/
DAtomic.cpp29 void sys::MemoryFence() { in MemoryFence()
43 sys::cas_flag sys::CompareAndSwap(volatile sys::cas_flag* ptr, in CompareAndSwap()
44 sys::cas_flag new_value, in CompareAndSwap()
45 sys::cas_flag old_value) { in CompareAndSwap()
47 sys::cas_flag result = *ptr; in CompareAndSwap()
60 sys::cas_flag sys::AtomicIncrement(volatile sys::cas_flag* ptr) { in AtomicIncrement()
73 sys::cas_flag sys::AtomicDecrement(volatile sys::cas_flag* ptr) { in AtomicDecrement()
86 sys::cas_flag sys::AtomicAdd(volatile sys::cas_flag* ptr, sys::cas_flag val) { in AtomicAdd()
99 sys::cas_flag sys::AtomicMul(volatile sys::cas_flag* ptr, sys::cas_flag val) { in AtomicMul()
100 sys::cas_flag original, result; in AtomicMul()
[all …]
DFileOutputBuffer.cpp27 using llvm::sys::fs::mapped_file_region;
35 sys::fs::remove(Twine(TempPath)); in ~FileOutputBuffer()
41 sys::fs::file_status Stat; in create()
42 std::error_code EC = sys::fs::status(FilePath, Stat); in create()
44 case sys::fs::file_type::file_not_found: in create()
47 case sys::fs::file_type::regular_file: { in create()
61 EC = sys::fs::remove(FilePath); in create()
65 unsigned Mode = sys::fs::all_read | sys::fs::all_write; in create()
68 Mode |= sys::fs::all_exe; in create()
73 EC = sys::fs::createUniqueFile(Twine(FilePath) + ".tmp%%%%%%%", FD, in create()
[all …]
/external/llvm/lib/Object/
DSymbolicFile.cpp30 MemoryBufferRef Object, sys::fs::file_magic Type, LLVMContext *Context) { in createSymbolicFile()
32 if (Type == sys::fs::file_magic::unknown) in createSymbolicFile()
33 Type = sys::fs::identify_magic(Data); in createSymbolicFile()
36 case sys::fs::file_magic::bitcode: in createSymbolicFile()
40 case sys::fs::file_magic::unknown: in createSymbolicFile()
41 case sys::fs::file_magic::archive: in createSymbolicFile()
42 case sys::fs::file_magic::macho_universal_binary: in createSymbolicFile()
43 case sys::fs::file_magic::windows_resource: in createSymbolicFile()
45 case sys::fs::file_magic::elf: in createSymbolicFile()
46 case sys::fs::file_magic::elf_executable: in createSymbolicFile()
[all …]
DBinary.cpp41 sys::fs::file_magic Type = sys::fs::identify_magic(Buffer.getBuffer()); in createBinary()
44 case sys::fs::file_magic::archive: in createBinary()
46 case sys::fs::file_magic::elf: in createBinary()
47 case sys::fs::file_magic::elf_relocatable: in createBinary()
48 case sys::fs::file_magic::elf_executable: in createBinary()
49 case sys::fs::file_magic::elf_shared_object: in createBinary()
50 case sys::fs::file_magic::elf_core: in createBinary()
51 case sys::fs::file_magic::macho_object: in createBinary()
52 case sys::fs::file_magic::macho_executable: in createBinary()
53 case sys::fs::file_magic::macho_fixed_virtual_memory_shared_lib: in createBinary()
[all …]
DObjectFile.cpp63 ObjectFile::createObjectFile(MemoryBufferRef Object, sys::fs::file_magic Type) { in createObjectFile()
65 if (Type == sys::fs::file_magic::unknown) in createObjectFile()
66 Type = sys::fs::identify_magic(Data); in createObjectFile()
69 case sys::fs::file_magic::unknown: in createObjectFile()
70 case sys::fs::file_magic::bitcode: in createObjectFile()
71 case sys::fs::file_magic::archive: in createObjectFile()
72 case sys::fs::file_magic::macho_universal_binary: in createObjectFile()
73 case sys::fs::file_magic::windows_resource: in createObjectFile()
75 case sys::fs::file_magic::elf: in createObjectFile()
76 case sys::fs::file_magic::elf_relocatable: in createObjectFile()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/testcase/
Dunit_testcase.py21 import sys
81 self.stdout_save = sys.stdout
82 self.stderr_save = sys.stderr
84 sys.stdout = os.fdopen(fd, 'w+')
86 sys.stderr = os.fdopen(fd, 'w+')
109 sys.stdout.seek(0)
110 sys.stderr.seek(0)
111 stdout = sys.stdout.read()
112 stderr = sys.stderr.read()
115 sys.stdout.close()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/
Dez_setup.py16 import sys
18 DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
38 import sys, os
46 print >>sys.stderr, (
50 sys.exit(2)
68 was_imported = 'pkg_resources' in sys.modules or 'setuptools' in sys.modules
71 sys.path.insert(0, egg)
81 print >>sys.stderr, (
87 sys.exit(2)
91 del pkg_resources, sys.modules['pkg_resources'] # reload ok
[all …]
/external/protobuf/python/
Dez_setup.py21 import sys
23 DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
70 import sys, os
78 print >>sys.stderr, (
82 sys.exit(2)
100 was_imported = 'pkg_resources' in sys.modules or 'setuptools' in sys.modules
103 sys.path.insert(0, egg)
114 print >>sys.stderr, (
120 sys.exit(2)
124 del pkg_resources, sys.modules['pkg_resources'] # reload ok
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/
Dez_setup.py16 import sys
18 DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
38 import sys, os
46 print >>sys.stderr, (
50 sys.exit(2)
68 was_imported = 'pkg_resources' in sys.modules or 'setuptools' in sys.modules
71 sys.path.insert(0, egg)
81 print >>sys.stderr, (
87 sys.exit(2)
91 del pkg_resources, sys.modules['pkg_resources'] # reload ok
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/mashups/
Dinteractive.py21 import sys
42 oldtty = termios.tcgetattr(sys.stdin)
44 tty.setraw(sys.stdin.fileno())
45 tty.setcbreak(sys.stdin.fileno())
49 r, w, e = select.select([chan, sys.stdin], [], [])
56 sys.stdout.write(x)
57 sys.stdout.flush()
60 if sys.stdin in r:
61 x = sys.stdin.read(1)
67 termios.tcsetattr(sys.stdin, termios.TCSADRAIN, oldtty)
[all …]
/external/v8/tools/
Dtest-server.py33 import sys
37 ROOT = os.path.abspath(os.path.dirname(sys.argv[0]))
51 """ % sys.argv[0])
62 sys.exit(code)
91 sys.exit(1)
124 scriptname = os.path.abspath(sys.argv[0])
139 if __name__ == "__main__" and len(sys.argv) == 2:
140 if sys.argv[1] in ("setup", "update"):
143 sys.exit(1)
145 sys.exit(0)
[all …]
Drun-valgrind.py40 import sys
55 if len(sys.argv) < 2:
57 sys.exit(1)
59 executable = path.join(V8_ROOT, sys.argv[1])
62 sys.exit(1)
65 command = VALGRIND_ARGUMENTS + [executable] + sys.argv[2:]
78 sys.stderr.writelines(errors)
79 sys.exit(code)
91 sys.stderr.writelines(errors)
92 sys.exit(1)
[all …]
/external/compiler-rt/lib/sanitizer_common/scripts/
Dsancov.py12 import sys
17 print >> sys.stderr, "Usage: \n" + \
39 if sys.byteorder == 'little':
48 idx = 1 if sys.byteorder == 'little' else 0
68 print >>sys.stderr, "%s: read %d %d-bit PCs from %s" % (prog_name, size * 8 / bits, bits, path)
75 print >> sys.stderr, "%s: %d files merged; %d PCs total" % \
84 print >> sys.stderr, "%s: 1 file merged; %d PCs total" % \
90 if sys.stdout.isatty():
96 array.array('I', MagicForBits(bits)).tofile(sys.stdout)
98 a.tofile(sys.stdout)
[all …]
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/tools/
Dminiterm.py11 import sys, os, serial, threading
77 if sys.version_info >= (3, 0):
119 import termios, sys, os
122 self.fd = sys.stdin.fileno()
146 sys.exitfunc = cleanup_console # terminal modes have to be restored on exit...
149 …raise NotImplementedError("Sorry no implementation for your platform (%s) available." % sys.platfo…
154 sys.stderr.write('\n--- Available ports:\n')
157 sys.stderr.write('--- %-20s %s\n' % (port, desc))
215 sys.stderr.write("\n--- Settings: %s %s,%s,%s,%s\n" % (
221 sys.stderr.write('--- RTS: %-8s DTR: %-8s BREAK: %-8s\n' % (
[all …]
/external/llvm/lib/ExecutionEngine/
DSectionMemoryManager.cpp61 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection()
67 sys::MemoryBlock &PendingMB = MemGroup.PendingMem[FreeMB.PendingPrefixIndex]; in allocateSection()
68 PendingMB = sys::MemoryBlock(PendingMB.base(), Addr + Size - (uintptr_t)PendingMB.base()); in allocateSection()
72 FreeMB.Free = sys::MemoryBlock((void *)(Addr + Size), EndOfBlock - Addr - Size); in allocateSection()
87 sys::MemoryBlock MB = sys::Memory::allocateMappedMemory(RequiredSize, in allocateSection()
89 sys::Memory::MF_READ | in allocateSection()
90 sys::Memory::MF_WRITE, in allocateSection()
109 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection()
116 FreeMB.Free = sys::MemoryBlock((void*)(Addr + Size), FreeSize); in allocateSection()
132 sys::Memory::MF_READ | sys::Memory::MF_EXEC); in finalizeMemory()
[all …]
/external/antlr/antlr-3.4/runtime/Python/
Dez_setup.py16 import sys
18 DEFAULT_URL = "http://cheeseshop.python.org/packages/%s/s/setuptools/" % sys.version[:3]
44 import sys, os
51 print >>sys.stderr, (
55 sys.exit(2)
77 print >>sys.stderr, (
81 sys.exit(2)
84 sys.path.insert(0, egg)
93 print >>sys.stderr, (
98 sys.exit(2)
[all …]
/external/llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/
DOneTest3 import sys
5 if len(sys.argv) != 2:
8 if sys.argv[1] == "--gtest_list_tests":
17 sys.exit(0)
18 elif not sys.argv[1].startswith("--gtest_filter="):
19 raise ValueError("unexpected argument: %r" % (sys.argv[1]))
21 test_name = sys.argv[1].split('=',1)[1]
25 sys.exit(0)
29 sys.exit(1)
34 sys.exit(0)
/external/autotest/client/cros/scripts/
Ddevice8 import sys
15 cmd = sys.argv[0]
68 if len(sys.argv) < 2:
71 command = sys.argv[1]
76 if len(sys.argv) > 2:
78 device = shill.find_object('Device', {'Name': sys.argv[2]})
80 print "No device named %s found" % sys.argv[2]
86 None if len(sys.argv) < 4 else sys.argv[3])
88 if command == 'set-property' and len(sys.argv) == 5:
91 sys.argv[3],
[all …]

12345678910>>...90