Commit Graph

12968 Commits

Author SHA1 Message Date
Laytan
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
gingerBill
abbbfd2925 Merge pull request #4340 from karl-zylinski/make-map
Add make_map that just sets the allocator without allocating anything
2024-10-04 12:26:32 +01:00
gingerBill
9fe8095a84 Merge pull request #4338 from laytan/fix-ternary-swallow-error
fix not erroring on invalid ternary
2024-10-04 12:25:54 +01: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
gingerBill
dd7c88989a Merge pull request #4341 from laytan/fix-quaternion64-arith
fix quaternion64 arith
2024-10-04 10:25:00 +01: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
Karl Zylinski
fd05d94789 Add make_map that just takes an allocator and no capacity, similar to make_dynamic_array. This renames the old make_map to make_map_cap. 2024-10-02 17:47:04 +02:00
gingerBill
53bb6c85f7 a ordered to an ordered 2024-10-02 15:48:58 +01:00
gingerBill
21d0b073b1 Sort flags on odin build -help - #4329 2024-10-02 15:43:13 +01:00
gingerBill
3498d4341d Fix #4330 2024-10-02 15:07:22 +01:00
gingerBill
aeb568f79a Ignore package runtime with using -vet-unused-packages 2024-10-02 15:04:50 +01: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
Jeroen van Rijn
613f231fed Merge pull request #4336 from Kelimion/slice_to_type
Add `slice.to_type`
2024-10-01 23:45:59 +02:00
Jeroen van Rijn
eba7be34e7 Add slice.to_type 2024-10-01 23:27:15 +02:00
gingerBill
af9ae4897a Merge pull request #4290 from flysand7/pipe-has-data
[os2/process]: Implement `process_exec`, and `pipe_has_data`
dev-2024-10
2024-10-01 11:30:28 +01:00
gingerBill
9f813a6263 Merge pull request #4331 from olimpiu/patch-1
Fixed confusing (and incorrect) warning
2024-10-01 11:29:45 +01:00
olimpiu
5d57fe77be Fixed confusing (and incorrect) warning
Verbose errors *is* the new default
2024-09-30 20:46:03 -04:00
Laytan Laats
ab54ad3a75 sys/posix: use '#max_field_align' 2024-09-30 16:39:14 +02:00
gingerBill
9919a0cacd Merge branch 'master' of https://github.com/odin-lang/Odin 2024-09-30 15:35:52 +01:00
gingerBill
91dece1656 Change struct alignment rules for #max_field_align 2024-09-30 15:35:47 +01:00
gingerBill
1e1904e9ab Merge pull request #4323 from laytan/bit-array-init
container/bit_array: add 'init' procedure
2024-09-30 15:00:45 +01:00
gingerBill
d6f6099419 Merge pull request #4324 from laytan/va-list-stb-sprintf-raylib-fixe
va_list fixes for raylib & stb sprintf
2024-09-30 15:00:14 +01:00
gingerBill
d712ea43eb Merge pull request #4325 from mtarik34b/document-container-of-proc
Add documentation to `runtime.container_of`
2024-09-30 15:00:03 +01:00
gingerBill
962af780ae Merge pull request #4328 from Yawning/fix/cshake-bytepad
core/crypto/_sha3: Fix edge case in cSHAKE bytepad
2024-09-30 13:56:31 +01:00
Yawning Angel
cf7d705c1f core/crypto/_sha3: Fix edge case in cSHAKE bytepad
If the domain separator happens to be exactly the rate, we would
previously incorrectly add another rate-bytes of 0s.
2024-09-30 21:50:18 +09:00
gingerBill
a7d7c92a53 #min_field_align & #max_field_align; deprecate #field_align in favour of #min_field_align 2024-09-30 13:05:28 +01:00
gingerBill
4b6410e225 ABI BREAKING for SysV: Change how multiple return values are handled to be separate like all other ABIs 2024-09-30 12:32:55 +01:00
gingerBill
b173fa1b9a Fix LLVM 18 ABI for 128-bit integers (because LLVM broke things) 2024-09-30 11:45:24 +01:00