summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2004-08-02hard-locale.c (hard_locale): Return bool, not int.Paul Eggert
2004-08-02Include <stdbool.h>.Paul Eggert
(getloadavg_initialized): Use bool for booleans.
2004-08-02(lookup_word): Rewrite to avoid cast.Paul Eggert
2004-08-02(textutils_fileblocks_unused): Make it a typedefPaul Eggert
instead of an int, to save a few bytes in the object file.
2004-08-02Update copyright.Paul Eggert
2004-08-02(enum canonicalize_mode_t): Reformat comments to fit in 80 columns.Paul Eggert
2004-08-02(errno): Remove decl; we now assume C89 or better.Paul Eggert
2004-08-02(xstrtod): Return bool, not int. Invert the sense of the boolean.Paul Eggert
All uses changed.
2004-08-02(xstrtod): Return bool, not int. Invert the sense of the boolean.Paul Eggert
All uses changed.
2004-08-02Don't include <sys/types.h> or "exit.h"; no longer needed.Paul Eggert
(errno): Remove decl; we now assume C89 or better. Include unistd.h if available, for gethostname. (ENAMETOOLONG): Define to 0, not 9999, to avoid colliding with existing errno values if any. (gethostname): Remove decl, since unistd.h declares it (or doesn't, in which case it's an older system and it should just work). (xgethostname): Don't assume host name length is less than INT_MAX. Exit if malloc fails, just as the comment says.
2004-08-02Include <stdbool.h>.Paul Eggert
(errno): Remove decl; we now assume C89 or better. (save_cwd): Use bool for booleans. (save_cwd, restore_cwd): Return -1 on failure, not 1, since we set errno on failure.
2004-08-02(read_utmp): Don't assume that the number of users is less than INT_MAX.Paul Eggert
Check for integer overflow in size calculations. Return -1 (not 1) on failure, since we set errno in that case.
2004-08-02(UT_USER): Parenthesize properly.Paul Eggert
(UT_USER_SIZE): New constant. (read_utmp): Don't assume that the number of users is less than INT_MAX.
2004-08-02(posix_time_parse): Don't assume that the length ofPaul Eggert
the string being parsed is <= UINT_MAX.
2004-08-02(read_file_system_list): Accept bool flag, not int.Paul Eggert
(errno): Remove decl; we now assume C89 or better. (xatoi): Remove; replaced by strtoul. Hence device numbers can now go up to ULONG_MAX.
2004-08-02Include <stdbool.h>.Paul Eggert
(read_file_system_list): Accept bool flag, not int.
2004-08-02Regenerate.Paul Eggert
2004-08-02No longer needed by 'install', so remove it.Paul Eggert
2004-08-02(libfetish_a_SOURCES): Remove isdir.c.Paul Eggert
2004-08-02Add an FSF copyright notice, since our changes are becoming nontrivial.Paul Eggert
Include stdint.h if available, as Autoconf suggests. (ALIGNBYTES, ALIGN): Remove; no longer needed now that fts_statp is an array. (fts_alloc, fts_palloc, fts_sort, fts_load, fts_build): Use size_t for sizes. (fts_stat, fts_safe_changedir, fts_debug, fts_read, fts_build, fts_palloc): Use bool when appropriate. (SIZE_MAX, TYPE_SIGNED): New macros. (fts_read): Use u_short for instructions. (fts_build): Use ptrdiff_t for levels. Don't assume file name lengths fit into int. Don't assume nlink_t is signed. (find_matching_ancestor): Don't assume dev, ino fit in int. (fts_stat): Use function prototype; required for bool arg. (fts_sort): Detect integer overflow in size calculations. (fts_alloc): Simplify allocation code, now that fts_statp is an array and not a pointer.
2004-08-02Add an FSF copyright notice, since our changes are becoming nontrivial.Paul Eggert
Include stddef.h, for ptrdiff_t. (FTS.fts_nitems): Now size_t, not int, for hosts that allow more than INT_MAX entries in a directory. (FTS_ROOTPARENTLEVEL): Parenthesize properly. (FTSENT.fts_level): Now ptrdiff_t, not int, to allow recursing more than INT_MAX levels deep on 64-bit hosts. (FTSENT.fts_namelen): Now size_t, not u_short, to support hosts like the Hurd that don't have arbitrary limits on directory entry lengths. (FTSENT.fts_statp): Now an array, not a pointer, so that we don't have to play unportable games with pointer arithmetic. Keep it array for the benefit of user code that assumes it is a pointer.
2004-08-02Use Autoconf-suggested pattern for inttypes and stdint.Paul Eggert
Include unistd.h, for lseek.
2004-08-02Include <stdbool.h>.Paul Eggert
(struct fs_usage): Use uintmax_t for block sizes, so that they're not limited to INT_MAX. Use bool for booleans.
2004-08-02(EXT): Use size_t for sizes, not ptrdiff_t, so that we don't havePaul Eggert
to worry about wraparound.
2004-08-02fnmatch_loop.c (EXT, FCT): Use bool when appropriate.Paul Eggert
(FCT): Use size_t, not unsigned int, for sizes. (EXT): Use ptrdiff_t, not int, for a variable that has to store a size-related quantity but might go negative. ptrdiff_t is good enough here, since in practice the value can't exceed SIZE_MAX/2.
2004-08-02Include <stdbool.h>.Paul Eggert
(errno): Remove decl; we now assume C89 or better.
2004-08-02(strip_trailing_slashes): Now returns bool.Paul Eggert
2004-08-02(dir_name): Use bool when appropriate.Paul Eggert
2004-08-02Include <stdbool.h>.Paul Eggert
(strip_trailing_slashes): Now returns bool.
2004-08-02(argmatch, __xargmatch_internal, argmatch_invalid):Paul Eggert
Use ptrdiff_t, not int, when counting arguments, to allow more than INT_MAX arguments. Use bool when appropriate.
2004-08-02(argmatch, __xargmatch_internal, argmatch_invalid):Paul Eggert
Use ptrdiff_t, not int, when counting arguments, to allow more than INT_MAX arguments.
2004-08-02Install safe-read fix for blocksizes greater than 2**31.Paul Eggert
2004-08-02(errno): Remove decl; we now assume C89 or better.Paul Eggert
(safe_rw): Don't work around Tru64 bug unless the bug symptoms manifest themselves. This allows us to do proper reads and writes on other hosts, e.g., "dd" with a block size greater than 2**31.
2004-08-02Regenerate.Paul Eggert
2004-08-02uintptr_t and uint32_t port to Solaris 8.Paul Eggert
2004-08-02(UNALIGNED_P): Use size_t; in practice, this is just asPaul Eggert
good as uintptr_t in checking for alignments, and has fewer configuration hassles.
2004-08-02Don't include inttypes.h or stdint.h.Paul Eggert
(UNALIGNED_P): Remove. (__memrchr): Use size_t, not uintptr_t, to test alignment.
2004-08-02Don't include inttypes.h or stdint.h.Paul Eggert
(UNALIGNED_P): Remove. (__memchr): Use size_t, not uintptr_t, to test alignment.
2004-08-02Don't include <limits.h>. Include <inttypes.h> if available,Paul Eggert
as it defines symbols like UINT32_MAX on Solaris 8. (md5_uint32): Assume uint32_t exists; Autoconf will define it otherwise (if the host has a 32-bit unsigned type, anyway).
2004-08-02(UNALIGNED_P): Use size_t; in practice, this is just asPaul Eggert
good as uintptr_t in checking for alignments, and has fewer configuration hassles.
2004-08-01Fix typo: down -> done.Paul Eggert
2004-07-30makepath int cleanupPaul Eggert
2004-07-30(make_path, make_dir): Use bool, not int, since we're not setting errno.Paul Eggert
Use mode_t for modes, not int. All uses changed. (errno): Remove decl; no longer needed since we assume C89.
2004-07-30Include <stdbool.h>.Paul Eggert
(make_path, make_dir): Use bool, not int, since we're not setting errno. Use mode_t for modes, not int. All uses changed.
2004-07-30modechange.c now uses bool.Paul Eggert
2004-07-30Update copyright.Paul Eggert
2004-07-30Include <stdbool.h>.Paul Eggert
(mode_compile): Use bool when appropriate.
2004-07-30Fix copyright year.Paul Eggert
2004-07-29Use sizeof, not alignof, in memchr and memrchr.Paul Eggert
2004-07-29(UNALIGNED_P): Use sizeof, not alignof.Paul Eggert