get file system type information
cc . . . -lc
int sysfs (opcode, fsname)
int sysfs (opcode, fs_index, buf)
int sysfs (opcode)
The sysfs system call returns information about the file
system types configured in the system. The number of arguments
accepted by sysfs varies and depends on the
opcode. The currently recognized opcodes and their
functions are described below:
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 FSTYPSZ as defined in
returns the total number of file system types configured in
The sysfs system call fails if one or more of the following is true:
buf or fsname point to an invalid user address.
fsname points to an invalid file-system identifier;
fs_index is zero, or invalid; opcode is invalid.
Upon successful completion, sysfs returns the file-system
type index if the opcode is GETFSIND, a value
of 0 if the opcode is GETFSTYP, or the
number of file system types configured if the opcode is
GETNFSTYP. Otherwise, a value of -1 is returned,
and errno is set to indicate the error.
sysfs is not part of any currently supported standard;
it is an extension of AT&T System V provided by the Santa Cruz Operation.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003