Lines Matching refs:varp
1058 envvarok(char *varp)
1061 if (strcmp(varp, "TERMCAP") && /* to prevent a security hole */
1062 strcmp(varp, "TERMINFO") && /* with tgetent */
1063 strcmp(varp, "TERMPATH") &&
1064 strcmp(varp, "HOME") && /* to prevent the tegetent bug */
1065 strncmp(varp, "LD_", strlen("LD_")) && /* most systems */
1066 strncmp(varp, "_RLD_", strlen("_RLD_")) && /* IRIX */
1067 strcmp(varp, "LIBPATH") && /* AIX */
1068 strcmp(varp, "ENV") &&
1069 strcmp(varp, "BASH_ENV") &&
1070 strcmp(varp, "IFS") &&
1071 strncmp(varp, "KRB5", strlen("KRB5")) && /* Krb5 */
1078 strcmp(varp, "KRB5_CONFIG") && /* Krb5 */
1079 strcmp(varp, "KRB5CCNAME") && /* Krb5 */
1080 strcmp(varp, "KRB5_KTNAME") && /* Krb5 */
1081 strcmp(varp, "KRBTKFILE") && /* Krb4 */
1082 strcmp(varp, "KRB_CONF") && /* CNS 4 */
1083 strcmp(varp, "KRB_REALMS") && /* CNS 4 */
1084 strcmp(varp, "RESOLV_HOST_CONF")) /* Linux */
1088 "environment variable \"%s\"", varp);
1271 char *cp, *varp, *valp;
1404 cp = varp = (char *)subpointer;
1425 if (envvarok(varp)) {
1427 (void)setenv(varp, valp, 1);
1429 unsetenv(varp);
1431 cp = varp = (char *)subpointer;
1446 if (envvarok(varp)) {
1448 (void)setenv(varp, valp, 1);
1450 unsetenv(varp);