Displaying 2 results from an estimated 2 matches for "glob_period".
2017 Jun 03
15
[Bug 1154] New: Allow include statement to operate on directories and/or wildcards
https://bugzilla.netfilter.org/show_bug.cgi?id=1154
Bug ID: 1154
Summary: Allow include statement to operate on directories
and/or wildcards
Product: nftables
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: nft
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...+
+#include <caml/alloc.h>
+#include <caml/fail.h>
+#include <caml/memory.h>
+#include <caml/mlvalues.h>
+
+/* NB: These flags must appear in the same order as glob.ml */
+static int flags[] = {
+ GLOB_ERR,
+ GLOB_MARK,
+ GLOB_NOSORT,
+ GLOB_NOCHECK,
+ GLOB_NOESCAPE,
+ GLOB_PERIOD,
+};
+
+value
+supermin_glob (value patternv, value flagsv)
+{
+ CAMLparam2 (patternv, flagsv);
+ CAMLlocal2 (rv, sv);
+ int f = 0, r;
+ size_t i;
+ glob_t g;
+
+ memset (&g, 0, sizeof g);
+
+ /* Convert flags to bitmask. */
+ while (flagsv != Val_int (0)) {
+ f |= flags[Int_val (Fie...