]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Add utimensat and futimens bindings
authorRobert Ancell <robert.ancell@canonical.com>
Thu, 12 Apr 2012 12:58:20 +0000 (22:58 +1000)
committerJürg Billeter <j@bitron.ch>
Sat, 23 Jun 2012 15:01:48 +0000 (17:01 +0200)
vapi/posix.vapi

index 9e5d39c7a918b0aa22e25fe8d95e9c710209b660..14e3eab4664c06e3f59f3187e72786507ee1b72b 100644 (file)
@@ -1621,6 +1621,11 @@ namespace Posix {
        [CCode (cheader_filename = "sys/types.h,sys/stat.h,fcntl.h,unistd.h")]
        public pid_t mknod (string pathname, mode_t mode, dev_t dev);
 
+       [CCode (cheader_filename = "sys/stat.h")]
+       public int utimensat (int dirfd, string pathname, [CCode (array_length = false)] timespec[] times, int flags = 0);
+       [CCode (cheader_filename = "sys/stat.h")]
+       public int futimens (int fd, [CCode (array_length = false)] timespec[] times);
+
        [CCode (cheader_filename = "sys/wait.h")]
        public pid_t wait (out int status);
        [CCode (cheader_filename = "sys/wait.h")]