1GETFSENT(3)                Library Functions Manual                GETFSENT(3)
2
3
4

NAME

6       getfsent,  getfsspec,  getfsfile,  getfstype,  setfsent, endfsent - get
7       file system descriptor file entry
8

SYNOPSIS

10       #include <fstab.h>
11
12       struct fstab *getfsent()
13
14       struct fstab *getfsspec(spec)
15       char *spec;
16
17       struct fstab *getfsfile(file)
18       char *file;
19
20       struct fstab *getfstype(type)
21       char *type;
22
23       int setfsent()
24
25       int endfsent()
26

DESCRIPTION

28       Getfsent, getfsspec, getfstype, and getfsfile each return a pointer  to
29       an object with the following structure containing the broken-out fields
30       of a line in the file system description file, <fstab.h>.
31
32              struct fstab {
33                   char *fs_spec;
34                   char *fs_file;
35                   char *fs_type;
36                   int  fs_freq;
37                   int  fs_passno;
38              };
39
40       The fields have meanings described in fstab(5).
41
42       Getfsent reads the next line of the file, opening the  file  if  necesā€
43       sary.
44
45       Setfsent opens and rewinds the file.
46
47       Endfsent closes the file.
48
49       Getfsspec  and  getfsfile sequentially search from the beginning of the
50       file until a matching special file name or file  system  file  name  is
51       found,  or until EOF is encountered.  Getfstype does likewise, matching
52       on the file system type field.
53

FILES

55       /etc/fstab
56

SEE ALSO

58       fstab(5)
59

DIAGNOSTICS

61       Null pointer (0) returned on EOF or error.
62

BUGS

64       All information is contained in a static area so it must be  copied  if
65       it is to be saved.
66
67
68
694th Berkeley Distribution        May 12, 1986                      GETFSENT(3)
Impressum