/*++ /* NAME /* fsspace 3 /* SUMMARY /* determine available file system space /* SYNOPSIS /* #include <fsspace.h> /* /* struct fsspace { /* .in +4 /* unsigned long block_size; /* unsigned long block_free; /* .in -4 /* }; /* /* void fsspace(path, sp) /* const char *path; /* struct fsspace *sp; /* DESCRIPTION /* fsspace() returns the amount of available space in the file /* system specified in \fIpath\fR, in terms of the block size and /* of the number of available blocks. /* DIAGNOSTICS /* All errors are fatal. /* BUGS /* Use caution when doing computations with the result from fsspace(). /* It is easy to cause overflow (by multiplying large numbers) or to /* cause underflow (by subtracting unsigned numbers). /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
/* System library. */
#include <sys_defs.h>
#ifdefined(STATFS_IN_SYS_MOUNT_H) #include <sys/param.h> #include <sys/mount.h> #elifdefined(STATFS_IN_SYS_VFS_H) #include <sys/vfs.h> #elifdefined(STATVFS_IN_SYS_STATVFS_H) #include <sys/statvfs.h> #elifdefined(STATFS_IN_SYS_STATFS_H) #include <sys/statfs.h> #else #ifdef USE_STATFS #error"please specify the include file with `struct statfs'" #else #error"please specify the include file with `struct statvfs'" #endif #endif
/* Utility library. */
#include <msg.h> #include <fsspace.h>
/* fsspace - find amount of available file system space */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.