[vala] posix: add setgid(2) and setuid(2)



commit 85c5748ee22d96aa1ff77b9483bd996b46cc10e1
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Sun Apr 26 20:03:00 2009 +0200

    posix: add setgid(2) and setuid(2)
    
    Signed-off-by: Michael 'Mickey' Lauer <mlauer vanille-media de>
---
 vapi/posix.vapi |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index d487e65..6861b00 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -968,6 +968,10 @@ namespace Posix {
 	public int pipe ([CCode (array_length = false, null_terminated = false)] int[] pipefd);
 	[CCode (cheader_filename = "unistd.h")]
 	public ssize_t read (int fd, void* buf, size_t count);
+	[CCode (cheader_filename = "unistd.h,sys/types.h")]
+	public int setgid (gid_t gid);
+	[CCode (cheader_filename = "unistd.h,sys/types.h")]
+	public int setuid (uid_t uid);
 	[CCode (cheader_filename = "unistd.h")]
 	public int unlink (string filename);
 	[CCode (cheader_filename = "unistd.h")]



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