[vala] posix: Add getpwuid, getgrnam, and getgrgid bindings



commit 61532da8b253a7427050fde478a6ba801c5b2763
Author: Marcin Lewandowski <www saepia net>
Date:   Fri Aug 17 13:10:12 2012 +0200

    posix: Add getpwuid, getgrnam, and getgrgid bindings
    
    Fixes bug 682015.

 vapi/posix.vapi |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 3eeb3af..dc3cade 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -338,6 +338,10 @@ namespace Posix {
 	public void endgrent ();
 	public unowned Group? getgrent ();
 	public void setgrent ();
+	[CCode (cheader_filename = "grp.h")]
+	public unowned Group? getgrgid (gid_t gid);
+	[CCode (cheader_filename = "grp.h")]
+	public unowned Group? getgrnam (string name);
 
 	[CCode (cheader_filename = "netinet/in.h")]
 	public const int INET_ADDRSTRLEN;
@@ -722,6 +726,8 @@ namespace Posix {
 	public void setpwent ();
 	[CCode (cheader_filename = "pwd.h")]
 	public unowned Passwd? getpwnam (string name);
+	[CCode (cheader_filename = "pwd.h")]
+	public unowned Passwd? getpwuid (uid_t uid);
 
 	[CCode (cheader_filename = "sys/resource.h")]
 	public const int PRIO_PROCESS;



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