From: Rico Tzschichholz Date: Fri, 19 Jul 2019 15:58:45 +0000 (+0200) Subject: posix: Fix return-value of mknod() and c-include for tcgetsid() X-Git-Tag: 0.36.20~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ba3ffbeaa4fb7bc0a3ae94d3c64aa67fff40bb5;p=thirdparty%2Fvala.git posix: Fix return-value of mknod() and c-include for tcgetsid() Introduced with 535f2734d19875ccc1f170841b72eba0c4adad1e --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 01cd33e25..ee5b9675c 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -1647,7 +1647,7 @@ namespace Posix { [CCode (cheader_filename = "sys/stat.h")] public int mkdir (string path, 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")] public int utimensat (int dirfd, string pathname, [CCode (array_length = false)] timespec[] times, int flags = 0); @@ -2062,7 +2062,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")] public pid_t tcgetsid (int fd); [CCode (cheader_filename = "unistd.h")]