[vala] posix: add Flock struct



commit 0d6186a09cb945e5ddaf77fb0981e46cf44b9efc
Author: David Ma <dma724332 gmail com>
Date:   Fri Feb 8 00:29:22 2013 -0800

    posix: add Flock struct
    
    Fixes bug 690871.

 vapi/posix.vapi |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index f56e150..5e370ae 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -326,6 +326,15 @@ namespace Posix {
 	[CCode (cheader_filename = "fcntl.h")]
 	public int posix_fallocate (int fd, long offset, long len);
 
+	[CCode (cname = "struct flock", cheader_filename = "fcntl.h")]
+	public struct Flock {
+		public int l_type;
+		public int l_whence;
+		public off_t l_start;
+		public off_t l_len;
+		public pid_t l_pid;
+	}
+
 	[Compact]
 	[CCode (cname = "struct group", cheader_filename = "grp.h")]
 	public class Group {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]