Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


statvfs.h
001: /* Copyright (C) 1997,1998,2000,2001,2002,2006 Free Software Foundation, Inc.
002:    This file is part of the GNU C Library.
003: 
004:    The GNU C Library is free software; you can redistribute it and/or
005:    modify it under the terms of the GNU Lesser General Public
006:    License as published by the Free Software Foundation; either
007:    version 2.1 of the License, or (at your option) any later version.
008: 
009:    The GNU C Library is distributed in the hope that it will be useful,
010:    but WITHOUT ANY WARRANTY; without even the implied warranty of
011:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
012:    Lesser General Public License for more details.
013: 
014:    You should have received a copy of the GNU Lesser General Public
015:    License along with the GNU C Library; if not, write to the Free
016:    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
017:    02111-1307 USA.  */
018: 
019: #ifndef _SYS_STATVFS_H
020: # error "Never include <bits/statvfs.h> directly; use <sys/statvfs.h> instead."
021: #endif
022: 
023: #include <bits/types.h>  /* For __fsblkcnt_t and __fsfilcnt_t.  */
024: 
025: #if __WORDSIZE == 32
026: #define _STATVFSBUF_F_UNUSED
027: #endif
028: 
029: struct statvfs
030:   {
031:     unsigned long int f_bsize;
032:     unsigned long int f_frsize;
033: #ifndef __USE_FILE_OFFSET64
034:     __fsblkcnt_t f_blocks;
035:     __fsblkcnt_t f_bfree;
036:     __fsblkcnt_t f_bavail;
037:     __fsfilcnt_t f_files;
038:     __fsfilcnt_t f_ffree;
039:     __fsfilcnt_t f_favail;
040: #else
041:     __fsblkcnt64_t f_blocks;
042:     __fsblkcnt64_t f_bfree;
043:     __fsblkcnt64_t f_bavail;
044:     __fsfilcnt64_t f_files;
045:     __fsfilcnt64_t f_ffree;
046:     __fsfilcnt64_t f_favail;
047: #endif
048:     unsigned long int f_fsid;
049: #ifdef _STATVFSBUF_F_UNUSED
050:     int __f_unused;
051: #endif
052:     unsigned long int f_flag;
053:     unsigned long int f_namemax;
054:     int __f_spare[6];
055:   };
056: 
057: #ifdef __USE_LARGEFILE64
058: struct statvfs64
059:   {
060:     unsigned long int f_bsize;
061:     unsigned long int f_frsize;
062:     __fsblkcnt64_t f_blocks;
063:     __fsblkcnt64_t f_bfree;
064:     __fsblkcnt64_t f_bavail;
065:     __fsfilcnt64_t f_files;
066:     __fsfilcnt64_t f_ffree;
067:     __fsfilcnt64_t f_favail;
068:     unsigned long int f_fsid;
069: #ifdef _STATVFSBUF_F_UNUSED
070:     int __f_unused;
071: #endif
072:     unsigned long int f_flag;
073:     unsigned long int f_namemax;
074:     int __f_spare[6];
075:   };
076: #endif
077: 
078: /* Definitions for the flag in `f_flag'.  These definitions should be
079:    kept in sync with the definitions in <sys/mount.h>.  */
080: enum
081: {
082:   ST_RDONLY = 1,                /* Mount read-only.  */
083: #define ST_RDONLY       ST_RDONLY
084:   ST_NOSUID = 2                 /* Ignore suid and sgid bits.  */
085: #define ST_NOSUID       ST_NOSUID
086: #ifdef __USE_GNU
087:   ,
088:   ST_NODEV = 4,                 /* Disallow access to device special files.  */
089: # define ST_NODEV       ST_NODEV
090:   ST_NOEXEC = 8,                /* Disallow program execution.  */
091: # define ST_NOEXEC      ST_NOEXEC
092:   ST_SYNCHRONOUS = 16,          /* Writes are synced at once.  */
093: # define ST_SYNCHRONOUS ST_SYNCHRONOUS
094:   ST_MANDLOCK = 64,             /* Allow mandatory locks on an FS.  */
095: # define ST_MANDLOCK    ST_MANDLOCK
096:   ST_WRITE = 128,               /* Write on file/directory/symlink.  */
097: # define ST_WRITE       ST_WRITE
098:   ST_APPEND = 256,              /* Append-only file.  */
099: # define ST_APPEND      ST_APPEND
100:   ST_IMMUTABLE = 512,           /* Immutable file.  */
101: # define ST_IMMUTABLE   ST_IMMUTABLE
102:   ST_NOATIME = 1024,            /* Do not update access times.  */
103: # define ST_NOATIME     ST_NOATIME
104:   ST_NODIRATIME = 2048,         /* Do not update directory access times.  */
105: # define ST_NODIRATIME  ST_NODIRATIME
106:   ST_RELATIME = 4096            /* Update atime relative to mtime/ctime.  */
107: # define ST_RELATIME    ST_RELATIME
108: #endif  /* Use GNU.  */
109: };
110: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/