Searched refs:cwd (Results 1 – 4 of 4) 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 | 160 char *cwd = getcwd(NULL, 0); in check_execveat_pathmax() local 162 if (!cwd) { in check_execveat_pathmax() 167 strcpy(longpath, cwd); in check_execveat_pathmax() 172 count = (PATH_MAX - 3 - strlen(cwd)) / XX_DIR_LEN; in check_execveat_pathmax() 177 len = (PATH_MAX - 3 - strlen(cwd)) - (count * XX_DIR_LEN); in check_execveat_pathmax() 183 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()
|