Age | Commit message (Collapse) | Author |
|
guaranteed to be portable.
|
|
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
|
|
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
modechange.h now includes sys/types.h.
Include xstrtol.h.
(isodigit, oatoi): Remove.
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP,
S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRWXU, S_IRWXG,
S_IRWXO): Define if not defined.
(CHMOD_MODE_BITS): New macro.
(mode_compile): Convert from octal with xstrtoul, not our own routine.
|
|
(struct mode_change): Members affected and value are now mode_t instead
of unsigned short.
|
|
(mode_string): Now takes mode_t.
|
|
Don't assume the traditional Unix values for mode bits.
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRWXU): Define if not defined.
|
|
Don't assume the traditional Unix values for mode bits.
(S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): Define if not defined.
<config.h>, <sys/types.h>: Include for mode_t.
(mode_string): Now takes mode_t.
|
|
<config.h>: Include it here too.
|
|
|
|
|
|
|
|
we now have a true replacement in strtoumax.c.
(__strtol): Always define to strtoumax.
(<stdlib.h>): No need to include.
(PARAMS): Remove.
(my_strtoumax): Move this to strtoumax.c,
rename it to strtoumax, and simplify.
|
|
|
|
|
|
|
|
|
|
whether overflow occurred. Improve overflow-detection to use
only one conditional branch total, rather than 2N+1
conditional branches for an N-digit number.
|
|
|
|
xstrto... functions.
|
|
(LookupWord, yylex): Don't pass negative char to ctype macros.
|
|
|
|
(noinst_HEADERS): Remove xstrtoul.h.
|
|
<inttypes.h>: Include if HAVE_INTTYPES_H.
(_DECLARE_XSTRTOL): New macro.
(xstrtol, xstrtoul, xstrtoumax): Declare all three functions, so that
we need only one include file, not three.
(_STRTOL_ERROR): Do not undef, as this is no longer needed.
Reword overflow message so that it's independent of type.
|
|
New macros to specify the
underlying function, its returned type, and our function. Default to
values suitable for xstrtol.
Include <ctype.h>, since we use its macros.
(ULONG_MAX, LONG_MAX, ISBLANK): Remove: no longer needed.
(ISSPACE): New macro.
(bkm_scale, bkm_scale_by_power, __xstrtol, main): __unsigned long int
-> __strtol_t.
(__xstrtol): Depend on whether __strtol_t is an unsigned type, not on
whether STRING_TO_UNSIGNED is defined. Skip isspace chars, not
isblank chars, to match strtol. When returning
LONGINT_INVALID_SUFFIX_CHAR, store the value that we computed into
*val.
|
|
(__strtol, __strtol_t, __xstrtol): New macros.
|
|
|
|
|
|
|
|
|
|
|
|
add FIXME
|
|
|
|
(mode_append_entry): Likewise.
(mode_compile): When none of [ugoa] is specified in an `=OP' change
mode request, insert a `=0' entry into the linked list so that all
bits are cleared first. Use the new functions.
|
|
against zero. This is to improve portability.
|
|
against zero. This is to improve portability.
|
|
against zero. This is to improve portability.
|
|
call; this is an improvement on a bug fix suggested by
martin@dresden.nacamar.de. Do not assume that localtime and
gmtime return non-null.
From Paul Eggert.
|
|
everything starting with the head, not the tail.
|
|
|
|
(noinst_HEADERS): Add version-etc.h.
|
|
and author-printing code. Do it via version_etc.
|
|
|
|
|
|
add curlies
use assert(0) in place of abort
|
|
much the table grows and shrinks.
(next_prime): Don't assert.
(hash_reset_tuning): New function.
(check_tuning): New function.
(hash_initialize): Accept and use new tuning parameter.
(hash_rehash): Rewrite, updating for tuning.
(hash_insert): Honor tuning semantics.
(hash_delete): Likewise.
From François Pinard.
|
|
(struct hash_table) [tuning]: Add member.
(hash_initialize): Add `tuning' parameter.
|
|
|
|
(hash_insert): Don't increment n_entries unconditionally --
otherwise, we'd do so even when the insertion failed.
From François Pinard.
|
|
|
|
conformance with the single unix spec). Reported by Peter Moulder.
|