| /third_party/ltp/testcases/kernel/containers/userns/ |
| D | userns03.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 * ID-inside-ns ID-outside-ns length 15 * ID-outside-ns is interpreted according to which process is opening the file. 17 * If the process opening the file is in the same user namespace as the process 18 * PID, then ID-outside-ns is defined with respect to the parent user namespace. 20 * If the process opening the file is in a different user namespace, then 21 * ID-outside-ns is defined with respect to the user namespace of the process 25 * check if setgroups is allowed, see kernel commits: 27 * - 9cc46516ddf4 ("userns: Add a knob to disable setgroups on a per user namespace basis") 28 * - 66d2f338ee4c ("userns: Allow setting gid_maps without privilege when setgroups is disabled") [all …]
|
| /third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
| D | eap_config.h | 3 * Copyright (c) 2003-2013, Jouni Malinen <j@w1.fi> 13 * struct eap_peer_config - EAP peer configuration/credentials 17 * identity - EAP Identity 19 * This field is used to set the real user identity or NAI (for 20 * EAP-PSK/PAX/SAKE/GPSK). 25 * identity_len - EAP Identity length 30 * anonymous_identity - Anonymous EAP Identity 32 * This field is used for unencrypted use with EAP types that support 33 * different tunnelled identity, e.g., EAP-TTLS, in order to reveal the 39 * This field can also be used with EAP-SIM/AKA/AKA' to store the [all …]
|
| /third_party/python/Tools/scripts/ |
| D | fixcid.py | 5 # avoid making substitutions inside strings or comments. 6 # Inside strings, substitutions are never made; inside comments, 7 # it is a user option (off by default). 14 # The option -r reverses the sense of the substitutions (this may be 17 # If the old identifier is prefixed with a '*' (with no intervening 18 # whitespace), then it will not be substituted inside comments. 22 # like a C file (ends in .h or .c). The special filename '-' means 28 # The original files are kept as back-up with a "~" suffix. 30 # Changes made are reported to stdout in a diff-like format. 50 ' [-c] [-r] [-s file] ... file-or-directory ...\n') [all …]
|
| /third_party/skia/samplecode/ |
| D | SampleSimpleStroker.cpp | 4 * Use of this source code is governed by a BSD-style license that can be 20 static SkPoint rotate90(const SkPoint& p) { return {p.fY, -p.fX}; } in rotate90() 21 static SkPoint rotate180(const SkPoint& p) { return p * -1; } in rotate180() 89 // Returns the fill path 90 SkPath getFillPath(const SkPath& path, const SkPaint& paint); 104 void initForPath(const SkPath& path, const SkPaint& paint); 116 // Appends path in reverse to result 117 static void appendPathReversed(const PathRecorder& path, PathRecorder* result); 126 void SkPathStroker2::initForPath(const SkPath& path, const SkPaint& paint) { in initForPath() argument 134 SkPath SkPathStroker2::getFillPath(const SkPath& path, const SkPaint& paint) { in getFillPath() argument [all …]
|
| /third_party/python/Lib/ |
| D | glob.py | 17 The pattern may contain simple shell-style wildcards a la 22 If `include_hidden` is true, the patterns '*', '?', '**' will match hidden 25 If `recursive` is true, the pattern '**' will match any files and 35 The pattern may contain simple shell-style wildcards a la 40 If recursive is true, the pattern '**' will match any files and 45 if root_dir is not None: 62 dirname, basename = os.path.split(pathname) 81 # `os.path.split()` returns the argument itself as a dirname if it is a 82 # drive or UNC path. Prevent an infinite recursion if a drive or UNC path 99 yield os.path.join(dirname, name) [all …]
|
| /third_party/skia/include/core/ |
| D | SkPathTypes.h | 4 * Use of this source code is governed by a BSD-style license that can be 14 /** Specifies that "inside" is computed by a non-zero sum of signed edge crossings */ 16 /** Specifies that "inside" is computed by an odd number of edge crossings */ 18 /** Same as Winding, but draws outside of the path, rather than inside */ 20 /** Same as EvenOdd, but draws outside of the path, rather than inside */ 39 /** counter-clockwise direction for adding closed contours */
|
| D | SkRegion.h | 4 * Use of this source code is governed by a BSD-style license that can be 17 SkRegion describes the set of pixels used to clip SkCanvas. SkRegion is compact, 27 /** Constructs an empty SkRegion. SkRegion is set to empty bounds 38 the returned result share pointer values. The underlying SkRect array is 41 Creating a SkRegion copy is very efficient and never allocates memory. 61 /** Releases ownership of any shared data and deletes data if SkRegion is sole owner. 69 the returned result share pointer values. The underlying SkRect array is 72 Creating a SkRegion copy is very efficient and never allocates memory. 102 /** Sets SkRegion to src, and returns true if src bounds is not empty. 104 SkRegion and src share pointer values. The underlying SkRect array is [all …]
|
| /third_party/python/Mac/Tools/ |
| D | pythonw.c | 2 * This wrapper program executes a python executable hidden inside an 3 * application bundle inside the Python framework. This is needed to run 4 * GUI code: some GUI API's don't work unless the program is inside an 8 * slightly more control over how the "real" interpreter is executed. 31 #include <mach-o/dyld.h> 40 * In a regular framework the structure is: 47 * structure is: 51 * /.Python <- the dylib 55 * feature, support for that structure is provided as 77 end = g_path + len - 1; in get_python_path() [all …]
|
| /third_party/rust/crates/libc/ci/ |
| D | run.sh | 6 set -ex 8 MIRRORS_URL="https://ci-mirrors.rust-lang.org/libc" 12 # If we're going to run tests inside of a qemu image, then we don't need any of 17 # script from the second which we place inside. 19 tmpdir=/tmp/qemu-img-creation 20 mkdir -p "${tmpdir}" 22 if [ -z "${QEMU#*.gz}" ]; then 23 # image is .gz : download and uncompress it 25 if [ ! -f "${tmpdir}/${qemufile}" ]; then 26 curl --retry 5 "${MIRRORS_URL}/${QEMU}" | \ [all …]
|
| /third_party/ltp/testcases/kernel/syscalls/fanotify/ |
| D | fanotify10.c | 1 // SPDX-License-Identifier: GPL-2.0 19 * This is a regression test for commit: 23 * Test case #16 is a regression test for commit: 321 .tname = "ignore events on file created inside a parent watching children", 331 .tname = "don't ignore events on file created inside a parent not watching children", 341 .tname = "ignore mount events created inside a parent watching children", 351 .tname = "don't ignore mount events created inside a parent not watching children", 361 .tname = "ignore fs events created inside a parent watching children", 371 .tname = "don't ignore fs events created inside a parent not watching children", 406 .tname = "don't ignore mount events created inside a parent with evicted ignore mark", [all …]
|
| /third_party/gn/src/gn/ |
| D | filesystem_utils.h | 2 // Use of this source code is governed by a BSD-style license that can be 20 inline std::string FilePathToUTF8(const base::FilePath& path) { in FilePathToUTF8() argument 21 return FilePathToUTF8(path.value()); in FilePathToUTF8() 25 // Extensions ----------------------------------------------------------------- 28 // slash). Returns std::string::npos if not found. Returns path.size() if the 30 size_t FindExtensionOffset(const std::string& path); 34 std::string_view FindExtension(const std::string* path); 36 // Filename parts ------------------------------------------------------------- 39 // 0 if no slash was found. Returns path.size() if the path ends with a slash. 41 size_t FindFilenameOffset(const std::string& path); [all …]
|
| D | build_settings.h | 2 // Use of this source code is governed by a BSD-style license that can be 27 // Settings for one build, which is one toplevel output directory. There 47 // Absolute path of the source root on the local system. Everything is 63 // Path of the python executable to run scripts with. 94 // Path to a file containing the default text to use when running `gn args`. 102 // The build directory is the root of all output files. The default toolchain 103 // files go into here, and non-default toolchains will have separate 104 // toolchain-specific root directories inside this. 108 // The build args are normally specified on the command-line. 112 // Returns the full absolute OS path cooresponding to the given file in the [all …]
|
| /third_party/python/Mac/IDLE/IDLE.app/Contents/Resources/ |
| D | idlemain.py | 8 os.chdir(os.path.expanduser('~/Documents')) 11 # Make sure sys.executable points to the python interpreter inside the 12 # framework, instead of at the helper executable inside the application 19 # Python{-32} (symlink) 24 # ../IDLE.app/Contents/MacOS/Python{-32} is symlinked to 26 # /Resources/Python.app/Contents/MacOS/Python{-32} 27 # which is the Python interpreter executable 29 # The flow of control is as follows: 30 # 1. IDLE.app is launched which starts python running the IDLE script 32 # PYTHONEXECUTABLE = .../IDLE.app/Contents/MacOS/Python{-32} [all …]
|
| /third_party/rust/crates/libloading/src/os/windows/ |
| D | mod.rs | 58 /// The platform-specific counterpart of the cross-platform [`Library`](crate::Library). 62 // Now, this is sort-of-tricky. MSDN documentation does not really make any claims as to safety of 64 // say for sure whether the Win32 APIs used to implement `Library` are thread-safe or not. 66 // My investigation ended up with a question about thread-safety properties of the API involved 67 // being sent to an internal (to MS) general question mailing-list. The conclusion of the mail is 70 // * Nobody inside MS (at least out of all of the people who have seen the question) knows for 72 // * However, the general consensus between MS developers is that one can rely on the API being 73 // thread-safe. In case it is not thread-safe it should be considered a bug on the Windows 80 /// If the `filename` specifies a full path, the function only searches that path for the 81 /// module. Otherwise, if the `filename` specifies a relative path or a module name without a [all …]
|
| /third_party/skia/third_party/externals/freetype/include/freetype/ |
| D | ftstroke.h | 5 * FreeType path stroker (specification). 7 * Copyright (C) 2002-2021 by 10 * This file is part of the FreeType project, and may only be used, 42 * It also allows you to retrieve the 'outside' and/or the 'inside' 46 * displayed with a colored (and anti-aliased) border around their 89 * Opaque handle to a path stroker object. 110 * lines is filled by enclosing the triangular region of the corner 115 * limit is exceeded. The outer edges of the strokes for the two 117 * (see above) is used if the segments meet at too sharp an angle and 126 * limit is exceeded. The intersection of the strokes is clipped [all …]
|
| /third_party/skia/src/core/ |
| D | SkClipStack.h | 4 * Use of this source code is governed by a BSD-style license that can be 40 // of the bound can be written to. Note that some of the pixels inside 42 // written to are guaranteed to be inside. 58 //!< This element combines a device space round-rect with the current clip. 60 //!< This element combines a device space path with the current clip. 70 this->initCommon(0, SkClipOp::kIntersect, false); in Element() 71 this->setEmpty(); in Element() 77 this->initRect(0, rect, m, op, doAA); in Element() 81 this->initRRect(0, rrect, m, op, doAA); in Element() 84 Element(const SkPath& path, const SkMatrix& m, SkClipOp op, bool doAA) { in Element() argument [all …]
|
| /third_party/typescript/src/testRunner/ |
| D | rwcRunner.ts | 1 // In harness baselines, null is different than undefined. See `generateActual` in `harness.ts`. 35 … // Mocha holds onto the closure environment of the describe callback even after the test is done. 36 // Therefore we have to clean out large objects after the test is done. 43 …// useCustomLibraryFile is a flag specified in the json object to indicate whether to use built/lo… 44 …// or to use lib.d.ts inside the json object. If the flag is true, use the lib.d.ts inside json fi… 68 …onst tsconfigFile = ts.forEach(ioLog.filesRead, f => vpath.isTsConfigFile(f.path) ? f : undefined); 70 const tsconfigFileContents = getHarnessCompilerInputUnit(tsconfigFile.path); 71 … tsconfigFiles.push({ unitName: tsconfigFile.path, content: tsconfigFileContents.content }); 72 …const parsedTsconfigFileContents = ts.parseJsonText(tsconfigFile.path, tsconfigFileContents.conten… 79 …igFileContent(parsedTsconfigFileContents, configParseHost, ts.getDirectoryPath(tsconfigFile.path)); [all …]
|
| /third_party/musl/src/thread/ |
| D | __lock.c | 4 * congestion count (= threads inside the critical section, CS) in a 5 * single int that is accessed through atomic operations. The states 8 * x == 0: unlocked and no thread inside the critical section 10 * x < 0: locked with a congestion of x-INT_MIN, including the thread 15 * or in an equivalent formulation x is the congestion count or'ed 23 /* fast path: INT_MIN for the lock, +1 for the congestion */ in __lock() 29 if (current < 0) current -= INT_MIN + 1; in __lock() 35 // Spinning failed, so mark ourselves as being inside the CS. in __lock() 38 * change to the value performed inside that loop is a successful in __lock() 45 current -= INT_MIN + 1; in __lock() [all …]
|
| /third_party/musl/porting/liteos_m/user/src/thread/ |
| D | __lock.c | 5 * congestion count (= threads inside the critical section, CS) in a 6 * single int that is accessed through atomic operations. The states 9 * x == 0: unlocked and no thread inside the critical section 11 * x < 0: locked with a congestion of x-INT_MIN, including the thread 16 * or in an equivalent formulation x is the congestion count or'ed 22 /* fast path: INT_MIN for the lock, +1 for the congestion */ in __lock() 27 if (current < 0) current -= INT_MIN + 1; in __lock() 33 // Spinning failed, so mark ourselves as being inside the CS. in __lock() 36 * change to the value performed inside that loop is a successful in __lock() 43 current -= INT_MIN + 1; in __lock() [all …]
|
| /third_party/rust/crates/bindgen/bindgen/codegen/ |
| D | dyngen.rs | 9 /// Tracks the tokens that will appears inside the library struct -- e.g.: 13 /// pub x: Result<unsafe extern ..., ::libloading::Error>, // <- tracks these 19 /// Tracks the tokens that will appear inside the library struct's implementation, e.g.: 24 /// pub unsafe fn foo(&self, ...) { // <- tracks these 31 /// Tracks the initialization of the fields inside the `::new` constructor of the library 36 /// pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error> 41 /// let foo = __library.get(...) ...; // <- tracks these 50 /// Tracks the information that is passed to the library struct at the end of the `::new` 54 /// pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error> 62 /// bar, // <- tracks these [all …]
|
| /third_party/gn/src/base/files/ |
| D | file_enumerator.h | 2 // Use of this source code is governed by a BSD-style license that can be 27 // A class for enumerating the files in a provided path. The order of the 28 // results is not guaranteed. 30 // This is blocking. Do not use on critical threads. 48 // The name of the file. This will not include any path information. This 49 // is in contrast to the value returned by FileEnumerator.Next() which 88 // pattern. Inside each one, all files will be returned. Folders with names 92 // matching inside each one. 96 // |root_path| is the starting directory to search for. It may or may not end 99 // If |recursive| is true, this will enumerate all matches in any [all …]
|
| /third_party/vk-gl-cts/external/vulkancts/data/vulkan/amber/graphicsfuzz/ |
| D | index.txt | 1 { "access-new-vector-inside-if-condition.amber", "access-new-vector-inside-if-condition"… 2 { "always-discarding-function.amber", "always-discarding-function", "A f… 3 { "always-false-if-in-do-while.amber", "always-false-if-in-do-while", "A … 4 { "always-false-if-with-discard-return.amber", "always-false-if-with-discard-return", … 5 { "arr-value-set-to-arr-value-squared.amber", "arr-value-set-to-arr-value-squared", … 6 { "array-idx-multiplied-by-for-loop-idx.amber", "array-idx-multiplied-by-for-loop-idx", … 7 { "assign-array-value-to-another-array.amber", "assign-array-value-to-another-array", … 8 { "assign-array-value-to-another-array-2.amber", "assign-array-value-to-another-array-2"… 9 { "barrier-in-loop-with-break.amber", "barrier-in-loop-with-break", "A c… 10 { "break-in-do-while-with-nested-if.amber", "break-in-do-while-with-nested-if", … [all …]
|
| /third_party/python/Lib/test/test_importlib/ |
| D | test_path.py | 10 def execute(self, package, path): argument 11 with resources.as_file(resources.files(package).joinpath(path)): 17 # Path should be readable. 18 # Test also implicitly verifies the returned object is a pathlib.Path 20 target = resources.files(self.data) / 'utf-8.file' 21 with resources.as_file(target) as path: 22 self.assertTrue(path.name.endswith("utf-8.file"), repr(path)) 23 # pathlib.Path.read_text() was introduced in Python 3.5. 24 with path.open('r', encoding='utf-8') as file: 26 self.assertEqual('Hello, UTF-8 world!\n', text) [all …]
|
| /third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
| D | sfn_liverangeevaluator_helpers.h | 1 /* -*- mesa-c++ -*- 7 * Permission is hereby granted, free of charge, to any person obtaining a 12 * the Software is furnished to do so, subject to the following conditions: 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 36 loop_body, /* Inside a loop */ 37 if_branch, /* Inside if branch */ 38 else_branch, /* Inside else branch */ 39 switch_body, /* Inside switch statement */ 40 switch_case_branch, /* Inside switch case statement */ [all …]
|
| /third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ |
| D | IcuConverterConfig.java | 10 import java.nio.file.Path; 32 * that was configured by text files such as "icu-locale-deprecates.xml" and "icu-config. 35 private static final Optional<Path> DEFAULT_ICU_DIR = 37 .map(d -> Paths.get(d).toAbsolutePath()); 42 private Path outputDir = 43 DEFAULT_ICU_DIR.map(d -> d.resolve("icu4c/source/data")).orElse(null); 44 private Path specialsDir = 45 DEFAULT_ICU_DIR.map(d -> d.resolve("icu4c/source/data/xml")).orElse(null); 57 * Sets the output directory in which the ICU data directories and files will go. This is 58 * optional if the {@code ICU_DIR} system property is set, which will be used to generate [all …]
|