Home
last modified time | relevance | path

Searched refs:cur_dir (Results 1 – 10 of 10) sorted by relevance

/external/strace/tests/
Dgetcwd.c15 char cur_dir[PATH_MAX + 1]; in main() local
18 res = syscall(__NR_getcwd, cur_dir, sizeof(cur_dir)); in main()
24 print_quoted_string(cur_dir); in main()
25 printf("\", %zu) = %ld\n", sizeof(cur_dir), res); in main()
27 res = syscall(__NR_getcwd, cur_dir, 0); in main()
28 printf("getcwd(%p, 0) = %s\n", cur_dir, sprintrc(res)); in main()
33 res = syscall(__NR_getcwd, (void *) -1L, sizeof(cur_dir)); in main()
35 (void *) -1L, sizeof(cur_dir), sprintrc(res)); in main()
/external/strace/tests-m32/
Dgetcwd.c15 char cur_dir[PATH_MAX + 1]; in main() local
18 res = syscall(__NR_getcwd, cur_dir, sizeof(cur_dir)); in main()
24 print_quoted_string(cur_dir); in main()
25 printf("\", %zu) = %ld\n", sizeof(cur_dir), res); in main()
27 res = syscall(__NR_getcwd, cur_dir, 0); in main()
28 printf("getcwd(%p, 0) = %s\n", cur_dir, sprintrc(res)); in main()
33 res = syscall(__NR_getcwd, (void *) -1L, sizeof(cur_dir)); in main()
35 (void *) -1L, sizeof(cur_dir), sprintrc(res)); in main()
/external/strace/tests-mx32/
Dgetcwd.c15 char cur_dir[PATH_MAX + 1]; in main() local
18 res = syscall(__NR_getcwd, cur_dir, sizeof(cur_dir)); in main()
24 print_quoted_string(cur_dir); in main()
25 printf("\", %zu) = %ld\n", sizeof(cur_dir), res); in main()
27 res = syscall(__NR_getcwd, cur_dir, 0); in main()
28 printf("getcwd(%p, 0) = %s\n", cur_dir, sprintrc(res)); in main()
33 res = syscall(__NR_getcwd, (void *) -1L, sizeof(cur_dir)); in main()
35 (void *) -1L, sizeof(cur_dir), sprintrc(res)); in main()
/external/curl/tests/
Dpathhelp.pm137 my $cur_dir;
140 chomp($cur_dir = `bash -c 'pwd -W'`);
146 $cur_dir .= '/' if length($cur_dir) > 3;
150 $cur_dir = `cmd "/c;" echo %__CD__%`;
151 if($? != 0 || substr($cur_dir, 0, 1) eq '%') {
156 $cur_dir =~ s{\n|\r}{}g;
159 $cur_dir =~ s{\\}{/}g;
161 return $cur_dir;
375 my $cur_dir = `pwd -L`;
380 chomp($cur_dir);
[all …]
/external/ltp/testcases/kernel/syscalls/fchdir/
Dfchdir03.c155 char *cur_dir = NULL; in setup() local
168 if ((cur_dir = getcwd(cur_dir, 0)) == NULL) in setup()
171 sprintf(good_dir, "%s.%d", cur_dir, getpid()); in setup()
/external/ltp/testcases/kernel/syscalls/pread/
Dpread03.c152 char *cur_dir = NULL; in setup() local
164 if ((cur_dir = getcwd(cur_dir, 0)) == NULL) { in setup()
168 sprintf(test_dir, "%s.%d", cur_dir, getpid()); in setup()
/external/ltp/testcases/kernel/syscalls/chdir/
Dchdir03.c164 char *cur_dir = NULL; in setup() local
184 if ((cur_dir = getcwd(cur_dir, 0)) == NULL) in setup()
187 sprintf(good_dir, "%s/%d", cur_dir, getpid()); in setup()
/external/dtc/
Dsrcpos.c100 const char *cur_dir = NULL; in fopen_any_on_path() local
107 cur_dir = current_srcfile->dir; in fopen_any_on_path()
108 fullname = try_open(cur_dir, fname, fp); in fopen_any_on_path()
/external/swiftshader/third_party/LLVM/lib/Support/Unix/
DPathV2.inc465 dirent *cur_dir = ::readdir(reinterpret_cast<DIR *>(it.IterationHandle));
466 if (cur_dir == 0 && errno != 0) {
468 } else if (cur_dir != 0) {
469 StringRef name(cur_dir->d_name, NAMLEN(cur_dir));
/external/llvm/lib/Support/Unix/
DPath.inc536 dirent *cur_dir = ::readdir(reinterpret_cast<DIR *>(it.IterationHandle));
537 if (cur_dir == nullptr && errno != 0) {
539 } else if (cur_dir != nullptr) {
540 StringRef name(cur_dir->d_name, NAMLEN(cur_dir));