Lines Matching defs:oldval
505 * If the line is empty, or the input equals 'oldval', NULL is returned.
510 getresponse(char *oldval)
520 if (*resp != '\0' && strcmp(resp, oldval) != 0)
539 char *oldval; /* shorthand for oldattr.data.val_s */
550 oldval = oldattr.data.val_s;
554 if (*oldval == '\0') {
555 free(oldval);
556 oldval = strdup(DEFSHL);
563 while (valid && strcmp(valid, oldval) != 0)
568 (void) fprintf(stderr, gettext(MSG_RS), oldval);
569 free(oldval);
573 (void) printf(gettext(MSG_OLDSHELL), oldval);
577 response = getresponse(oldval);
578 free(oldval); /* We don't need the old value anymore */
627 * PRE: oldval points to malloced string with Old Value
628 * INV: oldval remains unchanged
633 (void) printf(gettext(MSG_NAME), oldval);
635 (void) printf(gettext(MSG_HOMEDIR), oldval);
637 response = getresponse(oldval);
669 free(oldval);