Mercurial > hg > octave-jordi > gnulib-hg
comparison lib/fsusage.c @ 4333:fcd34d3861a4
in lib:
* addext.c, backupfile.c, fsusage.c, human.c, pathmax.h,
rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h>
without checking for HAVE_LIMITS_H.
* backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c,
xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed
to do that.
* fatal.c: Include <stdarg.h> without checking for __STDC__.
* exclude.c: Include <stdbool.h> unconditionally.
* tempname.c: Include <stddef.h> unconditionally.
* hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
* modechange.c, rpmatch.c (NULL): Don't define, since
<stddef.h> does that.
* quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
* safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
* safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed.
* xstrtol.c: Likewise.
* safe-read.c: Remove TYPE_SIGNED; no longer needed.
* savedir.c: Include <stddef.h> instead of defining NULL.
in m4:
* backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
* fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
* human.m4 (gl_HUMAN): Likewise.
* pathmax.m4 (gl_PATHMAX): Likewise.
* rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
* userspec.m4 (gl_USERSPEC): Likewise.
* xreadlink.m4 (gl_XREADLINK): Likewise.
* m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
* quote.m4 (gl_QUOTE): Don't check for stddef.h.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 29 May 2003 07:21:59 +0000 |
parents | 1546b85827ac |
children | a69c68914ff7 |
comparison
equal
deleted
inserted
replaced
4332:b459be4ef089 | 4333:fcd34d3861a4 |
---|---|
1 /* fsusage.c -- return space usage of mounted filesystems | 1 /* fsusage.c -- return space usage of mounted filesystems |
2 Copyright (C) 1991, 1992, 1996, 1998, 1999, 2002 Free Software | 2 |
3 Foundation, Inc. | 3 Copyright (C) 1991, 1992, 1996, 1998, 1999, 2002, 2003 Free |
4 Software Foundation, Inc. | |
4 | 5 |
5 This program is free software; you can redistribute it and/or modify | 6 This program is free software; you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
7 the Free Software Foundation; either version 2, or (at your option) | 8 the Free Software Foundation; either version 2, or (at your option) |
8 any later version. | 9 any later version. |
33 | 34 |
34 #include <sys/types.h> | 35 #include <sys/types.h> |
35 #include <sys/stat.h> | 36 #include <sys/stat.h> |
36 #include "fsusage.h" | 37 #include "fsusage.h" |
37 | 38 |
38 #if HAVE_LIMITS_H | 39 #include <limits.h> |
39 # include <limits.h> | |
40 #endif | |
41 #ifndef CHAR_BIT | |
42 # define CHAR_BIT 8 | |
43 #endif | |
44 | 40 |
45 int statfs (); | 41 int statfs (); |
46 | 42 |
47 #if HAVE_SYS_PARAM_H | 43 #if HAVE_SYS_PARAM_H |
48 # include <sys/param.h> | 44 # include <sys/param.h> |