[vala/staging] posix: Fix a few binding errors



commit d41d0f9ff999b16e5df49e9b9779165b2fcba463
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Jan 27 15:34:53 2021 +0100

    posix: Fix a few binding errors

 vapi/posix.vapi | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index e28dabcbe..4cf206e9c 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -249,7 +249,7 @@ public struct double {
 [IntegerType (rank = 8)]
 public struct time_t {
        [CCode (cname = "time")]
-       public time_t ();
+       public time_t (time_t? tloc = null);
 }
 
 [SimpleType]
@@ -1622,7 +1622,7 @@ namespace Posix {
        [CCode (has_target = false, cheader_filename = "signal.h", feature_test_macro = "_GNU_SOURCE")]
        public delegate void sighandler_t (int signal);
 
-       [CCode (has_target = false, cheader_filename = "signal.h")]
+       [CCode (has_typedef = false, has_target = false, cheader_filename = "signal.h")]
        public delegate void siginfohandler_t (int signal, siginfo_t info, void* data);
 
        [CCode (cheader_filename = "signal.h")]
@@ -2458,7 +2458,7 @@ namespace Posix {
        public void tzset ();
 
        [SimpleType]
-       [IntegerType]
+       [IntegerType (rank = 8)]
        [CCode (cheader_filename = "time.h", has_type_id = false)]
        public struct clockid_t {
        }
@@ -2625,7 +2625,7 @@ namespace Posix {
        [CCode (cheader_filename = "unistd.h")]
        public const int _SC_VERSION;
        [CCode (cheader_filename = "unistd.h")]
-       public const int _SC_BASE_MAX;
+       public const int _SC_BC_BASE_MAX;
        [CCode (cheader_filename = "unistd.h")]
        public const int _SC_BC_DIM_MAX;
        [CCode (cheader_filename = "unistd.h")]
@@ -2635,7 +2635,7 @@ namespace Posix {
        [CCode (cheader_filename = "unistd.h")]
        public const int _SC_COLL_WEIGHTS_MAX;
        [CCode (cheader_filename = "unistd.h")]
-       public const int _SC_EXRP_NEST_MAX;
+       public const int _SC_EXPR_NEST_MAX;
        [CCode (cheader_filename = "unistd.h")]
        public const int _SC_LINE_MAX;
        [CCode (cheader_filename = "unistd.h")]
@@ -2741,7 +2741,7 @@ namespace Posix {
        [CCode (cheader_filename = "unistd.h")]
        public uint alarm (uint seconds);
        [CCode (cheader_filename = "unistd.h")]
-       public uint ualarm (uint useconds);
+       public uint ualarm (uint useconds, uint interval);
        [CCode (cheader_filename = "unistd.h")]
        public uint sleep (uint seconds);
        [CCode (cheader_filename = "unistd.h")]
@@ -3654,6 +3654,7 @@ namespace Posix {
                public const RegexSyntax POSIX_EGREP;
                public const RegexSyntax ED;
                public const RegexSyntax SED;
+               [CCode (cname = "_RE_SYNTAX_POSIX_COMMON")]
                public const RegexSyntax _POSIX_COMMON;
                public const RegexSyntax POSIX_BASIC;
                public const RegexSyntax POSIX_MINIMAL_BASIC;
@@ -3672,7 +3673,7 @@ namespace Posix {
                ENOSYS = -1, /* (Strictly speaking, requires _XOPEN_SOURCE) */
                NOERROR = 0,
                NOMATCH,
-               BAD,
+               BADPAT,
                ECOLLATE,
                ECTYPE,
                EESCAPE,


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