Commit Graph
24019 Commits
Author SHA1 Message Date
Jim Meyering 3eb2a22131 Include unlocked-io.h. 2001-11-17 13:29:42 +00:00
Jim Meyering 1edeae648d *** empty log message *** 2001-11-17 12:21:27 +00:00
Jim Meyering 940fd633a2 Remove unsigned' attribute from type of global prefix'.
(copy_rest): Cast to (unsigned char *) before dereferencing.
(get_prefix): Likewise.
2001-11-17 12:21:00 +00:00
Jim Meyering d577c22aa6 . 2001-11-17 11:31:21 +00:00
Jim Meyering 476382ce9d . 2001-11-17 11:09:24 +00:00
Jim Meyering 5814c8c46b *** empty log message *** 2001-11-17 11:08:49 +00:00
Jim Meyering 4796fb9f3a *** empty log message *** 2001-11-17 11:04:00 +00:00
Jim Meyering fe9777a0bd *** empty log message *** 2001-11-17 10:59:07 +00:00
Jim Meyering 649d8f321e #undef mkstemp.
Include config.h.
(rpl_mkstemp): Rename from mkstemp.
Protoize.
2001-11-17 10:59:01 +00:00
Jim Meyering 6dc7d3dea2 (UTILS_FUNC_MKSTEMP): New file and macro.
Prompted by a report from Bob Proulx.
2001-11-17 08:54:26 +00:00
Jim Meyering e7389b6a8f (jm_MACROS): Don't test for mkstemp here.
Instead, require UTILS_FUNC_MKSTEMP.
2001-11-17 08:18:48 +00:00
Jim Meyering 2130b49220 *** empty log message *** 2001-11-17 07:25:14 +00:00
Jim Meyering 387827ac90 *** empty log message *** 2001-11-17 07:13:18 +00:00
Jim Meyering c322ce4c4f (jm_WINSIZE_IN_PTEM): Do not define
WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
2001-11-17 07:13:12 +00:00
Jim Meyering 9c8f7eb9b7 *** empty log message *** 2001-11-16 09:20:31 +00:00
Jim Meyering e7d469d663 [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
(physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
determine the amount of total physical memory, use pstat_getstatic.
HPUX-11 doesn't define _SC_PHYS_PAGES.
(physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
If sysconf couldn't be used to determine the amount of available
physical memory, use both pstat_getstatic and pstat_getdynamic.
Based on a patch from Bob Proulx.
2001-11-16 09:20:25 +00:00
Jim Meyering 3fad422ee5 *** empty log message *** 2001-11-14 11:53:06 +00:00
Jim Meyering 8379824202 (file_lines): Remove unnecessary cast.
(tail_lines): Could have called file_lines even though the first
lseek failed.  Fix that.
2001-11-14 11:52:59 +00:00
Jim Meyering 8b67554aec *** empty log message *** 2001-11-14 10:51:53 +00:00
Jim Meyering edd66bd294 *** empty log message *** 2001-11-14 10:30:42 +00:00
Jim Meyering db29cde02a *** empty log message *** 2001-11-14 10:19:11 +00:00
Jim Meyering 306433db58 split a line that was too long 2001-11-13 23:36:57 +00:00
Jim Meyering a94c64bcad *** empty log message *** 2001-11-13 23:32:18 +00:00
Jim Meyering 389d9bc4e0 (file_lines): Add a parameter, start_pos.
Work properly even when the read pointer is not at beginning of file.
(tail_lines): Call file_lines for any regular file, as long as lseek
can be used to seek to its end, not just when the initial read pointer
is at beginning of file.
2001-11-13 23:32:12 +00:00
Jim Meyering 9a628d3908 (tail_lines): Move declaration of local `length' into scope where it's used.
(tail_file): Likewise for local `stats'.
2001-11-13 10:23:44 +00:00
Jim Meyering 513813de35 *** empty log message *** 2001-11-13 10:21:12 +00:00
Jim Meyering 63c90500f0 *** empty log message *** 2001-11-13 10:20:48 +00:00
Jim Meyering 1f3e04f05c *** empty log message *** 2001-11-13 10:20:02 +00:00
Jim Meyering 8cbf0850d9 *** empty log message *** 2001-11-13 10:19:39 +00:00
Jim Meyering 0c583dd647 *** empty log message *** 2001-11-13 10:19:09 +00:00
Jim Meyering 5579ee544c `tail /proc/ksyms' would segfault on Linux.
(tail_lines): Use status of lseek (...SEEK_END) call
in deciding whether to call file_lines or pipe_lines.
From Herbert Xu.
2001-11-13 10:14:12 +00:00
Jim Meyering 30690e6b57 clean up 2001-11-12 13:06:16 +00:00
Jim Meyering 2b22830114 use rm, not $RM 2001-11-12 12:44:01 +00:00
Jim Meyering 6e05a8291b *** empty log message *** 2001-11-12 12:41:40 +00:00
Jim Meyering 53d9bb54c7 *** empty log message *** 2001-11-11 20:05:33 +00:00
Jim Meyering 69b3ea263d (usage): Split --help output into smaller pieces.
Use fputs, not printf.
2001-11-11 20:04:57 +00:00
Jim Meyering b890a03963 *** empty log message *** 2001-11-11 16:05:20 +00:00
Jim Meyering 86bb482007 (usage): Split --help output into smaller pieces. 2001-11-11 16:04:43 +00:00
Jim Meyering 436f7c405a (struct tspec): Declare function pointer with prototype. 2001-11-11 15:42:07 +00:00
Jim Meyering 52f24baacc (main): Declare function pointer with prototype. 2001-11-11 15:40:39 +00:00
Jim Meyering 6b16d2e1fe (usage): Fix typo in last change to usage. 2001-11-11 15:38:00 +00:00
Jim Meyering f409a8a021 (count_items): Mark parameter as unused. 2001-11-11 15:35:37 +00:00
Jim Meyering dae7a9d7f4 (struct_month_cmp): Guard definition with the same
cpp directive that guards the use.
2001-11-11 15:24:53 +00:00
Jim Meyering 4bdaed5ff4 (xwrite): Remove assertion that size_t N >= 0. 2001-11-11 15:08:48 +00:00
Jim Meyering f7eb4c8913 (usage): Split --help output into smaller pieces.
Use fputs, not printf.
2001-11-11 15:08:02 +00:00
Jim Meyering c0fca1bce9 *** empty log message *** 2001-11-11 15:02:40 +00:00
Jim Meyering d9b0ac1791 (usage): Split --help output into smaller pieces.
Use fputs, not printf.
2001-11-11 15:02:23 +00:00
Jim Meyering 4696d3dabf (usage): Split --help output into smaller pieces.
Use fputs, not printf.
2001-11-11 15:00:53 +00:00
Jim Meyering fa3228b72d *** empty log message *** 2001-11-11 15:00:38 +00:00
Jim Meyering 507b8890a4 (usage): Split --help output into smaller pieces.
Use fputs, not printf.
2001-11-11 14:55:20 +00:00