about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/not-cancel.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/not-cancel.h')
-rw-r--r--sysdeps/mach/hurd/not-cancel.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/not-cancel.h b/sysdeps/mach/hurd/not-cancel.h
index 15acfa3b92..8a8f5a9d3c 100644
--- a/sysdeps/mach/hurd/not-cancel.h
+++ b/sysdeps/mach/hurd/not-cancel.h
@@ -42,10 +42,12 @@
 
 void __close_nocancel_nostatus (int fd);
 
-#define __read_nocancel(fd, buf, n) \
-  __read (fd, buf, n)
-#define __pread64_nocancel(fd, buf, count, offset) \
-  __pread64 (fd, buf, count, offset)
+/* Non cancellable read syscall.  */
+__typeof (__read) __read_nocancel;
+
+/* Non cancellable pread syscall (LFS version).  */
+__typeof (__pread64) __pread64_nocancel;
+
 #define __write_nocancel(fd, buf, n) \
   __write (fd, buf, n)
 #define __writev_nocancel_nostatus(fd, iov, n) \
@@ -55,7 +57,9 @@ void __close_nocancel_nostatus (int fd);
 #define __fcntl64_nocancel(fd, cmd, ...) \
   __fcntl64 (fd, cmd, __VA_ARGS__)
 
-#if IS_IN (libc) || IS_IN (rtld)
+#if IS_IN (libc)
+hidden_proto (__read_nocancel)
+hidden_proto (__pread64_nocancel)
 hidden_proto (__close_nocancel_nostatus)
 #endif