Laytan Laats and flysand7
c08408ea08
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-12-01 11:54:52 +11:00
Laytan and flysand7
78dc4d4907
fix test
2024-12-01 11:54:51 +11:00
Laytan and flysand7
9f1c894f1f
port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants it
2024-12-01 11:54:51 +11:00
Laytan and flysand7
f342215b4d
clean up dynlib and path/filepath with sys/posix
2024-12-01 11:54:51 +11:00
Laytan and flysand7
2b5f0fc729
remove pthread from sys/unix and use sys/posix where used
2024-12-01 11:54:51 +11:00
Laytan and flysand7
7de56ec852
fix #load_directory including nested directories
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
49ddbd9b99
sys/posix: impl rest of linux, impl some of Windows
2024-12-01 11:54:51 +11:00
Laytan and flysand7
5faefac106
math/rand: choice_bit_set return not_empty -> ok
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
d85f18e898
math/rand: add choice_bit_set
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
8e6cbe9a29
fix the typeid type kind of a typeid being set to Typeid_Invalid
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
f3c19e183f
wgpu: add missing JS impl for RenderPassEncoderSetBlendConstant
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
d185ab5991
sys/wasm/js: add set_element_style
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
3740497e42
encoding/cbor: fix skipping of ignored/missing fields in struct unmarshal
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
4207d4fded
encoding/cbor: handle binary having more fields than the struct by discarding
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
0d4d3bd1de
math/rand: support non-contiguous enums in choice_enum
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
538cea27f7
wgpu: take version check out of @init, use C cc when appropriate
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
0c470895b3
image: add panic when load is called without any registered loaders
2024-12-01 11:54:50 +11:00
Laytan Laats and flysand7
6e534c0e24
check packed load and set alignment on all loads, not just lb_emit_load
2024-12-01 11:54:50 +11:00
Laytan Laats and flysand7
64fdf6e18f
quote the dsymutil argument
...
Fixes #4417
2024-12-01 11:54:50 +11:00
laytan and flysand7
182a916092
fix erronous updating alignment of external global
2024-12-01 11:54:50 +11:00
Laytan Laats and flysand7
357f463372
odin/parser: fix offsets of value declarations
...
Fixes #4356
2024-12-01 11:54:50 +11:00
Laytan Laats and flysand7
f56ac466c3
encoding/json: fix leak when string is unmarshalled into non-string field
...
Fixes #4391
2024-12-01 11:54:50 +11:00
Laytan Laats and flysand7
cded6b8479
possibly fix not having shared dir in recent windows releases
...
Probably caused by https://github.com/actions/upload-artifact/issues/602
Possibly fixes #4384
2024-12-01 11:54:49 +11:00
Laytan and GitHub
2141299d2b
Merge pull request #4376 from Barinzaya/sysinfo-avx512
...
core:sys/info AVX-512 CPU Features
2024-10-16 19:46:01 +02:00
Laytan and GitHub
1cb93efe8a
Merge pull request #4382 from Barinzaya/time_32b_linux_overflow
...
Fixed core:time overflows on 32-bit Linux
2024-10-16 18:27:28 +02:00
Laytan Laats
7989d512a0
add macos 15.0.1 to odin report and core/sys/info
2024-10-14 16:19:03 +02:00
Laytan Laats
1dd9b8560d
build mutex allocator code on freestanding wasm
2024-10-14 16:11:25 +02:00
Laytan Laats
b746e5287e
build tracking allocator code on freestanding wasm
2024-10-14 16:06:16 +02:00
Laytan and GitHub
0157ff1541
Merge pull request #4118 from andradei/posix-linux
...
Linux POSIX support
2024-10-13 20:05:03 +02:00
Laytan and GitHub
591f827e5f
Merge pull request #4371 from beaumccartney/mach-enum-member-aliases
...
mach darwin: enum member aliases are other enum members, not constants
2024-10-13 20:00:06 +02:00
Laytan and GitHub
16eac6c844
Merge pull request #4357 from beaumccartney/mach-vm-apis
...
bindings, types, and constants for some mach vm apis
2024-10-10 20:04:20 +02:00
Laytan Laats
5c63617191
net: fix leaking sockets in listen_tcp if an error occurs
2024-10-08 21:08:14 +02:00
Laytan Laats
d8af35f01e
net: fix leaking sockets in dial_tcp if connect errors
2024-10-08 21:01:57 +02:00
Laytan Laats
6bf70b60d6
os/os2: add default permissions to write_entire_file
2024-10-07 22:31:43 +02:00
Laytan Laats
4b8462aa70
os/os2: fix mkdir_all on posix with abs path
2024-10-07 22:11:16 +02:00
Laytan and GitHub
cf8f138c61
Merge pull request #4349 from MoritzHamann/master
...
Fix build for linux aarch64 architectures
2024-10-05 13:50:12 +02:00
Laytan and GitHub
60eac68be7
Merge pull request #4346 from flysand7/os2-fix-process-exec
...
Don't append to buffer if nothing was read
2024-10-05 11:32:14 +02:00
Laytan Laats
c21e62ddb4
reset n before stderr path too
2024-10-05 11:26:23 +02:00
Laytan and GitHub
b5f7332ffb
Merge pull request #4272 from flysand7/os2-noquote
...
[os2/process]: Don't quote arguments unless needed
2024-10-04 23:12:07 +02:00
Laytan and GitHub
d0eae4a9ad
Merge pull request #4342 from laytan/process-exec-improv
...
fix os2.process_exec on non-windows and add a smoke test
2024-10-04 19:09:13 +02:00
Laytan
54ffd6df06
better error handling
2024-10-04 15:08:21 +02:00
Laytan
a3c3e5c822
reset err
2024-10-04 14:53:16 +02:00
Laytan
cf705d4b29
wait instead of kill
2024-10-04 14:50:26 +02:00
Laytan
861efa4e54
Revert "add some debug logs"
...
This reverts commit 31ee829b44 .
2024-10-04 13:58:59 +02:00
Laytan
59086a24a1
add .ENOSYS == .Unsupported for posix too
2024-10-04 13:52:54 +02:00
Laytan
424dc590a3
fix bsds process_open
2024-10-04 13:52:44 +02:00
Laytan
31ee829b44
add some debug logs
2024-10-04 13:40:25 +02:00
Laytan
d9cfe692a9
make sure stdout and stderr always point to allocation
2024-10-04 13:24:40 +02:00
Laytan
64508e477b
add unsupported check in process test
2024-10-04 13:24:24 +02:00
Laytan
563ed69c28
fix deadlock when in write_errno_to_parent_and_abort state
2024-10-04 13:24:14 +02:00
Laytan Laats
386f144cca
satisfy -vet
2024-10-04 10:54:27 +02:00
Laytan Laats
1d29dfd037
kill process if waiting didn't make it exit to avoid a zombie
2024-10-04 10:51:40 +02:00
Laytan Laats
ae69f4b749
general cleanup
2024-10-04 10:50:14 +02:00
Laytan Laats
0b5cd3400f
use dynamic array instead of string builder
2024-10-04 10:43:38 +02:00
Laytan Laats
77b033cf96
kill process if there was an error during reading to not leave a zombie
2024-10-04 10:38:47 +02:00
Laytan Laats
5d556fe277
fix idtype definition
2024-10-03 15:25:51 +02:00
Laytan Laats
af8b592bf6
enable test on bsds
2024-10-03 14:45:45 +02:00
Laytan Laats
7676480526
fix temp allocator guard bug
2024-10-03 14:39:54 +02:00
Laytan Laats
77780f9ce8
fix use-after-free - closing wrong pipe
2024-10-03 14:24:00 +02:00
Laytan Laats
a78cd48aa3
remove posix signal test, it isn't thread safe
2024-10-03 13:51:31 +02:00
Laytan Laats
76806080ef
fix os2.process_exec on non-windows and add a smoke test
2024-10-03 13:51:27 +02:00
Laytan Laats
5d4fd09ff0
fix quaternion64 arith
...
Fixes #4282
2024-10-02 23:28:09 +02:00
Laytan Laats
0d834a2c2e
fix paths
2024-10-02 17:52:12 +02:00
Laytan Laats
55e9a1b971
fix benchmarks not compiling and make sure it doesn't happen again by checking
2024-10-02 17:48:05 +02:00
Laytan Laats
3ff887c6b6
fix not erroring on invalid ternary
...
For example: `a: f32 = true ? 1 : len` would get to the back-end without
errors.
Fixes #1690
2024-10-02 15:55:46 +02:00
Laytan Laats
ab54ad3a75
sys/posix: use '#max_field_align'
2024-09-30 16:39:14 +02:00
Laytan
5cd1784d41
review/correct/cleanup posix linux PR
2024-09-30 16:00:46 +02:00
Laytan and GitHub
38fedf2631
Merge pull request #4304 from kawaii-Code/linear_search_reverse
...
Add linear_search_reverse and linear_search_reverse_proc
2024-09-29 21:18:49 +02:00
Laytan and GitHub
085b725774
Merge pull request #4302 from Pariatech/enable_static_glfw_linux
...
Add static GLFW bindings for Linux
2024-09-29 13:55:36 +02:00
Laytan and GitHub
daa3bb9a3b
Merge pull request #4322 from laytan/fix-errors-not-printed-after-parse-warnings
...
fix errors not being printed after parse warnings
2024-09-29 12:51:21 +02:00
Laytan Laats
152479052e
va_list fixes for raylib & stb sprintf
2024-09-29 11:45:57 +02:00
Laytan Laats
642ecc363b
fix errors not being printed after parse warnings
...
Fixes #4299
2024-09-29 11:04:37 +02:00
Laytan Laats
bd45900257
container/bit_array: add 'init' procedure
2024-09-29 10:57:42 +02:00
Laytan Laats
eccb548935
fix box2d World_Draw not taking a pointer
2024-09-29 10:50:31 +02:00
Laytan and GitHub
a82f26f4c0
Merge pull request #4320 from laytan/fix-wgpu-examples-after-js-move
...
fix wgpu examples after move of files in 95721fe
2024-09-29 10:46:13 +02:00
Laytan Laats
eeaa9f048b
fix wgpu examples after move of files in 95721fe
2024-09-29 10:39:28 +02:00
Laytan and GitHub
a52b1e0321
Merge pull request #4271 from Feoramund/forbid-defer-orbreak
...
Forbid labelled or-branch expressions within `defer`
2024-09-19 13:25:28 +02:00
Laytan and GitHub
0ca5e70c7d
Merge pull request #4266 from greenya/os-get-current-directory-allocator-arg
...
[core/os] get_current_directory: Add allocator arg to targets where i…
2024-09-19 02:17:20 +02:00
Laytan Laats
7491b3c332
Fix #4265
2024-09-18 22:45:27 +02:00
Laytan Laats
80cc2f5416
fix it more
2024-09-17 23:28:34 +02:00
Laytan Laats
9973e0255c
fix error interrupt error check
2024-09-17 23:19:20 +02:00
Laytan and GitHub
4dd3248507
Merge pull request #4262 from flysand7/ptrace-args
...
[sys/linux]: Fix the order of arguments for ptrace cont, singlestep and syscall
2024-09-17 23:15:52 +02:00
Laytan Laats
652557bfcd
net: add bound_endpoint procedure
2024-09-17 22:22:19 +02:00
Laytan Laats
6ef779cd5c
add new macos releases to 'odin report' and sys/info
2024-09-17 17:47:26 +02:00
Laytan Laats
0975820c48
fix wrong ulock timeout calculation, add version check for ios
2024-09-17 15:52:35 +02:00
Laytan Laats
d03d9e49a6
fix #4243
2024-09-15 00:03:20 +02:00
Laytan and GitHub
d2d2026736
Merge pull request #4241 from laytan/improve-bit-field-debug-info
...
improve bit field debug info
2024-09-14 22:15:47 +02:00
Laytan Laats
603efa860a
add '#caller_expression'
2024-09-14 22:13:37 +02:00
Laytan Laats
4f3f256375
improve bit field debug info
2024-09-14 15:52:37 +02:00
Laytan and GitHub
129d85fe7d
Merge pull request #4236 from laytan/box2d-release-build
...
vendor/box2d: build in release mode
2024-09-13 21:09:57 +02:00
Laytan Laats
18a63037d1
vendor/box2d: build in release mode
2024-09-13 20:51:06 +02:00
Laytan and GitHub
275f1cc0de
Merge pull request #4233 from laytan/fix-poly-variadic-reuse-slice
...
fix reuse of slice for varargs with poly types
2024-09-12 02:34:01 +02:00
Laytan Laats
387f56634d
fix reuse of slice for varargs with poly types
2024-09-12 02:25:44 +02:00
Laytan Laats
201a7b90bb
fix EventMaskAny definition
2024-09-12 00:11:27 +02:00
Laytan Laats
3b22c0854c
fix some LLVM assertions
2024-09-11 22:45:16 +02:00
Laytan and GitHub
244a4acfa1
Merge pull request #4230 from laytan/cbor-unmarshal-non-string-keys
...
core/encoding/cbor: allow unmarshalling non-string map keys
2024-09-11 16:08:53 +02:00
Laytan Laats
788e4b2b6a
core/encoding/cbor: allow unmarshalling non-string map keys
2024-09-11 15:57:56 +02:00
Laytan Laats
b379d25a12
ci: try updating deprecated setup-python
2024-09-11 03:05:56 +02:00
Laytan Laats
a15afccd36
ci: aware
2024-09-11 02:56:24 +02:00
Laytan Laats
83b5f82a92
ci: ohhh, I am dumb
2024-09-11 02:45:58 +02:00