summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-12-04*** empty log message ***Jim Meyering
2004-12-04*** empty log message ***Jim Meyering
2004-12-04*** empty log message ***Jim Meyering
2004-12-04(complement, COMPLEMENT_OPTION): New.Jim Meyering
(longopts): Add --complement. (usage): Say not that -b, -c, and -f `print' fields, but rather that they `select' fields for printing. Describe the new --complement option. (mark_range_start): Extracted from set_fields. (print_kth): Support --complement. (compare_ranges): New function. (set_fields): Rewrite the part that populates range_start_ht, merging it with the part that populates printable_field. (main): Handle --complement. From Paolo Bonzini.
2004-12-04* src/tail.c (tail_file): Set errnum to -1 if the initial "tail" failed.Paul Eggert
2004-12-04(tail_file): Set errnum to -1 if the initial "tail" failed.Paul Eggert
2004-12-03Mention copyright notice in latest checkin.Paul Eggert
2004-12-03Recent changes to save-cwd, openat.Paul Eggert
2004-12-03Regenerate.Paul Eggert
2004-12-03Import from gnulib.Paul Eggert
2004-12-03Add copyright notice.Paul Eggert
(gl_FUNC_OPENAT): Require gl_USE_SYSTEM_EXTENSIONS, since Solaris requires __EXTENSIONS__ to be defined when compiling pedantically.
2004-12-03Add copyright and authorship notice.Paul Eggert
(AT_FDCWD): Use the same value Solaris 9 uses.
2004-12-03Include "openat.h" before other include files.Paul Eggert
Include "exitfail.h". (openat): Remove #undef; no longer needed now that we include openat.h first. (rpl_openat): Add comment about mode_t promotion. Simplify code a bit by moving initializations around. Use exit_failure rather than EXIT_FAILURE.
2004-12-03save-cwd.c: Include "save-cwd.h" before other include files.Paul Eggert
(O_DIRECTORY): Remove; not needed here, since "." must be a directory. All uses removed. (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is universal on Suns, and we also need to test for IRIX. Revamp code to use 'if' rather than '#if'. Avoid unnecessary comparison of cwd->desc to 0.
2004-12-02*** empty log message ***Jim Meyering
2004-12-02With using --color and with LS_COLORS saying not to colorJim Meyering
executables, don't stat every file. (is_colored): New function. (gobble_file): Use it. (main): Use it here, in place of too-strict tests against NULL: if either ORPHAN or MISSING was set to 0 from LS_COLORS, the old test would fail.
2004-12-02Assume setlocale, locale.h, and localeconv exist and work.Paul Eggert
2004-12-02(different): Assume setlocale exists.Paul Eggert
2004-12-02Assume locale.h exists.Paul Eggert
(HAVE_SETLOCALE): Remove.
2004-12-02(C_DECIMAL_POINT): Remove. Use changed to '.'.Paul Eggert
Assume setlocale exists. (thousands_sep): Renamed from th_sep. (IS_THOUSANDS_SEP): Remove. All uses replaced by comparisons. (NONZERO): Parenthesize use of arg. (numcompare): Avoid duplicate loads. Use ISDIGIT as boolean, for consistency. Avoid unnecessary negation by reversing fraccompare args. (main): Rewrite localeconv call to match seq.c.
2004-12-02(decimal_point): Treat like sort. Now char.Paul Eggert
All uses changed.
2004-12-02(keycmp): Assume setlocale exists.Paul Eggert
2004-12-02(compare_files): Assume setlocale exists.Paul Eggert
2004-12-02(gl_MACROS): Assume localeconv exists.Paul Eggert
2004-12-02(gl_HUMAN): Assume locale.h and localeconv exist.Paul Eggert
2004-12-02(gl_HARD_LOCALE): Assume locale.h and setlocale exist.Paul Eggert
2004-12-02Assume <locale.h> exists.Paul Eggert
(human_readable): Assume localeconv exists.
2004-12-02Assume <locale.h> exists.Paul Eggert
Include "strdup.h". (GLIBC_VERSION): New macro. (hard_locale): Assume setlocale exists. Rewrite to avoid #ifdef. Use strdup rather than malloc + strcpy.
2004-12-02* src/ls.c (sort_files): Minor cleanup.Paul Eggert
2004-12-02(sort_files): Minor cleanup. Remove an unnecessaryPaul Eggert
'volatile' on a local variable. Rewrite to avoid unnecessary double-assignment to 'func' in the usual case where strcoll does not fail.
2004-12-01Regenerate.Paul Eggert
2004-12-01* getcwd.c: Use system getcwd first, if appropriate.Paul Eggert
2004-12-01* getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):Paul Eggert
Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
2004-12-01(gl_FUNC_GETCWD_PATH_MAX):Paul Eggert
Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
2004-12-01(is_ENAMETOOLONG): New macro.Paul Eggert
(__getcwd.c): Don't restore errno; glibc doesn't. [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd first, falling back to our code only if its results look suspicious. Ensure that the resulting buffer is only as large as necessary.
2004-12-01Go back to including <sys/types.h> rather than <stddef.h>; this isPaul Eggert
needed on OpenBSD since its <utmp.h> needs time_t without making sure that time_t is defined.
2004-11-30* readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.Paul Eggert
2004-11-30(gl_READUTMP): Don't check for sys/param.h.Paul Eggert
2004-11-30Make readutmp more consistent among its client code.Paul Eggert
2004-11-30(USER_PROCESS, RUN_LVL, INIT_PROCESS, LOGIN_PROCESS,Paul Eggert
DEAD_PROCESS, BOOT_TIME, NEW_TIME, UT_TYPE_UNDEF, UT_TYPE): Remove. (IS_USER_PROCESS): Move to ../lib/readutmp.h. (UT_TYPE_RUN_LVL, UT_TYPE_INIT_PROCESS, UT_TYPE_LOGIN_PROCESS, UT_TYPE_DEAD_PROCESS, UT_TYPE_NEW_TIME): New macros. (gethostname): Remove decl. (list_entries_who, scan_entries): Use the new macros defined above, for consistency with pinky, uptime, and users.
2004-11-30(list_entries_users): Use IS_USER_PROCESSPaul Eggert
instead of by-hand code.
2004-11-30(print_uptime): Use IS_USER_PROCESS andPaul Eggert
UT_TYPE_BOOT_TIME instead of by-hand code.
2004-11-30(gethostname): Remove decl.Paul Eggert
(scan_entries): Use IS_USER_PROCESS instead of by-hand code. * src/uptime.c (print_uptime): Use IS_USER_PROCESS and UT_TYPE_BOOT_TIME instead of by-hand code.
2004-11-30Don't include <sys/types.h>, <errno.h>,Paul Eggert
<sys/param.h>, <time.h>; not needed to establish interface. Include <stddef.h> instead. (errno): Remove decl. (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed. (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME, UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
2004-11-30Include readutmp.h first.Paul Eggert
Include <errno.h>, since readutmp.h no longer does that.
2004-11-30tweak temp file name to be more consistentJim Meyering
2004-11-30.Jim Meyering
2004-11-30.Jim Meyering
2004-11-30*** empty log message ***Jim Meyering
2004-11-30*** empty log message ***Jim Meyering