#ifndef __STATVFS_LOADED #define __STATVFS_LOADED 1 /************************************************************************* * - definitions for file system statistics ************************************************************************** * Header introduced by the X/Open CAE Specification, Issue 4, Version 2 ************************************************************************** * * * Copyright 2004 Hewlett-Packard Development Company, L.P. * * * * Confidential computer software. Valid license from HP and/or * * its subsidiaries required for possession, use, or copying. * * * * Consistent with FAR 12.211 and 12.212, Commercial Computer Software, * * Computer Software Documentation, and Technical Data for Commercial * * Items are licensed to the U.S. Government under vendor's standard * * commercial license. * * * * Neither HP nor any of its subsidiaries shall be liable for technical * * or editorial errors or omissions contained herein. The information * * in this document is provided "as is" without warranty of any kind and * * is subject to change without notice. The warranties for HP products * * are set forth in the express limited warranty statements accompanying * * such products. Nothing herein should be construed as constituting an * * additional warranty. * * * *************************************************************************/ #pragma __nostandard #include #ifdef __cplusplus extern "C" { #endif #pragma __member_alignment __save #pragma __member_alignment struct statvfs { unsigned long f_frsize; /* fundamental block size */ unsigned long f_bsize; /* preferred block size */ fsblkcnt_t f_blocks; /* total block count */ fsblkcnt_t f_bfree; /* free block count */ fsblkcnt_t f_bavail; /* available block count, subject to quota */ fsfilcnt_t f_files; /* total file count */ fsfilcnt_t f_ffree; /* free file count (approximate) */ fsfilcnt_t f_favail; /* available file count (approximate) */ unsigned long f_fsid; /* file system id */ unsigned long f_flag; /* ST_RDONLY, ST_NOSUID flag bits */ unsigned long f_namemax; /* maximum file name length */ char f_basetype[64]; /* device type name */ char f_fstr[64]; /* file system-specific string */ char __reserved[64]; /* reserved for future use */ }; #define ST_RDONLY 0x01 /* read-only file system */ #define ST_NOSUID 0x02 /* does not support the semantics of the ST_ISUID and ST_ISGID file mode bits */ #if __INITIAL_POINTER_SIZE # pragma __pointer_size __save # pragma __pointer_size 64 #endif int statvfs(const char * __XOPEN_RESTRICT __path, struct statvfs * __XOPEN_RESTRICT __buf); int fstatvfs(int filedes, struct statvfs *buf); #if __INITIAL_POINTER_SIZE # pragma __pointer_size __restore #endif #pragma __member_alignment __restore #ifdef __cplusplus } #endif #pragma __standard #endif