[vala/0.6] posix: Add struct passwd, setpwent, getpwent, endpwent



commit ce78ba2ef0c66ddb6d8923fee87dbaf2f69851ab
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Fri Apr 10 09:16:23 2009 +0200

    posix: Add struct passwd, setpwent, getpwent, endpwent
    
    Signed-Off-by: Michael 'Mickey' Lauer <mlauer vanille-media de>
---
 vapi/posix.vapi |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 0b55b4f..33619ef 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -324,6 +324,22 @@ namespace Posix {
 	[CCode (cheader_filename = "fcntl.h")]
 	public int posix_fallocate (int fd, long offset, long len);
 
+	[Compact]
+	[CCode (cname = "struct passwd", cheader_filename = "pwd.h")]
+	public class Passwd {
+		public string pw_name;
+		public string pw_passwd;
+		public uid_t pw_uid;
+		public gid_t pw_gid;
+		public string pw_gecos;
+		public string pw_dir;
+		public string pw_shell;
+	}
+	[CCode (cheader_filename = "pwd.h")]
+	public void endpwent ();
+	public unowned Passwd? getpwent ();
+	public void setpwent ();
+
 	[CCode (cheader_filename = "signal.h")]
 	public const int SIGABRT;
 	[CCode (cheader_filename = "signal.h")]



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