aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cpio/pathmatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cpio/pathmatch.h')
-rw-r--r--usr.bin/cpio/pathmatch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/cpio/pathmatch.h b/usr.bin/cpio/pathmatch.h
index 990fa1fa1e04..fd2c2575cc0a 100644
--- a/usr.bin/cpio/pathmatch.h
+++ b/usr.bin/cpio/pathmatch.h
@@ -29,9 +29,14 @@
#ifndef PATHMATCH_H
#define PATHMATCH_H
+/* Don't anchor at beginning unless the pattern starts with "^" */
#define PATHMATCH_NO_ANCHOR_START 1
+/* Don't anchor at end unless the pattern ends with "$" */
#define PATHMATCH_NO_ANCHOR_END 2
+/* Note that "^" and "$" are not special unless you set the corresponding
+ * flag above. */
+
int pathmatch(const char *p, const char *s, int flags);
#endif