| 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // SPDX-FileCopyrightText: 2025 The Ebitengine Authors |
| 3 | |
| 4 | //go:build !cgo |
| 5 | |
| 6 | package fakecgo |
| 7 | |
| 8 | type ( |
| 9 | pthread_cond_t uintptr |
| 10 | pthread_mutex_t uintptr |
| 11 | ) |
| 12 | |
| 13 | var ( |
| 14 | PTHREAD_COND_INITIALIZER = pthread_cond_t(0) |
| 15 | PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t(0) |
| 16 | ) |
| 17 | |
| 18 | // Source: https://github.com/NetBSD/src/blob/613e27c65223fd2283b6ed679da1197e12f50e27/sys/compat/linux/arch/m68k/linux_signal.h#L133 |
| 19 | type stack_t struct { |
| 20 | ss_sp uintptr |
| 21 | ss_flags int32 |
| 22 | ss_size uintptr |
| 23 | } |
| 24 | |
| 25 | // Source: https://github.com/NetBSD/src/blob/613e27c65223fd2283b6ed679da1197e12f50e27/sys/sys/signal.h#L261 |
| 26 | const SS_DISABLE = 0x004 |