]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Add setsid, mknod, and tcgetsid bindings 535f2734d19875ccc1f170841b72eba0c4adad1e
authorJukka-Pekka Iivonen <jp0409@jippii.fi>
Tue, 28 Jul 2009 13:02:44 +0000 (15:02 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 28 Jul 2009 13:03:28 +0000 (15:03 +0200)
Fixes bug 589970.

vapi/posix.vapi

index 113a2f6a85e4ec86191a836ed4961e3f9af60feb..f0aba29ea5a3f10ed86639d802c481d117a5db41 100644 (file)
@@ -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")]