aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/not-cancel.h
diff options
context:
space:
mode:
authorLeandro Pereira <leandro.pereira@microsoft.com>2019-10-02 12:42:28 -0400
committerCarlos O'Donell <carlos@redhat.com>2019-10-18 15:55:33 -0400
commitfed33b0fb03d1942a6713286176d42869c0f1580 (patch)
treef6e7f1055d4dbd00986746e2027b104b95e07c86 /sysdeps/unix/sysv/linux/not-cancel.h
parent2ac579f9c25388a7734948d77b03e4dd10f35334 (diff)
downloadglibc-fed33b0fb03d1942a6713286176d42869c0f1580.zip
glibc-fed33b0fb03d1942a6713286176d42869c0f1580.tar.gz
glibc-fed33b0fb03d1942a6713286176d42869c0f1580.tar.bz2
Add nocancel version of pread64()
This is in preparation for changes in the dynamic linker so that pread() is used instead of lseek()+read(). Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/not-cancel.h')
-rw-r--r--sysdeps/unix/sysv/linux/not-cancel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/not-cancel.h b/sysdeps/unix/sysv/linux/not-cancel.h
index 95da154..041fd00 100644
--- a/sysdeps/unix/sysv/linux/not-cancel.h
+++ b/sysdeps/unix/sysv/linux/not-cancel.h
@@ -43,6 +43,9 @@ __typeof (openat64) __openat64_nocancel;
/* Non cancellable read syscall. */
__typeof (__read) __read_nocancel;
+/* Non cancellable pread syscall (LFS version). */
+__typeof (__pread64) __pread64_nocancel;
+
/* Uncancelable write. */
__typeof (__write) __write_nocancel;
@@ -84,6 +87,7 @@ hidden_proto (__open64_nocancel)
hidden_proto (__openat_nocancel)
hidden_proto (__openat64_nocancel)
hidden_proto (__read_nocancel)
+hidden_proto (__pread64_nocancel)
hidden_proto (__write_nocancel)
hidden_proto (__close_nocancel)
hidden_proto (__waitpid_nocancel)