]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: add UTIME_{NOW,OMIT} constants for utimensat
authorReuben Thomas <rrt@sc3d.org>
Fri, 18 Apr 2025 12:43:31 +0000 (13:43 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 18 Apr 2025 14:42:36 +0000 (14:42 +0000)
vapi/posix.vapi

index caa0f41f8897f65fe9a56364272792717f9ebfd0..634b432e4147835344d148c778a3fd0abcfe356c 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright (C) 2008-2009  Jürg Billeter
  * Copyright (C) 2010 Marco Trevisan (Treviño)
  * Copyright (C) 2013 Nikolay Orliuk
- * Copyright (C) 2020 Reuben Thomas
+ * Copyright (C) 2020-2025 Reuben Thomas
  * Copyright (C) 2021 Nikola Hadžić
  *
  * This library is free software; you can redistribute it and/or
@@ -2308,6 +2308,10 @@ namespace Posix {
        [CCode (cheader_filename = "sys/stat.h", feature_test_macro = "_GNU_SOURCE")]
        public int mknodat (int dirfd, string pathname, mode_t mode, dev_t dev);
 
+       [CCode (cheader_filename = "sys/stat.h")]
+       public const long UTIME_NOW;
+       [CCode (cheader_filename = "sys/stat.h")]
+       public const long UTIME_OMIT;
        [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")]