From: Michael 'Mickey' Lauer Date: Fri, 10 Apr 2009 07:29:03 +0000 (+0200) Subject: posix: Add struct group, getgrent, setgrent, endgrent X-Git-Tag: 0.6.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b39db6ca650c16edba897064bc658a87553c0c3d;p=thirdparty%2Fvala.git posix: Add struct group, getgrent, setgrent, endgrent Signed-Off-By: Michael 'Mickey' Lauer --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 33619ef74..39871754a 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -324,6 +324,19 @@ namespace Posix { [CCode (cheader_filename = "fcntl.h")] 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 {