[vala] posix: add gettimeofday() and settimeofday() bindings.
- From: Jaap A. Haitsma <jhaitsma src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] posix: add gettimeofday() and settimeofday() bindings.
- Date: Wed, 19 Aug 2009 20:59:39 +0000 (UTC)
commit 90f3fc20181932474f371d143cf7b91755df53c4
Author: Evan Nemerson <evan polussystems com>
Date: Tue Aug 18 02:56:34 2009 -0700
posix: add gettimeofday() and settimeofday() bindings.
Fixes bug 592189.
vapi/posix.vapi | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 3a8dd31..80b1027 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1854,10 +1854,14 @@ namespace Posix {
public struct fd_set {
}
- [CCode (cname = "struct timeval", cheader_filename = "sys/select.h")]
+ [CCode (cname = "struct timeval", cheader_filename = "sys/time.h")]
public struct timeval {
public time_t tv_sec;
public long tv_usec;
+ [CCode (cname = "gettimeofday")]
+ public int get_time_of_day (void * timezone = null);
+ [CCode (cname = "settimeofday")]
+ public int set_time_of_day (void * timezone = null);
}
[CCode (cname = "sigset_t", cheader_filename = "sys/select.h")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]