Lines Matching defs:fnp
457 char *fnp;
508 } else if ((fnp = get_filename()) == NULL)
518 if (*fnp && *fnp != '!') {
519 if (strlen(fnp) < sizeof(old_filename)) {
520 strcpy(old_filename, fnp);
522 fprintf(stderr, "%s: filename too long\n", fnp);
527 if (!posixly_correct && *fnp == '\0' && *old_filename == '\0') {
531 if (read_file(*fnp ? fnp : old_filename, 0) < 0)
544 } else if ((fnp = get_filename()) == NULL)
546 else if (*fnp == '!') {
551 if (*fnp) {
552 if (strlen(fnp) < sizeof(old_filename)) {
553 strcpy(old_filename, fnp);
555 fprintf(stderr, "%s: filename too long\n", fnp);
688 if ((fnp = get_filename()) == NULL)
692 if (*old_filename == '\0' && *fnp != '!') {
693 if (strlen(fnp) < sizeof(old_filename)) {
694 strcpy(old_filename, fnp);
696 fprintf(stderr, "%s: filename too long\n", fnp);
700 if (!posixly_correct && *fnp == '\0' && *old_filename == '\0') {
704 if ((addr = read_file(*fnp ? fnp : old_filename, second_addr)) < 0)
827 } else if ((fnp = get_filename()) == NULL)
834 if (*old_filename == '\0' && *fnp != '!') {
835 if (strlen(fnp) < sizeof(old_filename)) {
836 strcpy(old_filename, fnp);
838 fprintf(stderr, "%s: filename too long\n", fnp);
842 if (!posixly_correct && *fnp == '\0' && *old_filename == '\0') {
846 if ((addr = write_file(*fnp ? fnp : old_filename,