Lines Matching refs:pwd
3674 char *buff, *tried, *pwd = NULL, *p = NULL;
3697 pwd = NULL;
3708 pwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */
3710 pwd = getcwd(NULL, 0);
3712 while (pwd[strlen(pwd) - 1] == '\n')
3713 pwd[strlen(pwd) - 1] = '\0';
3716 snprintf(buff, buff_size, "%s", pwd);
3722 snprintf(buff, buff_size, "%s/test", pwd);
3729 snprintf(buff, buff_size, "%s/%s/test", pwd, LIBRARY);
3731 snprintf(buff, buff_size, "%s/%s/test", pwd, PROGRAM);
3739 snprintf(buff, buff_size, "%s/%s/test", pwd, PROGRAM_ALIAS);
3746 if (memcmp(pwd, "/usr/obj", 8) == 0) {
3747 snprintf(buff, buff_size, "%s", pwd + 8);
3753 snprintf(buff, buff_size, "%s/test", pwd + 8);
3771 free(pwd);
3898 char *pwd, *testprogdir, *tmp2 = NULL, *vlevel = NULL;
3905 pwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */
3907 pwd = getcwd(NULL, 0);
3909 while (pwd[strlen(pwd) - 1] == '\n')
3910 pwd[strlen(pwd) - 1] = '\0';
3954 strlen(pwd) + 1 + strlen(testprogdir) + 1)) == NULL)
3959 memmove(testprogdir + strlen(pwd) + 1, testprogdir,
3961 memcpy(testprogdir, pwd, strlen(pwd));
3962 testprogdir[strlen(pwd)] = '/';
4211 free(pwd);