Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getmountent(3) [ultrix man page]

getmountent(3)						     Library Functions Manual						    getmountent(3)

       getmountent - get information about mounted file systems without blocking

       #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 memory without blocking.	The file system information retrieved (the
       number of free inodes and blocks) might not be up to date.  If the accuracy 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 argu-
       ment is the holding area for the returned information; that is, the structures.	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 buffer 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 variable 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 system.

See Also
       getmnt(2), statfs(3)


Check Out this Related Man Page

statfs(3)						     Library Functions Manual							 statfs(3)

       statfs, - get file system statistics

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

       statfs(path, buffer)
       char *path;
       struct fs_data *buffer;

       The  library  routine returns up-to-date information about a mounted file system.  The path is the path name of any file within the mounted
       file system.  The buffer is a pointer to an structure as defined in

Return Values
       Upon successful completion, a value of is returned.  If the file system is not mounted, is returned.  Otherwise, is returned and the global
       variable errno is set to indicate the error.

       The library routine fails if one or more of the following are true:

       [ENOTDIR]      A component of the path prefix of path is not a directory.

       [EINVAL]       path contains a character with the high-order bit set.

       [ENAMETOOLONG] The length of a component of path exceeds 255 characters, or the length of path exceeds 1023 characters.

       [ENOENT]       The file referred to by path does not exist.

       [EACCES]       Search permission is denied for a component of the path prefix of path.

       [ELOOP]	      Too many symbolic links were encountered in translating path.

       [EFAULT]       buffer or path points to an invalid address.

       [EIO]	      An I/O error occurred while reading from the file system.

See Also
       getmnt(2), getmountent(3)

Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

A short history of UNIX by

<h1>A short history of UNIX</h1> <p>In the late 1960's Ken Thompsom joined the computing-science research group at Bell Laboratories, which is the research arm of the giant American corporation ATT. He and many colleagues had been collaborating with MIT and GE on the development of an... (0 Replies)
Discussion started by: Neo
0 Replies

2. Answers to Frequently Asked Questions

Lost root password / Can't login as root

We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies

3. Programming

How do you detect keystrokes in canonical mode?

I'm writing a command shell, and I want to be able to detect when the user presses an arrow key (otherwise it just prints [[A, [[B, etc.). I know it's relatively easy (although somewhat more time-consuming) to detect keystrokes in noncanonical mode, but I've noticed that the bash shell detects... (4 Replies)
Discussion started by: Ultrix
4 Replies

4. UNIX for Dummies Questions & Answers

Linux (Ubuntu) = Unix (NOT IMPORTANT - NO RUSH)

I'm learning off Linux (Ubuntu) right now. I want to move up to Unix, but I don't want to rush like I did when it came to Windows --> to Linux. What is the best Unix OS that fits in pretty well with Ubuntu. In other words is there kind of an equal Linux with Unix? Also what do I need to... (10 Replies)
Discussion started by: Linux_Guy
10 Replies

5. IP Networking

Can I change my hostname without messing things up?

I noticed my hostname is <my-full-name>s-macbook.local. I'm not sure exactly what information leaves the local network, and whether the hostname is included, but if it is, this would mean people on the Internet can look at my hostname and see who I am. Before anyone says that's not possible,... (4 Replies)
Discussion started by: Ultrix
4 Replies