*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> standard/sysfs (2)              
Title
Content
Arch
Section
 

Contents


sysfs(2)							      sysfs(2)


NAME    [Toc]    [Back]

     sysfs - get file system type information

SYNOPSIS    [Toc]    [Back]

     #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    [Toc]    [Back]

     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	nullterminated
 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    [Toc]    [Back]

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

DIAGNOSTICS    [Toc]    [Back]

     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.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
getvfsbynumber Tru64 Get the virtual file system type name
fstyp HP-UX determine file system type
cd_type Tru64 determines the type of file system recorded on a
getvfsbyname Tru64 Get the virtual file system type number
sizer Tru64 Displays information about the system or kernel, or creates a system configuration file
dxsysinfo Tru64 Monitors system information such as CPU activity, memory, swap space, and file system usage
XmRepTypeGetRecord Tru64 A representation type manager function that returns information about a representation type
XmRepTypeGetRecord IRIX A representation type manager function that returns information about a representation type
XmRepTypeGetRecord HP-UX A representation type manager function that returns information about a representation type
endfsent_r Tru64 Get information about a file system
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service