Lines Matching +full:ep +full:- +full:side
20 * Materiel Command, USAF, under agreement number F39502-99-1-0512.
83 { "ignore-space-change", no_argument, 0, 'b' },
88 { "forward-ed", no_argument, 0, 'f' },
89 { "show-function-line", required_argument, 0, 'F' },
90 { "speed-large-files", no_argument, NULL, 'H' },
91 { "ignore-blank-lines", no_argument, 0, 'B' },
92 { "ignore-matching-lines", required_argument, 0, 'I' },
93 { "ignore-case", no_argument, 0, 'i' },
96 { "new-file", no_argument, 0, 'N' },
98 { "unidirectional-new-file", no_argument, 0, 'P' },
99 { "show-c-function", no_argument, 0, 'p' },
102 { "report-identical-files", no_argument, 0, 's' },
103 { "starting-file", required_argument, 0, 'S' },
104 { "expand-tabs", no_argument, 0, 't' },
105 { "initial-tab", no_argument, 0, 'T' },
107 { "ignore-all-space", no_argument, 0, 'w' },
110 { "exclude-from", required_argument, 0, 'X' },
111 { "side-by-side", no_argument, NULL, 'y' },
112 { "ignore-file-name-case", no_argument, NULL, OPT_IGN_FN_CASE },
114 { "horizon-lines", required_argument, NULL, OPT_HORIZON_LINES },
115 { "no-dereference", no_argument, NULL, OPT_NO_DEREFERENCE},
116 { "no-ignore-file-name-case", no_argument, NULL, OPT_NO_IGN_FN_CASE },
118 { "strip-trailing-cr", no_argument, NULL, OPT_STRIPCR },
120 { "changed-group-format", required_argument, NULL, OPT_CHANGED_GROUP_FORMAT},
121 { "suppress-common-lines", no_argument, NULL, OPT_SUPPRESS_COMMON },
141 char *ep, **oargv;
157 while ((ch = getopt_long(argc, argv, OPTIONS, longopts, NULL)) != -1) {
162 usage(); /* disallow -[0-9]+ */
167 diff_context = (diff_context * 10) + (ch - '0');
171 for (struct algorithm *a = algorithms; a->name;a++) {
172 if(strcasecmp(optarg, a->name) == 0) {
173 diff_algorithm = a->id;
197 l = strtol(optarg, &ep, 10);
198 if (*ep != '\0' || l < 0 || l >= INT_MAX)
296 l = strtol(optarg, &ep, 10);
297 if (*ep != '\0' || l < 0 || l >= INT_MAX)
367 errx(2, "unsupported --color value '%s' (must be always, auto, or never)",
388 argc -= optind;
408 if (pledge("stdio rpath tmppath", NULL) == -1)
420 if (strcmp(argv[0], "-") == 0) {
430 if (strcmp(argv[1], "-") == 0) {
451 errx(2, "can't compare - to a directory");
455 errx(2, "-D option not supported with directories");
460 if (stat(argv[0], &stb1) == -1)
465 if (stat(argv[1], &stb2) == -1)
501 argsize = 4 + *ave - *av + 1;
505 if (strcmp(*ap, "--") != 0) {
523 if (strcmp(file, "-") == 0)
528 if ((len > 0) && (pattern[len - 1] == '\n'))
529 pattern[len - 1] = '\0';
536 if (strcmp(file, "-") != 0)
549 entry->pattern = pattern;
550 entry->next = excludes_list;
618 "usage: diff [-aBbdilpTtw] [-c | -e | -f | -n | -q | -u] [--ignore-case]\n"
619 " [--no-ignore-case] [--normal] [--strip-trailing-cr] [--tabsize]\n"
620 " [-I pattern] [-F pattern] [-L label] file1 file2\n"
621 " diff [-aBbdilpTtw] [-I pattern] [-L label] [--ignore-case]\n"
622 " [--no-ignore-case] [--normal] [--strip-trailing-cr] [--tabsize]\n"
623 " [-F pattern] -C number file1 file2\n"
624 " diff [-aBbdiltw] [-I pattern] [--ignore-case] [--no-ignore-case]\n"
625 " [--normal] [--strip-trailing-cr] [--tabsize] -D string file1 file2\n"
626 " diff [-aBbdilpTtw] [-I pattern] [-L label] [--ignore-case]\n"
627 " [--no-ignore-case] [--normal] [--tabsize] [--strip-trailing-cr]\n"
628 " [-F pattern] -U number file1 file2\n"
629 " diff [-aBbdilNPprsTtw] [-c | -e | -f | -n | -q | -u] [--ignore-case]\n"
630 " [--no-ignore-case] [--normal] [--tabsize] [-I pattern] [-L label]\n"
631 " [-F pattern] [-S name] [-X file] [-x pattern] dir1 dir2\n"
632 " diff [-aBbditwW] [--expand-tabs] [--ignore-all-space]\n"
633 " [--ignore-blank-lines] [--ignore-case] [--minimal]\n"
634 " [--no-ignore-file-name-case] [--strip-trailing-cr]\n"
635 " [--suppress-common-lines] [--tabsize] [--text] [--width]\n"
636 " -y | --side-by-side file1 file2\n"
637 " diff [--help] [--version]\n");
681 while (dirlen != 0 && dir[dirlen - 1] == '/')
682 dirlen--;