Commit Graph

39 Commits

Author SHA1 Message Date
Jim Meyering
6970bbc17b (get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]:
Work around SunOS botch also when block size is different from 1k.
1999-07-15 07:50:06 +00:00
Jim Meyering
7d60769bea ansideclify 1998-12-07 03:12:10 +00:00
Jim Meyering
b48e78e3b7 Include <limits.h>.
(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-03-19 22:18:04 +00:00
Jim Meyering
e162abfc5b (get_fs_usage): Add parens. 1998-01-05 17:38:38 +00:00
Jim Meyering
866773c72a (PROPAGATE_ALL_ONES): New macro.
(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-05 17:33:54 +00:00
Jim Meyering
25fabf3d2d Do all calculations using uintmax_t.
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 10:24:24 +00:00
Jim Meyering
bcb8610977 (get_fs_usage): If DISK is 0 and we needed to use
it, return -1 with 0 in ERRNO.

From Miles.
1996-11-28 19:37:01 +00:00
Jim Meyering
71a04268b5 libitize 1996-11-05 03:38:23 +00:00
Jim Meyering
70196747af cpp-indent + change some #ifdef to #if 1996-11-03 23:53:51 +00:00
Jim Meyering
2a5f4c45e1 (get_fs_usage) [STAT_STATFS4] [_CRAY]: Define f_bavail to f_bfree.
From by Johan Danielsson.
1996-08-02 03:25:10 +00:00
Jim Meyering
402b4612f8 [HAVE_SYS_FS_S5PARAM_H]: Include sys/fs/s5param.h
to work around bug in sys/filsys.h of Fujitsu UXP/V.
Reported by Johan Danielsson.
1996-07-31 04:43:59 +00:00
Jim Meyering
e8b07e3796 update FSF address in copyright 1996-07-15 03:36:16 +00:00
Jim Meyering
c2705c1e62 [_CRAY]: Don't include sys/filsys.h because although
Unicos-9 has it, it's not needed and would cause other problems
because it requires inclusion of other, non-standard headers.
1996-05-23 13:04:03 +00:00
Jim Meyering
bae16cb45b (get_fs_usage): Declare parameter PATH to be const. 1996-05-17 03:16:34 +00:00
Jim Meyering
1d15980fb6 Remove trailing whitespace. 1995-10-01 22:49:07 +00:00
Jim Meyering
4de6eab547 (get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]: Copy untruncated block
counts from f_spare array into proper members of struct statfs.
From Eirik Fuller (eirik@netapp.com);
1995-10-01 18:23:29 +00:00
Jim Meyering
1fffbc7472 No longer include safe-l?stat.h. 1995-05-19 15:23:18 +00:00
Jim Meyering
627abb8251 (statfs): Use stat, not safe_stat. 1995-05-13 13:06:46 +00:00
Jim Meyering
fedcb63136 (get_fs_usage, statfs): Use safe_read, and safe_stat rather than
bare read and stat.
1995-01-27 17:20:54 +00:00
Jim Meyering
21b82f43b9 . 1994-10-29 05:06:43 +00:00
Jim Meyering
f6b8bdc529 merge with 3.9s 1994-10-27 13:43:59 +00:00
Jim Meyering
35adb7c5be . 1994-10-08 14:52:10 +00:00
Jim Meyering
4b8534f940 . 1994-10-08 02:05:20 +00:00
Jim Meyering
f1ce35a10c merge with 3.9h 1994-10-02 05:43:03 +00:00
Jim Meyering
be7d4a230e Use SAFE_STAT instead of stat to avoid unnecessary failure
on systems for which stat can return EINTR.
1994-07-30 13:13:52 +00:00
Jim Meyering
945f1c9781 (adjust_blocks): Code it as a function again. 1994-03-16 14:47:59 +00:00
Jim Meyering
239d98e18d . 1994-03-16 14:32:26 +00:00
Jim Meyering
f2b1a05bff . 1994-03-14 16:24:52 +00:00
Jim Meyering
cbd7649260 . 1994-03-14 14:54:14 +00:00
Jim Meyering
7691d2fba0 merge with 3.8.4c 1993-10-12 20:24:09 +00:00
Jim Meyering
4ab2d8f53a merge with 3.8.3e 1993-10-09 20:43:31 +00:00
Jim Meyering
f2080b7714 merge with 3.8.3b 1993-10-06 16:44:26 +00:00
Jim Meyering
061697058c merge with 3.8.3a 1993-10-06 00:24:18 +00:00
Jim Meyering
429043125e merge with 3.8.2 1993-08-26 04:38:30 +00:00
Jim Meyering
d1c5cbfcdd merge with 3.5.5 1993-05-22 02:09:05 +00:00
Jim Meyering
29c0442cad merge with 3.4.7 1993-04-15 01:58:23 +00:00
Jim Meyering
80f8bd8e8c merge with 3.4.1 1993-03-29 05:09:09 +00:00
Jim Meyering
52cafd727f (adjust_blocks): Convert to a macro. The static
function wasn't always used.
1992-10-31 22:50:51 +00:00
Jim Meyering
14fd34b788 Initial revision 1992-10-31 20:42:48 +00:00