/external/valgrind/main/none/tests/ |
D | procfs-cmdline-exe.c | 20 static void test_cmdline(const char* const cwd, const char* const label, in test_cmdline() argument 48 static void test_readlink(const char* const cwd, const char* const label, in test_readlink() argument 59 if (strncmp(buf, cwd, strlen(cwd)) == 0) in test_readlink() 60 p += strlen(cwd); in test_readlink() 67 static void test_readlinkat(const char* const cwd, const char* const label, in test_readlinkat() argument 79 if (strncmp(buf, cwd, strlen(cwd)) == 0) in test_readlinkat() 80 p += strlen(cwd); in test_readlinkat() 93 char cwd[512]; in main() local 96 cwd[0] = 0; in main() 97 if (! getcwd(cwd, sizeof(cwd))) in main() [all …]
|
/external/chromium_org/tools/auto_bisect/ |
D | bisect_utils.py | 162 cwd = os.getcwd() 168 os.chdir(cwd) 174 def _SubprocessCall(cmd, cwd=None): argument 190 return subprocess.call(cmd, shell=shell, cwd=cwd) 193 def RunGClient(params, cwd=None): argument 204 return _SubprocessCall(cmd, cwd=cwd) 213 cwd = os.getcwd() 228 os.chdir(cwd) 259 def RunGClientAndCreateConfig(opts, custom_deps=None, cwd=None): argument 284 ['config', '--spec=%s' % spec], cwd=cwd) [all …]
|
D | source_control.py | 76 def GetRevisionList(self, revision_range_end, revision_range_start, cwd=None): argument 90 log_output = bisect_utils.CheckRunGit(cmd, cwd=cwd) 119 search, cwd=None): argument 161 (log_output, return_code) = bisect_utils.RunGit(cmd, cwd=cwd) 179 cwd = os.getcwd() 187 log_output = bisect_utils.CheckRunGit(cmd, cwd=cwd) 191 os.chdir(cwd) 208 def GetCommitPosition(self, git_revision, cwd=None): argument 222 output = bisect_utils.CheckRunGit(cmd, cwd) 230 def QueryRevisionInfo(self, revision, cwd=None): argument [all …]
|
/external/chromium_org/build/android/pylib/ |
D | cmd_helper.py | 23 def Popen(args, stdout=None, stderr=None, shell=None, cwd=None, env=None): argument 25 args=args, cwd=cwd, stdout=stdout, stderr=stderr, 30 def Call(args, stdout=None, stderr=None, shell=None, cwd=None, env=None): argument 31 pipe = Popen(args, stdout=stdout, stderr=stderr, shell=shell, cwd=cwd, 37 def RunCmd(args, cwd=None): argument 49 logging.info(str(args) + ' ' + (cwd or '')) 50 return Call(args, cwd=cwd) 53 def GetCmdOutput(args, cwd=None, shell=False): argument 67 (_, output) = GetCmdStatusAndOutput(args, cwd, shell) 71 def GetCmdStatusAndOutput(args, cwd=None, shell=False): argument [all …]
|
/external/chromium_org/v8/tools/push-to-trunk/ |
D | releases.py | 269 cwd = self._options.chromium 271 if not self.GitIsWorkdirClean(cwd=cwd): # pragma: no cover 274 if not os.path.exists(os.path.join(cwd, "DEPS")): # pragma: no cover 282 cwd = self._options.chromium 283 self.GitCheckout("master", cwd=cwd) 284 self.GitPull(cwd=cwd) 285 self.GitCreateBranch(self.Config("BRANCHNAME"), cwd=cwd) 293 revision, cwd=os.path.join(step._options.chromium, "v8")) 300 cwd = self._options.chromium 308 self.GitFetchOrigin(cwd=os.path.join(cwd, "v8")) [all …]
|
D | chromium_roll.py | 37 cwd = self._options.chromium 38 os.chdir(cwd) 39 self.InitialEnvironmentChecks(cwd) 41 if not self.GitIsWorkdirClean(cwd=cwd): # pragma: no cover 44 if not os.path.exists(os.path.join(cwd, "DEPS")): # pragma: no cover 52 self.GitCheckout("master", cwd=self._options.chromium) 53 self.Command("gclient", "sync --nohooks", cwd=self._options.chromium) 54 self.GitPull(cwd=self._options.chromium) 60 cwd=self._options.chromium) 70 cwd=self._options.chromium) is None: [all …]
|
D | common_includes.py | 185 def Command(cmd, args="", prefix="", pipe=True, cwd=None): argument 186 cwd = cwd or os.getcwd() 190 print "in %s" % cwd 194 return subprocess.check_output(cmd_line, shell=True, cwd=cwd) 196 return subprocess.check_call(cmd_line, shell=True, cwd=cwd) 209 def Command(self, cmd, args="", prefix="", pipe=True, cwd=None): argument 210 return Command(cmd, args, prefix, pipe, cwd=cwd) 344 def Command(self, name, args, cwd=None): argument 346 name, args, "", True, cwd=cwd or self.default_cwd) 349 def Git(self, args="", prefix="", pipe=True, retry_on=None, cwd=None): argument [all …]
|
D | test_scripts.py | 388 def Command(self, cmd, args="", prefix="", pipe=True, cwd=None): argument 390 print "in %s" % cwd 391 return self._mock.Call("command", cmd + " " + args, cwd=cwd) 876 Cmd("git status -s -uno", "", cwd=chrome_dir), 877 Cmd("git checkout -f master", "", cwd=chrome_dir), 878 Cmd("gclient sync --nohooks", "syncing...", cwd=chrome_dir), 879 Cmd("git pull", "", cwd=chrome_dir), 881 Cmd("git checkout -b v8-roll-22624", "", cwd=chrome_dir), 882 Cmd("roll-dep v8 22624", "rolled", cb=WriteDeps, cwd=chrome_dir), 888 "", cwd=chrome_dir), [all …]
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
D | abspath.c | 5 static char cwd[PATH_MAX + 1]; in get_pwd_cwd() local 8 if (getcwd(cwd, PATH_MAX) == NULL) in get_pwd_cwd() 11 if (pwd && strcmp(pwd, cwd)) { in get_pwd_cwd() 12 stat(cwd, &cwd_stat); in get_pwd_cwd() 16 strlcpy(cwd, pwd, PATH_MAX); in get_pwd_cwd() 19 return cwd; in get_pwd_cwd() 30 const char *cwd = get_pwd_cwd(); in make_nonrelative_path() local 31 if (!cwd) in make_nonrelative_path() 33 if (snprintf(buf, PATH_MAX, "%s/%s", cwd, path) >= PATH_MAX) in make_nonrelative_path()
|
/external/chromium_org/chrome/browser/ |
D | PRESUBMIT.py | 29 cwd = input_api.PresubmitLocalPath() 30 resources = path.join(cwd, 'resources') 31 webui = path.join(cwd, 'ui', 'webui') 35 path.join(cwd, 'PRESUBMIT.py'), 36 path.join(cwd, 'test_presubmit.py'), 37 path.join(cwd, 'web_dev_style', 'css_checker.py'), 38 path.join(cwd, 'web_dev_style', 'html_checker.py'), 39 path.join(cwd, 'web_dev_style', 'js_checker.py'), 42 tests = [path.join(cwd, 'test_presubmit.py')] 50 sys.path = [cwd] + old_path
|
/external/chromium_org/third_party/angle/src/ |
D | commit_id.py | 8 def grab_output(command, cwd): argument 9 return sp.Popen(command, stdout=sp.PIPE, shell=True, cwd=cwd).communicate()[0].strip() 12 cwd = sys.argv[2] variable 15 index_path = os.path.join(cwd, '.git', 'index') 26 commit_id = grab_output('git rev-parse --short=%d HEAD' % commit_id_size, cwd) 27 commit_date = grab_output('git show -s --format=%ci HEAD', cwd)
|
/external/chromium_org/tools/gyp/buildbot/ |
D | buildbot_run.py | 64 cwd=CMAKE_DIR) 69 cwd=CMAKE_DIR) 71 CallSubProcess( ['make', 'cmake'], cwd=CMAKE_DIR) 106 cwd=ANDROID_DIR) 111 cwd=ANDROID_DIR) 125 cwd=ANDROID_DIR) 134 cwd=ANDROID_DIR) 144 cwd=ANDROID_DIR) 149 cwd=ANDROID_DIR) 153 cwd=ANDROID_DIR) [all …]
|
/external/llvm/unittests/Transforms/DebugIR/ |
D | DebugIR.cpp | 79 , cwd(current_dir()) {} in TestDebugIR() 81 ~TestDebugIR() { free(cwd); } in ~TestDebugIR() 93 char *cwd; member in __anone606f9b60111::TestDebugIR 146 string ExpectedPath(getPath(cwd, Filename)); in TEST_F() 168 false, false, StringRef(cwd), StringRef(Filename)))); in TEST_F() 172 string ExpectedPath(getPath(cwd, Filename)); in TEST_F() 184 string UnexpectedPath(getPath(cwd, "UnexpectedFilename")); in TEST_F() 188 false, false, StringRef(cwd), StringRef(Filename)))); in TEST_F() 192 string ExpectedPath(getPath(cwd, Filename)); in TEST_F() 206 string ExpectedPath(getPath(cwd, Filename)); in TEST_F() [all …]
|
/external/chromium_org/tools/ |
D | roll_swarming_client.py | 26 subprocess.check_output(cmd, cwd=root).strip() or 27 subprocess.check_output(cmd + ['--cached'], cwd=root).strip()) 37 ['git', 'rev-parse', 'HEAD'], cwd=full_dir).strip() 59 subprocess.check_call(['git', 'fetch', 'origin'], cwd=full_dir) 61 ['git', 'rev-parse', 'origin/master'], cwd=full_dir).strip() 71 cwd=full_dir).strip() 96 subprocess.check_call(['git', 'add', 'DEPS'], cwd=SRC_ROOT) 97 subprocess.check_call(['git', 'commit', '-m', msg], cwd=SRC_ROOT)
|
/external/chromium_org/tools/metrics/histograms/ |
D | PRESUBMIT.py | 17 cwd = input_api.os_path.dirname(p) 19 ['python', 'pretty_print.py', '--presubmit'], cwd=cwd) 26 ['python', 'validate_format.py'], cwd=cwd)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/ |
D | scm.py | 44 def __init__(self, cwd, executive=None, filesystem=None): argument 45 self.cwd = cwd 48 self.checkout_root = self.find_checkout_root(self.cwd) 51 …def _run(self, args, cwd=None, input=None, error_handler=None, return_exit_code=False, return_stde… argument 54 cwd=cwd, 69 for line in self._run(status_command, cwd=self.checkout_root).splitlines():
|
D | detection.py | 54 cwd = self._filesystem.getcwd() 55 scm_system = self.detect_scm_system(cwd, patch_directories) 60 …_log.info("The current directory (%s) is not a WebKit checkout, using %s" % (cwd, scm_system.check… 62 …xception("FATAL: Failed to determine the SCM system for either %s or %s" % (cwd, script_directory)) 72 …return SVN(cwd=absolute_path, patch_directories=patch_directories, filesystem=self._filesystem, ex… 75 return Git(cwd=absolute_path, filesystem=self._filesystem, executive=self._executive)
|
D | svn.py | 53 def __init__(self, cwd, patch_directories, **kwargs): argument 54 SCM.__init__(self, cwd, **kwargs) 59 self._patch_directories = [self._filesystem.relpath(cwd, self.checkout_root)] 72 exit_code = executive.run_command(svn_info_args, cwd=path, return_exit_code=True) 84 info_output = Executive().run_command(svn_info_args, cwd=path).rstrip() 114 return self._run_svn(["diff"], cwd=self.checkout_root, decode_output=False) != "" 150 result = self._run_svn(["delete", "--force", base], cwd=parent) 185 …command([self.executable_name, 'log', '-r', revision, '--xml', repository_root], cwd=path).rstrip() 198 cwd=self.checkout_root, return_stderr=False,
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/ |
D | executive_mock.py | 85 def run_and_throw_if_fail(self, args, quiet=False, cwd=None, env=None): argument 91 _log.info("MOCK run_and_throw_if_fail: %s, cwd=%s%s" % (args, cwd, env_string)) 102 cwd=None, argument 121 _log.info("MOCK run_command: %s, cwd=%s%s%s" % (args, cwd, env_string, input_string)) 140 def popen(self, args, cwd=None, env=None, **kwargs): argument 144 if cwd: 145 cwd_string = ", cwd=%s" % cwd 163 for cmd_line, cwd in commands: 164 command_outputs.append([0, self.run_command(cmd_line, cwd=cwd), '']) 188 cwd=None, argument
|
D | executive.py | 54 cwd=None, argument 64 if cwd: 65 message += " cwd: %s" % cwd 74 self.cwd = cwd 374 cwd=None, argument 392 cwd=cwd, 415 cwd=cwd) 489 (cmd_line, cwd) = cmd_line_and_cwd 490 proc = subprocess.Popen(cmd_line, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
/external/e2fsprogs/util/ |
D | symlinks.c | 322 char* cwd = get_current_dir_name(); local 324 static char path[PATH_MAX+2], cwd[PATH_MAX+2]; 335 if (NULL == cwd) { 338 if (NULL == getcwd(cwd,PATH_MAX)) { 344 cwd = realloc(cwd, strlen(cwd)+2); 345 if (cwd == NULL) { 350 if (!*cwd || cwd[strlen(cwd)-1] != '/') 351 strcat(cwd,"/"); 373 strcpy(path,cwd);
|
/external/chromium_org/native_client_sdk/src/build_tools/ |
D | nacl-mono-builder.py | 66 cwd=MONO_BUILD_DIR) 106 buildbot_common.Run(['git', 'fetch'], cwd=MONO_DIR) 108 buildbot_common.Run(['git', 'checkout', git_rev], cwd=MONO_DIR) 121 buildbot_common.Run(['./autogen.sh'], cwd=MONO_DIR) 122 buildbot_common.Run(['make', 'distclean'], cwd=MONO_DIR) 131 cwd=SDK_BUILD_DIR) 137 cwd=os.path.join(SDK_BUILD_DIR, arch_to_output_folder[options.arch]))
|
/external/chromium_org/testing/gtest/src/ |
D | gtest-filepath.cc | 105 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir() 106 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 108 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir() 109 char* result = getcwd(cwd, sizeof(cwd)); in GetCurrentDir() 114 return FilePath(result == NULL ? kCurrentDirectoryString : cwd); in GetCurrentDir() 116 return FilePath(result == NULL ? "" : cwd); in GetCurrentDir()
|
/external/protobuf/gtest/src/ |
D | gtest-filepath.cc | 91 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir() 92 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 94 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir() 95 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
|
/external/gtest/src/ |
D | gtest-filepath.cc | 107 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir() 108 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 110 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir() 111 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
|