Searched refs:cwd (Results 1 – 5 of 5) sorted by relevance
/tools/lib/subcmd/ |
D | exec-cmd.c | 38 static char cwd[PATH_MAX + 1]; in get_pwd_cwd() local 41 if (getcwd(cwd, PATH_MAX) == NULL) in get_pwd_cwd() 44 if (pwd && strcmp(pwd, cwd)) { in get_pwd_cwd() 45 stat(cwd, &cwd_stat); in get_pwd_cwd() 49 strlcpy(cwd, pwd, PATH_MAX); in get_pwd_cwd() 52 return cwd; in get_pwd_cwd() 63 const char *cwd = get_pwd_cwd(); in make_nonrelative_path() local 64 if (!cwd) in make_nonrelative_path() 66 if (snprintf(buf, PATH_MAX, "%s/%s", cwd, path) >= PATH_MAX) in make_nonrelative_path()
|
/tools/testing/selftests/exec/ |
D | execveat.c | 162 char *cwd = getcwd(NULL, 0); in check_execveat_pathmax() local 164 if (!cwd) { in check_execveat_pathmax() 169 strcpy(longpath, cwd); in check_execveat_pathmax() 174 count = (PATH_MAX - 3 - strlen(cwd)) / XX_DIR_LEN; in check_execveat_pathmax() 179 len = (PATH_MAX - 3 - strlen(cwd)) - (count * XX_DIR_LEN); in check_execveat_pathmax() 185 free(cwd); in check_execveat_pathmax()
|
/tools/testing/selftests/tc-testing/plugin-lib/ |
D | README-PLUGINS | 1 tdc.py will look for plugins in a directory plugins off the cwd. 22 This plugin will write files to the cwd, called vgnd-xxx.log. These will contain
|
/tools/testing/selftests/capabilities/ |
D | test_execve.c | 141 char cwd[PATH_MAX]; in chdir_to_tmpfs() local 142 if (getcwd(cwd, sizeof(cwd)) != cwd) in chdir_to_tmpfs() 149 if (chdir(cwd) != 0) in chdir_to_tmpfs()
|
/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-hwbreak.c | 49 static volatile char cwd[PATH_MAX] __attribute__((aligned(8))); variable 145 syscall(__NR_getcwd, &cwd, PATH_MAX); in test_workload() 160 syscall(__NR_getcwd, &cwd, PATH_MAX); in test_workload() 307 unsigned long wp_addr = (unsigned long)cwd; in test_set_debugreg_kernel_userspace() 371 unsigned long wp_addr = (unsigned long)&cwd; in test_sethwdebug_exact_kernel_userspace()
|