From: Michael 'Mickey' Lauer Date: Fri, 10 Apr 2009 07:16:23 +0000 (+0200) Subject: posix: Add struct passwd, setpwent, getpwent, endpwent X-Git-Tag: 0.6.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce78ba2ef0c66ddb6d8923fee87dbaf2f69851ab;p=thirdparty%2Fvala.git posix: Add struct passwd, setpwent, getpwent, endpwent Signed-Off-by: Michael 'Mickey' Lauer --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 0b55b4f49..33619ef74 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")]