Yuriy Grynevych
6e979a96a1
Update core/os/os_darwin.odin
...
Co-authored-by: Laytan <laytanlaats@hotmail.com >
2024-09-19 00:10:53 +03:00
Laytan Laats
7491b3c332
Fix #4265
2024-09-18 22:45:27 +02:00
Yuriy Grynevych
4ff836609c
[core/os] get_current_directory: Add allocator arg to targets where its missing
2024-09-18 21:03:48 +03:00
gingerBill
8814170edf
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-09-18 00:13:44 +01:00
gingerBill
e17dfcf7a2
Remove distinct from core:math/linalg/(glsl|hlsl) types
2024-09-18 00:13:34 +01:00
Laytan
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
flysand7
833157ecc9
[sys/linux]: Fix the order of arguments for ptrace cont, singlestep and syscall
2024-09-18 07:52:22 +11:00
Laytan Laats
652557bfcd
net: add bound_endpoint procedure
2024-09-17 22:22:19 +02:00
Karl Zylinski
29fedc1808
Changed some recently added //+ usages to #+ and also fixed some //+ usages in some code generators.
2024-09-17 19:39:48 +02:00
Karl Zylinski
093ade0504
Merge branch 'master' into file-tags-without-comments
2024-09-17 19:36:17 +02:00
Laytan Laats
6ef779cd5c
add new macos releases to 'odin report' and sys/info
2024-09-17 17:47:26 +02:00
Jeroen van Rijn
9508a1f031
Merge pull request #4255 from avanspector/master
...
init ansi on a standalone testing exe
2024-09-17 17:15:41 +02:00
avanspector
c794f853e9
init ansi on a standalone testing exe
2024-09-17 16:57:02 +02:00
Laytan Laats
0975820c48
fix wrong ulock timeout calculation, add version check for ios
2024-09-17 15:52:35 +02:00
gingerBill
0d33df15b4
Merge pull request #4208 from laytan/more-wasm-vendor-support
...
wasm: support more vendor libraries
2024-09-17 11:37:10 +01:00
pkova
6e0f1cc866
Pass microseconds instead of nanoseconds to __ulock_wait
2024-09-17 02:35:00 +03:00
Pyry Kovanen
4d6f7dcac0
Fix code alignment in futex_darwin.odin
...
Co-authored-by: Feoramund <161657516+Feoramund@users.noreply.github.com >
2024-09-17 02:21:00 +03:00
pkova
fff99c726e
Fix core sync test deadlock on darwin
2024-09-17 01:52:51 +03:00
gingerBill
a16d3b6c9a
Merge pull request #4242 from laytan/caller-expression
...
add '#caller_expression'
2024-09-16 17:36:46 +01:00
gingerBill
68619f299e
Merge pull request #4209 from flysand7/core-mem
...
[core/mem]: Document, refactor, reformat!
2024-09-16 17:35:19 +01:00
gingerBill
017d6bdf73
Merge pull request #4232 from Feoramund/test-sync
...
Add test suites for `core:sync` and `core:sync/chan`
2024-09-16 17:27:20 +01:00
Feoramund
d38f5ffb49
Remove unneeded synchronizations in Chan
...
Everything was already guarded by `c.mutex`.
2024-09-15 22:59:30 -04:00
Isaac Andrade
97e06cb98e
Fix bit flags on fcntl linux POSIX implemention. Add sys/sem linux implementation.
2024-09-15 18:43:51 -06:00
Isaac Andrade
8616842ec6
Implement Linux POSIX compliance for poll, sched, sys/select. Fix enum in fcntl.
2024-09-14 20:23:42 -06:00
Isaac Andrade
aa91479870
Fix O_NOFOLLOW typo. Add Linux support for POSIX fcntl.
2024-09-14 17:01:15 -06:00
Laytan Laats
603efa860a
add '#caller_expression'
2024-09-14 22:13:37 +02:00
Karl Zylinski
3d7b924260
Fix a few incorrectly placed build tags.
2024-09-14 18:41:05 +02:00
Karl Zylinski
19f0127e55
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
2024-09-14 18:27:49 +02:00
Isaac Andrade
af94c4ab32
Add initial POSIX support for Linux for wordexp.
2024-09-14 10:06:25 -06:00
Karl Zylinski
b12d312408
core/odin: Added new file tag syntax as token. parse_file stores a list of tags that the file tag parser can use later.
2024-09-14 17:59:50 +02:00
flysand7
466e29bb38
[mem]: Rollback allocator API consistency
2024-09-14 13:15:02 +11:00
flysand7
016d1a84d4
[mem]: Document mutex, rollback stack and tracking allocators
2024-09-14 10:46:35 +11:00
flysand7
3ed2ab6e2c
[mem]: Adjust the docs for calc_padding_with_header
2024-09-14 10:18:51 +11:00
flysand7
e90f5d2528
[mem]: Adjust the docs on the buddy allocator
2024-09-14 10:03:04 +11:00
Isaac Andrade
55a9ba1fc0
Finish sys/socket POSIX support for Linux.
2024-09-11 22:25:38 -06:00
Laytan Laats
201a7b90bb
fix EventMaskAny definition
2024-09-12 00:11:27 +02:00
Laytan Laats
788e4b2b6a
core/encoding/cbor: allow unmarshalling non-string map keys
2024-09-11 15:57:56 +02:00
Feoramund
16cd16b91e
Fix comments
2024-09-11 08:39:23 -04:00
Feoramund
2938655a3d
Fix CPU count detection in FreeBSD & NetBSD
2024-09-11 08:39:23 -04:00
Feoramund
b1db33b519
Add cpu_relax to sync.auto_reset_event_signal
2024-09-11 08:39:23 -04:00
Feoramund
a1435a6a90
Fix deadlock in Auto_Reset_Event
2024-09-11 08:39:23 -04:00
Feoramund
fec1ccd7a3
Fix data races in sync.Recursive_Benaphore
2024-09-11 08:39:23 -04:00
Isaac Andrade
1632f19826
In-progress support for POSIX on Linux for sys/socket.
2024-09-10 18:43:09 -06:00
flysand7
f16ed256ea
[mem]: Fix handling of default resize to check alignment
2024-09-11 08:00:27 +11:00
Feoramund
b2c2235e58
Fix recursive_benaphore_try_lock
...
Previously, if the owner called this, it would fail.
2024-09-10 14:52:20 -04:00
Feoramund
3a60109180
Fix signalling test child threads crashing test 0
...
A thread made inside a test does not share the test index of its parent,
so any time one of those threads failed an assert, it would tell the
runner to shutdown test index zero.
2024-09-10 14:52:20 -04:00
Feoramund
8a14a656fb
Fix chan.can_send for unbuffered channels
...
`w_waiting` is the signal that says a caller is waiting to be able to
send something. It is incremented upon send and - in the case of an
unbuffered channel - it can only hold one message.
Therefore, check that `w_waiting` is zero instead.
2024-09-10 14:52:20 -04:00
Feoramund
e9a6a34480
Forbid chan.try_send on closed buffered channels
2024-09-10 14:52:20 -04:00
Feoramund
026aef69e3
Fix deadlock on sending to full, buffered, closed Chan
...
This will also keep messages from being sent to closed, buffered
channels in general.
2024-09-10 14:52:20 -04:00
Feoramund
73f5ab473c
Keep chan.can_recv from deadlocking
2024-09-10 14:52:20 -04:00