Jim Meyering
1c84606b56
(read_filesystem_list): If SVR4, lock /etc/.mnttab.lock if available,
...
to avoid race conditions (e.g. with the automounter on Solaris 2.6).
Include <errno.h>, <fcntl.h>, <unistd.h>.
1998-06-30 02:15:43 +00:00
Jim Meyering
1d2074e02a
protoize
1998-06-29 20:29:28 +00:00
Jim Meyering
aa1c5467ec
(fstype_to_string): Guard with #if ! HAVE_F_FSTYPENAME_IN_STATFS.
1998-06-29 17:01:48 +00:00
Jim Meyering
476cb02516
* lib/xstrtol.c (bkm_scale): Don't assume that you can convert
...
unsigned long to double without losing information.
(bkm_scale_by_power): New function.
* lib/xstrtol.c (__xstrtol), src/dd.c (parse_integer):
Add support for SI-like suffixes like "GB" and "TD".
* src/dd.c (usage): Describe it.
1998-06-29 15:24:43 +00:00
Jim Meyering
159788fcca
(__ZLONG_MAX): Remove.
1998-06-29 15:24:15 +00:00
Jim Meyering
f32dc5a2b0
(human_readable): Coalesce last two args into one, for convenience.
1998-06-29 15:23:45 +00:00
Jim Meyering
ea7102f120
* lib/human.c, lib/human.h (human_readable): Coalesce last two args
...
into one, for convenience. All callers changed.
(human_block_size): New function.
* lib/human.c: Include <config.h> only if HAVE_CONFIG_H.
Include <stdlib.h> if HAVE_STDLIB_H;
declare getenv unless HAVE_DECL_GETENV.
(_): New macro.
Include <argmatch.h>, <error.h>, <xstrtoul.h>.
(DEFAULT_BLOCK_SIZE): New macro.
(block_size_args, block_size_types): New constants.
(humblock): New function.
1998-06-29 15:23:04 +00:00
Jim Meyering
c7af539321
(fsp_to_string): Clean out some crufty #ifdefs
...
now that we're using the jm_FSTYPENAME autoconf macro.
1998-06-29 01:10:24 +00:00
Jim Meyering
585b65b676
.
1998-05-25 03:41:02 +00:00
Jim Meyering
001e1b4302
.
1998-05-24 14:20:58 +00:00
Jim Meyering
2aacc55e9b
Fix braino: check S_ISLNK only if lstat succeeds.
1998-05-24 14:00:03 +00:00
Jim Meyering
6f050de759
fix typo: s/chat/char/
1998-05-24 13:41:57 +00:00
Jim Meyering
67786e0fb6
*** empty log message ***
1998-05-19 15:15:09 +00:00
Jim Meyering
c84011e059
.
1998-05-19 15:06:49 +00:00
Jim Meyering
976664803c
(read_utmp): Add variant for systems that have the utmpname function.
...
Ansideclify.
1998-05-16 20:26:54 +00:00
Jim Meyering
4f75855c2e
(is_prime): Ansideclify.
...
(next_prime): Ansideclify. Add an assertion.
1998-05-16 04:39:24 +00:00
Jim Meyering
d649910685
(EXTRA_DIST): Remove. Automake groks the `LIBOBJS='
...
lines in the m4/*.m4 macros, so the hack of including some
custom-replaced C source file names here is no longer needed.
1998-05-16 04:37:45 +00:00
Jim Meyering
e3e1698c6b
.
1998-05-16 04:30:42 +00:00
Jim Meyering
e7d6615b76
Don't declare strdup if it's defined as a macro.
...
Reported by Lorne Baker.
1998-05-10 16:04:39 +00:00
Jim Meyering
506343b223
.
1998-05-04 00:28:35 +00:00
Jim Meyering
02efcd60ed
.
1998-05-03 22:14:55 +00:00
Jim Meyering
5b7e895b65
.
1998-05-02 15:25:56 +00:00
Jim Meyering
a155c3d684
tweak from FSF
1998-04-28 12:19:53 +00:00
Jim Meyering
8cc46c2a18
(noinst_HEADERS): Add safe-read.h.
1998-04-13 16:29:58 +00:00
Jim Meyering
518f85fc40
.
1998-04-13 13:51:27 +00:00
Jim Meyering
69a3ee0b49
.
1998-04-12 15:16:37 +00:00
Jim Meyering
8ed3137f52
(TYPE_MAXIMUM): Update from system.h.
1998-04-12 09:39:30 +00:00
Jim Meyering
b402870080
(noinst_HEADERS): Add safe-read.h.
1998-04-11 17:53:09 +00:00
Jim Meyering
1cbe202b0a
.
1998-04-11 17:52:28 +00:00
Jim Meyering
d618576e0e
split a couple long lines
1998-04-11 15:37:35 +00:00
Jim Meyering
51fe35760e
Add curly braces around statements in if/else/while/do/etc. that
...
span more than a line -- even around multiline simple statements or
single-line simple statements preceded by a comment line.
1998-04-11 15:35:06 +00:00
Jim Meyering
ba51843a2c
.
1998-04-11 15:04:39 +00:00
Jim Meyering
00ea94587f
indent cpp directives
1998-04-09 07:28:10 +00:00
Jim Meyering
49875c1593
make there be two spaces after `.' in comments
1998-04-09 07:22:52 +00:00
Jim Meyering
29cc8bf4f3
Lots of minor spec and name changes, and new comments.
...
From François Pinard.
1998-04-06 08:09:36 +00:00
Jim Meyering
50892edd61
Lots of minor spec and name changes, and new comments.
...
(hash_rehash): Rewritten to be easier on the allocator.
From François Pinard.
1998-04-06 08:09:11 +00:00
Jim Meyering
72193ba149
*** empty log message ***
1998-04-06 00:26:54 +00:00
Jim Meyering
854b5197ad
*** empty log message ***
1998-04-05 23:44:12 +00:00
Jim Meyering
d90641d9d8
.
1998-04-05 23:43:58 +00:00
Jim Meyering
3911fadcf9
add braces to disambiguate ambiguous else
1998-04-05 21:32:26 +00:00
Jim Meyering
9fc10dc6c3
(WIDE_CHAR_SUPPORT): Define.
...
This now depends on HAVE_BTOWC so systems that lack btowc (like
solaris-2.5.1) don't lose.
1998-04-05 18:24:18 +00:00
Jim Meyering
faa759b349
*** empty log message ***
1998-04-04 21:37:50 +00:00
Jim Meyering
3483943ebc
(PARAMS): Define.
1998-04-04 18:16:51 +00:00
Jim Meyering
45e8e5c550
Merge with the version from textutils.
1998-03-31 13:14:22 +00:00
Jim Meyering
85b39cb589
add descriptive first-line comment
1998-03-31 12:09:55 +00:00
Jim Meyering
9f358e6830
(rpl_memcmp): Rename from memcmp.
1998-03-31 12:05:17 +00:00
Jim Meyering
e52d8736b1
remove dcl of unused local, num_regs
1998-03-27 22:29:05 +00:00
Jim Meyering
5c0ee776d4
cpp-directive aesthetics
1998-03-27 12:40:03 +00:00
Jim Meyering
465ebf7c37
new version from Uli
1998-03-27 11:23:07 +00:00
Jim Meyering
3a0352ad9a
.
1998-03-23 22:47:05 +00:00