Commit Graph
15857 Commits
Author SHA1 Message Date
Jim Meyering ebf16be3ea Use tmpdir named $0.tmp/$$. Create with mkdir -p. 2002-04-19 21:53:01 +00:00
Jim Meyering 4061c49579 Use better trap, etc. 2002-04-19 21:38:32 +00:00
Jim Meyering d01146b817 *** empty log message *** 2002-04-19 21:18:28 +00:00
Jim Meyering d0ae660607 Use better trap. 2002-04-19 21:17:45 +00:00
Jim Meyering 5aaccdf6a7 use better trap 2002-04-19 21:17:08 +00:00
Jim Meyering dc3a2321e0 Set $tmp the new way. 2002-04-19 20:50:43 +00:00
Jim Meyering 3f094fd26b Use `rm', not $RM. Use better trap. 2002-04-19 19:55:21 +00:00
Jim Meyering e86cf7f5e6 Use `rm', not $RM. Use better trap. 2002-04-19 19:54:15 +00:00
Jim Meyering ad9fd82850 Use `rm', not $RM. Use better trap. 2002-04-19 19:53:03 +00:00
Jim Meyering da5debc995 don't fiddle with TMPDIR 2002-04-19 19:51:29 +00:00
Jim Meyering 9f79f8d7e0 don't bother with TMPDIR 2002-04-19 19:47:16 +00:00
Jim Meyering 56931437e3 Use automatically-derived name for temporary
directory.  This is more 8.3-friendly.  Based on a suggestion from Richard Dawe.
2002-04-19 19:39:45 +00:00
Jim Meyering 5051a33ba6 *** empty log message *** 2002-04-17 08:55:39 +00:00
Jim Meyering 8d851e17c0 . 2002-04-17 08:54:38 +00:00
Jim Meyering 1df5e317dc (TESTS): Add no-create-missing. 2002-04-17 08:54:32 +00:00
Jim Meyering 950d7008ea *** empty log message *** 2002-04-17 08:54:21 +00:00
Jim Meyering 8a2d561e45 *** empty log message *** 2002-04-17 08:53:50 +00:00
Jim Meyering ccf99a6d4c (touch): Don't report errors for nonexistent files
when --no-create is in effect.  Based on a patch from TAKAI Kousuke.
2002-04-17 08:49:27 +00:00
Jim Meyering 78ec76159b *** empty log message *** 2002-04-17 08:47:33 +00:00
Jim Meyering 28ea23054e s/POSIX/@sc{posix}/ 2002-04-16 11:26:32 +00:00
Jim Meyering cea6ca618e *** empty log message *** 2002-04-16 10:43:04 +00:00
Jim Meyering a9ecff59e4 (jm_PREREQ_READUTMP): Also check for these members: ut_pid, ut_id, ut_exit. 2002-04-16 10:43:00 +00:00
Jim Meyering b1f44ffb39 (UT_TYPE): Remove definition (now in who.c).
(HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
(HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
2002-04-16 10:41:33 +00:00
Jim Meyering 2e0e925d3b *** empty log message *** 2002-04-16 10:39:42 +00:00
Jim Meyering 6f0db0ac6e (UT_TYPE_UNDEF, UT_TYPE, IS_USER_PROCESS): Define.
(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 10:39:29 +00:00
Jim Meyering aef17cff0f (BOOT_TIME): Define.
(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 09:49:28 +00:00
Jim Meyering 92cad6a4e5 *** empty log message *** 2002-04-16 06:51:00 +00:00
Jim Meyering 5bd81eab0f (human_fstype): Rename from print_human_fstype, and rework accordingly.
(print_statfs): Use human_fstype to honor format width on %T.
2002-04-16 06:50:54 +00:00
Jim Meyering 598064934e Add copyright comment. 2002-04-16 06:27:39 +00:00
Jim Meyering c75c37dc2b *** empty log message *** 2002-04-15 19:05:33 +00:00
Jim Meyering 67492390d4 *** empty log message *** 2002-04-15 19:04:32 +00:00
Jim Meyering 480aa4b7c1 *** empty log message *** 2002-04-15 19:03:52 +00:00
Jim Meyering 9a9958dafc Document kill. 2002-04-15 19:03:47 +00:00
Jim Meyering 2262fbb298 add FIXME comments 2002-04-15 10:46:45 +00:00
Jim Meyering a36a4fdedc *** empty log message *** 2002-04-15 10:37:45 +00:00
Jim Meyering 57d75ea4d8 Include xalloc.h.
Use xmalloc everywhere, not malloc.
2002-04-15 10:37:35 +00:00
Jim Meyering 7880914895 *** empty log message *** 2002-04-15 08:52:52 +00:00
Jim Meyering b214c8214c Handle "lld" vs "ld" printf formats the same way Bash does.
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 08:50:57 +00:00
Jim Meyering 68f054be8f *** empty log message *** 2002-04-15 08:41:34 +00:00
Jim Meyering d9feb76a02 (usage): Give a verbose description of --squeeze-repeats,
including the mention of SET1.
2002-04-15 08:41:23 +00:00
Jim Meyering 872325a656 *** empty log message *** 2002-04-15 07:21:49 +00:00
Jim Meyering d133be1fc3 (print_human_fstype): Add missing break;' for case S_MAGIC_MINIX:'. 2002-04-15 07:21:42 +00:00
Jim Meyering ad02a0f47d remove parens in #if directives 2002-04-15 07:20:15 +00:00
Jim Meyering f7d204bce4 *** empty log message *** 2002-04-14 12:53:10 +00:00
Jim Meyering 2b38bcb26a *** empty log message *** 2002-04-14 12:53:00 +00:00
Jim Meyering 6d89182e28 (statfs_secure): Define.
(print_stat): Remove another #ifdef.
(do_statfs): Likewise.
(print_statfs): Prefer/use fputs over printf.
(print_stat): Likewise.
2002-04-14 12:52:48 +00:00
Jim Meyering 30215a98cc filter through GNU indent 2002-04-14 08:20:15 +00:00
Jim Meyering c8088a6184 Split some long lines.
(verbose_usage): Remove function.
2002-04-14 08:18:49 +00:00
Jim Meyering 82395d065e *** empty log message *** 2002-04-14 08:15:22 +00:00
Jim Meyering 5120cb1bc9 remove parens in #if directives 2002-04-14 08:14:37 +00:00