| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
| |
(ignore_some_line_changes): New variable; replaces `length_varies'.
|
|
|
|
|
|
| |
(usage): Just print usage; let caller worry about exiting.
(option_help): New variable.
(filetype): Add Posix.1b file types.
|
|
|
|
|
|
|
|
|
| |
(main, usage, compare_files): Support --binary option.
(main): Call initialize_main first.
If we'll have children, make sure SIGCHLD isn't ignored.
(compare_files): Use filename_cmp to compare file names.
Use filename_lastdirchar to find last directory char in a file name.
Use same_file to determine whether two files are the same.
|
| |
|
|
|
|
|
|
| |
(main): Send version number to stdout, not stderr.
(usage): Send usage to stdout, not stderr.
(compare_files): Initialize `inf' properly.
|
|
|
|
| |
to suppress bogus warnings on some nonstandard hosts.
|
| |
|
|
|
|
|
| |
(specify_format): Args no longer const pointers. All callers changed.
(compare_files): rindex -> strrchr.
|
|
|
|
| |
avoid a needless `stat' in that case.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use `const' when needed to pacify gcc.
Use STD{IN,OUT,ERR}_FILENO instead of [012].
(usage): Sort options.
(filetype): New function.
(compare_files): Set stdin's st_mtime to be the current time.
Leave its name "-" instead of changing it to "Standard Input";
to test whether a file is stdin, we must compare its name to "-" instead
of its desc to 0, since if it's closed other file descs may be 0.
When comparing standard input to a file, and using a shortcut (e.g.
looking at file sizes or inode numbers), take the lseek offset into
account before deciding whether the files are identical.
Pretend that nonexistent files have the same filetype as existing files.
Rename `errorcount' to `failed', since it's boolean.
In directory comparisons, if a file is neither a regular file nor a
directory, just print its type and the other file's type.
|
| |
|
|
|
|
|
|
|
|
| |
ignore_some_changes is nonzero, since the file size may differ
merely due to ignored changes.
(briefly_report): New function.
(main): Set ignore_some_changes if we might ignore some changes.
Remove unsystematic assignment of 0 to static vars.
|
| |
|
| |
|
| |
|
| |
|
|
|