[vala] posix: add getpwnam binding



commit 54081ae60a2e686166fb946ce5200a027e51538d
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]