Syntax | #include <sys/fstyp.h> int sysfs(int opcode[, const char *fsname]| [, int fs_index, char *buf]); | |
Description |
The following values for opcode are accepted in the C runtime system: | |
|
| Translates fsname, a null-terminated file-system identifier, into a file-system type index. |
|
| Translates fs_index, a file-system type index, into a null-terminated file-system identifier and writes it into the buffer pointed to by buf. This buffer must be at least of size |
|
| Returns the total number of file system types configured in the system. |
Return val. | File system type index | |
if opcode is | ||
0 | if opcode is | |
Number of file system types configured | ||
if opcode is | ||
-1 | if unsuccessful. | |
Errors |
| |
| fsname points to an invalid file-system identifier; fs_index is zero or invalid | |
| buf or fsname points outside the allocated address space for the process. | |
Notes |
| |
See also |
|