summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
1998-01-10(make_path): Put only newly created directories on the LEADING_DIRS list.Jim Meyering
1998-01-06Add %expect directive.Jim Meyering
Move inclusion of getdate.h and dependent extern declarations down so getdate.h's prototype follows the sometimes-enabled definition of `const' to nothing. Otherwise, the prototype wouldn't match the definition because of the defined-away `const'. (get_date): ANSI-fy definition. From Kaveh Ghazi.
1998-01-05(get_fs_usage): Add parens.Jim Meyering
1998-01-05(PROPAGATE_ALL_ONES): New macro.Jim Meyering
(get_fs_usage): If a value consists entirely of 1 bits, propagate this info to the output by setting it to (uintmax_t) -1.
1998-01-04.Jim Meyering
1998-01-04(parse_long_options): Check for write error to stdout before exiting.Jim Meyering
1998-01-04(libfu_a_SOURCES): Add closeout.c.Jim Meyering
(noinst_HEADERS): Add closeout.h.
1998-01-04.Jim Meyering
1998-01-04.Jim Meyering
1998-01-03.Jim Meyering
1998-01-03Guard PARAMS-enabling definition withJim Meyering
`defined PROTOTYPES || (defined __STDC__ && __STDC__)' to be consistent.
1998-01-03Guard PARAMS-enabling definition withJim Meyering
`defined PROTOTYPES || (defined __STDC__ && __STDC__)' to avoid problems with Irix4's cc. From Kaveh Ghazi.
1998-01-02(make_path): Try to change ownership only if we've just created theJim Meyering
directory. Fix latent bug (s/&&/||/ in two places -- also, note that it could not be exercised via install or mkdir) whereby chown would not be invoked when only one of owner/group is not -1.
1997-12-31Define and use PARAMS, not __EXCLUDE_P.Jim Meyering
1997-12-31Use PARAMS, not __EXCLUDE_P.Jim Meyering
1997-12-29(invalid_arg): Use a single fprintf and wholeJim Meyering
format statements to ease translation. Convert from K&R to ANSI function dcls.
1997-12-28Use ANSI syntax, not K&R.Jim Meyering
1997-12-28(make_path) [!__STDC__]: Remove K&R-style definition.Jim Meyering
1997-12-28define PARAMSJim Meyering
1997-12-28Add PARAMS.Jim Meyering
1997-12-25(_GNU_SOURCE): Define only if not already defined.Jim Meyering
1997-12-25Declare stpcpy only if not defined as macro.Jim Meyering
1997-12-25Declare stpcpy only if not defined as macro.Jim Meyering
1997-12-25Include <string.h> if available.Jim Meyering
1997-12-21.Jim Meyering
1997-12-21remove FIXME-describe commentsJim Meyering
1997-12-21add FIXME-describe commentsJim Meyering
1997-12-21(libfu_a_SOURCES): Add exclude.c.Jim Meyering
(noinst_HEADERS): Add exclude.h.
1997-12-21.Jim Meyering
1997-12-21Use PARAMS, not __P.Jim Meyering
1997-12-21(rpl_chown): Rename from chown.Jim Meyering
Undefine chown just after including config.h. Include sys/stat.h. Use correct ordering of uid and gid parameters both in function definition and in call to chown. With patches from Kaveh Ghazi.
1997-12-14s/HAVE_DECLARATION_/HAVE_DECL_/.Jim Meyering
1997-12-14cast memcpy to char*Jim Meyering
1997-12-13.Jim Meyering
1997-12-06.Jim Meyering
1997-12-06(re_compile_fastmap): Remove dcl of unused num_regs.Jim Meyering
1997-11-30(savedir): Revert last change. malloc alwaysJim Meyering
works when called with zero, because we use the wrapper if the system version is lacking.
1997-11-30filter through cppiJim Meyering
1997-11-30remove trailing blankJim Meyering
1997-11-30(human_readable): Convert to ANSI-style definition.Jim Meyering
[lint]: Define `power'.
1997-11-30filter through cppiJim Meyering
1997-11-30.Jim Meyering
1997-11-30(savedir): Check for size zero before invokingJim Meyering
malloc; this can occur if st_size arg overflows on conversion to unsigned int. All callers now cast st_size arg to unsigned int.
1997-11-30(getuidbyname, getgidbyname): Names can nowJim Meyering
be NULL in cache. This change merely fixes ifdeffed-out code.
1997-11-30New file. The interface is inspiredJim Meyering
by the human_readable function that was in du.c, but it's pretty much rewritten from scratch.
1997-11-30(struct fs_usage): New member fsu_blocksize.Jim Meyering
Other members are now uintmax_t, not long.
1997-11-30Do all calculations using uintmax_t.Jim Meyering
Include <inttypes.h> if available. (adjust_blocks, CONVERT_BLOCKS): Remove. (get_fs_usage): Set new member fsu_blocksize, and do not convert numbers to 512-byte block units; this avoids overflow here. Cast lseek arg to off_t, not long.
1997-11-30(st_blocks): long -> off_t.Jim Meyering
Avoid arithmetic overflow when size is near max. Depend on _POSIX_SOURCE and BSIZE, not _POSIX_VERSION, for compatibility with system.h. (BSIZE): Remove definition, since if BSIZE is not defined we're never invoked.
1997-11-30(libfu_a_SOURCES): Add new file human.c.Jim Meyering
(noinst_HEADERS): Add new file human.h.
1997-11-19add PARAMS around prototype listsJim Meyering