Lines Matching refs:cp
94 char *cp;
99 cp = strpbrk(path, MSG_ORIG(MSG_STR_PATHTOK));
100 if (cp == NULL) {
113 return (cp);
116 if (*cp == ':') {
117 *cp = '\0';
118 if (cp == path) {
129 path = cp + 1;
136 if (cp != path) {
148 return (cp);
373 char *path, *cp = NULL;
380 if ((cp = getenv(MSG_ORIG(MSG_LD_LIBPATH_64))) == NULL)
382 if ((cp = getenv(MSG_ORIG(MSG_LD_LIBPATH_32))) == NULL)
384 cp = getenv(MSG_ORIG(MSG_LD_LIBPATH));
387 if (cp && cp[0]) {
388 if ((path = libld_malloc(strlen(cp) + 1)) == NULL)
390 (void) strcpy(path, cp);
410 cp = process_lib_path(ofl, &ofl->ofl_ulibdirs, path,
412 if (cp == (char *)S_ERROR)
414 else if (cp)
424 cp = process_lib_path(ofl, &ofl->ofl_dlibdirs, Plibpath, TRUE);
425 if (cp == (char *)S_ERROR)
427 else if (cp) {