/third_party/eudev/src/shared/ |
H A D | smack-util.c | 28 #include "path-util.h" 48 int mac_smack_apply(const char *path, const char *label) { in mac_smack_apply() argument 51 assert(path); in mac_smack_apply() 58 r = lsetxattr(path, "security.SMACK64", label, strlen(label), 0); in mac_smack_apply() 60 r = lremovexattr(path, "security.SMACK64"); in mac_smack_apply() 150 int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs) { in mac_smack_fix() argument 157 assert(path); in mac_smack_fix() 166 if (!path_startswith(path, "/dev")) in mac_smack_fix() 169 r = lstat(path, &st); in mac_smack_fix() 188 r = lsetxattr(path, "securit in mac_smack_fix() [all...] |
/third_party/curl/lib/ |
H A D | system_win32.c | 199 * filename [in] - The filename or full path of the DLL to load. If only the 222 /* Detect if there's already a path in the filename and load the library if in Curl_load_library() 240 /* Attempt to get the Windows system path */ in Curl_load_library() 243 /* Allocate space for the full DLL path (Room for the null terminator in Curl_load_library() 246 TCHAR *path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen)); in Curl_load_library() local 247 if(path && GetSystemDirectory(path, systemdirlen)) { in Curl_load_library() 248 /* Calculate the full DLL path */ in Curl_load_library() 249 _tcscpy(path + _tcslen(path), TEX in Curl_load_library() [all...] |
/third_party/node/tools/icu/ |
H A D | shrink-icu-src.py | 16 help='path to target ICU directory. Will be deleted.') 22 help='path to source ICU directory.') 28 help='path to icutmp dir.') 32 if os.path.isdir(options.icudst): 36 if not os.path.isdir(options.icusrc): 84 uvernum_h = os.path.join(icu_full_path, 'source/common/unicode/uvernum.h') 85 if not os.path.isfile(uvernum_h): 103 dst_datafile = os.path.join(options.icudst, "source","data","in", "icudt%s%s.dat" % (icu_ver_major, icu_endianness)) 105 src_datafile = os.path.join(options.icusrc, "source/data/in/icudt%sl.dat" % (icu_ver_major)) 108 if not os.path [all...] |
/third_party/libfuse/example/ |
H A D | null.c | 36 static int null_getattr(const char *path, struct stat *stbuf, in null_getattr() argument 41 if(strcmp(path, "/") != 0) in null_getattr() 55 static int null_truncate(const char *path, off_t size, in null_truncate() argument 61 if(strcmp(path, "/") != 0) in null_truncate() 67 static int null_open(const char *path, struct fuse_file_info *fi) in null_open() argument 71 if(strcmp(path, "/") != 0) in null_open() 77 static int null_read(const char *path, char *buf, size_t size, in null_read() argument 84 if(strcmp(path, "/") != 0) in null_read() 94 static int null_write(const char *path, const char *buf, size_t size, in null_write() argument 101 if(strcmp(path, "/") ! in null_write() [all...] |
/third_party/skia/third_party/externals/angle2/scripts/ |
H A D | run_gtest_angle_test.py | 34 # Add //src/testing into sys.path for importing xvfb and test_env, and 36 d = os.path.dirname 37 THIS_DIR = d(os.path.abspath(__file__)) 39 sys.path.insert(0, os.path.join(ANGLE_SRC_DIR, 'testing')) 40 sys.path.insert(0, os.path.join(ANGLE_SRC_DIR, 'testing', 'scripts')) 42 sys.path.insert(0, os.path.join(CHROMIUM_SRC_DIR, 'testing')) 43 sys.path [all...] |
/third_party/vk-gl-cts/external/openglcts/scripts/ |
H A D | build_caselists.py | 30 scriptPath = os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts") 31 sys.path.insert(0, scriptPath) 94 DEFAULT_BUILD_DIR = os.path.join(tempfile.gettempdir(), "deqp-caselists", "{targetName}-{buildType}") 112 return os.path.join(buildCfg.getBuildDir(), GLCTS_DIR_NAME) 123 return os.path.join(workDir, getCaseListFileName(module, caseListType)) 131 binPath = generator.getBinaryPath(buildCfg.getBuildType(), os.path.join(".", GLCTS_BIN_NAME)) 139 dstPath = os.path.join(dstDir, caseListFile) 141 if os.path.exists(srcPath): 146 if not os.path [all...] |
/third_party/skia/third_party/externals/dawn/scripts/ |
H A D | perf_test_runner.py | 25 base_path = os.path.abspath( 26 os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) 87 for path in perftests_paths: 88 binary_path = os.path.join(base_path, path, binary_name) 89 if os.path.exists(binary_path): 90 binary_mtime = os.path.getmtime(binary_path) 97 if perftests_path == None or not os.path [all...] |
/third_party/parse5/ |
H A D | build_parse5.py | 21 standard_system_build_dir = os.path.join(os.path.dirname(__file__), os.pardir, 23 build_dir = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 25 if os.path.exists(standard_system_build_dir): 26 sys.path.append( 27 os.path.join(standard_system_build_dir, os.pardir, os.pardir)) 29 if os.path.exists(build_dir): 30 sys.path.append(os.path [all...] |
/third_party/skia/third_party/icu/ |
H A D | SkLoadICU.cpp | 75 char path[MAX_PATH]; in library_directory() local 76 GetModuleFileNameA(hModule, path, MAX_PATH); in library_directory() 77 const char* end = strrchr(path, '\\'); in library_directory() 78 return end ? std::string(path, end - path) : std::string(); in library_directory() 83 char path[MAX_PATH]; in executable_directory() local 84 GetModuleFileNameA(hModule, path, MAX_PATH); in executable_directory() 85 const char* end = strrchr(path, '\\'); in executable_directory() 86 return end ? std::string(path, end - path) in executable_directory() [all...] |
/third_party/typescript/scripts/ |
H A D | ohTestCasesGenerationScript.js | 2 const path = require("path");
127 const ohFourslashCasesDir = path.join(thisFilePath, "../tests/cases/fourslash/oh");
132 const fourslashCasesNamePath = path.join(thisFilePath, "../tests/cases/fourslash", caseName);
135 const ohFourslashCasesNamePath = path.join(ohFourslashCasesDir, ohFourslashCasesName);
147 const ohCompilerCasesDir = path.join(thisFilePath, "../tests/cases/compiler-oh");
148 const baselineDir = path.join(thisFilePath, "../tests/baselines/reference");
155 const compilerCasesNamePath = path.join(thisFilePath, "../tests/cases/compiler", caseName);
163 const ohCompilerCasesNamePath = path.join(ohCompilerCasesDir, ohCompilerCasesName);
173 const baselineCaseNamePath = path [all...] |
/third_party/python/Mac/Tools/ |
H A D | pythonw.c | 157 static char path[PATH_MAX * 2]; in main() local 162 /* Set the original executable path in the environment. */ in main() 163 status = _NSGetExecutablePath(path, &size); in main() 171 * as a cleaned up absolute path though, in main() 172 * therefore call realpath on dirname(path) in main() 174 char* slash = strrchr(path, '/'); in main() 179 if (realpath(path, real_path) == NULL) { in main() 180 err(1, "realpath: %s", path); in main() 185 err(1, "realpath: %s", path); in main() 190 err(1, "realpath: %s", path); in main() [all...] |
/third_party/rust/crates/memoffset/src/ |
H A D | raw_field.rs | 26 ($path:expr) => {{ 27 $crate::__priv::ptr::addr_of!($path) 34 ($path:expr) => {{ 37 &$path as *const _ 61 ($type:path, $field:tt) => { 73 ($type:path, $field:tt) => { 129 ($type:path, $field:tt) => { 145 ($type:path, $field:tt) => { 164 ($base:expr, $parent:path, $field:tt) => {{ 214 ($base:expr, $parent:path, [all...] |
/third_party/rust/crates/syn/tests/ |
H A D | test_path.rs | 22 path: Path { in parse_interpolated_leading_component() 38 path: Path { in parse_interpolated_leading_component() 60 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() 64 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() 68 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath() 75 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() 79 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() 83 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath() 85 // normal path in print_incomplete_qpath() 90 assert!(ty.path in print_incomplete_qpath() [all...] |
/third_party/vk-gl-cts/scripts/src_util/ |
H A D | check_include_guards.py | 33 return '_' + os.path.basename(headerFile).upper().replace('.', '_') 84 if os.path.basename(filename) in IGNORE_FILES: 92 def getHeaderFileList (path): 94 if os.path.isfile(path): 95 if isHeader(path): 96 headers.append(path) 98 for root, dirs, files in os.walk(path): 101 headers.append(os.path.join(root, file)) 123 headers += getHeaderFileList(os.path [all...] |
/third_party/weex-loader/ |
H A D | build_weex_loader_library.py | 21 standard_system_build_dir = os.path.join(os.path.dirname(__file__), os.pardir, 23 build_dir = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 25 if os.path.exists(standard_system_build_dir): 26 sys.path.append( 27 os.path.join(standard_system_build_dir, os.pardir, os.pardir)) 29 if os.path.exists(build_dir): 30 sys.path.append(os.path [all...] |
/third_party/node/src/api/ |
H A D | exceptions.cc | 27 const char* path) { in ErrnoException() 43 if (path != nullptr) { in ErrnoException() 44 // FIXME(bnoordhuis) It's questionable to interpret the file path as UTF-8. in ErrnoException() 45 path_string = String::NewFromUtf8(isolate, path).ToLocalChecked(); in ErrnoException() 75 static Local<String> StringFromPath(Isolate* isolate, const char* path) { in StringFromPath() argument 77 if (strncmp(path, "\\\\?\\UNC\\", 8) == 0) { in StringFromPath() 81 String::NewFromUtf8(isolate, path + 8).ToLocalChecked()); in StringFromPath() 82 } else if (strncmp(path, "\\\\?\\", 4) == 0) { in StringFromPath() 83 return String::NewFromUtf8(isolate, path + 4).ToLocalChecked(); in StringFromPath() 87 return String::NewFromUtf8(isolate, path) in StringFromPath() 23 ErrnoException(Isolate* isolate, int errorno, const char* syscall, const char* msg, const char* path) ErrnoException() argument 91 UVException(Isolate* isolate, int errorno, const char* syscall, const char* msg, const char* path, const char* dest) UVException() argument 187 WinapiErrnoException(Isolate* isolate, int errorno, const char* syscall, const char* msg, const char* path) WinapiErrnoException() argument [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | linux-inotify.c | 40 char* path; member 116 /* It's critical to keep a copy of path here, because it in uv__inotify_fork() 120 tmp_path = uv__strdup(handle->path); in uv__inotify_fork() 127 handle->path = tmp_path; in uv__inotify_fork() 138 tmp_path = handle->path; in uv__inotify_fork() 139 handle->path = NULL; in uv__inotify_fork() 160 /* No watchers left for this path. Clean up. */ in maybe_free_watcher_list() 175 const char* path; in uv__inotify_read() local 178 /* needs to be large enough for sizeof(inotify_event) + strlen(path) */ in uv__inotify_read() 211 path in uv__inotify_read() 249 uv_fs_event_start(uv_fs_event_t* handle, uv_fs_event_cb cb, const char* path, unsigned int flags) uv_fs_event_start() argument [all...] |
/third_party/skia/gm/ |
H A D | quadpaths.cpp | 37 void drawPath(SkPath& path,SkCanvas* canvas,SkColor color, in drawPath() argument 41 path.setFillType(fill); in drawPath() 50 canvas->drawPath(path, paint); in drawPath() 88 PathAndName path; variable 89 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); 90 path.fPath.quadTo(50*SK_Scalar1, 20*SK_Scalar1, 92 path.fName = "moveTo-quad"; 123 this->drawPath(path.fPath, canvas, color, rect, 167 void drawPath(SkPath& path,SkCanvas* canvas,SkColor color, in drawPath() argument 171 path in drawPath() 218 PathAndName path; global() variable [all...] |
/third_party/skia/infra/bots/recipe_modules/flavor/ |
H A D | api.py | 79 self._skia_dir = self.m.path['start_dir'].join('skia') 96 def create_clean_host_dir(self, path): 97 return self._f.create_clean_host_dir(path) 99 def create_clean_device_dir(self, path): 100 return self._f.create_clean_device_dir(path) 102 def read_file_on_device(self, path, **kwargs): 103 return self._f.read_file_on_device(path, **kwargs) 105 def remove_file_on_device(self, path): 106 return self._f.remove_file_on_device(path) 117 self.m.path['start_di [all...] |
/third_party/skia/bench/ |
H A D | HairlinePathBench.cpp | 60 SkPath path; variable 61 this->makePath(&path); 64 path.transform(m); 69 canvas->drawPath(path, paint); 88 void makePath(SkPath* path) override { 101 path->moveTo(SkIntToScalar(points[base1] + xTrans), 103 path->lineTo(SkIntToScalar(points[base2] + xTrans), 105 path->lineTo(SkIntToScalar(points[base3] + xTrans), 120 void makePath(SkPath* path) override { 133 path [all...] |
/third_party/selinux/libselinux/include/selinux/ |
H A D | selinux.h | 110 extern int getfilecon(const char *path, char ** con); 111 extern int getfilecon_raw(const char *path, char ** con); 112 extern int lgetfilecon(const char *path, char ** con); 113 extern int lgetfilecon_raw(const char *path, char ** con); 118 extern int setfilecon(const char *path, const char * con); 119 extern int setfilecon_raw(const char *path, const char * con); 120 extern int lsetfilecon(const char *path, const char * con); 121 extern int lsetfilecon_raw(const char *path, const char * con); 339 extern int security_load_booleans(char *path) 452 may include the 'path' an [all...] |
/third_party/python/Lib/idlelib/ |
H A D | idle.py | 1 import os.path namespace 9 idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 10 if idlelib_dir not in sys.path: 11 sys.path.insert(0, idlelib_dir)
|
/third_party/skia/docs/examples/ |
H A D | bug7573_1.cpp | 8 SkPath path; in REG_FIDDLE_SRGB() local 9 path.moveTo(1.98009784, 9.0162744); in REG_FIDDLE_SRGB() 10 path.lineTo(47.843992, 10.1922744); in REG_FIDDLE_SRGB() 11 path.lineTo(47.804008, 11.7597256); in REG_FIDDLE_SRGB() 12 path.lineTo(1.93990216, 10.5837256); in REG_FIDDLE_SRGB() 13 canvas->drawPath(path, p); in REG_FIDDLE_SRGB()
|
H A D | pathmeasure.cpp | 6 SkPath path; in REG_FIDDLE() local 7 path.moveTo(0, 0); in REG_FIDDLE() 8 path.lineTo(1, 0); in REG_FIDDLE() 9 path.moveTo(0, 1); in REG_FIDDLE() 10 path.lineTo(1, 1); in REG_FIDDLE() 11 SkPathMeasure measure(path, false); in REG_FIDDLE()
|
H A D | Path_getPoint.cpp | 7 SkPath path; in REG_FIDDLE() local 8 path.lineTo(20, 20); in REG_FIDDLE() 9 path.offset(-10, -10); in REG_FIDDLE() 10 for (int i= 0; i < path.countPoints(); ++i) { in REG_FIDDLE() 11 SkDebugf("point %d: (%1.8g,%1.8g)\n", i, path.getPoint(i).fX, path.getPoint(i).fY); in REG_FIDDLE()
|