/kernel/linux/linux-6.6/tools/bootconfig/ |
H A D | main.c | 151 static int load_xbc_file(const char *path, char **buf) in load_xbc_file() argument 156 fd = open(path, O_RDONLY); in load_xbc_file() 281 static int show_xbc(const char *path, bool list) in show_xbc() argument 287 ret = stat(path, &st); in show_xbc() 290 pr_err("Failed to stat %s: %d\n", path, ret); in show_xbc() 294 fd = open(path, O_RDONLY); in show_xbc() 297 pr_err("Failed to open initrd %s: %d\n", path, ret); in show_xbc() 309 ret = load_xbc_file(path, &buf); in show_xbc() 328 static int delete_xbc(const char *path) in delete_xbc() argument 334 fd = open(path, O_RDW in delete_xbc() 360 apply_xbc(const char *path, const char *xbc_path) apply_xbc() argument 488 char *path = NULL; main() local [all...] |
/third_party/node/deps/v8/third_party/zlib/google/ |
H A D | zip.cc | 58 for (const base::FilePath& path : paths) { 59 DCHECK(!path.IsAbsolute()); 60 const base::FilePath absolute_path = src_dir_.Append(path); 63 LOG(ERROR) << "Cannot open " << Redact(path) << ": It is a directory"; 68 << "Cannot open " << Redact(path) << ": " 76 bool List(const base::FilePath& path, 79 DCHECK(!path.IsAbsolute()); 84 src_dir_.Append(path), false /* recursive */, 90 ->push_back(path.Append(info.GetName())); 96 bool GetInfo(const base::FilePath& path, Inf 102 PLOG(ERROR) << "Cannot get info of " << Redact(path); global() variable [all...] |
H A D | zip_writer.cc | 35 bool ZipWriter::AddFileContent(const base::FilePath& path, base::File file) { in AddFileContent() argument 43 PLOG(ERROR) << "Cannot read file " << Redact(path); in AddFileContent() 51 PLOG(ERROR) << "Cannot write data from file " << Redact(path) in AddFileContent() 62 bool ZipWriter::OpenNewFileEntry(const base::FilePath& path, in OpenNewFileEntry() argument 65 std::string str_path = path.AsUTF8Unsafe(); in OpenNewFileEntry() 76 compression = GetCompressionMethod(path); in OpenNewFileEntry() 87 bool ZipWriter::AddFileEntry(const base::FilePath& path, base::File file) { in AddFileEntry() argument 92 if (!OpenNewFileEntry(path, /*is_directory=*/false, info.last_modified)) in AddFileEntry() 95 if (!AddFileContent(path, std::move(file))) in AddFileEntry() 102 bool ZipWriter::AddDirectoryEntry(const base::FilePath& path) { in AddDirectoryEntry() argument 277 AddDirectoryContents(const base::FilePath& path) AddDirectoryContents() argument [all...] |
/third_party/node/deps/zlib/google/ |
H A D | zip_writer.cc | 35 bool ZipWriter::AddFileContent(const base::FilePath& path, base::File file) { in AddFileContent() argument 43 PLOG(ERROR) << "Cannot read file " << Redact(path); in AddFileContent() 51 PLOG(ERROR) << "Cannot write data from file " << Redact(path) in AddFileContent() 62 bool ZipWriter::OpenNewFileEntry(const base::FilePath& path, in OpenNewFileEntry() argument 65 std::string str_path = path.AsUTF8Unsafe(); in OpenNewFileEntry() 76 compression = GetCompressionMethod(path); in OpenNewFileEntry() 87 bool ZipWriter::AddFileEntry(const base::FilePath& path, base::File file) { in AddFileEntry() argument 92 if (!OpenNewFileEntry(path, /*is_directory=*/false, info.last_modified)) in AddFileEntry() 95 if (!AddFileContent(path, std::move(file))) in AddFileEntry() 102 bool ZipWriter::AddDirectoryEntry(const base::FilePath& path) { in AddDirectoryEntry() argument 277 AddDirectoryContents(const base::FilePath& path) AddDirectoryContents() argument [all...] |
H A D | zip.cc | 58 for (const base::FilePath& path : paths) { 59 DCHECK(!path.IsAbsolute()); 60 const base::FilePath absolute_path = src_dir_.Append(path); 63 LOG(ERROR) << "Cannot open " << Redact(path) << ": It is a directory"; 68 << "Cannot open " << Redact(path) << ": " 76 bool List(const base::FilePath& path, 79 DCHECK(!path.IsAbsolute()); 84 src_dir_.Append(path), false /* recursive */, 90 ->push_back(path.Append(info.GetName())); 96 bool GetInfo(const base::FilePath& path, Inf 102 PLOG(ERROR) << "Cannot get info of " << Redact(path); global() variable [all...] |
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/mutators/ |
H A D | common.js | 120 function isInForLoopCondition(path) { 124 const forStatementChild = path.find( 130 function isInWhileLoop(path) { 132 const whileStatement = path.find(p => babelTypes.isWhileStatement(p)); 136 function _availableIdentifiers(path, filter) { 139 const allBindings = path.scope.getAllBindings(); 146 path.willIMaybeExecuteBefore(allBindings[key].path)) { 156 function availableVariables(path) { 157 return _availableIdentifiers(path, isVariableIdentifie [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | test_install.py | 46 destination = os.path.join(builddir, "installation") 50 dist.script_name = os.path.join(builddir, "setup.py") 53 build_lib=os.path.join(builddir, "lib"), 64 got = os.path.normpath(got) 65 expected = os.path.normpath(expected) 68 libdir = os.path.join(destination, "lib", "python") 70 platlibdir = os.path.join(destination, sys.platlibdir, "python") 74 os.path.join(destination, "include", "python", "foopkg")) 75 check_path(cmd.install_scripts, os.path.join(destination, "bin")) 85 self.user_base = os.path [all...] |
/third_party/python/Lib/ |
H A D | pyclbr.py | 7 readmodule_ex(module, path=None) 8 where module is the name of a Python module, and path is an optional 10 path is prepended to the system search path sys.path. The return value 16 contains the package search path. 100 def readmodule(module, path=None): 107 for key, value in _readmodule(module, path or []).items(): 112 def readmodule_ex(module, path=None): 115 Search for module in PATH + sys.path [all...] |
/kernel/linux/linux-6.6/tools/testing/kunit/ |
H A D | kunit_kernel.py | 31 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__)) 32 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs') 117 kernel_path = os.path.join(build_dir, self._kernel_path) 147 linux_bin = os.path.join(build_dir, 'linux') 156 return os.path.join(build_dir, KCONFIG_PATH) 159 return os.path.join(build_dir, KUNITCONFIG_PATH) 162 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH) 167 path = get_kunitconfig_path(build_dir) 168 if not os.path [all...] |
/third_party/node/deps/zlib/ |
H A D | gzlib.c | 88 local gzFile gz_open(const void *path, int fd, const char *mode) { in gz_open() argument 100 if (path == NULL) in gz_open() 183 /* save the path name for error messages */ in gz_open() 186 len = wcstombs(NULL, path, 0); in gz_open() 192 len = strlen((const char *)path); in gz_open() 193 state->path = (char *)malloc(len + 1); in gz_open() 194 if (state->path == NULL) { in gz_open() 201 wcstombs(state->path, path, len + 1); in gz_open() 203 *(state->path) in gz_open() 263 gzopen(const char *path, const char *mode) gzopen() argument 268 gzopen64(const char *path, const char *mode) gzopen64() argument 274 char *path; /* identifier for error messages */ gzdopen() local 291 gzopen_w(const wchar_t *path, const char *mode) gzopen_w() argument [all...] |
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | __init__.py | 11 import os.path namespace 40 % (mode.upper(), os.path.basename(ctx[0]), ctx[1], ctx[2], message) 87 generator_name = os.path.splitext(format)[0] 88 path, generator_name = os.path.split(generator_name) 90 # Make sure the path to the custom generator is in sys.path 91 # Don't worry about removing it once we are done. Keeping the path 92 # to each generator that is used in sys.path is likely harmless and 94 path variable [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | __init__.py | 11 import os.path namespace 41 % (mode.upper(), os.path.basename(ctx[0]), ctx[1], ctx[2], message) 88 generator_name = os.path.splitext(format)[0] 89 path, generator_name = os.path.split(generator_name) 91 # Make sure the path to the custom generator is in sys.path 92 # Don't worry about removing it once we are done. Keeping the path 93 # to each generator that is used in sys.path is likely harmless and 95 path variable [all...] |
/third_party/selinux/libselinux/src/ |
H A D | matchpathcon.c | 40 const char *path, unsigned lineno) in compat_validate() 46 rc = myinvalidcon(path, lineno, *ctx); in compat_validate() 48 rc = mycanoncon(path, lineno, ctx); in compat_validate() 55 path, lineno, *ctx); in compat_validate() 58 "%s: has invalid context %s\n", path, *ctx); in compat_validate() 126 static int default_canoncon(const char *path, unsigned lineno, char **context) in default_canoncon() argument 133 myprintf("%s: line %u has invalid context %s\n", path, in default_canoncon() 136 myprintf("%s: invalid context %s\n", path, *context); in default_canoncon() 350 int matchpathcon_init_prefix(const char *path, const char *subset) in matchpathcon_init_prefix() argument 361 options[SELABEL_OPT_PATH].value = path; in matchpathcon_init_prefix() 38 compat_validate(struct selabel_handle *rec, struct selabel_lookup_rec *contexts, const char *path, unsigned lineno) compat_validate() argument 368 matchpathcon_init(const char *path) matchpathcon_init() argument 438 matchpathcon_internal(const char *path, mode_t mode, char ** con) matchpathcon_internal() argument 459 matchpathcon(const char *path, mode_t mode, char ** con) matchpathcon() argument 501 selinux_file_context_verify(const char *path, mode_t mode) selinux_file_context_verify() argument 549 selinux_lsetfilecon_default(const char *path) selinux_lsetfilecon_default() argument [all...] |
/third_party/zlib/ |
H A D | gzlib.c | 88 local gzFile gz_open(const void *path, int fd, const char *mode) in gz_open() argument 101 if (path == NULL) in gz_open() 184 /* save the path name for error messages */ in gz_open() 187 len = wcstombs(NULL, path, 0); in gz_open() 193 len = strlen((const char *)path); in gz_open() 194 state->path = (char *)malloc(len + 1); in gz_open() 195 if (state->path == NULL) { in gz_open() 202 wcstombs(state->path, path, len + 1); in gz_open() 204 *(state->path) in gz_open() 264 gzopen(const char *path, const char *mode) gzopen() argument 270 gzopen64(const char *path, const char *mode) gzopen64() argument 278 char *path; /* identifier for error messages */ gzdopen() local 295 gzopen_w(const wchar_t *path, const char *mode) gzopen_w() argument [all...] |
/third_party/libunwind/libunwind/src/ |
H A D | os-hpux.c | 37 char *path, size_t pathlen) in tdep_get_elf_image() 57 if (path) in tdep_get_elf_image() 59 strncpy(path, path2, pathlen); in tdep_get_elf_image() 60 path[pathlen - 1] = '\0'; in tdep_get_elf_image() 61 if (strcmp(path, path2) != 0) in tdep_get_elf_image() 62 Debug(1, "buffer size (%d) not big enough to hold path\n", pathlen); in tdep_get_elf_image() 64 Debug(1, "segbase=%lx, mapoff=%lx, path=%s\n", *segbase, *mapoff, path); in tdep_get_elf_image() 66 return elf_map_image (ei, path); in tdep_get_elf_image() 72 tdep_get_exe_image_path (char *path) in tdep_get_exe_image_path() argument 35 tdep_get_elf_image(struct elf_image *ei, pid_t pid, unw_word_t ip, unsigned long *segbase, unsigned long *mapoff, char *path, size_t pathlen) tdep_get_elf_image() argument [all...] |
/third_party/node/deps/v8/tools/gcmole/ |
H A D | run-gcmole.py | 7 import os.path namespace 12 GCMOLE_PATH = os.path.dirname(os.path.abspath(__file__)) 13 CLANG_BIN = os.path.join(GCMOLE_PATH, 'gcmole-tools', 'bin') 14 CLANG_PLUGINS = os.path.join(GCMOLE_PATH, 'gcmole-tools') 15 DRIVER = os.path.join(GCMOLE_PATH, 'gcmole.py') 16 BASE_PATH = os.path.dirname(os.path.dirname(GCMOLE_PATH)) 20 if not os.path.isfile("out/build/gen/torque-generated/builtin-definitions.h"):
|
/third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
H A D | __freading.c | 19 const char *path = "/data/freading.txt"; variable 30 FILE *fp = fopen(path, "w"); in __freading_0100() 33 FILE *ffp = fopen(path, "r"); in __freading_0100() 37 remove(path); in __freading_0100() 49 FILE *fp = fopen(path, "w"); in __freading_0200() 52 FILE *ffp = fopen(path, "r"); in __freading_0200() 58 remove(path); in __freading_0200() 70 FILE *fp = fopen(path, "w"); in __freading_0300() 75 remove(path); in __freading_0300()
|
H A D | setbuf.c | 32 char path[PATH_MAX] = {0}; in setbuf_0100() local 33 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in setbuf_0100() 34 FILE *f = fopen(path, "w+"); in setbuf_0100() 43 f = fopen(path, "r"); in setbuf_0100() 50 remove(path); in setbuf_0100() 60 char path[PATH_MAX] = {0}; in setbuf_0200() local 61 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in setbuf_0200() 62 FILE *f = fopen(path, "w+"); in setbuf_0200() 72 remove(path); in setbuf_0200()
|
/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | virtual_file_store.h | 26 /// Stores a number of virtual files by path. 29 /// Return the path sanitized into a canonical form. 30 static std::string GetCanonical(const std::string& path); 32 /// Adds the virtual file with content |content| to the virtual file path 33 /// |path|. If there's already a virtual file with the given path, an error is 35 Result Add(const std::string& path, const std::string& content) { in Add() argument 36 if (path.length() == 0) { in Add() 37 return Result("Virtual file path was empty"); in Add() 40 auto canonical = GetCanonical(path); in Add() 52 Get(const std::string& path, std::string* content) const Get() argument [all...] |
/third_party/skia/docs/examples/ |
H A D | Path_ConvertConicToQuads.cpp | 16 SkPath path; in REG_FIDDLE() local 17 path.moveTo(conic[0]); in REG_FIDDLE() 18 path.conicTo(conic[1], conic[2], weight); in REG_FIDDLE() 19 canvas->drawPath(path, conicPaint); in REG_FIDDLE() 20 path.rewind(); in REG_FIDDLE() 21 path.moveTo(quads[0]); in REG_FIDDLE() 22 path.quadTo(quads[1], quads[2]); in REG_FIDDLE() 23 path.quadTo(quads[3], quads[4]); in REG_FIDDLE() 24 canvas->drawPath(path, quadPaint); in REG_FIDDLE()
|
H A D | Canvas_drawPath.cpp | 7 SkPath path; in REG_FIDDLE() local 8 path.moveTo(20, 20); in REG_FIDDLE() 9 path.quadTo(60, 20, 60, 60); in REG_FIDDLE() 10 path.close(); in REG_FIDDLE() 11 path.moveTo(60, 20); in REG_FIDDLE() 12 path.quadTo(60, 60, 20, 60); in REG_FIDDLE() 21 canvas->drawPath(path, paint); in REG_FIDDLE() 30 path.setFillType(fill); in REG_FIDDLE() 33 canvas->drawPath(path, paint); in REG_FIDDLE()
|
/third_party/skia/modules/svg/src/ |
H A D | SkSVGPath.cpp | 23 bool SkSVGAttributeParser::parse<SkPath>(SkPath* path) { in parse() argument 24 return SkParsePath::FromSVGString(fCurPos, path); in parse() 30 SkPath path = fPath; // Note: point and verb data are CoW in onDraw() local 31 path.setFillType(fillType); in onDraw() 32 canvas->drawPath(path, paint); in onDraw() 36 SkPath path = fPath; in onAsPath() local 38 path.setFillType(ctx.presentationContext().fInherited.fClipRule->asFillType()); in onAsPath() 39 this->mapToParent(&path); in onAsPath() 40 return path; in onAsPath()
|
/third_party/vk-gl-cts/scripts/ |
H A D | cppcheck.py | 136 fullDstFile = os.path.realpath(dstFile) 142 for path in INCLUDE_DIRS: 143 command += " -I %s" % path 145 for path in SRC_DIRS: 146 command += " %s" % path 159 srcDir = os.path.realpath(os.path.normpath(os.path.join(os.path.dirname(__file__), "..", "..")))
|
/kernel/linux/linux-5.10/fs/reiserfs/ |
H A D | tail_conversion.c | 22 * path points to first direct item of the file regardless of how many of 26 struct treepath *path, struct buffer_head *unbh, in direct2indirect() 31 struct item_head *p_le_ih = tp_item_head(path); in direct2indirect() 66 if (search_for_position_by_key(sb, &end_key, path) == POSITION_FOUND) { in direct2indirect() 70 pathrelse(path); in direct2indirect() 74 p_le_ih = tp_item_head(path); in direct2indirect() 82 PATH_LAST_POSITION(path)++; in direct2indirect() 84 reiserfs_insert_item(th, path, &end_key, &ind_ih, inode, in direct2indirect() 88 retval = reiserfs_paste_into_item(th, path, &end_key, inode, in direct2indirect() 115 if (search_for_position_by_key(sb, &end_key, path) in direct2indirect() 25 direct2indirect(struct reiserfs_transaction_handle *th, struct inode *inode, struct treepath *path, struct buffer_head *unbh, loff_t tail_offset) direct2indirect() argument 202 indirect2direct(struct reiserfs_transaction_handle *th, struct inode *inode, struct page *page, struct treepath *path, const struct cpu_key *item_key, loff_t n_new_file_size, char *mode) indirect2direct() argument [all...] |
/kernel/linux/linux-6.6/fs/reiserfs/ |
H A D | tail_conversion.c | 22 * path points to first direct item of the file regardless of how many of 26 struct treepath *path, struct buffer_head *unbh, in direct2indirect() 31 struct item_head *p_le_ih = tp_item_head(path); in direct2indirect() 66 if (search_for_position_by_key(sb, &end_key, path) == POSITION_FOUND) { in direct2indirect() 70 pathrelse(path); in direct2indirect() 74 p_le_ih = tp_item_head(path); in direct2indirect() 82 PATH_LAST_POSITION(path)++; in direct2indirect() 84 reiserfs_insert_item(th, path, &end_key, &ind_ih, inode, in direct2indirect() 88 retval = reiserfs_paste_into_item(th, path, &end_key, inode, in direct2indirect() 115 if (search_for_position_by_key(sb, &end_key, path) in direct2indirect() 25 direct2indirect(struct reiserfs_transaction_handle *th, struct inode *inode, struct treepath *path, struct buffer_head *unbh, loff_t tail_offset) direct2indirect() argument 202 indirect2direct(struct reiserfs_transaction_handle *th, struct inode *inode, struct page *page, struct treepath *path, const struct cpu_key *item_key, loff_t n_new_file_size, char *mode) indirect2direct() argument [all...] |