Commit Graph
14506 Commits
Author SHA1 Message Date
Jim Meyering 72dadf240e (main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
2001-09-15 10:32:05 +00:00
Jim Meyering 917893f4d3 *** empty log message *** 2001-09-12 09:07:40 +00:00
Jim Meyering 63a52bbb4c The command `echo a|./fmt -2147483647' would cause fmt to segfault.
(fmt_paragraph): Test for sentinal directly, rather than
doing arithmetic with it's potentially large (INT_MAX) length.
2001-09-12 09:07:35 +00:00
Jim Meyering ea7b78f868 *** empty log message *** 2001-09-12 09:05:27 +00:00
Jim Meyering 707be37f35 Add wide-1 and wide-2. 2001-09-12 09:04:52 +00:00
Jim Meyering 7ef999a43f *** empty log message *** 2001-09-12 07:45:27 +00:00
Jim Meyering 73a5c3b847 *** empty log message *** 2001-09-12 07:37:50 +00:00
Jim Meyering 37991cf4a9 *** empty log message *** 2001-09-12 07:31:25 +00:00
Jim Meyering 940b6777c0 (tail invocation): Document new option: -F.
From Herbert Xu.
2001-09-12 07:31:19 +00:00
Jim Meyering e440740bd9 *** empty log message *** 2001-09-12 07:30:29 +00:00
Jim Meyering 8a6d80dda1 *** empty log message *** 2001-09-12 07:28:06 +00:00
Jim Meyering 388c1a6104 tail: accept new option: -F, equivalent to `--follow=name --retry',
for compatibility with FreeBSD and NetBSD versions of tail.

(usage): Describe new option.
(parse_options): Accept it.
2001-09-12 07:27:29 +00:00
Jim Meyering 484ce2d8de The command `echo foo| fmt -w 100000' would cause fmt to segfault.
[struct Word]: Declare members length, space, and
line_length to be of type `int', not short.
(MAXCOST): Define using TYPE_MAXIMUM.
2001-09-12 06:41:01 +00:00
Jim Meyering caa75371a8 . 2001-09-11 20:12:26 +00:00
Jim Meyering 78c5e7b7ba . 2001-09-11 20:11:47 +00:00
Jim Meyering 414207ccc7 *** empty log message *** 2001-09-11 20:11:37 +00:00
Jim Meyering 58eeea1ac8 Require UTILS_HOST_OS. 2001-09-11 20:11:30 +00:00
Jim Meyering 5ae09a5d3d *** empty log message *** 2001-09-11 20:11:04 +00:00
Jim Meyering 8deb67d1db (UTILS_HOST_OS): New file/macro.
The body, by Paul Eggert, was moved here from configure.in.
2001-09-11 20:10:44 +00:00
Jim Meyering 99eb99dc7d *** empty log message *** 2001-09-09 18:40:45 +00:00
Jim Meyering 5d1daca135 (binary_operator): Correct typo in diagnostic.
From Jochen Hein.
2001-09-09 18:40:24 +00:00
Jim Meyering 1a282c62b7 *** empty log message *** 2001-09-08 13:23:31 +00:00
Jim Meyering 4d6b3bb492 (TESTS): Add i-4. 2001-09-08 13:23:22 +00:00
Jim Meyering 55a0417174 *** empty log message *** 2001-09-08 13:22:58 +00:00
Jim Meyering 326aa5c043 (copy_internal): Add braces around now-multi-stmt
if-block.  This fixes a bug introduced by my 2001-08-06 change.
2001-09-08 13:22:41 +00:00
Jim Meyering ca01db1efe *** empty log message *** 2001-09-07 09:47:46 +00:00
Jim Meyering 14c3068647 *** empty log message *** 2001-09-07 09:47:10 +00:00
Jim Meyering deef029135 *** empty log message *** 2001-09-07 09:46:49 +00:00
Jim Meyering c21b31a36f New 'uname' options -i or --hardware-platform,
and -o or --operating-system.
'uname -a' now outputs -i and -o information at the end.
New uname option --kernel-version is an alias for -v.
Uname option --release has been renamed to --kernel-release,
and --sysname has been renamed to --kernel-name;
the old options will work for a while, but are no longer documented.
2001-09-07 09:44:07 +00:00
Jim Meyering aaeb7a61c4 Correct copyright notice as per latest coding standards.
Remove list of options in comment, which wasn't
worth maintaining separately from usage().

(print_element): Move definition up, avoiding the need for
declaration and allowing inlining on some platforms.
Keep track of whether something has been printed; this is more
natural than modifying `toprint'.

(PRINT_KERNEL_NAME): Renamed from PRINT_SYSNAME.
(PRINT_KERNEL_RELEASE): Renamed from PRINT_RELEASE.
(PRINT_KERNEL_VERSION): Renamed from PRINT_VERSION.
(PRINT_HARDWARE_PLATFORM, PRINT_OPERATING_SYSTEM): New macros.
(toprint): Remove global var; now local in `main'.
(long_options, usage, main): Implement changes described in NEWS.
Reorder options to reflect output order.
(main): Use buffers one byte longer, for compatibility with Solaris 8.
Output newline at end.  -a sets `toprint' to -1 now; this is simpler.
Do not bother invoking system calls like uname if the resulting
information does not need to be printed.
Do not fail if sysinfo fails; just print "unknown".
2001-09-07 09:43:03 +00:00
Jim Meyering 3a6d52861d *** empty log message *** 2001-09-06 14:36:28 +00:00
Jim Meyering 3737902524 (join invocation): Describe the GNU
extension to join, which does not require sorted input when
the input contains no unpairable lines.
2001-09-06 14:36:21 +00:00
Jim Meyering 09026d5413 *** empty log message *** 2001-09-04 20:28:35 +00:00
Jim Meyering c01a38db4d Revert some of the previous change; intead,
fix the HAVE_GETCWD_NULL code to behave more like the
!HAVE_GETCWD_NULL code used to.

Include "xalloc.h".
(xgetcwd): Do not return NULL when memory is exhausted; instead,
invoke xalloc_die.
2001-09-04 20:28:31 +00:00
Jim Meyering 1e50f47812 *** empty log message *** 2001-09-04 20:24:18 +00:00
Jim Meyering 87261b73b3 (get_link_name): Update use of xreadlink. 2001-09-04 20:23:48 +00:00
Jim Meyering 121f936e4f . 2001-09-04 20:22:47 +00:00
Jim Meyering a5261150bb (jm_PREREQ_XREADLINK): New macro.
(jm_PREREQ): Use it.
2001-09-04 20:22:27 +00:00
Jim Meyering d4cc62de24 *** empty log message *** 2001-09-04 20:22:18 +00:00
Jim Meyering 28526f7763 (xreadlink): Update prototype. 2001-09-04 20:21:54 +00:00
Jim Meyering beb34bac0a (xreadlink): Omit size_t* arg. All uses changed.
Use ssize_t, not int, to store result of readlink.
Check for ssize_t overflow as well as size_t overflow,
as POSIX says the result of readlink is implementation-defined
when ssize_t overflows.
Remove unnecessary cast to char*.
Use free+malloc instead of realloc, as the storage doesn't need
to be preserved and it's clearer and can be more efficient that way.
(SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
2001-09-04 20:20:16 +00:00
Jim Meyering 6ea18cc152 *** empty log message *** 2001-09-03 18:46:09 +00:00
Jim Meyering 5aa9a43b0c (fnmatch_no_wildcards): Fix confusion between
usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
spotted by Jim Meyering.
2001-09-03 18:45:20 +00:00
Jim Meyering f839ec4d47 include errno.h etc, too 2001-09-03 18:32:05 +00:00
Jim Meyering 279c73a725 *** empty log message *** 2001-09-03 18:28:36 +00:00
Jim Meyering fb18828c2c (jm_PREREQ_XGETCWD): Check for limits.h and
sys/param.h, as pathmax.h includes them.
2001-09-03 18:28:30 +00:00
Jim Meyering b2b3e046e7 *** empty log message *** 2001-09-03 18:26:58 +00:00
Jim Meyering f5d7ab79b8 tweak comment 2001-09-03 18:26:42 +00:00
Jim Meyering c9488ff0e1 (xreadlink): Preserve errno around `free' during failure. 2001-09-03 18:25:58 +00:00
Jim Meyering 8df5a2474c update comment re power of 2 2001-09-03 18:24:37 +00:00