summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-21 23:45:12 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:41 +0200
commit24edbbd53a382f35a4365ae065f61d56579f52f1 (patch)
tree54556db6c9e65bb555734cd644d932ba9713489b /include/unistd.h
parentfae8e7e498eadf7b859b49a5c6fe103ca447838b (diff)
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 <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h6
1 files changed, 6 insertions, 0 deletions
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.