/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/ |
H A D | 9-1.c | 41 char path[PATH_MAX + 1]; in main() local 60 /* Get abs path if needed and exec ourself */ in main() 62 if (getcwd(path, PATH_MAX) == NULL) { in main() 66 strcat(path, "/"); in main() 67 strcat(path, argv[0]); in main() 69 strcpy(path, argv[0]); in main() 71 execl(path, argv[0], "verify", NULL); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/dirent/ |
H A D | opendir.c | 30 char *path = "/data/local/tmp/opendirtest"; in opendir_0100() local 31 if (access(path, F_OK) == 0) { in opendir_0100() 32 remove(path); in opendir_0100() 34 int ret = mkdir(path, 0777); in opendir_0100() 38 DIR *dir = opendir(path); in opendir_0100() 54 ret = remove(path); in opendir_0100() 62 * @tc.desc : When the path is not a folder or not exit, test the return value of the function 84 * @tc.desc : When the path is NULL, test the return value of the function
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | setxattr.c | 34 char path[PATH_MAX] = {0}; in setxattr_0100() local 35 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in setxattr_0100() 36 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in setxattr_0100() 46 int result = setxattr(path, name, value, strlen(value), XATTR_CREATE); in setxattr_0100() 58 result = getxattr(path, name, buf, sizeof(buf)); in setxattr_0100() 71 remove(path); in setxattr_0100()
|
/third_party/mesa3d/src/util/tests/ |
H A D | process_test.c | 65 static void posixify_path(char *path) { in posixify_path() argument 66 /* Always using posix separator '/' to check path equal */ in posixify_path() 67 char *p = path; in posixify_path() 75 /* This test gets the real path from Meson (BUILD_FULL_PATH env var), 81 char path[PATH_MAX]; in test_util_get_process_exec_path() local 82 if (util_get_process_exec_path(path, PATH_MAX) == 0) { in test_util_get_process_exec_path() 86 posixify_path(path); in test_util_get_process_exec_path() 100 expect_equal_str(build_path, path, "test_util_get_process_exec_path"); in test_util_get_process_exec_path()
|
/third_party/rust/crates/bitflags/tests/ |
H A D | compile.rs | 5 path::Path, 32 fn prepare_stderr_files(path: impl AsRef<Path>) -> io::Result<()> { in prepare_stderr_files() 33 for entry in WalkDir::new(path) { in prepare_stderr_files() 36 if entry.path().extension().and_then(OsStr::to_str) == Some("beta") { in prepare_stderr_files() 37 let renamed = entry.path().with_extension(""); in prepare_stderr_files() 46 rename_beta_stderr(entry.path(), renamed)?; in prepare_stderr_files()
|
/third_party/python/Tools/c-analyzer/c_parser/ |
H A D | source.py | 2 import os.path namespace 30 if not os.path.exists(filename): 42 if os.path.isabs(filename): 46 filename = os.path.join('.', filename) 50 elif os.path.abspath(filename) == os.path.abspath(alt):
|
/third_party/skia/src/core/ |
H A D | SkOSFile.h | 24 FILE* sk_fopen(const char path[], SkFILE_Flags); 61 /** Returns true if something (file, directory, ???) exists at this path, 64 bool sk_exists(const char *path, SkFILE_Flags = (SkFILE_Flags)0); 66 // Returns true if a directory exists at this path. 67 bool sk_isdir(const char *path); 74 // Create a new directory at this path; returns true if successful. 77 bool sk_mkdir(const char* path); 85 SK_SPI Iter(const char path[], const char suffix[] = nullptr); 88 SK_SPI void reset(const char path[], const char suffix[] = nullptr);
|
/third_party/python/Modules/_multiprocessing/ |
H A D | posixshmem.c | 28 path: unicode 32 # "shm_open(path, flags, mode=0o777)\n\n\ 39 _posixshmem_shm_open_impl(PyObject *module, PyObject *path, int flags, in _posixshmem_shm_open_impl() argument 45 const char *name = PyUnicode_AsUTF8(path); in _posixshmem_shm_open_impl() 57 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, path); in _posixshmem_shm_open_impl() 68 path: unicode 79 _posixshmem_shm_unlink_impl(PyObject *module, PyObject *path) in _posixshmem_shm_unlink_impl() argument 84 const char *name = PyUnicode_AsUTF8(path); in _posixshmem_shm_unlink_impl() 96 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, path); in _posixshmem_shm_unlink_impl()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Testing/Support/ |
H A D | SupportHelpers.cpp | 17 SmallString<128> BaseDir = llvm::sys::path::parent_path(Argv0); in findSrcDirMap() 22 llvm::sys::path::append(PathInSameDir, "llvm.srcdir.txt"); in findSrcDirMap() 27 SmallString<128> PathInParentDir = llvm::sys::path::parent_path(BaseDir); in findSrcDirMap() 29 llvm::sys::path::append(PathInParentDir, "llvm.srcdir.txt"); in findSrcDirMap() 50 llvm::sys::path::append(InputFilePath, "Inputs"); in getInputFileDirectory() 51 llvm::sys::path::native(InputFilePath); in getInputFileDirectory()
|
/third_party/vixl/tools/ |
H A D | generate_test_trace_a64_reference.py | 40 default=os.path.join(root, 'obj/latest/test/test-runner'), 47 root_dir = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0]))) 61 if not os.path.exists(args.outdir): 73 trace_f = open(os.path.join(args.outdir, trace_filename), 'w')
|
/third_party/typescript/tests/baselines/reference/ |
H A D | esModuleInteropTslibHelpers.js | 4 declare module "path";
6 import path from "path"; 7 path.resolve("", "../"); 10 import * as path from "path"; 11 path.resolve("", "../"); 14 import {default as resolve} from "path"; 18 import {Bar, default as resolve} from "path"; 27 var path_1 = tslib_1.__importDefault(require("path"));
40 var path = tslib_1.__importStar(require("path")); global() variable [all...] |
/third_party/python/Python/ |
H A D | makeopcodetargets.py | 18 modpath = os.path.join( 19 os.path.dirname(os.path.dirname(__file__)), "Lib") 25 modpath = os.path.join( 26 os.path.dirname(os.path.dirname(__file__)), "Lib", modname + ".py")
|
/third_party/skia/docs/examples/ |
H A D | compose_path.cpp | 7 SkPath path; in REG_FIDDLE() local 8 path.moveTo(C + R, C); in REG_FIDDLE() 11 path.lineTo(C + R * cos(a), C + R * sin(a)); in REG_FIDDLE() 13 return path; in REG_FIDDLE() 27 SkPath path(star()); in REG_FIDDLE() 28 canvas->drawPath(path, paint); in REG_FIDDLE()
|
H A D | not_path_gradient.cpp | 7 SkPath path; in REG_FIDDLE() local 8 path.moveTo(C + R, C); in REG_FIDDLE() 12 path.lineTo(C + r * cos(a), C + r * sin(a)); in REG_FIDDLE() 14 return path; in REG_FIDDLE() 27 SkPath path(star()); in REG_FIDDLE() 28 canvas->drawPath(path, paint); in REG_FIDDLE()
|
H A D | shader.cpp | 7 SkPath path; in REG_FIDDLE() local 8 path.moveTo(C + R, C); in REG_FIDDLE() 12 path.lineTo(C + r * cos(a), C + r * sin(a)); in REG_FIDDLE() 14 return path; in REG_FIDDLE() 25 SkPath path(star()); in REG_FIDDLE() 26 canvas->drawPath(path, paint); in REG_FIDDLE()
|
H A D | Miter_Limit.cpp | 14 SkPath path; in REG_FIDDLE() local 15 path.moveTo(pts[0]); in REG_FIDDLE() 16 path.lineTo(pts[1]); in REG_FIDDLE() 17 path.lineTo(pts[2]); in REG_FIDDLE() 23 canvas->drawPath(path, paint); in REG_FIDDLE() 31 canvas->drawPath(path, paint); in REG_FIDDLE()
|
/third_party/skia/gn/ |
H A D | codesign_ios.py | 10 import os.path namespace 18 # pkg path to application directory, e.g. out/Debug/dm.app 21 # profile path or name of provisioning profile 37 if os.path.isfile(profile): 40 for p in glob.glob(os.path.join(os.environ['HOME'], 'Library', 'MobileDevice', 48 print("Please verify that the correct profile is installed in '${HOME}/Library/MobileDevice/Provisioning Profiles' or specify the path directly.") 53 os.path.join(pkg, 'embedded.mobileprovision')) 61 app, _ = os.path.splitext(os.path.basename(pkg))
|
/third_party/skia/infra/bots/ |
H A D | check_deps.py | 21 INFRA_BOTS_DIR = os.path.dirname(os.path.realpath(__file__)) 22 SKIA_DIR = os.path.abspath(os.path.join(INFRA_BOTS_DIR, os.pardir, os.pardir)) 31 gclient_py = os.path.join(os.path.dirname(gclient), 'gclient.py')
|
/third_party/selinux/libselinux/src/ |
H A D | getfilecon.c | 10 int getfilecon_raw(const char *path, char ** context) in getfilecon_raw() argument 22 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1); in getfilecon_raw() 26 size = getxattr(path, XATTR_NAME_SELINUX, NULL, 0); in getfilecon_raw() 37 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1); in getfilecon_raw() 53 int getfilecon(const char *path, char ** context) in getfilecon() argument 60 ret = getfilecon_raw(path, &rcontext); in getfilecon()
|
H A D | lgetfilecon.c | 10 int lgetfilecon_raw(const char *path, char ** context) in lgetfilecon_raw() argument 22 ret = lgetxattr(path, XATTR_NAME_SELINUX, buf, size - 1); in lgetfilecon_raw() 26 size = lgetxattr(path, XATTR_NAME_SELINUX, NULL, 0); in lgetfilecon_raw() 37 ret = lgetxattr(path, XATTR_NAME_SELINUX, buf, size - 1); in lgetfilecon_raw() 53 int lgetfilecon(const char *path, char ** context) in lgetfilecon() argument 60 ret = lgetfilecon_raw(path, &rcontext); in lgetfilecon()
|
/third_party/rust/crates/rustix/src/fs/ |
H A D | statx.rs | 6 use crate::{backend, io, path}; 11 /// `statx(dirfd, path, flags, mask, statxbuf)` 23 pub fn statx<P: path::Arg, Fd: AsFd>( in statx() 25 path: P, in statx() 29 path.into_with_c_str(|path| _statx(dirfd.as_fd(), path, flags, mask)) in statx() 43 path: &CStr, in _statx() 48 0 => statx_init(dirfd, path, flags, mask), in _statx() 50 _ => backend::fs::syscalls::statx(dirfd, path, flag in _statx() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | ext_password_file.c | 20 char *path; /* path of the password file */ member 30 * expected to initialize this backend with the parameters being the path of 38 wpa_printf(MSG_ERROR, "EXT PW FILE: no path given"); in ext_password_file_init() 46 data->path = os_strdup(params); in ext_password_file_init() 47 if (!data->path) { in ext_password_file_init() 67 str_clear_free(data->path); in ext_password_file_deinit() 90 f = fopen(data->path, "r"); in ext_password_file_get() 94 data->path, strerror(errno)); in ext_password_file_get()
|
/third_party/vulkan-loader/scripts/gn/ |
H A D | gn.py | 13 def RepoRelative(path): 14 return os.path.abspath(os.path.join(os.path.dirname(__file__), '../../', path)) 17 if not os.path.exists(RepoRelative("depot_tools")):
|
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | nsaccess.c | 289 char *path = pathname; in acpi_ns_lookup() local 363 path = ""; in acpi_ns_lookup() 382 if (*path == (u8) AML_ROOT_PREFIX) { in acpi_ns_lookup() 391 path++; in acpi_ns_lookup() 410 while (*path == (u8) AML_PARENT_PREFIX) { in acpi_ns_lookup() 420 path++; in acpi_ns_lookup() 429 * the internal path for error message. in acpi_ns_lookup() 449 "Search scope is [%4.4s], path has %u carat(s)\n", in acpi_ns_lookup() 468 switch (*path) { in acpi_ns_lookup() 491 path in acpi_ns_lookup() [all...] |
/kernel/linux/linux-6.6/drivers/acpi/acpica/ |
H A D | nsaccess.c | 289 char *path = pathname; in acpi_ns_lookup() local 363 path = ""; in acpi_ns_lookup() 382 if (*path == (u8) AML_ROOT_PREFIX) { in acpi_ns_lookup() 391 path++; in acpi_ns_lookup() 410 while (*path == (u8) AML_PARENT_PREFIX) { in acpi_ns_lookup() 420 path++; in acpi_ns_lookup() 429 * the internal path for error message. in acpi_ns_lookup() 449 "Search scope is [%4.4s], path has %u carat(s)\n", in acpi_ns_lookup() 468 switch (*path) { in acpi_ns_lookup() 491 path in acpi_ns_lookup() [all...] |