Blame bits/statfs.h

Packit 6c4009
/* Definition of `struct statfs', information about a filesystem.
Packit 6c4009
   Copyright (C) 1996-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#ifndef _SYS_STATFS_H
Packit 6c4009
# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#include <bits/types.h>
Packit 6c4009
Packit 6c4009
/* GNU Hurd NOTE: The size of this structure (16 ints) is known in
Packit 6c4009
   <hurd/hurd_types.defs>, since it is used in the `file_statfs' RPC.  MiG
Packit 6c4009
   does not cope at all well with the passed C structure not being of the
Packit 6c4009
   expected size.  There are some filler words at the end to allow for
Packit 6c4009
   future expansion.  To increase the size of the structure used in the RPC
Packit 6c4009
   and retain binary compatibility, we would need to assign a new message
Packit 6c4009
   number.  */
Packit 6c4009
Packit 6c4009
struct statfs
Packit 6c4009
  {
Packit 6c4009
    unsigned int f_type;
Packit 6c4009
    unsigned int f_bsize;
Packit 6c4009
#ifndef __USE_FILE_OFFSET64
Packit 6c4009
    __fsblkcnt_t f_blocks;
Packit 6c4009
    __fsblkcnt_t f_bfree;
Packit 6c4009
    __fsblkcnt_t f_bavail;
Packit 6c4009
    __fsblkcnt_t f_files;
Packit 6c4009
    __fsblkcnt_t f_ffree;
Packit 6c4009
#else
Packit 6c4009
    __fsblkcnt64_t f_blocks;
Packit 6c4009
    __fsblkcnt64_t f_bfree;
Packit 6c4009
    __fsblkcnt64_t f_bavail;
Packit 6c4009
    __fsblkcnt64_t f_files;
Packit 6c4009
    __fsblkcnt64_t f_ffree;
Packit 6c4009
#endif
Packit 6c4009
    __fsid_t f_fsid;
Packit 6c4009
    unsigned int f_namelen;
Packit 6c4009
    unsigned int f_spare[6];
Packit 6c4009
  };
Packit 6c4009
Packit 6c4009
#ifdef __USE_LARGEFILE64
Packit 6c4009
struct statfs64
Packit 6c4009
  {
Packit 6c4009
    unsigned int f_type;
Packit 6c4009
    unsigned int f_bsize;
Packit 6c4009
    __fsblkcnt64_t f_blocks;
Packit 6c4009
    __fsblkcnt64_t f_bfree;
Packit 6c4009
    __fsblkcnt64_t f_bavail;
Packit 6c4009
    __fsblkcnt64_t f_files;
Packit 6c4009
    __fsblkcnt64_t f_ffree;
Packit 6c4009
    __fsid_t f_fsid;
Packit 6c4009
    unsigned int f_namelen;
Packit 6c4009
    unsigned int f_spare[6];
Packit 6c4009
  };
Packit 6c4009
#endif