aboutsummaryrefslogtreecommitdiff
path: root/manual/pattern.texi
diff options
context:
space:
mode:
Diffstat (limited to 'manual/pattern.texi')
-rw-r--r--manual/pattern.texi15
1 files changed, 15 insertions, 0 deletions
diff --git a/manual/pattern.texi b/manual/pattern.texi
index 596b72d4fa..0fc5e81c75 100644
--- a/manual/pattern.texi
+++ b/manual/pattern.texi
@@ -466,6 +466,21 @@ glob ("~homer/bin/*", GLOB_TILDE, NULL, &result)
@end smallexample
This functionality is equivalent to what is available in C-shells.
+
+@comment glob.h
+@comment GNU
+@item GLOB_ONLYDIR
+If this flag is used the globbing function takes this as a
+@strong{hint} that the caller is only interested in directories
+matching the pattern. If the information about the type of the file
+is easily available non-directories will be rejected but no extra
+work will be done to determine the information for each file. I.e.,
+the caller must still be able to filter directories out.
+
+This functionality is only available witht eh GNU @code{glob}
+implementation. It is mainly used internally to increase the
+performance but might be useful for a user as well and therefore is
+documented here.
@end table
Calling @code{glob} will in most cases allocate resources which are used