]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Fix return-value of mknod() and c-include for tcgetsid()
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 19 Jul 2019 15:58:45 +0000 (17:58 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 19 Jul 2019 16:35:07 +0000 (18:35 +0200)
Introduced with 535f2734d19875ccc1f170841b72eba0c4adad1e

vapi/posix.vapi

index 26f516e1c6e6dd5c02c1967f085715427825bfed..eb385bb707bb48f1bf5ce1a82cc0ce327911afb2 100644 (file)
@@ -2289,7 +2289,7 @@ namespace Posix {
        [CCode (cheader_filename = "sys/stat.h", feature_test_macro = "_GNU_SOURCE")]
        public int mkdirat (int dirfd, string pathname, mode_t mode);
        [CCode (cheader_filename = "sys/types.h,sys/stat.h,fcntl.h,unistd.h")]
-       public pid_t mknod (string pathname, mode_t mode, dev_t dev);
+       public int mknod (string pathname, mode_t mode, dev_t dev);
        [CCode (cheader_filename = "sys/stat.h", feature_test_macro = "_GNU_SOURCE")]
        public int mknodat (int dirfd, string pathname, mode_t mode, dev_t dev);
 
@@ -2716,7 +2716,7 @@ namespace Posix {
        public int group_member (gid_t gid);
        [CCode (cheader_filename = "unistd.h")]
        public pid_t setsid ();
-       [CCode (cheader_filename = "unistd.h")]
+       [CCode (cheader_filename = "termios.h", feature_test_macro = "_GNU_SOURCE")]
        public pid_t tcgetsid (int fd);
 
        [CCode (cheader_filename = "unistd.h")]