]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Add pseudo terminal functions
authorDidier 'Ptitjes <ptitjes@free.fr>
Sat, 23 May 2009 09:51:13 +0000 (11:51 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 31 May 2009 11:57:15 +0000 (13:57 +0200)
Add posix_openpt(3), grantpt(3), and unlockpt(3) bindings.

Signed-off-by: Michael 'Mickey' Lauer <mlauer@vanille-media.de>
vapi/posix.vapi

index 68d299ac41ac86e5407fffb90a085a8242565e9f..deccb513b80d28d142f3d8c46a4f9d03dd52b8f0 100644 (file)
@@ -603,6 +603,13 @@ namespace Posix {
        [CCode (cheader_filename = "stdlib.h")]
        public int mkostemp (string template, int flags);
 
+       [CCode (cheader_filename = "stdlib.h")]
+       public int posix_openpt (int flags);
+       [CCode (cheader_filename = "stdlib.h")]
+       public int grantpt (int fd);
+       [CCode (cheader_filename = "stdlib.h")]
+       public int unlockpt (int fd);
+
        [CCode (cheader_filename = "stdlib.h")]
        public int system (string command);