Searched hist:253172 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10-stable/sys/boot/ficl/
H A Dloader.cdiff 253172 Wed Jul 10 19:50:52 MDT 2013 marcel Add 2 builtin words for working with directories:
isdir? ( fd -- bool )
freaddir ( fd -- ptr len TRUE | FALSE )

The 'isdir?' word returns `true' if the file descriptor is for a
directory and `false' otherwise.

The 'freaddir' word reads the next directory entry and if successful,
returns its name and 'true'. Otherwise 'false' is returned.

These words give the loader the ability to scan directories and read
files contained in them for 'rc.d'-like flexibility in handling which
modules to load and/or which tunables to set.

Obtained from: Juniper Networks, Inc.

Completed in 167 milliseconds