diff options
author | Leandro Pereira <leandro.pereira@microsoft.com> | 2019-10-02 12:42:28 -0400 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2019-10-18 15:55:33 -0400 |
commit | fed33b0fb03d1942a6713286176d42869c0f1580 (patch) | |
tree | f6e7f1055d4dbd00986746e2027b104b95e07c86 /sysdeps/unix/sysv/linux/not-cancel.h | |
parent | 2ac579f9c25388a7734948d77b03e4dd10f35334 (diff) | |
download | glibc-fed33b0fb03d1942a6713286176d42869c0f1580.tar.gz glibc-fed33b0fb03d1942a6713286176d42869c0f1580.tar.xz glibc-fed33b0fb03d1942a6713286176d42869c0f1580.zip |
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.h | 4 |
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 95da1544b6..041fd00111 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) |