Commit Graph
594 Commits
Author SHA1 Message Date
Jim Meyering fdfd720ec4 (output): Use STDOUT_FILENO instead of `1' in xwrite call. 1994-11-17 12:49:38 +00:00
Jim Meyering 53c46c67ac (dump_remainder): Flush standard output just before
sleeping so that `tail -f' will output partial lines sooner.
This applies only when following the end of a single file.
From Leonard N. Zubkoff <lnz@dandelion.com>.

(file_lines, pipe_lines, pipe_bytes, start_bytes, start_lines, dump_remainder):
Use STDOUT_FILENO instead of `1' in XWRITE calls.
1994-11-17 12:49:10 +00:00
Jim Meyering 13e79f4f72 Include <getopt.h> instead of "getopt.h". 1994-11-16 13:19:25 +00:00
Jim Meyering 67af2936fa (tempname): Merge two very similar sprintf stmts into one. 1994-11-16 13:16:53 +00:00
Jim Meyering 5d9de33889 Use BUFSIZ instead of BUFSIZE. 1994-11-16 13:13:07 +00:00
Jim Meyering 5356de1df7 Rewriting to help it pass a reasonable suite of tests. 1994-11-16 13:10:34 +00:00
Jim Meyering c85cac33ab Declare DELIM to be `int' rather than unsigned char. 1994-11-16 13:09:13 +00:00
Jim Meyering b4a1e5cb83 . 1994-11-16 13:06:45 +00:00
Jim Meyering c35f55124b . 1994-11-16 13:05:38 +00:00
Jim Meyering 005bf81461 . 1994-11-14 22:31:47 +00:00
Jim Meyering 6b558ed117 (my_strtol): New function.
(main): Use it instead of atoi to convert argument strings to
major and minor device numbers.  Now, mknod diagnoses invalid
device numbers and accepts octal and hexadecimal as well as
decimal string arguments.  Ralf Lammers
<rlammers@physik.uni-osnabrueck.de> suggested that mknod accept
hex device numbers for compatibility with HPUX's mknod program.
1994-11-11 16:14:19 +00:00
Jim Meyering b81d2117e2 (SOURCES): Add strtol.c. 1994-11-11 16:10:16 +00:00
Jim Meyering 34406025e5 . 1994-11-09 20:16:23 +00:00
Jim Meyering 75d902ef01 . 1994-11-08 22:40:52 +00:00
Jim Meyering da098ddd8a . 1994-11-07 12:55:05 +00:00
Jim Meyering cb4c5aaf0a Initial revision 1994-11-07 12:47:50 +00:00
Jim Meyering 8761507929 . 1994-11-07 05:38:19 +00:00
Jim Meyering ba2a317029 . 1994-11-07 05:37:05 +00:00
Jim Meyering c47ec4af2a Add test names. 1994-11-07 04:36:41 +00:00
Jim Meyering 1f875effab Add -w and clean up. 1994-11-07 04:36:07 +00:00
Jim Meyering 4c722a96ba merge with 1.12 1994-11-06 17:51:23 +00:00
Jim Meyering c67fdb5c94 merge with 1.11 1994-11-06 17:47:32 +00:00
Jim Meyering 398d617cc9 merge with 1.10 1994-11-06 17:42:51 +00:00
Jim Meyering 0683ef74d1 Initial revision 1994-11-06 17:40:20 +00:00
Jim Meyering 4f89d5bcfa merge with 1.12 1994-11-05 14:17:55 +00:00
Jim Meyering 9bfdace83a merge with 3.10 1994-11-05 13:37:38 +00:00
Jim Meyering fad3ef71a4 merge with 3.9u1 1994-11-04 16:50:04 +00:00
Jim Meyering c21a3a4ec6 merge with 1.9.1k1 1994-11-04 16:43:33 +00:00
Jim Meyering 05bcdf4d41 . 1994-11-04 14:48:40 +00:00
Jim Meyering cda4ac2e91 . 1994-11-04 14:15:12 +00:00
Jim Meyering 8de255ea61 Change _P to __P. 1994-11-04 14:04:43 +00:00
Jim Meyering 4b579f1836 . 1994-11-04 14:04:03 +00:00
Jim Meyering 8edc08d48e Include makepath.h.
Add an argument: PRESERVE_EXISTING.
Declare char* arguments const.
1994-11-04 06:05:34 +00:00
Jim Meyering 3b99cd3ae3 . 1994-11-04 06:04:42 +00:00
Jim Meyering 0ccaadc62c Include <limits.h> before system.h because limits.h on
some systems undefines PATH_MAX, whereas system.h includes pathmax.h
which sets PATH_MAX.  From Kaveh Ghazi.
1994-11-04 06:04:02 +00:00
Jim Meyering aebff608dc (make_path_private): Rename function from make_path to avoid confusion.
(do_copy): Update caller.
1994-11-04 06:03:25 +00:00
Jim Meyering 0e1e2d8069 (DISTFILES): Add makepath.h.
(makepath.o): Depend on it.
1994-11-04 06:02:21 +00:00
Jim Meyering 7cced49416 Update calls to make_path. 1994-11-04 06:00:41 +00:00
Jim Meyering 70fe5e3261 . 1994-11-03 22:32:35 +00:00
Jim Meyering b808409fe7 (rwx): Use S_IRUSR, S_IWUSR, S_IXUSR instead of obsolete
S_IREAD, S_IWRITE, S_IEXEC.
Make sure the former three are defined.
1994-11-03 22:03:54 +00:00
Jim Meyering 17a29b6eea Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of _IEXEC if they're not
already defined.  Reported by Daniel Hagerty <hag@gnu.ai.mit.edu>.
1994-11-03 22:03:16 +00:00
Jim Meyering 8d447abdbf merge with 3.9t3 1994-11-03 04:34:05 +00:00
Jim Meyering 1423156a9c merge with 1.9.1j2 1994-11-03 04:33:52 +00:00
Jim Meyering 40f3df0acd merge with 1.9.1j2 1994-11-03 04:33:22 +00:00
Jim Meyering 4e253268e1 merge with 1.10x1 1994-11-03 00:58:25 +00:00
Jim Meyering 21229f21b4 . 1994-11-02 23:55:02 +00:00
Jim Meyering 995c18ba28 . 1994-11-02 05:24:13 +00:00
Jim Meyering c6411b91f5 (cat): Conditionalize test for errno == ENOSYS. It's not
defined on some Next and Alliant systems.  From Kaveh Ghazi.
1994-11-02 05:21:37 +00:00
Jim Meyering 346a1b2351 (cut_bytes): Print at least a newline for every line of input.
(cut_fields): Print a newline even for lines whose only selected
field is empty.  But print nothing when using -s without -f1.
And print nothing for empty input.  Reported by
Richard_Sharman@software.mitel.com.
1994-11-02 05:04:17 +00:00
Jim Meyering 32340b45e7 (XWRITE): Guard against calling xwrite with n_bytes == 0. 1994-11-01 22:38:11 +00:00