]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: add Flock struct
authorDavid Ma <dma724332@gmail.com>
Fri, 8 Feb 2013 08:29:22 +0000 (00:29 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Fri, 8 Feb 2013 08:29:22 +0000 (00:29 -0800)
Fixes bug 690871.

vapi/posix.vapi

index f56e15022d8c0d5dc245ed1f6da525144275fbbc..5e370aee4b8cc6017a3827063cc009e344ae1a63 100644 (file)
@@ -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 {