[vala] posix: Add getpwuid, getgrnam, and getgrgid bindings
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] posix: Add getpwuid, getgrnam, and getgrgid bindings
- Date: Fri, 17 Aug 2012 11:10:56 +0000 (UTC)
commit 61532da8b253a7427050fde478a6ba801c5b2763
Author: Marcin Lewandowski <www saepia net>
Date: Fri Aug 17 13:10:12 2012 +0200
posix: Add getpwuid, getgrnam, and getgrgid bindings
Fixes bug 682015.
vapi/posix.vapi | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 3eeb3af..dc3cade 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -338,6 +338,10 @@ namespace Posix {
public void endgrent ();
public unowned Group? getgrent ();
public void setgrent ();
+ [CCode (cheader_filename = "grp.h")]
+ public unowned Group? getgrgid (gid_t gid);
+ [CCode (cheader_filename = "grp.h")]
+ public unowned Group? getgrnam (string name);
[CCode (cheader_filename = "netinet/in.h")]
public const int INET_ADDRSTRLEN;
@@ -722,6 +726,8 @@ namespace Posix {
public void setpwent ();
[CCode (cheader_filename = "pwd.h")]
public unowned Passwd? getpwnam (string name);
+ [CCode (cheader_filename = "pwd.h")]
+ public unowned Passwd? getpwuid (uid_t uid);
[CCode (cheader_filename = "sys/resource.h")]
public const int PRIO_PROCESS;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]