This commit is contained in:
Michael Kerrisk 2007-07-09 21:07:06 +00:00
parent d1de5f7528
commit 296d592bc1
2 changed files with 15 additions and 10 deletions

View File

@ -40,19 +40,22 @@ getfsent, getfsspec, getfsfile, setfsent, endfsent \- handle fstab entries
.SH DESCRIPTION .SH DESCRIPTION
These functions read from the file These functions read from the file
.IR /etc/fstab . .IR /etc/fstab .
The \fIstruct fstab\fP is defined by The \fIstruct fstab\fP is defined by:
.LP .LP
.in +0.5i
.nf .nf
struct fstab { struct fstab {
char *fs_spec; /* block device name */ char *fs_spec; /* block device name */
char *fs_file; /* mount point */ char *fs_file; /* mount point */
char *fs_vfstype; /* filesystem type */ char *fs_vfstype; /* filesystem type */
char *fs_mntops; /* mount options */ char *fs_mntops; /* mount options */
const char *fs_type; /* rw/rq/ro/sw/xx option */ const char *fs_type; /* rw/rq/ro/sw/xx option */
int fs_freq; /* dump frequency, in days */ int fs_freq; /* dump frequency, in days */
int fs_passno; /* pass number on parallel dump */ int fs_passno; /* pass number on parallel dump */
}; };
.fi .fi
.in
.PP
Here the field Here the field
.I fs_type .I fs_type
contains (on a *BSD system) contains (on a *BSD system)

View File

@ -226,11 +226,13 @@ These will store their error code in
.SH EXAMPLE .SH EXAMPLE
One example of use is the following code, which simulates typing One example of use is the following code, which simulates typing
.sp .sp
.B ls \-l *.c ../*.c .in +4n
ls \-l *.c ../*.c
.in
.sp .sp
in the shell: in the shell:
.nf .nf
.in 10 .in +4n
glob_t globbuf; glob_t globbuf;