Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

disk_info.h File Reference


Detailed Description

Query disk space properties.

#include "int_sizes.h"

Go to the source code of this file.

Functions

int disk_info_get (const char *path, UINT64_T *avail, UINT64_T *total)
 Get the total and available space on a disk.


Function Documentation

int disk_info_get const char *  path,
UINT64_T *  avail,
UINT64_T *  total
 

Get the total and available space on a disk.

Parameters:
path A filename on the disk to be examined.
avail A pointer to an integer that will be filled with the available space in bytes.
total A pointer to an integer that will be filled with the total space in bytes.
Returns:
Greater than or equal to zero on success, less than zero otherwise.


Generated on Mon Mar 29 16:26:25 2010 for cctools by  doxygen 1.3.9.1