]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
io: Mark lockf() __wur [BZ #32800]
authorRadko Krkos <krkos@mail.muni.cz>
Sat, 14 Jun 2025 09:07:40 +0000 (11:07 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Sat, 14 Jun 2025 09:57:46 +0000 (11:57 +0200)
In commit 0476597b28 flock() was marked __wur in posix/unistd.h, but not
in io/fcntl.h, the declarations must match.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
io/fcntl.h

index 59dc7d4c51fbdce2cacc6553adf0f2842d479265..132d83a37107d4c643d16b1003f1493fa78c3c2d 100644 (file)
@@ -281,16 +281,17 @@ extern int creat64 (const char *__file, mode_t __mode) __nonnull ((1));
 # define F_TEST  3     /* Test a region for other processes locks.  */
 
 # ifndef __USE_FILE_OFFSET64
-extern int lockf (int __fd, int __cmd, off_t __len);
+extern int lockf (int __fd, int __cmd, off_t __len) __wur;
 # else
 #  ifdef __REDIRECT
-extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len), lockf64);
+extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len),
+                       lockf64) __wur;
 #  else
 #   define lockf lockf64
 #  endif
 # endif
 # ifdef __USE_LARGEFILE64
-extern int lockf64 (int __fd, int __cmd, off64_t __len);
+extern int lockf64 (int __fd, int __cmd, off64_t __len) __wur;
 # endif
 #endif