We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e948f91 commit c10f0daCopy full SHA for c10f0da
src/shims/linux_stubs.c
@@ -47,11 +47,17 @@ unsigned long _dispatch_runloop_queue_probe(dispatch_queue_t dq) {
47
void _dispatch_runloop_queue_xref_dispose() { LINUX_PORT_ERROR(); }
48
49
void _dispatch_runloop_queue_dispose() { LINUX_PORT_ERROR(); }
50
+char* mach_error_string(mach_msg_return_t x) {
51
+ LINUX_PORT_ERROR();
52
+}
53
void mach_vm_deallocate() { LINUX_PORT_ERROR(); }
54
-mach_port_t pthread_mach_thread_np() {
55
+mach_port_t pthread_mach_thread_np(void) {
56
return (pid_t)syscall(SYS_gettid);
57
}
58
+mach_port_t mach_task_self(void) {
59
+ return (mach_port_t)pthread_self();
60
61
62
/*
63
* Stubbed out static data
0 commit comments