Home
last modified time | relevance | path

Searched refs:cwd (Results 1 – 25 of 160) sorted by relevance

1234567

/external/valgrind/none/tests/
Dprocfs-cmdline-exe.c20 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/v8/tools/push-to-trunk/
Dreleases.py269 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 …]
Dchromium_roll.py37 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 …]
Dcommon_includes.py185 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 …]
Dtest_scripts.py388 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/libcxx/test/libcxx/
Dcompiler.py78 def preprocess(self, source_files, out=None, flags=[], env=None, cwd=None): argument
80 out, err, rc = lit.util.executeCommand(cmd, env=env, cwd=cwd)
83 def compile(self, source_files, out=None, flags=[], env=None, cwd=None): argument
85 out, err, rc = lit.util.executeCommand(cmd, env=env, cwd=cwd)
88 def link(self, source_files, out=None, flags=[], env=None, cwd=None): argument
90 out, err, rc = lit.util.executeCommand(cmd, env=env, cwd=cwd)
94 cwd=None): argument
96 out, err, rc = lit.util.executeCommand(cmd, env=env, cwd=cwd)
100 flags=[], env=None, cwd=None): argument
111 flags=flags, env=env, cwd=cwd)
[all …]
/external/linux-tools-perf/src/tools/perf/util/
Dabspath.c5 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/e2fsprogs/util/
Dsymlinks.c322 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/protobuf/gtest/src/
Dgtest-filepath.cc106 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir()
107 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
109 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir()
110 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
/external/google-breakpad/src/testing/gtest/src/
Dgtest-filepath.cc106 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir()
107 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
109 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir()
110 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
/external/mesa3d/src/gtest/src/
Dgtest-filepath.cc106 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir()
107 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
109 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir()
110 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
/external/gtest/src/
Dgtest-filepath.cc107 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()
/external/llvm/utils/unittest/googletest/src/
Dgtest-filepath.cc104 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir()
105 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
107 char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; in GetCurrentDir()
108 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
/external/llvm/utils/lit/lit/
DTestRunner.py32 def __init__(self, cwd, env): argument
33 self.cwd = cwd
70 shenv.cwd = newdir
72 shenv.cwd = os.path.join(shenv.cwd, newdir)
129 redir_filename = os.path.join(shenv.cwd, r[0])
174 procs.append(subprocess.Popen(args, cwd=shenv.cwd,
270 def executeScriptInternal(test, litConfig, tmpBase, commands, cwd): argument
285 shenv = ShellEnvironment(cwd, test.config.environment)
301 def executeScript(test, litConfig, tmpBase, commands, cwd): argument
334 return lit.util.executeCommand(command, cwd=cwd,
/external/vboot_reference/cgpt/
Dcgpt_nor.c49 int ForkExecV(const char *cwd, const char *const argv[]) { in ForkExecV() argument
56 if (cwd && chdir(cwd) != 0) { in ForkExecV()
61 err(-1, "Cannot exec %s in %s.", argv[0], cwd); in ForkExecV()
69 int ForkExecL(const char *cwd, const char *cmd, ...) { in ForkExecL() argument
89 int ret = ForkExecV(cwd, argv); in ForkExecL()
Dcgpt_nor.h18 int ForkExecV(const char *cwd, const char *const argv[]);
21 int ForkExecL(const char *cwd, const char *cmd, ...);
/external/lldb/scripts/
Dfinish-swig-wrapper-classes.sh58 cwd=${SRC_ROOT}/scripts
67 if [ ! -d "$cwd/$curlang" ]
78 cd $cwd/$curlang
Dbuild-swig-wrapper-classes.sh111 cwd=${SRC_ROOT}/scripts
120 if [ ! -d "$cwd/$curlang" ]
131 cd $cwd/$curlang
/external/e2fsprogs/lib/ext2fs/
Dnamei.c157 errcode_t ext2fs_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, in ext2fs_namei() argument
169 retval = open_namei(fs, root, cwd, name, strlen(name), 0, 0, in ext2fs_namei()
176 errcode_t ext2fs_namei_follow(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, in ext2fs_namei_follow() argument
188 retval = open_namei(fs, root, cwd, name, strlen(name), 1, 0, in ext2fs_namei_follow()
195 errcode_t ext2fs_follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, in ext2fs_follow_link() argument
207 retval = follow_link(fs, root, cwd, inode, 0, buf, res_inode); in ext2fs_follow_link()
/external/skia/tools/
Dgit-sync-deps79 [git, 'config', 'sync-deps.disable'], cwd=directory)
96 [git, 'rev-parse', '--show-toplevel'], cwd=directory).strip()
136 subprocess.check_call([git, 'fetch', '--quiet'], cwd=directory)
139 [git, 'checkout', '--quiet', checkoutable], cwd=directory)
/external/antlr/antlr-3.4/runtime/Perl5/t/lib/ANTLR/Runtime/
DTest.pm75 my $cwd = cwd;
89 …my $g_result = run_program([ File::Spec->catfile($cwd, 'tools', $antlr), '-o', $tmpdir, $grammar_f…
/external/libunwind/scripts/
Dmake-L-files2 cwd=`pwd`
3 dir=`basename ${cwd}`
/external/chromium-trace/trace-viewer/tracing/third_party/tvcm/third_party/rcssmin/_setup/py3/
Dshell.py35 cwd = _os.path.dirname(_os.path.abspath(_sys.argv[0])) variable
63 return _os.path.normpath(_os.path.join(cwd, path))
285 if dest.startswith(cwd):
286 dest = dest.replace(cwd, '', 1)
311 if dest.startswith(cwd):
312 dest = dest.replace(cwd, '', 1)
/external/chromium-trace/trace-viewer/tracing/third_party/tvcm/third_party/rjsmin/_setup/py3/
Dshell.py35 cwd = _os.path.dirname(_os.path.abspath(_sys.argv[0])) variable
63 return _os.path.normpath(_os.path.join(cwd, path))
285 if dest.startswith(cwd):
286 dest = dest.replace(cwd, '', 1)
311 if dest.startswith(cwd):
312 dest = dest.replace(cwd, '', 1)
/external/valgrind/coregrind/
Dlauncher-darwin.c218 char* cwd; in main() local
355 cwd = getcwd(NULL, 0); in main()
356 if (!cwd) barf("Current directory no longer exists."); in main()
366 strcpy(launcher_name, cwd); in main()
378 asprintf(&set_cwd, "VALGRIND_STARTUP_PWD_%u_XYZZY=%s", getppid(), cwd); in main()

1234567