summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-05-21(S_ISLNK, S_ISFIFO, S_ISSOCK, S_ISCHR, S_ISBLK, S_ISDOOR): Define here instead.Jim Meyering
2002-05-21(S_ISLNK, S_ISFIFO S_ISSOCK S_ISCHR S_ISBLK S_ISDOOR): Remove definitions.Jim Meyering
2002-05-14This bug was introduced with my change of 2000-10-22 (textutils-2.0.8).Jim Meyering
(ulonglong_t): Move declaration to precede new use. [enum size_spec] (N_SIZE_SPECS): New member. (width_bytes): Add initializer corresponding to ulonglong_t type. (struct assert_width_bytes_matches_size_spec_decl): Declare. Based on a patch from Tony Kocurko.
2002-05-03Add FIXME comment.Jim Meyering
2002-05-03(print_uptime): Fix last change so that we use ngettext properly.Jim Meyering
2002-05-03(print_uptime): Use ngettext for day/days and user/users.Jim Meyering
Suggestion from Karl Eichwalder.
2002-05-03(usage): Add a little to the description of --list.Jim Meyering
Uncapitalize first word and remove period at end of each one line option description.
2002-05-03(usage): Tweak description of --users.Jim Meyering
From Karl Eichwalder.
2002-04-30(keycompare, compare): Replace #ifdef ENABLE_NLS with if (HAVE_SETLOCALE).Jim Meyering
(hard_LC_COLLATE): Define even if ! ENABLE_NLS. (main): Always initialize hard_LC_COLLATE. Put initialization next to other locale-related stuff. Include <langinfo.h> even if ! ENABLE_NLS. (decimal_point, th_sep): Depend on HAVE_SETLOCALE, not ENABLE_NLS. (main): Likewise. (MONTHTAB_CONST): Remove; all uses removed. (struct_month_cmp, inittables): Do not depend on ENABLE_NLS. (main): hard_LC_TIME locale does not depend on ENABLE_NLS.
2002-04-30(keycmp): Replace #ifdef ENABLE_NLS with if (HAVE_SETLOCALE).Jim Meyering
(hard_LC_COLLATE): Define even if ! ENABLE_NLS. (main): Always initialize hard_LC_COLLATE. Put initialization next to other locale-related stuff.
2002-04-30(compare_files): Replace #ifdef ENABLE_NLS with if (HAVE_SETLOCALE).Jim Meyering
(hard_LC_COLLATE): Define even if ! ENABLE_NLS. (main): Always initialize hard_LC_COLLATE. Put initialization next to other locale-related stuff.
2002-04-30(HAVE_SETLOCALE): Define to 0 if not defined.Jim Meyering
2002-04-29(tail_forever): Do not treatJim Meyering
max_n_unchanged_stats_between_opens specially (as if it were infinite) if it has its maximal value. Similarly for max_n_consecutive_size_changes_between_opens.
2002-04-29(parse_obsolescent_option): Do not limit the maximumJim Meyering
line/byte count to be less than ULONG_MAX on systems where OFF_T_MAX is larger.
2002-04-28add comment for prev changeJim Meyering
2002-04-28(make_id_equals_comment): Cast sizeof expression (used as fieldJim Meyering
width argument) to `int'.
2002-04-28(PIDSTR_DECL_AND_INIT): Cast ut_pid value to int.Jim Meyering
2002-04-28Don't include xalloc.h.Jim Meyering
It's already included via system.h.
2002-04-28Rewrite from scratch. Support everythingJim Meyering
required by POSIX 1003.1-2001; when this conflicts with Bash, stick with POSIX. The conflicts are kill -l output format, and lower case signal names preceded by `-' (e.g., "kill -hup" is no longer supported). Remove -L or --long-list option. Add -t or --table option. Rename --sigspec to --signal; remove --signum and do not advertise obsolescent option -n. Use str2sig and str2sig to convert between signal names and numbers.
2002-04-28Avoid new warnings from gcc.Jim Meyering
[struct COLUMN] <name>: Declare member to be const. (init_fps): Declare local variable `firstname' to be const.
2002-04-28(integer_expected_error): Add `const' to paramaterJim Meyering
declarations to avoid new warning from gcc.
2002-04-28(test_syntax_error): Add `const' to paramaterJim Meyering
declarations to avoid new warning from gcc.
2002-04-27(cycle_check): Add a comment.Jim Meyering
2002-04-27(cycle_check): New function containing code factoredJim Meyering
out of remove_dir. The sole difference is that upon detecting a cycle, rm now dies unconditionally. Before, in interactive mode, it would ask the user whether to continue. (remove_dir): Call cycle_check.
2002-04-25(usage): Adjust ordering to match that of default output.Jim Meyering
2002-04-25Avoid warnings from gcc.Jim Meyering
Declare input_file and output_file to be `const'. (skip): Declare `file' parameter to be `const', too.
2002-04-25Remove hash table, active_dir_map, used to detect directory cycles.Jim Meyering
Instead, detect them lazily with just O(1) memory. Suggestion from Andi Kleen. (is_power_of_two): New function. (print_nth_dir, make_active_dir_ent): Remove functions. (hash_active_dir_ent, hash_compare_active_dir_ents): Likewise. (remove_dir): Check for cycles here, ... (rm): ... and don't check for cycles here. (rm): Call fspec_get_full_mode here, rather than fspec_get_filetype_mode. We want to get the dev/ino earlier, and at the same time as when we get the file type, to avoid the risk that an attacker would change e.g. a directory to a symlink before we record its dev/ino.
2002-04-25Revert last change.Jim Meyering
2002-04-25Revert last change.Jim Meyering
2002-04-25Remove ENABLE_NLS-related code.Jim Meyering
(_, N_) Remove definitions. Include "gettext.h" instead.
2002-04-22(rm): Call exit with EXIT_FAILURE, not `1'.Jim Meyering
2002-04-22(main): Adjust caller of remove_init.Jim Meyering
2002-04-22(do_move): Adjust caller of remove_init.Jim Meyering
2002-04-22(remove_init): Adjust prototype.Jim Meyering
2002-04-22(rm, remove_init, remove_fini): Don't use or evenJim Meyering
initialize the active_dir_map unless --recursive (-r) is specified.
2002-04-17(touch): Don't report errors for nonexistent filesJim Meyering
when --no-create is in effect. Based on a patch from TAKAI Kousuke.
2002-04-16(UT_TYPE_UNDEF, UT_TYPE, IS_USER_PROCESS): Define.Jim Meyering
(print_line): Use "%-8.8s" for the format: the user name is not always NUL terminated. (scan_entries) [need_users]: Use IS_USER_PROCESS, so that this works even on systems without ut_type.
2002-04-16(BOOT_TIME): Define.Jim Meyering
(NEW_TIME): Define to 0, not INT_MAX. (UT_PID, UT_ID, UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define. Replace literal uses of ut_pid, ut_id, and ut_exit members with uses through macros. (make_id_equals_comment): New function, factored out of three others.
2002-04-16(human_fstype): Rename from print_human_fstype, and rework accordingly.Jim Meyering
(print_statfs): Use human_fstype to honor format width on %T.
2002-04-16Add copyright comment.Jim Meyering
2002-04-15add FIXME commentsJim Meyering
2002-04-15Include xalloc.h.Jim Meyering
Use xmalloc everywhere, not malloc.
2002-04-15Handle "lld" vs "ld" printf formats the same way Bash does.Jim Meyering
Include inttypes.h. (PRIdMAX, PRIuMAX): Define, if not already defined. (print_statfs): Use those macros, not the literal strings. (print_stat): Likewise.
2002-04-15(usage): Give a verbose description of --squeeze-repeats,Jim Meyering
including the mention of SET1.
2002-04-15(print_human_fstype): Add missing `break;' for `case S_MAGIC_MINIX:'.Jim Meyering
2002-04-15remove parens in #if directivesJim Meyering
2002-04-14(statfs_secure): Define.Jim Meyering
(print_stat): Remove another #ifdef. (do_statfs): Likewise. (print_statfs): Prefer/use fputs over printf. (print_stat): Likewise.
2002-04-14filter through GNU indentJim Meyering
2002-04-14Split some long lines.Jim Meyering
(verbose_usage): Remove function.
2002-04-14remove parens in #if directivesJim Meyering