summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-08-03(use_name, main, print_user, xgetgroups, print_group_list,Paul Eggert
print_full_info): Use bool for booleans. (problems): Remove, replacing with.... (ok): New var (inverted from old sense). (print_user, print_group, print_full_info): Print uids/gids with %lu, not %u. (xgetgroups): Don't run out of memory if getgroups or getugroups returns -1.
2004-08-03(presume_input_pipe, print_headers, have_read_stdin,Paul Eggert
write_header, elide_tail_bytes_pipe, elide_tail_bytes_file, elide_tail_lines_pipe, elide_tail_lines_seekable, elide_tail_lines_file, head_bytes, head_lines, head, head_file, string_to_integer, main): Use bool for booleans. (main): Rewrite to avoid cast.
2004-08-03(TAB_WIDTH): New macro; use it instead of "8".Paul Eggert
(fold_file, main): Use bool for booleans. (fold_file, main): Use size_t for sizes. (main): Allow -w options up to SIZE_MAX - TAB_WIDTH - 1, instead of prohibiting widths greater than INT_MAX.
2004-08-03(wheel_tab): Use unsigned char instead of unsignedPaul Eggert
int, since it suffices. (factor, print_factors): Use size_t for sizes. (print_factors, do_stdin, main): Use bool for booleans.
2004-08-03(nextarg): Use bool for booleans.Paul Eggert
2004-08-03(main): Use bool for booleans.Paul Eggert
2004-08-03(show_date, rfc_format, batch_convert, main): Use bool for booleans.Paul Eggert
2004-08-03(cut_fields): Use to_uchar rather than a cast.Paul Eggert
(cut_file, main): Use bool for booleans.
2004-08-03(struct line): Use size_t for sizes.Paul Eggert
(main): Remove unnecessary cast.
2004-08-03int fixes for fmt, expand, dircolors, dd, seq, sleep, tail, hostname,Paul Eggert
pinky, uptime, users, who, install, du, df.
2004-08-03(wide-1, wide-2, bad-suffix): Adjust to today's fmt.c fixes.Paul Eggert
2004-08-03(COST, MAXWORDS): Add a comment describing some ofPaul Eggert
fmt's arbitrary limits. (TRUE, FALSE): Remove; all uses changed to (true, false). (main): Use bool for booleans. Limit maximum width to MAXCHARS / 2. Use xstrtoul, not xstrtol, to parse width. (copy_rest): Remove unnecessary cast. (get_prefix): Rewrite to avoid cast. (check_punctuation): Use char *, not unsigned char *; C89 requires this. Avoid off-by-one buffer read overrun when line is empty. (flush_paragraph): Don't assume wptr-parabuf is <= INT_MAX. Remove unnecessary casts.
2004-08-02(convert_entire_line, have_read_stdin, parse_tabstops,Paul Eggert
next_file, expand, main): Use bool for booleans. (tab_size, tab_list, add_tabstop, parse_tabstops, validate_tabstops, expand, main): Use uintmax_t for column counts. (add_tabstop): Don't reserve -1 (now UINTMAX_MAX) as a special value. All callers changed. (parse_tabstops): Don't pass a negative char to isblank. Avoid memory leak with large tab stops. (validate_tabstops, expand): Don't assume number of tab stops is <= INT_MAX. (next_file, main): Use EXIT_SUCCESS/EXIT_FAILURE rather than 0/1 when storing values into exit_status. (expand): Use same pattern as unexpand for reading chars. Report an error when input line is too long, instead of silently screwing up. Do not mishandle tab stops when backspacing left over start of line.
2004-08-02(have_read_stdin, append_quoted,Paul Eggert
dc_parse_stream, dc_parse_file, main): Use bool for booleans. (dc_parse_stream): Use enum for state, rather than int. Use ssize_t to store getline result.
2004-08-02(translation_needed, parse_integer, scanargs,Paul Eggert
apply_translations, char_is_saved, swab_buffer, skip_via_lseek): Use bool for booleans. (translate_buffer): Use to_uchar rather than a cast. (swab_buffer, copy_simple, copy_with_unblock): Use size_t for sizes.
2004-08-02Include limits.h, stdbool.h.Paul Eggert
(CHAR_BIT): Remove. (timespec_subtract, xnanosleep): Use bool for booleans.
2004-08-02unsigned -> unsigned intPaul Eggert
2004-08-02unsigned -> unsigned intPaul Eggert
2004-08-02Include <stdbool.h>.Paul Eggert
(yesno): Return bool, not int.
2004-08-02Include yesno.h first.Paul Eggert
(yesno): Return bool, not int.
2004-08-02(errno): Remove decl; we now assume C89 or better.Paul Eggert
(__xstrtol): Rewrite to avoid casts.
2004-08-02Just include xstrtol.h rather than rolling our own include pattern.Paul Eggert
2004-08-02Just include xstrtol.h rather than rolling our own include pattern.Paul Eggert
2004-08-02Log today's int-related changesPaul Eggert
2004-08-02(version_etc_va): Use size_t for sizes.Paul Eggert
2004-08-02Include <stdbool.h>.Paul Eggert
(same_name): Return bool, not int.
2004-08-02(errno): Remove decl; we now assume C89 or better.Paul Eggert
(same_name): Return bool, not int.
2004-08-02Rewrite to avoid casts.Paul Eggert
2004-08-02Include stdbool.h.Paul Eggert
(quotearg_buffer_restyled): Use bool for booleans.
2004-08-02nanosleep.c (errno): Remove decl; we now assume C89 or better.Paul Eggert
Include stdbool.h. (rpl_nanosleep): Usee bool for booleans.
2004-08-02Use Autoconf-suggested pattern for inttypes and stdint.Paul Eggert
2004-08-02Update copyright.Paul Eggert
2004-08-02Use Autoconf-suggested pattern for inttypes and stdint.Paul Eggert
2004-08-02Use Autoconf-suggested pattern for inttypes and stdint.Paul Eggert
2004-08-02(hash_string): Rewrite to avoid cast.Paul Eggert
2004-08-02Include <stdbool.h>.Paul Eggert
(hard_locale): Return bool, not int.
2004-08-02hard-locale.c (hard_locale): Return bool, not int.Paul Eggert
2004-08-02Include <stdbool.h>.Paul Eggert
(getloadavg_initialized): Use bool for booleans.
2004-08-02(lookup_word): Rewrite to avoid cast.Paul Eggert
2004-08-02(textutils_fileblocks_unused): Make it a typedefPaul Eggert
instead of an int, to save a few bytes in the object file.
2004-08-02Update copyright.Paul Eggert
2004-08-02(enum canonicalize_mode_t): Reformat comments to fit in 80 columns.Paul Eggert
2004-08-02(errno): Remove decl; we now assume C89 or better.Paul Eggert
2004-08-02(struct File_spec, reopen_inaccessible_files, count_lines,Paul Eggert
forever, from_start, print_headers, have_read_stdin, valid_file_spec, write_header, file_lines, pipe_lines, pipe_bytes, recheck, tail_forever, tail_bytes, tail_lines, tail, tail_file, parse_obsolescent_option, parse_options, main): Use bool for booleans. (struct File_spec, max_n_unchanged_stats_between_opens, parse_options): Use uintmax_t, not unsigned int or unsigned long int, for state counters. (tail_bytes, tail_lines): Redo test of return value (-1, 0, 1) to make it a bit clearer.
2004-08-02(apply_suffix): Use bool for booleans.Paul Eggert
2004-08-02(equal_width, valid_format, main): Use bool for booleans.Paul Eggert
2004-08-02(xstrtod): Return bool, not int. Invert the sense of the boolean.Paul Eggert
All uses changed.
2004-08-02(xstrtod): Return bool, not int. Invert the sense of the boolean.Paul Eggert
All uses changed.
2004-08-02Include "xgethostname.h".Paul Eggert
(xgethostname): Remove decl; xgethostname.h has it. (sethostname) [!defined(HAVE_SETHOSTNAME) && defined(HAVE_SYSINFO) && defined (HAVE_SYS_SYSTEMINFO_H) && defined(HAVE_LIMITS_H)]: Use prototypes rather than K&R form. Assume any negative value from sysinfo denotes failure, not just -1. (main): Simplify use of sethostname.
2004-08-02Don't include <sys/types.h> or "exit.h"; no longer needed.Paul Eggert
(errno): Remove decl; we now assume C89 or better. Include unistd.h if available, for gethostname. (ENAMETOOLONG): Define to 0, not 9999, to avoid colliding with existing errno values if any. (gethostname): Remove decl, since unistd.h declares it (or doesn't, in which case it's an older system and it should just work). (xgethostname): Don't assume host name length is less than INT_MAX. Exit if malloc fails, just as the comment says.