| 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 |
import "structs" |
| 9 |
|
| 10 |
type ( |
| 11 |
pthread_cond_t uintptr |
| 12 |
pthread_mutex_t uintptr |
| 13 |
) |
| 14 |
|
| 15 |
var ( |
| 16 |
PTHREAD_COND_INITIALIZER = pthread_cond_t(0) |
| 17 |
PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t(0) |
| 18 |
) |
| 19 |
|
| 20 |
// Source: https://github.com/NetBSD/src/blob/613e27c65223fd2283b6ed679da1197e12f50e27/sys/sys/signal.h#L225 |
| 21 |
type stack_t struct { |
| 22 |
_ structs.HostLayout |
| 23 |
ss_sp uintptr |
| 24 |
ss_size uintptr |
| 25 |
ss_flags int32 |
| 26 |
} |
| 27 |
|
| 28 |
// Source: https://github.com/NetBSD/src/blob/613e27c65223fd2283b6ed679da1197e12f50e27/sys/sys/signal.h#L261 |
| 29 |
const SS_DISABLE = 0x004 |