Controls file system control operations.
Standard C Library (libc.a)
#include <sys/types.h>
int fscntl ( vfs_id, Command, Argument, ArgumentSize)
int vfs_id;
int Command;
char *Argument;
int ArgumentSize;
The fscntl subroutine performs a variety of file system-specific functions. These functions typically require root user authority.
At present, only one file system, the Journaled File System, supports any commands via the fscntl subroutine.
Upon successful completion, the fscntl subroutine returns a value of 0. Otherwise, a value of -1 is returned and the errno global variable is set to indicate the error.
The fscntl subroutine fails if one or both of the following are true:
EINVAL | The vfs_id parameter does not identify a valid file system. |
EINVAL | The Command parameter is not recognized by the file system. |
The chfs command.
The stat.h file.
Understanding File-System Helpers in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs explains file system helpers and examines file system-helper execution syntax.