aboutsummaryrefslogtreecommitdiff
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.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/not-cancel.h b/sysdeps/mach/hurd/not-cancel.h
index 7e824c5f11..69cd781f68 100644
--- a/sysdeps/mach/hurd/not-cancel.h
+++ b/sysdeps/mach/hurd/not-cancel.h
@@ -63,9 +63,13 @@ __typeof (__writev) __writev_nocancel;
/* Non cancellable writev syscall with no status. */
void __writev_nocancel_nostatus (int fd, const struct iovec *vector, int count);
-/* For now we have none. Map the name to the normal functions. */
+/* Non cancellable wait4 syscall. */
+__typeof (__wait4) __wait4_nocancel;
+
# define __waitpid_nocancel(pid, stat_loc, options) \
- __waitpid (pid, stat_loc, options)
+ __wait4_nocancel (pid, stat_loc, options, NULL)
+
+/* For now we have none. Map the name to the normal functions. */
#define __fcntl64_nocancel(fd, cmd, ...) \
__fcntl64 (fd, cmd, __VA_ARGS__)
@@ -80,6 +84,7 @@ hidden_proto (__write_nocancel)
hidden_proto (__pwrite64_nocancel)
hidden_proto (__writev_nocancel)
hidden_proto (__writev_nocancel_nostatus)
+hidden_proto (__wait4_nocancel)
#endif
#endif /* NOT_CANCEL_H */