summaryrefslogtreecommitdiffstats
path: root/sys/dev/ida/ida_disk.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2013-07-10 21:37:50 +0000
committermarcel <marcel@FreeBSD.org>2013-07-10 21:37:50 +0000
commitfcb95347baeec42d957fb996ed09964cde3d569c (patch)
tree085afa749baca1d3ae1bf4ca3c775600d2be36b1 /sys/dev/ida/ida_disk.c
parent83f765770b5fa0c1343673ce24b8e7fa2ace5e29 (diff)
downloadFreeBSD-src-fcb95347baeec42d957fb996ed09964cde3d569c.zip
FreeBSD-src-fcb95347baeec42d957fb996ed09964cde3d569c.tar.gz
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.
Diffstat (limited to 'sys/dev/ida/ida_disk.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud