X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff:/include/sys/statvfs.h diff --git a/include/sys/statvfs.h b/include/sys/statvfs.h index d672e58..51f37af 100644 --- a/include/sys/statvfs.h +++ b/include/sys/statvfs.h @@ -3,8 +3,6 @@ * * @APPLE_LICENSE_HEADER_START@ * - * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. - * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in @@ -29,17 +27,24 @@ #ifndef _SYS_STATVFS_H_ #define _SYS_STATVFS_H_ +#include #include -/* Following types need to be defined in as well */ -typedef unsigned int fsblkcnt_t; -typedef unsigned int fsfilcnt_t; +#ifndef _FSBLKCNT_T +#define _FSBLKCNT_T +typedef __darwin_fsblkcnt_t fsblkcnt_t; +#endif + +#ifndef _FSFILCNT_T +#define _FSFILCNT_T +typedef __darwin_fsfilcnt_t fsfilcnt_t; +#endif /* Following structure is used as a statvfs/fstatvfs function parameter */ struct statvfs { unsigned long f_bsize; /* File system block size */ unsigned long f_frsize; /* Fundamental file system block size */ - fsblkcnt_t f_blocks; /* Blocks on FS in units of f_frsize*/ + fsblkcnt_t f_blocks; /* Blocks on FS in units of f_frsize */ fsblkcnt_t f_bfree; /* Free blocks */ fsblkcnt_t f_bavail; /* Blocks available to non-root */ fsfilcnt_t f_files; /* Total inodes */