mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
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>
This commit is contained in:
committed by
Florian Weimer
parent
1d828b9ddc
commit
f3c82fc1b4
@@ -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. */
|
# define F_TEST 3 /* Test a region for other processes locks. */
|
||||||
|
|
||||||
# ifndef __USE_FILE_OFFSET64
|
# 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
|
# else
|
||||||
# ifdef __REDIRECT
|
# 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
|
# else
|
||||||
# define lockf lockf64
|
# define lockf lockf64
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# ifdef __USE_LARGEFILE64
|
# 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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user