Commit Graph

15089 Commits

Author SHA1 Message Date
Sunagatov Denis
e21cde0cf7 sys/linux: Unify IPC_Flags and IPC_Mode bitsets
In #5399 it was noticed, that IPC_Mode isn't being used within SystemV
IPC procedures, even though it was designed this way, which lead to a
weird API where in order to call SystemV IPC procedures multiple
transmutes and a bitwise-OR are needed.

This unifies IPC_Mode and IPC_Flags bitsets, making it possible to call
the SystemV IPC procedures without extra casts, and rearranges the flags
in a way that hopefully makes it easier to see when they are not
colliding and should not be mixed. The explanation, explaining this
arrangement of the enum was added.

The IPC_Perm structure is modified, so that the flags can be re-used
between the calls. It's probably not as good as keeping them separate,
but should work... hopefully.

Kept the "old" style of documentation for consistency.

Signed-off-by: Sunagatov Denis <thebumboni@gmail.com>
2025-06-24 20:30:50 +11:00
Jeroen van Rijn
8d89b1a448 Merge pull request #5402 from Airtz/fix-5361
Fix #5361
2025-06-24 03:21:14 +02:00
Airtz
2259db9a53 Better error messages 2025-06-24 02:54:14 +02:00
Jeroen van Rijn
8707989e57 Merge pull request #5389 from Airtz/fix-4445
Fix #4445
2025-06-23 19:14:00 +02:00
Jeroen van Rijn
8846372053 Merge pull request #5396 from Feoramund/fix-3774
Forbid nested declaration of instrumentation procedures
2025-06-23 18:33:04 +02:00
Airtz
d65b1d5e94 Better proc groups inference 2025-06-23 18:10:40 +02:00
gingerBill
be3f8e3c9d Merge pull request #5397 from Feoramund/fix-4865
raylib: Refer to Odin-style enum over original C enum
2025-06-23 15:47:37 +01:00
Feoramund
92005ba1a6 raylib: Refer to Odin-style enum over original C enum
Fixes #4865
2025-06-23 09:20:09 -04:00
Feoramund
3608297e0b Forbid nested declaration of instrumentation procedures
Fixes #3774
2025-06-23 09:11:16 -04:00
Feoramund
d343f54d6d Fix spurious failure to compile procedures marked @instrumentation_enter
The type `Source_Code_Location` may not be available yet, which causes
the compiler to not recognize the procedure type correctly.
2025-06-23 09:03:50 -04:00
Jeroen van Rijn
1633d9b69a Merge pull request #5391 from blob1807/master
Fix memory leak in `core:math/big.internal_rat_norm`
2025-06-22 19:43:02 +02:00
blob1807
f2490191b6 Fix memory leak in internal_rat_norm 2025-06-23 02:44:00 +10:00
Airtz
38187ef206 Merge branch 'odin-lang:master' into fix-4445 2025-06-22 17:05:32 +02:00
Jeroen van Rijn
56d9671f63 Merge pull request #5368 from Airtz/master
Fix #5331 and `check_shift` improvements
2025-06-22 16:58:21 +02:00
Airtz
277130111e sign check error message update 2025-06-22 16:51:44 +02:00
Jeroen van Rijn
e451e51c1d Merge pull request #5388 from BradLewis/fix/parser-stb-image
Fix issue parsing `vendor/stb/image` with the `core:odin/parser` parser
2025-06-22 16:41:42 +02:00
Airtz
19c0f43e19 Fix #4445 2025-06-22 16:15:22 +02:00
Brad Lewis
fc58158fb7 Fix issue parsing vendor/stb/image with the core:odin/parser parser 2025-06-22 09:42:33 -04:00
Jeroen van Rijn
757c243aaf Merge pull request #5387 from mifreundorfer/master
Fix invalid selector for acceleration structure
2025-06-22 14:22:32 +02:00
Michael Freundorfer
109edbcec7 Fix invalid selector for acceleration structure 2025-06-22 14:10:55 +02:00
Jeroen van Rijn
2c0899156d Merge pull request #5385 from RaphGL/posix_is_supported
added IS_SUPPORTED to core:sys/posix
2025-06-21 18:26:52 +02:00
RaphGL
e374ace10d added IS_SUPPORTED to core:sys/posix 2025-06-21 12:12:13 -01:00
gingerBill
8d37f9de09 Merge pull request #5378 from laytan/fix-wasm-c-abi-raw-unions
Fix WASM C ABI for raw unions
2025-06-21 11:01:52 +01:00
Jeroen van Rijn
edb1f8a76d Merge pull request #5383 from Kelimion/thread-fix
Fix early join after start.
2025-06-21 11:54:46 +02:00
Jeroen van Rijn
1903d7211e Fix early join after start. 2025-06-21 11:47:00 +02:00
Jeroen van Rijn
8dc374a6ae Merge pull request #5380 from Feoramund/fix-2410
Ensure `volatile` status for all atomic operations
2025-06-21 01:55:04 +02:00
Feoramund
5b1113acb4 Ensure volatile status for all atomic operations
Fixes #2410
2025-06-20 19:43:41 -04:00
Jeroen van Rijn
7abd86c211 Clarify --- for global variable. 2025-06-21 00:05:15 +02:00
Laytan
62c5805c91 Merge pull request #5150 from wishfoundry/patch-1
spelling in compilation errors
2025-06-20 22:37:03 +02:00
Laytan
2995557394 Merge pull request #5211 from Barinzaya/union-custom-align-tag-size
Consider custom `#align` when determining union tag size
2025-06-20 22:31:31 +02:00
Laytan
7d8f41b938 Merge pull request #5379 from Feoramund/fix-4711
Push `context` onto stack before evaluating procedure parameters
2025-06-20 22:24:08 +02:00
Laytan Laats
30e1c96269 uncomment test, see if it's fixed 2025-06-20 22:15:21 +02:00
Laytan
7f648d11d6 Merge pull request #5329 from JackMordaunt/jfm-fix_chan_try_send
chan: fix try_send and send
2025-06-20 22:11:39 +02:00
Feoramund
378e72b211 Push context onto stack before evaluating procedure parameters
Fixes #4711
2025-06-20 16:11:08 -04:00
Laytan Laats
3db8972c99 add return 2025-06-20 22:07:46 +02:00
Laytan Laats
3a86bc9c6d Fix WASM C ABI for raw unions 2025-06-20 22:04:53 +02:00
Jeroen van Rijn
8e782d9a00 Merge pull request #5376 from Creativty/master
#5270 Escape Object files properly during linker_stage
2025-06-20 21:51:48 +02:00
xenobas
0ed54d3557 fix: escape object files with single quotes during linking 2025-06-20 19:40:24 +01:00
Jeroen van Rijn
f3c618f98d Merge pull request #5375 from RaphGL/tiocgwinsz_time
Added TIOCGWINSZ to darwin, linux and freebsd
2025-06-20 20:02:15 +02:00
Raph
a7e89e1324 Merge branch 'master' into tiocgwinsz_time 2025-06-20 16:50:00 -01:00
RaphGL
0b5be6ad6a added TIOCGWINSZ to darwin, linux and freebsd 2025-06-20 16:45:05 -01:00
Jeroen van Rijn
d9e08bc5d8 Merge pull request #5374 from Feoramund/fix-regex-docs
Fix RegEx docs
2025-06-20 16:50:07 +02:00
Feoramund
b82753227d sys/posix: Correct reference to core:text/regex 2025-06-20 10:46:40 -04:00
Feoramund
09690691b6 text/regex: Remove old docmentation and unneeded flag
`Unsupported_Flag` was used back when the iterator did not handle
`.Multiline`.
2025-06-20 10:45:48 -04:00
Airtz
4dd0048922 Merge branch 'odin-lang:master' into master 2025-06-20 14:16:46 +02:00
Jeroen van Rijn
208ace0b03 Merge pull request #5372 from Feoramund/forbid-ba-invalid-pointer-print
More `Buddy_Allocator` safeguards
2025-06-20 13:09:06 +02:00
Jeroen van Rijn
6563230bd0 Add kb to vendor/README.md 2025-06-20 13:05:17 +02:00
gingerBill
565c612f4a Fix typo 2025-06-20 11:52:18 +01:00
Feoramund
4d4356e806 mem: Guard against Buddy_Allocator overwriting metadata 2025-06-20 06:44:44 -04:00
Feoramund
bfa0e1110a mem: Don't print Buddy_Allocator.tail
This is always a pointer past the end of the buffer given to
`buddy_allocator_init`, which could be an invalid address. Printing may
result in a segmentation violation.
2025-06-20 06:41:42 -04:00