summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-09-09(binary_operator): Correct typo in diagnostic.Jim Meyering
From Jochen Hein.
2001-09-08(copy_internal): Add braces around now-multi-stmtJim Meyering
if-block. This fixes a bug introduced by my 2001-08-06 change.
2001-09-07Correct copyright notice as per latest coding standards.Jim Meyering
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-04(get_link_name): Update use of xreadlink.Jim Meyering
2001-09-01(show_point): Use canonicalize_file_name, if possible.Jim Meyering
[HAVE_RESOLVEPATH], [!HAVE_RESOLVEPATH]: Use malloc, not alloca, so that these two paths also produce `resolved' in malloc'd storage. Free that memory when done with it.
2001-09-01(get_link_name): Restore error-handling that was removed by preceding delta.Jim Meyering
2001-09-01Include "xreadlink.h".Jim Meyering
(get_link_name): Don't use PATH_MAX. Rewrite to use xreadlink.
2001-08-31(bool): Remove typedef, now that it's in system.h.Jim Meyering
(TRUE): Define to `true', not 1. (FALSE): Define to `false', not 0.
2001-08-31(copy_dir): Remove st_size argument.Jim Meyering
2001-08-31(count_entry): Remove st_size argument.Jim Meyering
2001-08-31(change_dir_mode): Remove statp arg; no longer needed.Jim Meyering
2001-08-31(change_dir_owner): Remove statp arg; no longer needed.Jim Meyering
2001-08-31Do not include savedir.h; not used.Jim Meyering
2001-08-31Include full-write.h.Jim Meyering
(full_write): Remove decl; not needed.
2001-08-31copyrightJim Meyering
2001-08-31Include full-write.h.Jim Meyering
(full_write): Remove decl; not needed. (simple_cat, cat): Don't assume read and write size fits in int.
2001-08-31(full_write): Remove decl; not needed.Jim Meyering
2001-08-31(full_write): Remove decl; not needed.Jim Meyering
2001-08-31(full_write): Remove decl; not needed.Jim Meyering
2001-08-31Include full-write.h.Jim Meyering
(full_write): Remove decl; not needed. (open_fd): Don't assume read and write size fits in int.
2001-08-31Include full-write.h.Jim Meyering
(full_write): Remove decl; not needed. (copy_reg): Don't assume read and write size fits in int.
2001-08-31* src/remove.c: Move true/false definitions and include from here...Jim Meyering
* src/system.h: ...to here.
2001-08-31copyrightJim Meyering
2001-08-31(count_entry, main): Reflect changes to the exclude functions.Jim Meyering
2001-08-28(main): Diagnose an invalid width option.Jim Meyering
2001-08-28(main): Correct the diagnostic for invalid argument to -w.Jim Meyering
2001-08-26(mergefps): Do not allocate at least sort_size bytes for each merge buffer.Jim Meyering
Instead, allocate at least sort_size bytes total.
2001-08-26(nextarg): Use strcoll, not strcmp.Jim Meyering
2001-08-25(main): Fix a typo in the previous patch: missingJim Meyering
a bounds check for examples like `uniq a b c'.
2001-08-25(main): Fix some more incompatibilities with POSIX.2,Jim Meyering
(e.g. `uniq +3 --' did not work) by invoking getopt_long with leading '-', resembling what was done to 'sort' on 2001-03-20. Recognize an +N option only if it is an integer in range, and (if POSIXLY_CORRECT) only if a file name argument has not been seen; otherwise silently treat it as a file name. If the user specifies too many operands, output the first one in the error message, as a diagnostic aid.
2001-08-25(main): Don't report an error when given the valid options `+3 -d'.Jim Meyering
2001-08-25(different): Don't assume that lengths can fitJim Meyering
into size_t. Tune code for the common case where the line lengths differ: we avoid comparing them entirely in that case.
2001-08-25Remove arbitrary restrictions on sizes, fixing a bug reportedJim Meyering
by Geoff Whale. (skip_fields, skip_chars, check_chars): Now size_t, not int. (size_opt): New function. Do not arbitrarily reject size zero. Change the wording of the error message slightly, for convenience. (find_field): Use size_t, not int, to compute sizes. (different, main): check_chars==0 is no longer a special case, as it defaults to SIZE_MAX. (main): Check for overflow with args like -234234234234234. Use 'size_opt' to convert optional arguments to sizes.
2001-08-25(find_field): Don't count trailing newline to beJim Meyering
part of the field. This disagrees with POSIX.2, but it's gotta be a bug in the standard. An interpretations request has been submitted to PASC.
2001-08-24Use `n_users' in place of `argc - optind' in two more places.Jim Meyering
2001-08-24(main): Fail if -l is specified with no username.Jim Meyering
2001-08-24(usage): Clarify description of -l. From Clark Morgan.Jim Meyering
2001-08-24(posixly_correct): Remove; no longer needed.Jim Meyering
(main): Do not worry about POSIXLY_CORRECT, as it's OK for expr to have options (so long as they do not begin with digits).
2001-08-18(nextarg): Advance ARGS by one if the next token matches.Jim Meyering
All callers changed.
2001-08-18(isstring): Remove.Jim Meyering
(eval2): Do comparisons as strings first, before trying to convert to integer. This avoids loss of information and wrong result, e.g. for "expr '00' '<' '0!'", where you don't want to convert '00' to '0'.
2001-08-18Code cleanup to avoid tricky macros and old-style function declarations.Jim Meyering
(cmpf, less_than, less_equal, equal, not_equal, greater_equal, greater_than, arithf, arithdivf, plus, minus, multiply, divide, mod): Remove. (eval4, eval3, eval2): Rewrite to avoid the need for the above macros and functions.
2001-08-18(binary_operator): Move declarations of lt,rt `down'Jim Meyering
into the scopes where they're actually used. (unary_operator): Likewise for `fd'.
2001-08-18(isint, binary_operator, unary_operator):Jim Meyering
Use intmax_t for argument integers, not long. (age_of, binary_operator): Use time_t for times, not long. (unary_operator): If N is out of int range, -t N now returns false.
2001-08-18(main): Handle a leading "--" option as POSIX requires.Jim Meyering
2001-08-18(toarith): Don't accept plain "-" as a valid integer.Jim Meyering
2001-08-18Modify 'expr' so that it uses intmax_t, not int, to calculateJim Meyering
the value of integer expressions. (struct valinfo.i): Now intmax_t, not int. (docolon, int_value, str_value, isstring, nextarg, toarith, freev, tostring, trace): Remove unnecessary forward decls. (int_value, printv, tostring, toarith, arithf, arithdivf, docolon, eval6, eval4, eval3): Do integer arithmetic using intmax_t, not int. (docolon): Don't assume size_t fits in int.
2001-08-18Revert part of last change and solve the problem a better way.Jim Meyering
(show_date) [--rfc-822]: Set LC_ALL=C just before calling strftime and restore it just afterwards. Suggestion from Ulrich Drepper.
2001-08-18(show_date) [--rfc-822]: Don't space-pad the day of the month.Jim Meyering
Set only LC_TYPE to the "C" locale. Setting LC_ALL is overkill, and would have unwanted side effects if there is an error message.
2001-08-18(head_bytes): Read no more than the specified number of bytes.Jim Meyering
2001-08-16(main): When there are too many non-option arguments,Jim Meyering
include the first offending argument in the diagnostic. Suggestion from Karl Berry.