[vala] glib-2.0, posix: Add g_stat, g_lstat, and lstat bindings.
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0, posix: Add g_stat, g_lstat, and lstat bindings.
- Date: Wed, 21 Jul 2010 05:52:58 +0000 (UTC)
commit 34e08a43787da79510514ab5d32ba555e79991e3
Author: Evan Nemerson <evan coeus-group com>
Date: Tue Jul 20 22:49:50 2010 -0700
glib-2.0, posix: Add g_stat, g_lstat, and lstat bindings.
vapi/glib-2.0.vapi | 6 +++++-
vapi/posix.vapi | 2 ++
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 6e83e39..a29ec98 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2754,8 +2754,12 @@ namespace GLib {
public static int close (int fd);
}
- [CCode (cname = "stat")]
+ [CCode (cname = "struct stat", cheader_filename = "sys/stat.h")]
public struct Stat {
+ [CCode (cname = "g_stat", instance_pos = -1)]
+ public Stat (string filename);
+ [CCode (cname = "g_lstat", instance_pos = -1)]
+ public Stat.l (string filename);
}
[Compact]
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index b0d1f98..c080d69 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1381,6 +1381,8 @@ namespace Posix {
int fstat( int fd, out Stat buf);
[CCode (cheader_filename = "sys/stat.h")]
int stat (string filename, out Stat buf);
+ [CCode (cheader_filename = "sys/stat.h")]
+ int lstat (string filename, out Stat buf);
[CCode (cheader_filename = "sys/stat.h")]
public int chmod (string filename, mode_t mode);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]