From 24edbbd53a382f35a4365ae065f61d56579f52f1 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 21 Apr 2011 23:45:12 +0200 Subject: lseek, lseek64: add cancellation for all THREADS LT_OLD provides cancellable versions, do it for all THREADS. llseek.c: use newly added macros for offset handling. Add a comment about endianness issue around offset. Compile llseek.c only on 32bit archs. Provide aliases for 64bit archs or if syscall is not available. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- include/unistd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/unistd.h b/include/unistd.h index 2fb7271af..aa8e1e651 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -333,7 +333,10 @@ extern int faccessat (int __fd, __const char *__file, int __type, int __flag) Return the new file position. */ #ifndef __USE_FILE_OFFSET64 extern __off_t lseek (int __fd, __off_t __offset, int __whence) __THROW; +# ifdef _LIBC +extern __typeof(lseek) __lseek_nocancel attribute_hidden; libc_hidden_proto(lseek) +# endif #else # ifdef __REDIRECT_NTH extern __off64_t __REDIRECT_NTH (lseek, @@ -346,7 +349,10 @@ extern __off64_t __REDIRECT_NTH (lseek, #ifdef __USE_LARGEFILE64 extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) __THROW; +# ifdef _LIBC +extern __typeof(lseek64) __lseek64_nocancel attribute_hidden; libc_hidden_proto(lseek64) +# endif #endif /* Close the file descriptor FD. -- cgit v1.2.3