[vala/staging] posix: Add fnmatch(3) and assorted constants.



commit 24a4e8c510351ed1a07504a1b38b5969839ef651
Author: Dr. Michael Lauer <mickey vanille-media de>
Date:   Tue Mar 6 14:03:06 2018 +0100

    posix: Add fnmatch(3) and assorted constants.
    
    Based on a patch by Andre Masella.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663633

 vapi/posix.vapi |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index e944542..7e4d7a0 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -337,6 +337,26 @@ namespace Posix {
                public pid_t l_pid;
        }
 
+       [CCode(cheader_filename = "fnmatch.h")]
+       public int fnmatch (string pattern, string str, int flags = 0);
+
+       [CCode(cheader_filename = "fnmatch.h", feature_test_macro = "_GNU_SOURCE")]
+       public const int FNM_CASEFOLD;
+       [CCode(cheader_filename = "fnmatch.h", feature_test_macro = "_GNU_SOURCE")]
+       public const int FNM_EXTMATCH;
+       [CCode(cheader_filename = "fnmatch.h", feature_test_macro = "_GNU_SOURCE")]
+       public const int FNM_FILE_NAME;
+       [CCode(cheader_filename = "fnmatch.h", feature_test_macro = "_GNU_SOURCE")]
+       public const int FNM_LEADING_DIR;
+       [CCode(cheader_filename = "fnmatch.h")]
+       public const int FNM_NOESCAPE;
+       [CCode(cheader_filename = "fnmatch.h")]
+       public const int FNM_NOMATCH;
+       [CCode(cheader_filename = "fnmatch.h")]
+       public const int FNM_PATHNAME;
+       [CCode(cheader_filename = "fnmatch.h")]
+       public const int FNM_PERIOD;
+
        [Compact]
        [CCode (cname = "struct group", cheader_filename = "grp.h")]
        public class Group {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]