statvfs64()--Get File System Information (64-Bit Enabled)


  Syntax
 #include <sys/statvfs.h>

 int statvfs64(const char *path, struct statvfs64 *buf)  
  Service Program Name: QP0LLIB1

  Default Public Authority: *USE

  Threadsafe: Conditional; see Usage Notes.

The statvfs64() function gets status information about the file system that contains the file named by the path argument. The information is placed in the area of memory pointed to by the buf argument.

If the named file is a symbolic link, statvfs64() resolves the symbolic link.

For details about authorities required, error conditions, and examples, see statvfs()--Get File System Information.


Parameters

path
(Input) A pointer to the null-terminated path name of the file from which file system information is required.

This parameter is assumed to be represented in the coded character set identifier (CCSID) currently in effect for the job. If the CCSID of the job is 65535, this parameter is assumed to be represented in the default CCSID of the job.

See QlgStatvfs64()--Get File System Information (64-Bit enabled and using NLS-enabled path name) for a description and an example of supplying the path in any CCSID.


buf
(Output) A pointer to the area to which the information should be written.

The information is returned in the following statvfs64 structure, as defined in the <sys/statvfs.h> header file. Signed fields of the statvfs64 structure that are not supported by the mounted file system will be set to -1.

For further details about the f_flag field, see statvfs()--Get File System Information.


Usage Notes

  1. When you develop in C-based languages, the prototypes for the 64-bit APIs are normally hidden. To use the statvfs64() API or the QlgStatvfs64() API and the struct statvfs64 data type, you must compile the source with the _LARGE_FILE_API macro defined.
  2. All of the usage notes for statvfs() apply to statvfs64() and QlgStatvfs64(). See Usage Notes in the statvfs() API.


API introduced: V4R4

[ Back to top | UNIX-Type APIs | APIs by category ]