]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: add getpwnam binding
authorRobert Ancell <robert.ancell@gmail.com>
Fri, 17 Sep 2010 06:12:58 +0000 (23:12 -0700)
committerJürg Billeter <j@bitron.ch>
Fri, 17 Sep 2010 16:26:08 +0000 (18:26 +0200)
Fixes bug 628933.

vapi/posix.vapi

index fef2b5c801fd5eb0c93ef4a906cc62574298d9c6..71e3d1045ea528694c17eaf6944f6802809a7fc3 100644 (file)
@@ -828,6 +828,8 @@ namespace Posix {
        public void endpwent ();
        public unowned Passwd? getpwent ();
        public void setpwent ();
+       [CCode (cheader_filename = "pwd.h")]
+       public unowned Passwd? getpwnam (string name);
 
        [CCode (cheader_filename = "sys/resource.h")]
        public const int PRIO_PROCESS;