summaryrefslogtreecommitdiff
path: root/src/sdiff.c
Commit message (Collapse)AuthorAgeFilesLines
...
* (ck_fdopen): Function removed.Paul Eggert1994-09-021-62/+119
| | | | | | | | | | | (cleanup, main, waitpid): Use popen+pclose if !HAVE_FORK. (edit): Use system if !HAVE_FORK. (main): Call initialize_main first. (execdiff): Now assumes caller has pushed all args, plus trailing 0. All callers changed. (trapsigs): If we'll have children, make sure SIGCHLD isn't ignored. (private_tempnam): Try TMP if TMPDIR isn't defined. Fit temporary filenames into 8.3 limit.
* (usage): Send usage to stdout, not stderr.Paul Eggert1993-11-101-23/+21
| | | | | (long_options, main, usage): Add `--help'. (main): Send version number to stdout, not stderr. Exit afterwards.
* (xmalloc, xrealloc): Cast malloc, reallocPaul Eggert1993-09-271-6/+6
| | | | | | | | to (VOID *) to suppress bogus warnings on some nonstandard hosts. (lf_copy, lf_skip, lf_snarf): Cast memchr to (char *) to suppress bogus warnings on some nonstandard hosts. (memchr): Make first arg char const * to match standard.
* Include "system.h" first.Paul Eggert1993-09-181-2/+2
| | | | (xmalloc): Make defn static, like declaration.
* (expand_name): rindex -> strrchrPaul Eggert1993-09-131-6/+6
| | | | | (expand_name, lf_snarf): bcopy -> memcpy (interact): index -> strchr
* Add prototypes to function declarations. Use size_t, not int, when needed.Paul Eggert1993-08-271-95/+223
| | | | | | | | | | | | | | | | | | | | | Use `const' to pacify `gcc'. Use STD{IN,OUT,ERR}_FILENO instead of [012]. (SEEK_SET): Move to system.h. (version_string): Now char[], not char*. (private_tempnam): Remove hardcoded limit on temporary file names. (exiterr, perror_fatal, main): When exiting because of a signal, exit with that signal's status. (lf_refill, main, skip_white, edit, interact): Check for signal. (ignore_SIGINT): Renamed from `ignore_signals'. (NUM_SIGS, initial_handler): New macros. (initial_action, signal_received, sigs_trapped): New vars. (catchsig, trapsigs): Use sigaction if possible, since this closes the windows of vulnerability that `signal' has. Use RETSIGTYPE not void. When a signal comes in, just set a global variable; this is safer. (checksigs, untrapsig): New functions. (edit): Pacify `gcc -Wall' with a useless assignment. Respond to each empty line with help, not to every other empty line. (private_tempnam): Remove hardcoded limit on temporary file name length. Don't assume sizeof (pid_t) <= sizeof (int).
* (longopts, private_tempnam): Change NULL to 0.Paul Eggert1993-05-261-25/+25
|
* entered into RCSRichard M. Stallman1993-02-111-1/+5
|
* *** empty log message ***Paul Eggert1992-11-091-1/+1
|
* *** empty log message ***Paul Eggert1992-09-241-18/+40
|
* *** empty log message ***David MacKenzie1992-09-151-1/+1
|
* *** empty log message ***Richard M. Stallman1992-09-041-5/+5
|
* *** empty log message ***David MacKenzie1992-07-071-71/+13
|
* Initial revisionDavid MacKenzie1992-07-071-0/+1099