sysfs man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



sysfs(2)							      sysfs(2)

NAME
     sysfs - get file system type information

SYNOPSIS
     #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);

DESCRIPTION
     sysfs  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:

     GETFSIND	   Translate fsname, a null-terminated file-system type
		   identifier, into a file-system type index.

     GETFSTYP	   Translate fs_index, a file-system type index, into a null-
		   terminated file-system type identifier and write it into
		   the buffer pointed to by buf; this buffer must be at least
		   of size FSTYPSZ as defined in <sys/fstyp.h>.

     GETNFSTYP	   Return the total number of file system types configured in
		   the system.

     sysfs fails if one or more of the following are true:

     EINVAL	   fsname points to an invalid file-system identifier;
		   fs_index is zero, or invalid; opcode is invalid.

     EFAULT	   buf or fsname points to an invalid user address.

BUGS
     sysfs does not recognize user-mode file systems such as dos or iso9660.

DIAGNOSTICS
     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.

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net