getmountent man page on Ultrix

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

getmountent(3)							getmountent(3)

       getmountent - get information about mounted file systems without block‐

       #include <sys/types.h>
       #include <sys/param.h>
       #include <sys/mount.h>

       getmountent(start, buffer, nentries)
       int	 *start;
       struct fs_data *buffer;
       int	  nentries;

       The library routine retrieves mounted file system information from mem‐
       ory  without blocking.  The file system information retrieved (the num‐
       ber of free inodes and blocks) might not be up to date.	If  the	 accu‐
       racy  of	 the file system information retrieved is critical, you should
       use or instead of

       The start argument is the current logical location within the  internal
       system mount table and must be initially set to 0.  The buffer argument
       is the holding area for the returned information; that is,  the	struc‐
       tures.	The  size  of  buffer should be at least the number of entries
       times the size of the structure, in bytes.

       The nentries argument defines the number of mount  table	 entries  that
       are to be retrieved.

       The  number of file systems described by the information placed in buf‐
       fer is returned.	 The start argument  is	 updated  so  that  successive
       calls can be used to retrieve the entire mount table.

Return Values
       Upon successful completion, a value indicating the number of structures
       stored in buffer is returned.  If there are no more file systems in the
       mount  table, is returned.  Otherwise, is returned and the global vari‐
       able errno is set to indicate the error.

       EINVAL	      Invalid argument.

       EFAULT	      Either buffer or start causes an illegal	address
		      to be referenced.

       EIO	      An I/O error occurred while reading from the file

See Also
       getmnt(2), statfs(3)


List of man pages available for Ultrix

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]
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