summaryrefslogtreecommitdiff
path: root/lib/fsusage.c
AgeCommit message (Collapse)Author
2004-11-26(statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.Paul Eggert
Declaring int functions causes warnings on some modern systems and shouldn't be needed to compile on ancient ones.
2004-08-02Use Autoconf-suggested pattern for inttypes and stdint.Paul Eggert
Include unistd.h, for lseek.
2004-06-30Use `file system', not filesystem in a comment.Jim Meyering
2003-06-06Merge from gnulib.Jim Meyering
2003-02-06Remove declaration of statfs.Jim Meyering
It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
2003-01-06Include full_read.h.Jim Meyering
(get_fs_usage): Use full_read instead of safe_read.
2002-09-26[! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>.Jim Meyering
(UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro. (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than int. Work more efficiently if X is the same width as uintmax_t. Do not compare X to -1, to avoid bogus compiler warning. (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast. Don't assume that f_frsize and f_bsize are the same type.
2002-09-25Remove unneeded parentheses around operands of `defined'.Jim Meyering
2000-08-07back out Copyright date changes for files with no changes yearJim Meyering
2000-07-09update copyright dateJim Meyering
1999-07-15(get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]:Jim Meyering
Work around SunOS botch also when block size is different from 1k.
1998-12-07ansideclifyJim Meyering
1998-03-19Include <limits.h>.Jim Meyering
(CHAR_BIT, EXTRACT_TOP_BIT, PROPAGATE_TOP_BIT): New macros. (get_fs_usage): If top bit of system variable corresponding to fsu_bavail is set, then set fsu_bavail_top_bit_set, and sign-extend the value when storing it into fsu_bavail.
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.
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.
1996-11-28(get_fs_usage): If DISK is 0 and we needed to useJim Meyering
it, return -1 with 0 in ERRNO. From Miles.
1996-11-05libitizeJim Meyering
1996-11-03cpp-indent + change some #ifdef to #ifJim Meyering
1996-08-02(get_fs_usage) [STAT_STATFS4] [_CRAY]: Define f_bavail to f_bfree.Jim Meyering
From by Johan Danielsson.
1996-07-31[HAVE_SYS_FS_S5PARAM_H]: Include sys/fs/s5param.hJim Meyering
to work around bug in sys/filsys.h of Fujitsu UXP/V. Reported by Johan Danielsson.
1996-07-15update FSF address in copyrightJim Meyering
1996-05-23[_CRAY]: Don't include sys/filsys.h because althoughJim Meyering
Unicos-9 has it, it's not needed and would cause other problems because it requires inclusion of other, non-standard headers.
1996-05-17(get_fs_usage): Declare parameter PATH to be const.Jim Meyering
1995-10-01Remove trailing whitespace.Jim Meyering
1995-10-01(get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]: Copy untruncated blockJim Meyering
counts from f_spare array into proper members of struct statfs. From Eirik Fuller (eirik@netapp.com);
1995-05-19No longer include safe-l?stat.h.Jim Meyering
1995-05-13(statfs): Use stat, not safe_stat.Jim Meyering
1995-01-27(get_fs_usage, statfs): Use safe_read, and safe_stat rather thanJim Meyering
bare read and stat.
1994-10-29.Jim Meyering
1994-10-27merge with 3.9sJim Meyering
1994-10-08.Jim Meyering
1994-10-08.Jim Meyering
1994-10-02merge with 3.9hJim Meyering
1994-07-30Use SAFE_STAT instead of stat to avoid unnecessary failureJim Meyering
on systems for which stat can return EINTR.
1994-03-16(adjust_blocks): Code it as a function again.Jim Meyering
1994-03-16.Jim Meyering
1994-03-14.Jim Meyering
1994-03-14.Jim Meyering
1993-10-12merge with 3.8.4cJim Meyering
1993-10-09merge with 3.8.3eJim Meyering
1993-10-06merge with 3.8.3bJim Meyering
1993-10-06merge with 3.8.3aJim Meyering
1993-08-26merge with 3.8.2Jim Meyering
1993-05-22merge with 3.5.5Jim Meyering
1993-04-15merge with 3.4.7Jim Meyering
1993-03-29merge with 3.4.1Jim Meyering
1992-10-31(adjust_blocks): Convert to a macro. The staticJim Meyering
function wasn't always used.
1992-10-31Initial revisionJim Meyering