[vala/staging: 6/10] linux: add getgroups(2), setgroups(2), getresgid(2), getresuid(2), setresgid(2), setresuid(2)
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 6/10] linux: add getgroups(2), setgroups(2), getresgid(2), getresuid(2), setresgid(2), setresuid(2)
- Date: Thu, 8 Mar 2018 08:07:20 +0000 (UTC)
commit b036f2ca59a8fd9d79da54627cd769a3e9fc861b
Author: Dr. Michael Lauer <mickey vanille-media de>
Date: Wed Mar 7 10:41:51 2018 +0100
linux: add getgroups(2), setgroups(2), getresgid(2), getresuid(2), setresgid(2), setresuid(2)
Based on a VAPI by Colin Watson.
vapi/linux.vapi | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index f1f8573..42a7fc4 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -1061,6 +1061,20 @@ namespace Linux {
[CCode (cheader_filename = "unistd.h", feature_test_macro = "_GNU_SOURCE")]
public int dup3 (int oldfd, int newfd, int flags);
+
+ [CCode (cheader_filename = "sys/types.h,unistd.h")]
+ public int getgroups ([CCode (array_length_pos = 0.9)] Posix.gid_t[]? list = null);
+ [CCode (cheader_filename = "unistd.h", feature_test_macro = "_GNU_SOURCE")]
+ public int getresgid (out Posix.gid_t rgid, out Posix.gid_t egid, out Posix.gid_t sgid);
+ [CCode (cheader_filename = "unistd.h", feature_test_macro = "_GNU_SOURCE")]
+ public int getresuid (out Posix.uid_t ruid, out Posix.uid_t euid, out Posix.uid_t suid);
+ [CCode (cheader_filename = "sys/types.h,grp.h,unistd.h")]
+ public int setgroups ([CCode (array_length_pos = 0.9)] Posix.gid_t[] list);
+ [CCode (cheader_filename = "unistd.h", feature_test_macro = "_GNU_SOURCE")]
+ public int setresgid (Posix.gid_t rgid, Posix.gid_t egid, Posix.gid_t sgid);
+ [CCode (cheader_filename = "unistd.h", feature_test_macro = "_GNU_SOURCE")]
+ public int setresuid (Posix.uid_t ruid, Posix.uid_t euid, Posix.uid_t suid);
+
[CCode (cheader_filename = "unistd.h")]
public int sethostname (string name, size_t len);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]