[vala/0.6] posix: Add struct group, getgrent, setgrent, endgrent



commit b39db6ca650c16edba897064bc658a87553c0c3d
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Fri Apr 10 09:29:03 2009 +0200

    posix: Add struct group, getgrent, setgrent, endgrent
    
    Signed-Off-By: Michael 'Mickey' Lauer <mlauer vanille-media de>
---
 vapi/posix.vapi |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 33619ef..3987175 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -325,6 +325,19 @@ namespace Posix {
 	public int posix_fallocate (int fd, long offset, long len);
 
 	[Compact]
+	[CCode (cname = "struct group", cheader_filename = "grp.h")]
+	public class Group {
+		public string gr_name;
+		public string gr_passwd;
+		public gid_t gr_gid;
+		public string[] gr_mem;
+	}
+	[CCode (cheader_filename = "grp.h")]
+	public void endgrent ();
+	public unowned Group? getgrent ();
+	public void setgrent ();
+
+	[Compact]
 	[CCode (cname = "struct passwd", cheader_filename = "pwd.h")]
 	public class Passwd {
 		public string pw_name;



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