From: David Ma Date: Fri, 8 Feb 2013 08:29:22 +0000 (-0800) Subject: posix: add Flock struct X-Git-Tag: 0.19.0~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d6186a09cb945e5ddaf77fb0981e46cf44b9efc;p=thirdparty%2Fvala.git posix: add Flock struct Fixes bug 690871. --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index f56e15022..5e370aee4 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 {