Commit Graph

12 Commits

Author SHA1 Message Date
Ignacy Koper
b5cb4b96fc removed Haiku from core:sys/posix package
Signed-off-by: Ignacy Koper <ignacy423@gmail.com>
2026-04-28 19:27:25 +02:00
Laytan Laats
0b0caab1d2 fix pthread_attr_t size on arm64 2025-11-08 20:25:56 +01:00
Harold Brenes
24daa4427c Fix various foreign signatures 2025-09-29 19:58:14 -04:00
Harold Brenes
219b0fe535 Replace system:System.framework imports with system:System
This makes the linker work for both macOS and iOS targets
2025-07-13 15:45:21 -04:00
avanspector
5376d2a20b fix haiku 2024-12-20 17:19:04 +01:00
Laytan Laats
cc3c9bd871 fix thread_unix for Darwin after pthread corrections in posix package
afed3ce removed the sys/unix package and moved over to sys/posix, it has
new bindings for the pthread APIs but should have been equivalent (not).

8fb7182 used `CANCEL_ENABLE :: 0`, `CANCEL_DISABLE :: 1`, `CANCEL_DEFERRED :: 0`, `CANCEL_ASYNCHRONOUS :: 1` for Darwin, while the
correct values are `1`, `0`, `2` and `0` respectively (same mistake was made for
FreeBSD in that commit).

What this meant is that the
`pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS)` was not actually
successful, but because the error wasn't checked it was assumed it was.
It also meant `pthread_setcancelstate(PTHREAD_CANCEL_ENABLE)` would
actually be setting `PTHREAD_CANCEL_DISABLE`.

The code in this PR restores the behaviour by now actually deliberately
setting `PTHREAD_CANCEL_DISABLE` and not setting
`PTHREAD_CANCEL_ASYNCHRONOUS` which was the previous behaviour that does
actually seem to work for some reason.

(I also fixed an issue in fmt where `x` would use uppercase if it was a
pointer.)
2024-10-30 15:51:56 +01:00
Laytan
7e12e37df9 fix test 2024-10-28 19:58:39 +01:00
Laytan
b7140875cf port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants it 2024-10-28 19:42:27 +01:00
Laytan Laats
1cebc025b0 sys/posix: impl rest of linux, impl some of Windows 2024-10-28 18:59:06 +01:00
Laytan
5cd1784d41 review/correct/cleanup posix linux PR 2024-09-30 16:00:46 +02:00
Isaac Andrade
10702f1134 Implement POSIX pthread, signal, sys/resource, unistd for Linux. 2024-09-21 20:44:33 -06:00
Laytan Laats
efe68c2e24 posix: add package 2024-08-14 01:44:35 +02:00