From: Michael 'Mickey' Lauer Date: Sun, 26 Apr 2009 18:03:00 +0000 (+0200) Subject: posix: add setgid(2) and setuid(2) X-Git-Tag: 0.7.3~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85c5748ee22d96aa1ff77b9483bd996b46cc10e1;p=thirdparty%2Fvala.git posix: add setgid(2) and setuid(2) Signed-off-by: Michael 'Mickey' Lauer --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index d487e6546..6861b00d2 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")]