aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fsusage.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2006-08-21Remove from CVS, since the bootstrap script generates them automatically.Paul Eggert1-265/+0
2006-04-12Don't include <inttypes.h> or <stdint.h>, sincePaul Eggert1-82/+58
fsusage.h now does that. Include fsusage.h first, to test interface. Prefer statvfs if it works, since it's blessed by POSIX. Attempt at most one method (the old code could have generated decls that didn't conform to C89, not that this was ever exercised).
2005-09-22Sync from gnulib.Paul Eggert1-1/+1
2005-07-02Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.Jim Meyering1-3/+1
2005-07-01Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,Jim Meyering1-3/+1
and don't include <sys/file.h>).
2005-06-02Don't use "path" or "filename" to mean "file name"Paul Eggert1-13/+13
in comments or local variable names.
2005-05-14Update FSF postal mail address.Jim Meyering1-1/+1
2004-11-26(statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.Paul Eggert1-1/+0
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 Eggert1-4/+6
Include unistd.h, for lseek.
2004-06-30Use `file system', not filesystem in a comment.Jim Meyering1-3/+3
2003-06-06Merge from gnulib.Jim Meyering1-8/+4
2003-02-06Remove declaration of statfs.Jim Meyering1-3/+1
It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
2003-01-06Include full_read.h.Jim Meyering1-3/+3
(get_fs_usage): Use full_read instead of safe_read.
2002-09-26[! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>.Jim Meyering1-6/+20
(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 Meyering1-5/+6
2000-08-07back out Copyright date changes for files with no changes yearJim Meyering1-1/+1
2000-07-09update copyright dateJim Meyering1-1/+1
1999-07-15(get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]:Jim Meyering1-2/+2
Work around SunOS botch also when block size is different from 1k.
1998-12-07ansideclifyJim Meyering1-7/+2
1998-03-19Include <limits.h>.Jim Meyering1-4/+27
(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 Meyering1-1/+1
1998-01-05(PROPAGATE_ALL_ONES): New macro.Jim Meyering1-21/+30
(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 Meyering1-52/+34
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 Meyering1-3/+10
it, return -1 with 0 in ERRNO. From Miles.
1996-11-05libitizeJim Meyering1-39/+58
1996-11-03cpp-indent + change some #ifdef to #ifJim Meyering1-30/+30
1996-08-02(get_fs_usage) [STAT_STATFS4] [_CRAY]: Define f_bavail to f_bfree.Jim Meyering1-1/+4
From by Johan Danielsson.
1996-07-31[HAVE_SYS_FS_S5PARAM_H]: Include sys/fs/s5param.hJim Meyering1-0/+4
to work around bug in sys/filsys.h of Fujitsu UXP/V. Reported by Johan Danielsson.
1996-07-15update FSF address in copyrightJim Meyering1-2/+2
1996-05-23[_CRAY]: Don't include sys/filsys.h because althoughJim Meyering1-1/+1
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 Meyering1-1/+2
1995-10-01Remove trailing whitespace.Jim Meyering1-1/+1
1995-10-01(get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]: Copy untruncated blockJim Meyering1-0/+15
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 Meyering1-1/+0
1995-05-13(statfs): Use stat, not safe_stat.Jim Meyering1-1/+1
1995-01-27(get_fs_usage, statfs): Use safe_read, and safe_stat rather thanJim Meyering1-2/+4
bare read and stat.
1994-10-29.Jim Meyering1-7/+11
1994-10-27merge with 3.9sJim Meyering1-1/+1
1994-10-08.Jim Meyering1-1/+1
1994-10-08.Jim Meyering1-18/+15
1994-10-02merge with 3.9hJim Meyering1-7/+0
1994-07-30Use SAFE_STAT instead of stat to avoid unnecessary failureJim Meyering1-1/+2
on systems for which stat can return EINTR.
1994-03-16(adjust_blocks): Code it as a function again.Jim Meyering1-44/+38
1994-03-16.Jim Meyering1-1/+1
1994-03-14.Jim Meyering1-33/+44
1994-03-14.Jim Meyering1-2/+3
1993-10-12merge with 3.8.4cJim Meyering1-2/+2
1993-10-09merge with 3.8.3eJim Meyering1-3/+3
1993-10-06merge with 3.8.3bFILEUTILS-3_8_3bJim Meyering1-0/+11
1993-10-06merge with 3.8.3aJim Meyering1-1/+1