cmp 582 gnulib-tests/setlocale.c int cmp = strcmp (table[mid].code, string); cmp 583 gnulib-tests/setlocale.c if (cmp < 0) cmp 585 gnulib-tests/setlocale.c else if (cmp > 0) cmp 55 lib/mbscasecmp.c int cmp = mb_casecmp (mbui_cur (iter1), mbui_cur (iter2)); cmp 57 lib/mbscasecmp.c if (cmp != 0) cmp 58 lib/mbscasecmp.c return cmp; cmp 486 src/analyze.c if (read_files (cmp->file, files_can_be_treated_as_binary)) cmp 489 src/analyze.c if (cmp->file[0].stat.st_size != cmp->file[1].stat.st_size cmp 490 src/analyze.c && (cmp->file[0].desc < 0 || S_ISREG (cmp->file[0].stat.st_mode)) cmp 491 src/analyze.c && (cmp->file[1].desc < 0 || S_ISREG (cmp->file[1].stat.st_mode))) cmp 495 src/analyze.c else if (cmp->file[0].desc == cmp->file[1].desc) cmp 505 src/analyze.c buffer_lcm (STAT_BLOCKSIZE (cmp->file[0].stat), cmp 506 src/analyze.c STAT_BLOCKSIZE (cmp->file[1].stat), cmp 510 src/analyze.c cmp->file[f].buffer = xrealloc (cmp->file[f].buffer, buffer_size); cmp 512 src/analyze.c for (;; cmp->file[0].buffered = cmp->file[1].buffered = 0) cmp 516 src/analyze.c if (0 <= cmp->file[f].desc) cmp 517 src/analyze.c file_block_read (&cmp->file[f], cmp 518 src/analyze.c buffer_size - cmp->file[f].buffered); cmp 521 src/analyze.c if (cmp->file[0].buffered != cmp->file[1].buffered cmp 522 src/analyze.c || memcmp (cmp->file[0].buffer, cmp 523 src/analyze.c cmp->file[1].buffer, cmp 524 src/analyze.c cmp->file[0].buffered)) cmp 531 src/analyze.c if (cmp->file[0].buffered != buffer_size) cmp 539 src/analyze.c changes = briefly_report (changes, cmp->file); cmp 552 src/analyze.c size_t s = cmp->file[0].buffered_lines + cmp->file[1].buffered_lines + 4; cmp 554 src/analyze.c cmp->file[0].changed = flag_space + 1; cmp 555 src/analyze.c cmp->file[1].changed = flag_space + cmp->file[0].buffered_lines + 3; cmp 561 src/analyze.c discard_confusing_lines (cmp->file); cmp 566 src/analyze.c ctxt.xvec = cmp->file[0].undiscarded; cmp 567 src/analyze.c ctxt.yvec = cmp->file[1].undiscarded; cmp 568 src/analyze.c diags = (cmp->file[0].nondiscarded_lines cmp 569 src/analyze.c + cmp->file[1].nondiscarded_lines + 3); cmp 572 src/analyze.c ctxt.fdiag += cmp->file[1].nondiscarded_lines + 1; cmp 573 src/analyze.c ctxt.bdiag += cmp->file[1].nondiscarded_lines + 1; cmp 584 src/analyze.c files[0] = cmp->file[0]; cmp 585 src/analyze.c files[1] = cmp->file[1]; cmp 587 src/analyze.c compareseq (0, cmp->file[0].nondiscarded_lines, cmp 588 src/analyze.c 0, cmp->file[1].nondiscarded_lines, minimal, &ctxt); cmp 590 src/analyze.c free (ctxt.fdiag - (cmp->file[1].nondiscarded_lines + 1)); cmp 595 src/analyze.c shift_boundaries (cmp->file); cmp 601 src/analyze.c script = build_reverse_script (cmp->file); cmp 603 src/analyze.c script = build_script (cmp->file); cmp 638 src/analyze.c changes = briefly_report (changes, cmp->file); cmp 645 src/analyze.c setup_output (file_label[0] ? file_label[0] : cmp->file[0].name, cmp 646 src/analyze.c file_label[1] ? file_label[1] : cmp->file[1].name, cmp 647 src/analyze.c cmp->parent != 0); cmp 691 src/analyze.c free (cmp->file[0].undiscarded); cmp 697 src/analyze.c free (cmp->file[f].equivs); cmp 698 src/analyze.c free (cmp->file[f].linbuf + cmp->file[f].linbuf_base); cmp 709 src/analyze.c if (cmp->file[f].missing_newline) cmp 712 src/analyze.c file_label[f] ? file_label[f] : cmp->file[f].name, cmp 718 src/analyze.c if (cmp->file[0].buffer != cmp->file[1].buffer) cmp 719 src/analyze.c free (cmp->file[0].buffer); cmp 720 src/analyze.c free (cmp->file[1].buffer); cmp 52 src/cmp.c static int cmp (void); cmp 362 src/cmp.c exit_status = cmp (); cmp 1034 src/diff.c struct comparison cmp; cmp 1035 src/diff.c #define DIR_P(f) (S_ISDIR (cmp.file[f].stat.st_mode) != 0) cmp 1061 src/diff.c memset (cmp.file, 0, sizeof cmp.file); cmp 1062 src/diff.c cmp.parent = parent; cmp 1071 src/diff.c cmp.file[0].desc = name0 ? UNOPENED : NONEXISTENT; cmp 1072 src/diff.c cmp.file[1].desc = name1 ? UNOPENED : NONEXISTENT; cmp 1085 src/diff.c cmp.file[0].name = name0; cmp 1086 src/diff.c cmp.file[1].name = name1; cmp 1090 src/diff.c cmp.file[0].name = free0 cmp 1092 src/diff.c cmp.file[1].name = free1 cmp 1100 src/diff.c if (cmp.file[f].desc != NONEXISTENT) cmp 1102 src/diff.c if (f && file_name_cmp (cmp.file[f].name, cmp.file[0].name) == 0) cmp 1104 src/diff.c cmp.file[f].desc = cmp.file[0].desc; cmp 1105 src/diff.c cmp.file[f].stat = cmp.file[0].stat; cmp 1107 src/diff.c else if (STREQ (cmp.file[f].name, "-")) cmp 1109 src/diff.c cmp.file[f].desc = STDIN_FILENO; cmp 1112 src/diff.c if (fstat (STDIN_FILENO, &cmp.file[f].stat) != 0) cmp 1113 src/diff.c cmp.file[f].desc = ERRNO_ENCODE (errno); cmp 1116 src/diff.c if (S_ISREG (cmp.file[f].stat.st_mode)) cmp 1120 src/diff.c cmp.file[f].desc = ERRNO_ENCODE (errno); cmp 1122 src/diff.c cmp.file[f].stat.st_size = cmp 1123 src/diff.c MAX (0, cmp.file[f].stat.st_size - pos); cmp 1128 src/diff.c set_mtime_to_now (&cmp.file[f].stat); cmp 1131 src/diff.c else if (stat (cmp.file[f].name, &cmp.file[f].stat) != 0) cmp 1132 src/diff.c cmp.file[f].desc = ERRNO_ENCODE (errno); cmp 1143 src/diff.c && (cmp.file[f].desc == UNOPENED cmp 1144 src/diff.c ? (S_ISREG (cmp.file[f].stat.st_mode) cmp 1145 src/diff.c && ! (cmp.file[f].stat.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) cmp 1146 src/diff.c && cmp.file[f].stat.st_size == 0) cmp 1147 src/diff.c : (cmp.file[f].desc == ERRNO_ENCODE (ENOENT) cmp 1149 src/diff.c && cmp.file[1 - f].desc == UNOPENED))) cmp 1150 src/diff.c cmp.file[f].desc = NONEXISTENT; cmp 1153 src/diff.c if (cmp.file[f].desc == NONEXISTENT) cmp 1155 src/diff.c memset (&cmp.file[f].stat, 0, sizeof cmp.file[f].stat); cmp 1156 src/diff.c cmp.file[f].stat.st_mode = cmp.file[1 - f].stat.st_mode; cmp 1161 src/diff.c int e = ERRNO_DECODE (cmp.file[f].desc); cmp 1165 src/diff.c perror_with_name (cmp.file[f].name); cmp 1177 src/diff.c char const *fnm = cmp.file[fnm_arg].name; cmp 1178 src/diff.c char const *dir = cmp.file[dir_arg].name; cmp 1179 src/diff.c char const *filename = cmp.file[dir_arg].name = free0 cmp 1185 src/diff.c if (stat (filename, &cmp.file[dir_arg].stat) != 0) cmp 1196 src/diff.c else if (cmp.file[0].desc == NONEXISTENT cmp 1197 src/diff.c && cmp.file[1].desc == NONEXISTENT) cmp 1202 src/diff.c = (cmp.file[0].desc != NONEXISTENT cmp 1203 src/diff.c && cmp.file[1].desc != NONEXISTENT cmp 1204 src/diff.c && 0 < same_file (&cmp.file[0].stat, &cmp.file[1].stat) cmp 1205 src/diff.c && same_file_attributes (&cmp.file[0].stat, cmp 1206 src/diff.c &cmp.file[1].stat))) cmp 1225 src/diff.c cmp.file[0].name, cmp.file[1].name); cmp 1228 src/diff.c status = diff_dirs (&cmp, compare_files); cmp 1232 src/diff.c && (! S_ISREG (cmp.file[0].stat.st_mode) cmp 1233 src/diff.c || ! S_ISREG (cmp.file[1].stat.st_mode)))) cmp 1235 src/diff.c if (cmp.file[0].desc == NONEXISTENT || cmp.file[1].desc == NONEXISTENT) cmp 1243 src/diff.c && cmp.file[0].desc == NONEXISTENT))) cmp 1244 src/diff.c status = diff_dirs (&cmp, compare_files); cmp 1251 src/diff.c dir = parent->file[cmp.file[0].desc == NONEXISTENT].name; cmp 1265 src/diff.c file_label[0] ? file_label[0] : cmp.file[0].name, cmp 1266 src/diff.c file_type (&cmp.file[0].stat), cmp 1267 src/diff.c file_label[1] ? file_label[1] : cmp.file[1].name, cmp 1268 src/diff.c file_type (&cmp.file[1].stat)); cmp 1275 src/diff.c && S_ISREG (cmp.file[0].stat.st_mode) cmp 1276 src/diff.c && S_ISREG (cmp.file[1].stat.st_mode) cmp 1277 src/diff.c && cmp.file[0].stat.st_size != cmp.file[1].stat.st_size) cmp 1280 src/diff.c file_label[0] ? file_label[0] : cmp.file[0].name, cmp 1281 src/diff.c file_label[1] ? file_label[1] : cmp.file[1].name); cmp 1292 src/diff.c if (cmp.file[0].desc == UNOPENED) cmp 1293 src/diff.c if ((cmp.file[0].desc = open (cmp.file[0].name, oflags, 0)) < 0) cmp 1295 src/diff.c perror_with_name (cmp.file[0].name); cmp 1298 src/diff.c if (cmp.file[1].desc == UNOPENED) cmp 1301 src/diff.c cmp.file[1].desc = cmp.file[0].desc; cmp 1302 src/diff.c else if ((cmp.file[1].desc = open (cmp.file[1].name, oflags, 0)) < 0) cmp 1304 src/diff.c perror_with_name (cmp.file[1].name); cmp 1312 src/diff.c status = diff_2_files (&cmp); cmp 1316 src/diff.c if (0 <= cmp.file[0].desc && close (cmp.file[0].desc) != 0) cmp 1318 src/diff.c perror_with_name (cmp.file[0].name); cmp 1321 src/diff.c if (0 <= cmp.file[1].desc && cmp.file[0].desc != cmp.file[1].desc cmp 1322 src/diff.c && close (cmp.file[1].desc) != 0) cmp 1324 src/diff.c perror_with_name (cmp.file[1].name); cmp 1336 src/diff.c file_label[0] ? file_label[0] : cmp.file[0].name, cmp 1337 src/diff.c file_label[1] ? file_label[1] : cmp.file[1].name); cmp 206 src/dir.c if ((cmp->file[0].desc == -1 || dir_loop (cmp, 0)) cmp 207 src/dir.c && (cmp->file[1].desc == -1 || dir_loop (cmp, 1))) cmp 210 src/dir.c cmp->file[cmp->file[0].desc == -1].name); cmp 216 src/dir.c if (! dir_read (&cmp->file[i], &dirdata[i])) cmp 218 src/dir.c perror_with_name (cmp->file[i].name); cmp 241 src/dir.c if (starting_file && ! cmp->parent) cmp 292 src/dir.c int v1 = (*handle_file) (cmp, cmp 314 src/dir.c struct comparison const *p = cmp; cmp 316 src/dir.c if (0 < same_file (&p->file[i].stat, &cmp->file[i].stat))