[vala/0.10] posix: add getpwnam binding



commit f71aa6ad696a02afc5dc0196fea3b8db6ca41aea
Author: Robert Ancell <robert ancell gmail com>
Date:   Thu Sep 16 23:12:58 2010 -0700

    posix: add getpwnam binding
    
    Fixes bug 628933.

 vapi/posix.vapi |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index fef2b5c..71e3d10 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -828,6 +828,8 @@ namespace Posix {
 	public void endpwent ();
 	public unowned Passwd? getpwent ();
 	public void setpwent ();
+	[CCode (cheader_filename = "pwd.h")]
+	public unowned Passwd? getpwnam (string name);
 
 	[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]