From: Jukka-Pekka Iivonen Date: Tue, 28 Jul 2009 13:02:44 +0000 (+0200) Subject: posix: Add setsid, mknod, and tcgetsid bindings X-Git-Tag: 0.7.5~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=535f2734d19875ccc1f170841b72eba0c4adad1e;p=thirdparty%2Fvala.git posix: Add setsid, mknod, and tcgetsid bindings Fixes bug 589970. --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 113a2f6a8..f0aba29ea 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -1312,6 +1312,8 @@ namespace Posix { public mode_t umask (mode_t mask); [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); [CCode (cheader_filename = "sys/wait.h")] public pid_t wait (out int status); @@ -1562,6 +1564,11 @@ namespace Posix { public gid_t getegid (); [CCode (cheader_filename = "unistd.h")] public int group_member (gid_t gid); + [CCode (cheader_filename = "unistd.h")] + public pid_t setsid (); + [CCode (cheader_filename = "unistd.h")] + public pid_t tcgetsid (int fd); + [SimpleType] [CCode (cname = "cc_t", cheader_filename = "termios.h")]