NAME

BSD::Getfsent - Get file system descriptor file entry

SYNOPSIS

use BSD::Getfsent qw(getfsent);

while (@entry = getfsent()) {
   print "@entry\n";
}

DESCRIPTION

getfsent() reads the next line of the file, opening the file if necessary. Returns in array context each file system entry.

$entry[0]    # block special device name 
$entry[1]    # file system path prefix
$entry[2]    # type of file system
$entry[3]    # comma separated mount options
$entry[4]    # rw, ro, sw, or xx
$entry[5]    # dump frequency, in days 
$entry[6]    # pass number on parallel fsck

In scalar context, total of entries is returned.

DIAGNOSTICS

A void context is returned on EOF, invalid entry, or error.

OBSOLESCENT INTERFACES

getfsent() is to be obsoleted at a future date.

FILES

/etc/fstab

EXPORT

getfsent() is exportable.

SEE ALSO

fstab(5), getfsent(3)