SYSFS(2) | System Calls | SYSFS(2) |
sysfs - get file system type information
#include <sys/fstyp.h> #include <sys/fsid.h> int sysfs(int opcode, const char *fsname);
int sysfs(int opcode, int fs_index, char *buf);
int sysfs(int opcode);
The sysfs() function returns information about the file system types configured in the system. The number of arguments accepted by sysfs() depends on the opcode argument, which can take the following values:
GETFSIND
GETFSTYP
GETNFSTYP
Upon successful completion, the value returned depends upon the opcode argument as follows:
GETFSIND
GETFSTYP
GETNFSTYP
Otherwise, −1 is returned and errno is set to indicate the error.
The sysfs() function will fail if:
EFAULT
EINVAL
July 5, 1990 | OmniOS |