Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getfsent(3) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fstab(5)

getfsent(3)

NAME

getfsent, getfsspec, getfsfile, setfsent, endfsent − get file system descriptor file entry

SYNTAX

#include <fstab.h>

struct fstab *getfsent()

struct fstab *getfsspec(name)
char *name;

struct fstab *getfsfile(name)
char *name;

int setfsent()

int endfsent()

DESCRIPTION

The getfsent, getfsspec and getfsfile subroutines each return a pointer to an object with the following structure containing the broken-out fields of a line in <fstab.h>. 

#defineFSNMLG16
 struct fstab{
charfs_spec[FSNMLG];
charfs_file[FSNMLG];
charfs_type[3];
intfs_freq;
intfs_passno;
};

The fields have meanings described in fstab(5).

The getfsent subroutine reads the next line of the file, opening the file if necessary. 

The setfsent subroutine opens and rewinds the file. 

The endfsent subroutine closes the file. 

The getfsspec and getfsfile subroutines 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. 

RESTRICTIONS

All information is contained in a static area so it must be copied if it is to be saved. 

DIAGNOSTICS

Null pointer returned on EOF or error. 

FILES

/etc/fstab

SEE ALSO

fstab(5)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026