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

  man pages->Tru64 Unix man pages -> sysfs (2)              
Title
Content
Arch
Section
 

sysfs(2)

Contents


NAME    [Toc]    [Back]

       sysfs - gather information about file system types

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

PARAMETERS    [Toc]    [Back]

       Points to the buffer where the file system type is placed.
       The buffer size must be equal to  FSTYPSZ  as  defined  in
       <sys/fstyp.h>.   Specifies  an  index  file  system  type.
       Specifies a null-terminated file system  type  identifier.
       Specifies  an  operation  used to obtain information about
       the file system types.

DESCRIPTION    [Toc]    [Back]

       This function gathers information  about  configured  file
       system types.  Depending on the operation you want to perform,
 the opcode parameter may be specified by itself,  or
       in  combination  with  the  other  available parameters as
       shown in the SYNOPSIS section.

       The opcode parameter may be one of the following: Must  be
       specified  with  the  fsname  parameter.   This  operation
       changes the specified  null-terminated  file  system  type
       identifier  to  a  file  system  type identifier.  Must be
       specified with the parameters fs_index and buf. This operation
  changes  the  specified file system type index to a
       null-terminated  type  file  system  type  identifier  and
       writes it into the buffer specified.  Specified by itself,
       this operation requests the total number  of  file  system
       types configured in the system to be returned.

RETURN VALUES    [Toc]    [Back]

       The  following values are returned on success: If GETFSIND
       is specified, the file system type index is returned.   If
       GETFSTYP  is  specified,  a value of zero (0) is returned.
       If GETNFSTYP is specified, the number of file system types
       configured in the system is returned.

       On error, a value of -1 is returned and errno is set.

ERRORS    [Toc]    [Back]

       One  or  more of the following may be returned on failure:
       Indicates an invalid file system identifier is pointed  to
       fsname,  the  specified  fs_index  is  either  zero (0) or
       invalid, or the specified opcode  is  invalid.   Indicates
       that  either  fsname or buf is pointing to an invalid user
       address.  Indicates that a file system was installed  with
       a name that exceeds the buffer size of FSTYPSZ.



                                                         sysfs(2)
[ Back ]
 Similar pages
Name OS Title
sat_select IRIX preselect events for the system audit trail to gather
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
getfsspec_r Tru64 Get information about a file system
getfsfile Tru64 Get information about a file system
getfsspec Tru64 Get information about a file system
getfsent Tru64 Get information about a file system
getfsent_r Tru64 Get information about a file system
statvfs Tru64 Get file system information
fstatvfs Tru64 Get file system information
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service