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 e97f772 commit 7750dc2Copy full SHA for 7750dc2
src/shims/linux_stubs.c
@@ -40,11 +40,17 @@ unsigned long _dispatch_runloop_queue_probe(dispatch_queue_t dq) {
40
void _dispatch_runloop_queue_xref_dispose() { LINUX_PORT_ERROR(); }
41
42
void _dispatch_runloop_queue_dispose() { LINUX_PORT_ERROR(); }
43
+char* mach_error_string(mach_msg_return_t x) {
44
+ LINUX_PORT_ERROR();
45
+}
46
void mach_vm_deallocate() { LINUX_PORT_ERROR(); }
47
-mach_port_t pthread_mach_thread_np() {
48
+mach_port_t pthread_mach_thread_np(void) {
49
return (pid_t)syscall(SYS_gettid);
50
}
51
+mach_port_t mach_task_self(void) {
52
+ return (mach_port_t)pthread_self();
53
54
55
/*
56
* Stubbed out static data
0 commit comments