[vala] posix: Add setsid, mknod, and tcgetsid bindings



commit 535f2734d19875ccc1f170841b72eba0c4adad1e
Author: Jukka-Pekka Iivonen <jp0409 jippii fi>
Date:   Tue Jul 28 15:02:44 2009 +0200

    posix: Add setsid, mknod, and tcgetsid bindings
    
    Fixes bug 589970.

 vapi/posix.vapi |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 113a2f6..f0aba29 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")]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]