]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Add struct group, getgrent, setgrent, endgrent
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Fri, 10 Apr 2009 07:29:03 +0000 (09:29 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 12 Apr 2009 16:02:23 +0000 (18:02 +0200)
Signed-Off-By: Michael 'Mickey' Lauer <mlauer@vanille-media.de>
vapi/posix.vapi

index 33619ef748e84ea6d3644da00903ff6dfae3076c..39871754acbe7c0a32a645f6e3e1604526370763 100644 (file)
@@ -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 {