Unix and Linux Discussions Tagged with fstab |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
7,062 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
7,148 |
Ubuntu |
|
|
|
2 |
4,888 |
OS X (Apple) |
|
|
|
2 |
5,167 |
Shell Programming and Scripting |
|
|
|
19 |
18,260 |
Ubuntu |
|
|
|
4 |
3,228 |
Shell Programming and Scripting |
|
|
|
5 |
9,530 |
Shell Programming and Scripting |
|
|
|
10 |
6,512 |
SCO |
|
|
|
2 |
14,475 |
BSD |
|
|
|
3 |
8,837 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
3,761 |
Filesystems, Disks and Memory |
|
|
|
2 |
18,613 |
Red Hat |
|
|
|
2 |
4,527 |
Shell Programming and Scripting |
|
|
|
2 |
44,500 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
7,868 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,249 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,925 |
Linux |
|
|
|
1 |
5,658 |
Linux |
|
|
|
3 |
85,449 |
Linux |
|
|
|
6 |
23,678 |
HP-UX |
|
|
|
2 |
60,727 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
9,879 |
Linux |
|
|
|
3 |
22,597 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
31,528 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
4,187 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,940 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
16,083 |
Programming |
|
|
|
4 |
6,391 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
77,427 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,930 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,484 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,084 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
26,357 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
3,672 |
UNIX for Dummies Questions & Answers |
GETFSENT(3) Library Functions Manual GETFSENT(3)
NAME
getfsent, getfsspec, getfsfile, getfstype, setfsent, endfsent - get file system descriptor file entry
SYNOPSIS
#include <fstab.h>
struct fstab *getfsent()
struct fstab *getfsspec(spec)
char *spec;
struct fstab *getfsfile(file)
char *file;
struct fstab *getfstype(type)
char *type;
int setfsent()
int endfsent()
DESCRIPTION
Getfsent, getfsspec, getfstype, and getfsfile each return a pointer to an object with the following structure containing the broken-out
fields of a line in the file system description file, <fstab.h>.
struct fstab {
char *fs_spec;
char *fs_file;
char *fs_type;
int fs_freq;
int fs_passno;
};
The fields have meanings described in fstab(5).
Getfsent reads the next line of the file, opening the file if necessary.
Setfsent opens and rewinds the file.
Endfsent closes the file.
Getfsspec and getfsfile sequentially search from the beginning of the file until a matching special file name or file system file name is
found, or until EOF is encountered. Getfstype does likewise, matching on the file system type field.
FILES
/etc/fstab
SEE ALSO
fstab(5)
DIAGNOSTICS
Null pointer (0) returned on EOF or error.
BUGS
All information is contained in a static area so it must be copied if it is to be saved.
4th Berkeley Distribution May 12, 1986 GETFSENT(3)