Paul Eggert
92734c1511
Rewrite from scratch, as print-copyr.h.
2001-09-21 22:19:09 +00:00
Paul Eggert
4b5d60ef38
Rewrite from scratch, as print-copyr.c.
2001-09-21 22:19:09 +00:00
Paul Eggert
1589ca47d0
From Jim Meyering.
...
(strtoimax): Guard declaration with
`#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
have their own, conflicting declaration of strtoimax in sys/inttypes.h.
(strtoumax): Likewise, for completeness (it wasn't necessary).
2001-09-20 18:01:31 +00:00
Paul Eggert
356b01119e
Include stddef.h, for size_t.
...
Include langinfo.h if needed.
Use locale_charset only if USE_INCLUDED_LIBINTL;
if not, use nl_langinfo (CODESET) if available.
2001-09-15 06:11:37 +00:00
Paul Eggert
792f268988
Initial revision
2001-09-14 00:27:39 +00:00
Paul Eggert
f596d1be2e
(HAVE_LONG_LONG): Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
...
(strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
to work around bug in IBM C compiler.
2001-09-06 19:47:45 +00:00
Paul Eggert
0e79725f53
Fix typo in local var; from Jim Meyering.
2001-09-03 04:17:04 +00:00
Paul Eggert
9f95e73642
(xgetcwd): Reorganize to avoid some duplication.
...
Use an initial, malloc'd, buffer of length 128 rather than
a statically allocated one of length 1024.
2001-08-31 11:36:54 +00:00
Paul Eggert
9efbc4be3b
(strtoimax): New decl.
2001-08-31 01:36:06 +00:00
Paul Eggert
509ab656f7
Initial revision
2001-08-29 06:36:20 +00:00
Paul Eggert
01c35d7225
Fix copyright notice.
...
(UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.
(verify): New macro.
(INT): Renamed from uintmax_t.
(strtoumax, strtoull, strtoul): Remove.
(strtoimax, strtol, strtoll): New macros.
(strtoimax): Renamed from strtoumax. Interchange signed with unsigned.
Verify sizes at compile-time, not at run-time.
Prefer strtol to strtoll if both work.
(main): Remove.
2001-08-29 06:36:20 +00:00
Paul Eggert
07c3d5fe32
("pathmax.h"): Do not include; no longer needed.
...
(<stdlib.h>, <unistd.h>): Include if available.
("xalloc.h"): Include.
(xmalloc, xstrdup, free): Remove decls; no longer needed.
(xgetcwd): Don't assume sizes fit in 'unsigned'.
Check for overflow when path size gets too large.
Simplify failure code.
2001-08-29 06:36:20 +00:00
Paul Eggert
efc9c76cb7
(xstrtoimax): New decl.
2001-08-28 22:28:02 +00:00
Paul Eggert
bec3001dcb
Comment fix.
2001-08-28 20:29:12 +00:00
Paul Eggert
7fec439aff
Update comment.
2001-08-28 20:04:21 +00:00
Paul Eggert
13b9e5afc8
Add copyright notice.
...
(_DECLARE_XSTRTOL): Improve quality of diagnostic for
LONGINT_INVALID_SUFFIX_CHAR.
2001-08-27 14:05:15 +00:00
Paul Eggert
255c8a9880
Include <string.h>; required for C99 since we use strlen.
2001-08-27 00:41:28 +00:00
Paul Eggert
c74b3c3fb7
Initial revision
2001-08-26 06:58:10 +00:00
Paul Eggert
f17ce7b6ae
Initial revision
2001-08-23 17:25:11 +00:00
Paul Eggert
01244cf133
glibc version.
2001-08-21 02:56:57 +00:00
Paul Eggert
4ae648023c
(alloca): Arg is of type size_t, not unsigned.
2001-07-08 19:08:50 +00:00
Paul Eggert
0a4cfe3e6c
(get_date): Initialize tm_isdst to -1 before invoking mktime the last time.
2001-04-08 19:58:59 +00:00
Paul Eggert
e873bb4ed8
Initial revision
2001-04-03 15:18:12 +00:00
Paul Eggert
11c437d44b
(malloc): Undef before defining.
2001-02-16 18:57:56 +00:00
Paul Eggert
107e9fad31
Quote error message.
2001-01-26 11:13:28 +00:00
Paul Eggert
b6e04fa518
(savedir): Remove size arg.
2001-01-13 06:11:36 +00:00
Paul Eggert
b4c3a9637b
Initial revision
2001-01-13 05:59:29 +00:00
Paul Eggert
ff7194169a
Include full-write.h, not safe-read.h.
...
full_write returns size_t, with short writes meaning failure.
All callers changed.
2001-01-13 05:59:29 +00:00
Paul Eggert
df72d04b36
(savedir): Remove size arg; it wasn't portable. All callers changed.
2001-01-13 05:59:29 +00:00
Paul Eggert
1ff433e49e
Initial revision
2000-12-18 23:43:51 +00:00
Paul Eggert
da024ba683
fileutils 4.0.35
2000-11-03 08:44:01 +00:00
Paul Eggert
89d47c634e
Do not comment out all the code if we are using the GNU C library,
...
because in some cases we are replacing buggy code in the GNU C library itself.
2000-11-03 00:23:21 +00:00
Paul Eggert
eed2c0077d
GNU fileutils 4.0.35
2000-10-31 07:08:05 +00:00
Paul Eggert
731cf2666a
(FOLD): Do not assume that characters are unsigned.
2000-10-31 06:02:53 +00:00
Paul Eggert
614f749ff7
(prepend_default_options): Don't use NULL, for portability.
2000-10-24 06:34:45 +00:00
Paul Eggert
e7d0a7724b
Initial revision
2000-10-24 06:18:37 +00:00
Paul Eggert
5156a90a1e
(full_write): Some buggy drivers return 0 when you
...
fall off a device's end. Detect this.
2000-10-24 06:18:37 +00:00
Paul Eggert
8d8a85f9a2
(fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
...
e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
2000-10-24 06:18:37 +00:00
Paul Eggert
8caec82653
(<limits.h>): Include if HAVE_LIMITS_H.
...
(CHAR_BIT): Define if not defined.
2000-10-17 17:20:55 +00:00
Paul Eggert
9d290bf45e
(<limits.h>): Do not include; human.h does it if needed.
...
(CHAR_BIT): Remove.
2000-10-17 17:20:55 +00:00
Paul Eggert
5ed9bdbf57
Initial revision
2000-09-09 15:57:28 +00:00
Paul Eggert
c86c626f04
Memory exhausted -> memory exhausted
2000-08-07 16:46:16 +00:00
Paul Eggert
9a742c498f
(xalloc_msg_memory_exhausted): change to array from char *.
2000-08-07 16:02:21 +00:00
Paul Eggert
1063141801
Simplify exhausted message.
2000-07-15 05:53:00 +00:00
Paul Eggert
f03a9c9335
fileutils 4.0x
2000-07-09 07:25:03 +00:00
Paul Eggert
a70cec699f
Initial revision
2000-07-09 07:25:03 +00:00
Paul Eggert
f996454418
(<unistd.h>): Do not include; there's no need.
...
(NAMLEN): Remove macro.
(malloc, realloc): Remove decls.
(stpcpy): Likewise.
("xalloc.h"): Include.
(NAME_SIZE_DEFAULT): New macro.
(savedir): Use xmalloc / xrealloc to allocate memory.
Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
Skip "" directory entries.
Use strlen to calculate directory entry length, since the old method
is rarely used these days and isn't worth supporting.
Check for integer overflow when calculating allocation size.
Use memcpy to copy entries, instead of stpcpy.
Set errno properly when returning NULL.
Check for readdir error.
2000-06-26 23:25:37 +00:00
Paul Eggert
b0a7ff33fd
Fix inaccorate comment for xrealloc.
2000-06-26 18:46:37 +00:00
Paul Eggert
c61d0787ce
(adjust_value): New function.
...
(human_readable_inexact): Apply rounding style even when printing
approximate values.
2000-06-15 18:11:13 +00:00
Paul Eggert
c9dfa7a7e8
Avoid shadowing warnings.
...
From: Jim Meyering <meyering@ascend.com >
Date: 15 Jun 2000 14:40:00 +0200
2000-06-15 15:47:43 +00:00