summaryrefslogtreecommitdiff
path: root/sysdeps/mach/include/mach/mach_traps.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 19:20:53 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 19:21:19 +0000
commit68e2fa8ed9dbf0edfdaed0310801e764c12af46e (patch)
tree101f4c8b7ec20470739855bc4cf0cc4fb01f6f4b /sysdeps/mach/include/mach/mach_traps.h
parentf1018448e82ec658352d1dc6cefb65b70f564cad (diff)
parent8d59503b977070aaa4e504e8d6dcb7da3711893e (diff)
Merge commit 'refs/top-bases/t/gsync-libc' into t/gsync-libc
Diffstat (limited to 'sysdeps/mach/include/mach/mach_traps.h')
-rw-r--r--sysdeps/mach/include/mach/mach_traps.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysdeps/mach/include/mach/mach_traps.h b/sysdeps/mach/include/mach/mach_traps.h
new file mode 100644
index 0000000000..c43349524d
--- /dev/null
+++ b/sysdeps/mach/include/mach/mach_traps.h
@@ -0,0 +1,23 @@
+#ifndef _MACH_MACH_TRAPS_H
+#include_next <mach/mach_traps.h>
+
+#ifndef _ISOMAC
+extern mach_port_t __mach_reply_port (void);
+libc_hidden_proto (__mach_reply_port)
+extern mach_port_t __mach_thread_self (void);
+libc_hidden_proto (__mach_thread_self)
+extern mach_port_t (__mach_task_self) (void);
+libc_hidden_proto (__mach_task_self)
+extern mach_port_t (__mach_host_self) (void);
+libc_hidden_proto (__mach_host_self)
+extern boolean_t __swtch (void);
+libc_hidden_proto (__swtch)
+extern boolean_t __swtch_pri (int priority);
+libc_hidden_proto (__swtch_pri)
+kern_return_t __thread_switch (mach_port_t new_thread,
+ int option, mach_msg_timeout_t option_time);
+libc_hidden_proto (__thread_switch)
+kern_return_t __evc_wait (unsigned int event);
+libc_hidden_proto (__evc_wait)
+#endif
+#endif