| ... | ... | @@ -397,17 +397,17 @@ const PosixThreadImpl = struct { |
| 397 | 397 | assert(c.pthread_attr_setguardsize(&attr, std.mem.page_size) == 0); |
| 398 | 398 | |
| 399 | 399 | var handle: c.pthread_t = undefined; |
| 400 | | return switch (c.pthread_create( |
| 400 | switch (c.pthread_create( |
| 401 | 401 | &handle, |
| 402 | 402 | &attr, |
| 403 | 403 | Instance.entryFn, |
| 404 | 404 | @ptrCast(*c_void, args_ptr), |
| 405 | 405 | )) { |
| 406 | | 0 => .{ .handle = handle }, |
| 407 | | os.EAGAIN => error.SystemResources, |
| 406 | 0 => return Impl{ .handle = handle }, |
| 407 | os.EAGAIN => return error.SystemResources, |
| 408 | 408 | os.EPERM => unreachable, |
| 409 | 409 | os.EINVAL => unreachable, |
| 410 | | else => |err| os.unexpectedErrno(err), |
| 410 | else => |err| return os.unexpectedErrno(err), |
| 411 | 411 | }; |
| 412 | 412 | } |
| 413 | 413 | |
| ... | ... | @@ -563,7 +563,7 @@ const LinuxThreadImpl = struct { |
| 563 | 563 | os.CLONE_PARENT_SETTID | os.CLONE_CHILD_CLEARTID | |
| 564 | 564 | os.CLONE_DETACHED | os.CLONE_SETTLS; |
| 565 | 565 | |
| 566 | | return switch (linux.getErrno(linux.clone( |
| 566 | switch (linux.getErrno(linux.clone( |
| 567 | 567 | Instance.entryFn, |
| 568 | 568 | @ptrToInt(&mapped[stack_offset]), |
| 569 | 569 | flags, |
| ... | ... | @@ -572,14 +572,14 @@ const LinuxThreadImpl = struct { |
| 572 | 572 | tls_ptr, |
| 573 | 573 | &instance.thread.child_tid.value, |
| 574 | 574 | ))) { |
| 575 | | 0 => .{ .thread = &instance.thread }, |
| 576 | | os.EAGAIN => error.ThreadQuotaExceeded, |
| 575 | 0 => return Impl{ .thread = &instance.thread }, |
| 576 | os.EAGAIN => return error.ThreadQuotaExceeded, |
| 577 | 577 | os.EINVAL => unreachable, |
| 578 | | os.ENOMEM => error.SystemResources, |
| 578 | os.ENOMEM => return error.SystemResources, |
| 579 | 579 | os.ENOSPC => unreachable, |
| 580 | 580 | os.EPERM => unreachable, |
| 581 | 581 | os.EUSERS => unreachable, |
| 582 | | else => |err| os.unexpectedErrno(err), |
| 582 | else => |err| return os.unexpectedErrno(err), |
| 583 | 583 | }; |
| 584 | 584 | } |
| 585 | 585 | |
| ... | ... | @@ -655,7 +655,7 @@ const LinuxThreadImpl = struct { |
| 655 | 655 | \\ movl $60, %eax |
| 656 | 656 | \\ syscall |
| 657 | 657 | ), |
| 658 | | .arm, .armeb, .thumb, .thumb_eb => ( |
| 658 | .arm, .armeb, .thumb, .thumbeb => ( |
| 659 | 659 | \\.syntax unified |
| 660 | 660 | \\.text |
| 661 | 661 | \\.global __unmap_and_exit |