mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-23 18:47:57 +00:00
68a256c892
Make the following changes by hand, and run 'admin/merge-gnulib'. * .gitignore: Add lib/malloc/*.gl.h. * admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h directly from Gnulib, without worrying about Gnulib modules, as these files are special cases. (AVOIDED_MODULES): Remove malloc-posix. * lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4: * m4/year2038.m4: New files, copied from Gnulib. * lib/malloca.c, lib/malloca.h: * m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4: Remove. These are either no longer present in Gnulib, or are no longer needed by modules that Emacs uses. * oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first; needed for new Gnulib. * src/xmenu.c: Call emacs_abort, not abort.
41 lines
1.5 KiB
C
41 lines
1.5 KiB
C
/* fsusage.h -- declarations for file system space usage info
|
|
|
|
Copyright (C) 1991-1992, 1997, 2003-2006, 2009-2021 Free Software
|
|
Foundation, Inc.
|
|
|
|
This file is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Lesser General Public License as
|
|
published by the Free Software Foundation; either version 3 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This file is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
|
|
|
/* Space usage statistics for a file system. Blocks are 512-byte. */
|
|
|
|
#if !defined FSUSAGE_H_
|
|
# define FSUSAGE_H_
|
|
|
|
# include <stdint.h>
|
|
# include <stdbool.h>
|
|
|
|
struct fs_usage
|
|
{
|
|
uintmax_t fsu_blocksize; /* Size of a block. */
|
|
uintmax_t fsu_blocks; /* Total blocks. */
|
|
uintmax_t fsu_bfree; /* Free blocks available to superuser. */
|
|
uintmax_t fsu_bavail; /* Free blocks available to non-superuser. */
|
|
bool fsu_bavail_top_bit_set; /* 1 if fsu_bavail represents a value < 0. */
|
|
uintmax_t fsu_files; /* Total file nodes. */
|
|
uintmax_t fsu_ffree; /* Free file nodes. */
|
|
};
|
|
|
|
int get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp);
|
|
|
|
#endif
|