/kernel/linux/linux-6.6/scripts/kconfig/tests/ |
H A D | conftest.py | 18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf')) 36 self._test_dir = os.path.dirname(str(request.fspath)) 66 shutil.copyfile(os.path.join(self._test_dir, dot_config), 67 os.path.join(temp_dir, '.config')) 94 with open(os.path.join(temp_dir, out_file)) as f: 154 defconfig_path = os.path.join(self._test_dir, defconfig) 159 all_config_path = os.path.join(self._test_dir, all_config) 230 with open(os.path.join(self._test_dir, expected)) as f:
|
/kernel/linux/linux-6.6/security/tomoyo/ |
H A D | mount.c | 40 * tomoyo_check_mount_acl - Check permission for path path path number operation. 69 * @dir: Pointer to "struct path". 79 const struct path *dir, const char *type, in tomoyo_mount_acl() 83 struct path path; in tomoyo_mount_acl() local 136 if (!dev_name || kern_path(dev_name, LOOKUP_FOLLOW, &path)) { in tomoyo_mount_acl() 140 obj.path1 = path; in tomoyo_mount_acl() 141 requested_dev_name = tomoyo_realpath_from_path(&path); in tomoyo_mount_acl() 191 tomoyo_mount_permission(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data_page) tomoyo_mount_permission() argument [all...] |
/kernel/linux/linux-6.6/tools/cgroup/ |
H A D | iocost_coef_gen.py | 59 # determine ('DEVNAME', 'MAJ:MIN') for @path 60 def dir_to_dev(path): 62 devname = subprocess.run(f'findmnt -nvo SOURCE -T{path}', 64 devname = os.path.basename(devname).decode('utf-8').strip() 69 devname = os.path.basename(os.path.dirname(parents[0])) 73 def create_testfile(path, size): 76 if os.path.isfile(path) and os.stat(path) [all...] |
/third_party/eudev/src/libudev/ |
H A D | libudev-util.c | 108 log_debug("path '[%s/%s]%s' is '%s'", subsys, sysname, attr, result); in util_resolve_subsys_kernel() 116 char path[UTIL_PATH_SIZE]; in util_get_sys_core_link_value() local 121 strscpyl(path, sizeof(path), syspath, "/", slink, NULL); in util_get_sys_core_link_value() 122 len = readlink(path, target, sizeof(target)); in util_get_sys_core_link_value() 208 void util_remove_trailing_chars(char *path, char c) in util_remove_trailing_chars() argument 212 if (path == NULL) in util_remove_trailing_chars() 214 len = strlen(path); in util_remove_trailing_chars() 215 while (len > 0 && path[len-1] == c) in util_remove_trailing_chars() 216 path[ in util_remove_trailing_chars() [all...] |
/third_party/cJSON/tests/unity/auto/ |
H A D | generate_module.rb | 126 # strip any leading path information from the module name and save for later 132 triad = [{ ext: '.c', path: @options[:path_src], prefix: '', template: TEMPLATE_SRC, inc: :src, boilerplate: @options[:boilerplates][:src] }, 133 { ext: '.h', path: @options[:path_inc], prefix: '', template: TEMPLATE_INC, inc: :inc, boilerplate: @options[:boilerplates][:inc] }, 134 { ext: '.c', path: @options[:path_tst], prefix: prefix, template: TEMPLATE_TST, inc: :tst, boilerplate: @options[:boilerplates][:tst] }] 144 # Assemble the path/names of the files we need to work with. 151 path: (Pathname.new("#{cfg[:path]}#{subfolder}") + filename).cleanpath, 195 all_files_exist = false unless File.exist?(file[:path]) 202 if File.exist?(file[:path]) 203 puts "File #{file[:path]} alread [all...] |
/third_party/googletest/googletest/scripts/ |
H A D | gen_gtest_pred_impl.py | 56 SCRIPT_DIR = os.path.dirname(sys.argv[0]) 59 HEADER = os.path.join(SCRIPT_DIR, '../include/gtest/gtest_pred_impl.h') 62 UNIT_TEST = os.path.join(SCRIPT_DIR, '../test/gtest_pred_impl_unittest.cc') 76 'command' : '%s %s' % (os.path.basename(sys.argv[0]), n), 307 def GenerateFile(path, content): 308 """Given a file path and a content string 311 print 'Updating file %s . . .' % path 312 f = file(path, 'w+') 316 print 'File %s has been updated.' % path 336 'command' : '%s %s' % (os.path [all...] |
/third_party/mbedtls/scripts/ |
H A D | generate_visualc_files.pl | 42 # Directories to add to the include path. 55 # Directories to add to the include path when building the library, but not 133 my ($path) = @_; 135 my $guid = md5_hex( "mbedTLS:$path" ); 142 my ($path, $template, $dir, $ext) = @_; 144 my $guid = gen_app_guid( $path ); 145 $path =~ s!/!\\!g; 146 (my $appname = $path) =~ s/.*\\//; 147 my $is_test_app = ($path =~ m/^test\\/); 149 my $srcs = "<ClCompile Include=\"..\\..\\programs\\$path [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_indirect_derefs.c | 167 nir_deref_path path; in lower_indirect_derefs_block() local 168 nir_deref_path_init(&path, deref, NULL); in lower_indirect_derefs_block() 169 assert(path.path[0] == base); in lower_indirect_derefs_block() 173 emit_load_store_deref(b, intrin, base, &path.path[1], in lower_indirect_derefs_block() 177 emit_load_store_deref(b, intrin, base, &path.path[1], in lower_indirect_derefs_block() 182 nir_deref_path_finish(&path); in lower_indirect_derefs_block()
|
/third_party/node/test/pseudo-tty/ |
H A D | testcfg.py | 32 from os.path import join, exists, basename, dirname, isdir 43 def __init__(self, path, file, expected, input_arg, arch, mode, context, config): 44 super(TTYTestCase, self).__init__(context, path, arch, mode) 97 return self.path[-1] 133 def Ls(self, path): 134 if isdir(path): 135 return [f[:-3] for f in os.listdir(path) if f.endswith('.js')] 139 def ListTests(self, current_path, path, arch, mode): 148 if self.Contains(path, tst):
|
/third_party/musl/scripts/ |
H A D | print_so_deps.py | 26 # the absolute path to llvm-readelf 28 # the absolute path to hdc 62 def pull_so(self, path): 63 cmd = "{} file recv {} {}".format(HDC, path, self.saved_so_path) 70 def is_path_exists(self, path): 71 cmd = "{} shell ls {}".format(HDC, path) 141 for path in self.search_paths: 142 abs_path = os.path.join(path, so_name) 177 parser.add_argument('-p', '--path', typ [all...] |
/third_party/node/deps/npm/test/fixtures/ |
H A D | eresolve-explanations.js | 139 path: '/some/project', 162 path: '/some/project', 187 path: '/some/project/node_modules/gatsby-recipes', 248 path: '/some/project/gatsby-user/node_modules/gatsby-recipes', 326 path: '/Users/isaacs/dev/npm/cli/eslint', 359 path: '/Users/isaacs/dev/npm/cli/eslint', 396 path: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react', 520 path: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react', 535 path: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
|
/third_party/python/Include/internal/ |
H A D | pycore_fileutils.h | 94 PyObject *path, 106 const wchar_t *path, 126 const wchar_t *path, 135 const wchar_t *path, 236 extern int _Py_isabs(const wchar_t *path); 237 extern int _Py_abspath(const wchar_t *path, wchar_t **abspath_p); 239 extern int _PyOS_getfullpathname(const wchar_t *path, wchar_t **abspath_p); 247 PyAPI_FUNC(wchar_t*) _Py_normpath(wchar_t *path, Py_ssize_t size); 248 extern wchar_t *_Py_normpath_and_size(wchar_t *path, Py_ssize_t size, Py_ssize_t *length);
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
H A D | angle_format.py | 17 return os.path.join(os.path.dirname(os.path.realpath(__file__)), 'angle_format_map.json') 30 def load_json(path): 31 with open(path) as map_file: 35 def load_forward_table(path): 36 pairs = load_json(path) 41 def load_inverse_table(path): 42 pairs = load_json(path)
|
/third_party/skia/src/effects/ |
H A D | Sk1DPathEffect.cpp | 45 /** Called with the current distance along the path, with the current matrix 63 SkPath1DPathEffectImpl(const SkPath& path, SkScalar advance, SkScalar phase, in SkPath1DPathEffectImpl() argument 64 SkPath1DPathEffect::Style style) : fPath(path) { in SkPath1DPathEffectImpl() 65 SkASSERT(advance > 0 && !path.isEmpty()); in SkPath1DPathEffectImpl() 67 // Make the path thread-safe. in SkPath1DPathEffectImpl() 72 // offset along the path (to match the interpretation in PostScript) in SkPath1DPathEffectImpl() 109 SkPath path; in CreateProc() local 110 buffer.readPath(&path); in CreateProc() 113 return buffer.isValid() ? SkPath1DPathEffect::Make(path, advance, phase, style) : nullptr; in CreateProc() 162 Need differentially more subdivisions when the follow-path i 238 Make(const SkPath& path, SkScalar advance, SkScalar phase, Style style) Make() argument [all...] |
/third_party/skia/src/core/ |
H A D | SkGlyphBuffer.h | 99 SkGlyphVariant& operator= (const SkPath* path) { in operator =() argument 100 fV.path = path; in operator =() 109 const SkPath* path() const { in path() function in SkSourceGlyphBuffer::SkGlyphVariant 111 return fV.path; in path() 120 operator const SkPath*() const { return this->path(); } in operator const SkPath*() 125 const SkPath* path; member 194 // Store the path in the next drawable slot, using the position information located at index 196 void push_back(const SkPath* path, size_t from) { in push_back() argument 200 fMultiBuffer[fDrawableSize] = path; in push_back() [all...] |
/third_party/vixl/tools/ |
H A D | lint.py | 117 filename = os.path.realpath(filename) 145 files = list(filter(os.path.isfile, files)) 179 filename = os.path.realpath(filename) 202 os.path.join(config.dir_tools, '.cached_lint_results.pkl') 207 if os.path.isfile(cached_results_pkl_filename): 220 relative_aarch32_traces_path = os.path.relpath(config.dir_aarch32_traces,'.') 221 relative_aarch64_traces_path = os.path.relpath(config.dir_aarch64_traces,'.') 223 fnmatch.fnmatch(f, os.path.join(relative_aarch32_traces_path, '*.h')) or \ 224 fnmatch.fnmatch(f, os.path.join(relative_aarch64_traces_path, '*.h'))
|
/third_party/skia/buildtools/checkdeps/ |
H A D | checkdeps_test.py | 23 base_directory=os.path.join(os.path.dirname(__file__), '..', '..')) 29 os.path.join(self.deps_checker.base_directory, 45 key_path = os.path.normpath(key_path) 101 os.path.join(self.deps_checker.base_directory, 114 os.path.join('buildtools', 'checkdeps', 'testdata', 'allowed')) 120 os.path.join(self.deps_checker.base_directory, 133 base_directory=os.path.dirname(__file__)) 199 dir_names = set(os.path.dirname(file) for file in filenames)
|
/third_party/rust/crates/which-rs/src/ |
H A D | finder.rs | 15 use std::path::{Path, PathBuf}; 18 fn is_valid(&self, path: &Path) -> bool; in is_valid() 67 let path = PathBuf::from(&binary_name); in find() 70 Some(cwd) if path.has_separator() => { in find() 71 // Search binary in cwd if the path have a path separator. in find() 72 Either::Left(Self::cwd_search_candidates(path, cwd).into_iter()) in find() 79 Either::Right(Self::path_search_candidates(path, paths).into_iter()) in find() 109 .map(|e| e.path()) in find_re() 126 let path in cwd_search_candidates() [all...] |
/device/soc/rockchip/common/sdk_linux/scripts/ |
H A D | resource_tool.c | 593 char path[MAX_INDEX_ENTRY_PATH_LEN]; member 614 char path[MAX_INDEX_ENTRY_PATH_LEN]; member 643 static const char *fix_path(const char *path) in fix_path() argument 645 if (!memcmp(path, "./", 2)) { in fix_path() 646 return path + 2; in fix_path() 648 return path; in fix_path() 800 static void tests_dump_file(const char *path, void *data, int len) in tests_dump_file() argument 802 FILE *file = fopen(path, "wb"); in tests_dump_file() 825 tests_dump_file(content->path, content->load_addr, content->content_size); in load_content() 834 tests_dump_file(content->path, dat in load_content_data() 1220 mkdirs(char *path) mkdirs() argument 1247 char path[MAX_INDEX_ENTRY_PATH_LEN * 2 + 1]; dump_file() local 1378 get_file_size(const char *path) get_file_size() argument 1488 const char *path = files[i]; write_index_tbl() local [all...] |
/device/soc/rockchip/rk3588/kernel/scripts/ |
H A D | resource_tool.c | 610 char path[MAX_INDEX_ENTRY_PATH_LEN]; member 631 char path[MAX_INDEX_ENTRY_PATH_LEN]; member 660 static const char *fix_path(const char *path) in fix_path() argument 662 if (!memcmp(path, "./", 2)) { in fix_path() 663 return path + 2; in fix_path() 665 return path; in fix_path() 811 static void tests_dump_file(const char *path, void *data, int len) in tests_dump_file() argument 813 FILE *file = fopen(path, "wb"); in tests_dump_file() 834 tests_dump_file(content->path, content->load_addr, content->content_size); in load_content() 845 tests_dump_file(content->path, dat in load_content_data() 1240 mkdirs(char *path) mkdirs() argument 1267 char path[MAX_INDEX_ENTRY_PATH_LEN * 2 + 1]; dump_file() local 1397 get_file_size(const char *path) get_file_size() argument 1504 const char *path = files[i]; write_index_tbl() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | security.h | 47 struct path; 300 int security_sb_mount(const char *dev_name, const struct path *path, 303 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); 314 int security_move_mount(const struct path *from_path, const struct path *to_path); 322 int security_path_notify(const struct path *path, u64 mask, 349 int security_inode_getattr(const struct path *pat 658 security_sb_mount(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data) security_sb_mount() argument 704 security_path_notify(const struct path *path, u64 mask, unsigned int obj_type) security_path_notify() argument 833 security_inode_getattr(const struct path *path) security_inode_getattr() argument 1773 security_path_truncate(const struct path *path) security_path_truncate() argument 1800 security_path_chmod(const struct path *path, umode_t mode) security_path_chmod() argument 1805 security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) security_path_chown() argument 1810 security_path_chroot(const struct path *path) security_path_chroot() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | security.h | 48 struct path; 310 int security_sb_mount(const char *dev_name, const struct path *path, 313 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); 322 int security_move_mount(const struct path *from_path, const struct path *to_path); 331 int security_path_notify(const struct path *path, u64 mask, 359 int security_inode_getattr(const struct path *pat 698 security_sb_mount(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data) security_sb_mount() argument 738 security_path_notify(const struct path *path, u64 mask, unsigned int obj_type) security_path_notify() argument 867 security_inode_getattr(const struct path *path) security_inode_getattr() argument 1873 security_path_truncate(const struct path *path) security_path_truncate() argument 1900 security_path_chmod(const struct path *path, umode_t mode) security_path_chmod() argument 1905 security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) security_path_chown() argument 1910 security_path_chroot(const struct path *path) security_path_chroot() argument [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/ |
H A D | device.py | 312 file_name = os.path.basename(query_bin_path) 522 def is_directory(self, path): 523 path = check_path_legal(path) 524 output = self.execute_shell_command("ls -ld {}".format(path)) 864 path = os.path.join(self._device_report_path, "log", "pid_info") 865 if not os.path.exists(path): 866 os.makedirs(path) [all...] |
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | xcode_emulation.py | 14 import os.path namespace 304 """Returns the qualified path to the bundle's contents folder. E.g. 310 return os.path.join( 315 return os.path.join(self.GetWrapperName(), "Contents") 318 """Returns the qualified path to the bundle's resource folder. E.g. 323 return os.path.join(self.GetBundleContentsFolderPath(), "Resources") 326 """Returns the qualified path to the bundle's executables folder. E.g. 332 return os.path.join(self.GetBundleContentsFolderPath(), "MacOS") 335 """Returns the qualified path to the bundle's Java resource folder. 338 return os.path [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | xcode_emulation.py | 14 import os.path namespace 304 """Returns the qualified path to the bundle's contents folder. E.g. 310 return os.path.join( 315 return os.path.join(self.GetWrapperName(), "Contents") 318 """Returns the qualified path to the bundle's resource folder. E.g. 323 return os.path.join(self.GetBundleContentsFolderPath(), "Resources") 326 """Returns the qualified path to the bundle's executables folder. E.g. 332 return os.path.join(self.GetBundleContentsFolderPath(), "MacOS") 335 """Returns the qualified path to the bundle's Java resource folder. 338 return os.path [all...] |