GETFSENT(3X) — Unix Programmer’s Manual
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;
intfs_freq;
intfs_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
draw(x, y)
Draw a line from the pen location to (x, y). As with all graphics coordinates, (x, y) is measured from the bottom left corner of the screen. (x, y) coordinates represent the first quadrant of the usual Cartesian system.
drawbox(r, c, color, rows, cols)
Draw a rectangular box on the graphics screen. The lower left corner is at location (r, c). The box is rows rows high and c
4th Berkeley Distribution — 1 August 1985