Displaying 5 results from an estimated 5 matches for "have_fnmatch".
Did you mean:
have_fnmatch_h
2005 May 23
3
module-init-tools ported to klibc
...uot;
+
+#ifndef HAVE_GETOPT_LONG
+#include "unistd.h"
+
+int getopt_long(int argc, char *const argv[],
+ const char *optstring,
+ const struct option *longopts, int *longindex)
+{
+ /* TODO: the rest of getopt_long */
+ return getopt(argc, argv, optstring);
+}
+
+#endif
+
+#ifndef HAVE_FNMATCH
+
+/* shamelessly copied from udev */
+/* compare string with pattern (supports * ? [0-9] [!A-Z]) */
+static int strcmp_pattern(const char *p, const char *s)
+{
+ if (s[0] == '\0') {
+ while (p[0] == '*')
+ p++;
+ return (p[0] != '\0');
+ }
+ switch (p[0]) {
+ case '...
2019 Jan 25
0
[klibc:update-dash] expand: Remove dependency on fmatch.h if it does not exit
...usr/dash/expand.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/usr/dash/expand.c b/usr/dash/expand.c
index e2d563fe..153f6b7a 100644
--- a/usr/dash/expand.c
+++ b/usr/dash/expand.c
@@ -45,7 +45,9 @@
#include <inttypes.h>
#include <limits.h>
#include <string.h>
+#ifdef HAVE_FNMATCH
#include <fnmatch.h>
+#endif
#ifdef HAVE_GLOB
#include <glob.h>
#endif
2020 Mar 28
0
[klibc:update-dash] dash: expand: Remove dependency on fmatch.h if it does not exit
...usr/dash/expand.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/usr/dash/expand.c b/usr/dash/expand.c
index e2d563fe..153f6b7a 100644
--- a/usr/dash/expand.c
+++ b/usr/dash/expand.c
@@ -45,7 +45,9 @@
#include <inttypes.h>
#include <limits.h>
#include <string.h>
+#ifdef HAVE_FNMATCH
#include <fnmatch.h>
+#endif
#ifdef HAVE_GLOB
#include <glob.h>
#endif
2002 Jan 07
0
rsync-2.5.1 / lib patches
...29 05:35:04 2000
+++ lcl_lib:fnmatch.c Sun Jan 6 08:42:06 2002
@@ -1,4 +1,9 @@
+/* Converted by prj_src:unix_c_to_vms_c.tpu AND prj_lib:fnmatch.tpu on
6-JAN-2
002 08:42:06.02 OPENVMS_AXP */
+#ifdef __VMS
+#include "rsync.h"
+#else
#include "../rsync.h"
+#endif
#ifndef HAVE_FNMATCH
/* ----- THE FOLLOWING UP TO 'END' is glibc-2.1.2 posix/fnmatch.c
@@ -128,7 +133,11 @@
whose names are inconsistent. */
# if !defined _LIBC && !defined getenv
+#ifdef __VMS
+/* defined in stdlib.h */
+#else
extern char *getenv ();
+#endif
# endif
# ifndef errno
P...
2002 May 07
0
Fixing exclude/exclude wildcard handling
...if (match_start? wildmat(name, pattern)
+ : wildmat_tail(name, pattern))
return 1;
- }
} else {
int l1 = strlen(name);
int l2 = strlen(pattern);
Index: rsync.h
--- rsync.h 2002/04/11 02:18:51 1.131
+++ rsync.h 2002/05/08 04:19:51
@@ -173,11 +173,7 @@
#endif
#endif
-#ifdef HAVE_FNMATCH
-#include <fnmatch.h>
-#else
-#include "lib/fnmatch.h"
-#endif
+#include "lib/wildmat.h"
#ifdef HAVE_GLOB_H
#include <glob.h>
@@ -392,8 +388,7 @@
struct exclude_struct {
char *pattern;
- int regular_exp;
- int fnmatch_flags;
+ int wild_match;
int include;...