| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
| |
(long_options, main, usage): Add `--help'.
(main): Send version number to stdout, not stderr. Exit afterwards.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
(xmalloc): Make defn static, like declaration.
|
|
|
|
|
| |
(expand_name, lf_snarf): bcopy -> memcpy
(interact): index -> strchr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|