summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorRadko Krkos <krkos@mail.muni.cz>2025-06-14 11:07:40 +0200
committerFlorian Weimer <fweimer@redhat.com>2025-06-14 11:57:46 +0200
commitf3c82fc1b41261f582f5f9fa12f74af9bcbc88f9 (patch)
tree5fdc8ff68666c22204343d9d4fa13038398848e9 /io
parent1d828b9ddc2205de208ae304cf3b8ca202dd6481 (diff)
io: Mark lockf() __wur [BZ #32800]
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>
Diffstat (limited to 'io')
-rw-r--r--io/fcntl.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/io/fcntl.h b/io/fcntl.h
index 59dc7d4c51..132d83a371 100644
--- a/io/fcntl.h
+++ b/io/fcntl.h
@@ -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