Home
last modified time | relevance | path

Searched full:os (Results 1 – 25 of 6698) sorted by relevance

12345678910>>...268

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/
DPDBExtras.cpp24 raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, in operator <<() argument
27 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Bool, OS) in operator <<()
28 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Single, OS) in operator <<()
29 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Double, OS) in operator <<()
30 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Int8, OS) in operator <<()
31 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Int16, OS) in operator <<()
32 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Int32, OS) in operator <<()
33 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Int64, OS) in operator <<()
34 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, UInt8, OS) in operator <<()
35 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, UInt16, OS) in operator <<()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Demangle/
DMicrosoftDemangleNodes.cpp24 OS << Desc; \
28 static void outputSpaceIfNecessary(OutputStream &OS) { in outputSpaceIfNecessary() argument
29 if (OS.empty()) in outputSpaceIfNecessary()
32 char C = OS.back(); in outputSpaceIfNecessary()
34 OS << " "; in outputSpaceIfNecessary()
37 static void outputSingleQualifier(OutputStream &OS, Qualifiers Q) { in outputSingleQualifier() argument
40 OS << "const"; in outputSingleQualifier()
43 OS << "volatile"; in outputSingleQualifier()
46 OS << "__restrict"; in outputSingleQualifier()
53 static bool outputQualifierIfPresent(OutputStream &OS, Qualifiers Q, in outputQualifierIfPresent() argument
[all …]
/third_party/python/Lib/test/
Dtest_os.py1 # As a test suite for the os module, this is woefully inadequate, but this
14 import os
72 if hasattr(os, 'geteuid'):
73 root_in_posix = (os.geteuid() == 0)
85 HAVE_WHEEL_GROUP = sys.platform.startswith('freebsd') and os.getgid() == 0
89 return unittest.skipUnless(hasattr(os, name), 'requires os.%s' % name)
108 cwd = os.getcwd()
114 # longer path if longer paths support is enabled. Internally, the os
137 cwd = os.getcwd()
140 need = min_len - (len(cwd) + len(os.path.sep))
[all …]
Dtest_shutil.py9 import os
10 import os.path
55 no_chdir = unittest.mock.patch('os.chdir',
56 side_effect=AssertionError("shouldn't call os.chdir()"))
66 builtin_rename = os.rename
67 os.rename = _fake_rename
70 os.rename = builtin_rename
76 If *path* is a tuple instead of a string, os.path.join will be used to
81 path = os.path.join(*path)
103 assert os.path.getsize(path) == size
[all …]
Dtest_posix.py16 import os
30 _DUMMY_SYMLINK = os.path.join(tempfile.gettempdir(),
130 "test needs os.initgroups()")
142 if os.getuid() != 0:
158 self.assertTrue(posix.statvfs(os.curdir))
189 …@unittest.skipUnless(getattr(os, 'execve', None) in os.supports_fd, "test needs execve() to suppor…
192 fp = os.open(sys.executable, os.O_RDONLY)
194 pid = os.fork()
196 os.chdir(os.path.split(sys.executable)[0])
197 posix.execve(fp, [sys.executable, '-c', 'pass'], os.environ)
[all …]
Dtest_unicode_file.py4 import os, glob, time, shutil
13 if not os.path.supports_unicode_filenames:
22 if os.path.exists(filename):
23 os.unlink(filename)
32 self.assertTrue(os.path.exists(filename))
33 self.assertTrue(os.path.isfile(filename))
34 self.assertTrue(os.access(filename, os.R_OK))
35 self.assertTrue(os.path.exists(os.path.abspath(filename)))
36 self.assertTrue(os.path.isfile(os.path.abspath(filename)))
37 self.assertTrue(os.access(os.path.abspath(filename), os.R_OK))
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DMCAsmLexer.cpp39 void AsmToken::dump(raw_ostream &OS) const { in dump()
42 OS << "error"; in dump()
45 OS << "identifier: " << getString(); in dump()
48 OS << "int: " << getString(); in dump()
51 OS << "real: " << getString(); in dump()
54 OS << "string: " << getString(); in dump()
57 case AsmToken::Amp: OS << "Amp"; break; in dump()
58 case AsmToken::AmpAmp: OS << "AmpAmp"; break; in dump()
59 case AsmToken::At: OS << "At"; break; in dump()
60 case AsmToken::BackSlash: OS << "BackSlash"; break; in dump()
[all …]
/third_party/skia/third_party/externals/angle2/src/common/
DPackedGLEnums_autogen.cpp70 std::ostream &operator<<(std::ostream &os, AlphaTestFunc value) in operator <<() argument
75 os << "GL_ALWAYS"; in operator <<()
78 os << "GL_EQUAL"; in operator <<()
81 os << "GL_GEQUAL"; in operator <<()
84 os << "GL_GREATER"; in operator <<()
87 os << "GL_LEQUAL"; in operator <<()
90 os << "GL_LESS"; in operator <<()
93 os << "GL_NEVER"; in operator <<()
96 os << "GL_NOTEQUAL"; in operator <<()
99 os << "GL_INVALID_ENUM"; in operator <<()
[all …]
DPackedCLEnums_autogen.cpp58 std::ostream &operator<<(std::ostream &os, AddressingMode value) in operator <<() argument
63 os << "CL_ADDRESS_NONE"; in operator <<()
66 os << "CL_ADDRESS_CLAMP_TO_EDGE"; in operator <<()
69 os << "CL_ADDRESS_CLAMP"; in operator <<()
72 os << "CL_ADDRESS_REPEAT"; in operator <<()
75 os << "CL_ADDRESS_MIRRORED_REPEAT"; in operator <<()
78 os << "GL_INVALID_ENUM"; in operator <<()
81 return os; in operator <<()
132 std::ostream &operator<<(std::ostream &os, CommandQueueInfo value) in operator <<() argument
137 os << "CL_QUEUE_CONTEXT"; in operator <<()
[all …]
DPackedEnums.cpp266 std::ostream &operator<<(std::ostream &os, PrimitiveMode value) in operator <<() argument
271 os << "GL_LINE_LOOP"; in operator <<()
274 os << "GL_LINES"; in operator <<()
277 os << "GL_LINES_ADJACENCY"; in operator <<()
280 os << "GL_LINE_STRIP"; in operator <<()
283 os << "GL_LINE_STRIP_ADJANCENCY"; in operator <<()
286 os << "GL_POINTS"; in operator <<()
289 os << "GL_TRIANGLE_FAN"; in operator <<()
292 os << "GL_TRIANGLES"; in operator <<()
295 os << "GL_TRIANGLES_ADJANCENCY"; in operator <<()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DWasmEmitter.cpp30 bool writeWasm(raw_ostream &OS);
33 void writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec,
36 void writeInitExpr(raw_ostream &OS, const wasm::WasmInitExpr &InitExpr);
38 void writeSectionContent(raw_ostream &OS, WasmYAML::CustomSection &Section);
39 void writeSectionContent(raw_ostream &OS, WasmYAML::TypeSection &Section);
40 void writeSectionContent(raw_ostream &OS, WasmYAML::ImportSection &Section);
41 void writeSectionContent(raw_ostream &OS, WasmYAML::FunctionSection &Section);
42 void writeSectionContent(raw_ostream &OS, WasmYAML::TableSection &Section);
43 void writeSectionContent(raw_ostream &OS, WasmYAML::MemorySection &Section);
44 void writeSectionContent(raw_ostream &OS, WasmYAML::GlobalSection &Section);
[all …]
DMachOEmitter.cpp36 void writeMachO(raw_ostream &OS);
39 void writeHeader(raw_ostream &OS);
40 void writeLoadCommands(raw_ostream &OS);
41 void writeSectionData(raw_ostream &OS);
42 void writeLinkEditData(raw_ostream &OS);
44 void writeBindOpcodes(raw_ostream &OS,
47 void writeRebaseOpcodes(raw_ostream &OS);
48 void writeBasicBindOpcodes(raw_ostream &OS);
49 void writeWeakBindOpcodes(raw_ostream &OS);
50 void writeLazyBindOpcodes(raw_ostream &OS);
[all …]
DDWARFEmitter.cpp38 static void writeInteger(T Integer, raw_ostream &OS, bool IsLittleEndian) { in writeInteger() argument
41 OS.write(reinterpret_cast<char *>(&Integer), sizeof(T)); in writeInteger()
45 raw_ostream &OS, bool IsLittleEndian) { in writeVariableSizedInteger() argument
47 writeInteger((uint64_t)Integer, OS, IsLittleEndian); in writeVariableSizedInteger()
49 writeInteger((uint32_t)Integer, OS, IsLittleEndian); in writeVariableSizedInteger()
51 writeInteger((uint16_t)Integer, OS, IsLittleEndian); in writeVariableSizedInteger()
53 writeInteger((uint8_t)Integer, OS, IsLittleEndian); in writeVariableSizedInteger()
58 static void ZeroFillBytes(raw_ostream &OS, size_t Size) { in ZeroFillBytes() argument
61 OS.write(reinterpret_cast<char *>(FillData.data()), Size); in ZeroFillBytes()
65 raw_ostream &OS, bool IsLittleEndian) { in writeInitialLength() argument
[all …]
/third_party/ffmpeg/libavformat/
Doggdec.c100 struct ogg_stream *os = ogg->streams + i; in ogg_save() local
101 os->buf = av_mallocz(os->bufsize + AV_INPUT_BUFFER_PADDING_SIZE); in ogg_save()
102 if (os->buf) in ogg_save()
103 memcpy(os->buf, ost->streams[i].buf, os->bufpos); in ogg_save()
106 os->new_metadata = NULL; in ogg_save()
107 os->new_metadata_size = 0; in ogg_save()
164 struct ogg_stream *os = ogg->streams + i; in ogg_reset() local
165 os->bufpos = 0; in ogg_reset()
166 os->pstart = 0; in ogg_reset()
167 os->psize = 0; in ogg_reset()
[all …]
Dhdsenc.c78 static int parse_header(OutputStream *os, const uint8_t *buf, int buf_size) in parse_header() argument
92 if (os->nb_extra_packets >= FF_ARRAY_ELEMS(os->extra_packets)) in parse_header()
94 os->extra_packet_sizes[os->nb_extra_packets] = size; in parse_header()
95 os->extra_packets[os->nb_extra_packets] = av_memdup(buf, size); in parse_header()
96 if (!os->extra_packets[os->nb_extra_packets]) in parse_header()
98 os->nb_extra_packets++; in parse_header()
100 if (os->metadata) in parse_header()
102 os->metadata_size = size - 11 - 4; in parse_header()
103 os->metadata = av_memdup(buf + 11, os->metadata_size); in parse_header()
104 if (!os->metadata) in parse_header()
[all …]
Dsmoothstreamingenc.c80 OutputStream *os = opaque; in ism_write() local
81 if (os->out) in ism_write()
82 ffurl_write(os->out, buf, buf_size); in ism_write()
83 if (os->out2) in ism_write()
84 ffurl_write(os->out2, buf, buf_size); in ism_write()
85 os->cur_pos += buf_size; in ism_write()
86 if (os->cur_pos >= os->tail_pos) in ism_write()
87 os->tail_pos = os->cur_pos; in ism_write()
93 OutputStream *os = opaque; in ism_seek() local
97 if (os->tail_out) { in ism_seek()
[all …]
/third_party/lame/
Dconfig.sub126 os=$field3-$field4
129 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
139 os=$maybe_os
143 os=linux-android
147 os=$field3
152 # Second component is usually, but not always the OS
154 # Prevent following clause from handling this valid os
155 sun*os*)
157 os=$field2
169 os=
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCSectionELF.cpp30 static void printName(raw_ostream &OS, StringRef Name) { in printName() argument
34 OS << Name; in printName()
37 OS << '"'; in printName()
40 OS << "\\\""; in printName()
42 OS << *B; in printName()
44 OS << "\\\\"; in printName()
46 OS << B[0] << B[1]; // Quoted character in printName()
50 OS << '"'; in printName()
54 raw_ostream &OS, in PrintSwitchToSection() argument
57 OS << '\t' << getSectionName(); in PrintSwitchToSection()
[all …]
DMCAsmStreamer.cpp46 formatted_raw_ostream &OS; member in __anonb373f1ef0111::MCAsmStreamer
65 MCAsmStreamer(MCContext &Context, std::unique_ptr<formatted_raw_ostream> os, in MCAsmStreamer() argument
69 : MCStreamer(Context), OSOwner(std::move(os)), OS(*OSOwner), in MCAsmStreamer()
92 OS << '\n'; in EmitEOL()
370 OS << '\n'; in EmitCommentsAndEOL()
380 OS.PadToColumn(MAI->getCommentColumn()); in EmitCommentsAndEOL()
382 OS << MAI->getCommentString() << ' ' << Comments.substr(0, Position) <<'\n'; in EmitCommentsAndEOL()
397 OS << '\t'; in emitRawComment()
398 OS << MAI->getCommentString() << T; in emitRawComment()
442 OS << Comments; in emitExplicitComments()
[all …]
/third_party/skia/third_party/externals/microhttpd/
Dconfig.sub114 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
115 # Here we must recognize all the valid KERNEL-OS combinations.
123 os=-$maybe_os
127 os=-linux-android
133 then os=`echo $1 | sed 's/.*-/-/'`
134 else os=; fi
142 case $os in
143 -sun*os*)
153 os=
157 os=-cnk
[all …]
/third_party/skia/third_party/externals/libpng/
Dconfig.sub113 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114 # Here we must recognize all the valid KERNEL-OS combinations.
122 os=-$maybe_os
126 os=-linux-android
132 then os=`echo "$1" | sed 's/.*-/-/'`
133 else os=; fi
141 case $os in
142 -sun*os*)
152 os=
156 os=-cnk
[all …]
/third_party/skia/m133/third_party/externals/icu/source/
Dconfig.sub113 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114 # Here we must recognize all the valid KERNEL-OS combinations.
122 os=-$maybe_os
126 os=-linux-android
132 then os=`echo $1 | sed 's/.*-/-/'`
133 else os=; fi
141 case $os in
142 -sun*os*)
152 os=
156 os=-cnk
[all …]
/third_party/skia/third_party/externals/icu/source/
Dconfig.sub113 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114 # Here we must recognize all the valid KERNEL-OS combinations.
122 os=-$maybe_os
126 os=-linux-android
132 then os=`echo $1 | sed 's/.*-/-/'`
133 else os=; fi
141 case $os in
142 -sun*os*)
152 os=
156 os=-cnk
[all …]
/third_party/mindspore/mindspore-src/source/tests/ut/python/mindrecord/
Dtest_tfrecord_to_mr.py17 import os
106 writer = tf.io.TFRecordWriter(os.path.join(TFRECORD_DATA_DIR, tfrecord_file_name))
148 writer = tf.io.TFRecordWriter(os.path.join(TFRECORD_DATA_DIR, tfrecord_file_name))
173 file_name_ = os.environ.get('PYTEST_CURRENT_TEST').split(':')[-1].split(' ')[0]
178 assert os.path.exists(os.path.join(TFRECORD_DATA_DIR, tfrecord_file_name))
188 if os.path.exists(mindrecord_file_name):
189 os.remove(mindrecord_file_name)
190 if os.path.exists(mindrecord_file_name + ".db"):
191 os.remove(mindrecord_file_name + ".db")
193 tfrecord_transformer = TFRecordToMR(os.path.join(TFRECORD_DATA_DIR, tfrecord_file_name),
[all …]
Dtest_mindrecord_multi_images.py15 import os
41 file_name = os.environ.get('PYTEST_CURRENT_TEST').split(':')[-1].split(' ')[0]
42 if os.path.exists("{}".format(file_name + ".db")):
43 os.remove(file_name + ".db")
44 if os.path.exists("{}".format(file_name)):
45 os.remove(file_name)
52 assert os.path.exists(file_name)
53 assert os.path.exists(file_name + ".db")
56 if os.path.exists("{}".format(file_name + ".db")):
57 os.remove(file_name + ".db")
[all …]

12345678910>>...268