Commit Graph

12995 Commits

Author SHA1 Message Date
Colin Davidson
d393d3292f Update core/time/timezone/tzdate.odin
Co-authored-by: Feoramund <161657516+Feoramund@users.noreply.github.com>
2024-10-21 21:48:58 -07:00
Colin Davidson
5bf8852b2e add julian day rule resolvers 2024-10-10 10:31:46 -07:00
Colin Davidson
19c2b4d54f swap datetime_to_str to aprintf 2024-10-10 10:17:02 -07:00
Colin Davidson
fcaa3abe47 delete local_str with the appropriate allocator 2024-10-10 09:24:50 -07:00
Colin Davidson
ba6203f8d3 sort out windows enum names too 2024-10-10 09:19:04 -07:00
Colin Davidson
4c8e355444 tweaks per laytan suggestions 2024-10-10 09:14:29 -07:00
Colin Davidson
a6502c3e8c Initial cut of timezones 2024-10-09 19:26:43 -07: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
gingerBill
b839d06ac8 Merge branch 'master' of https://github.com/odin-lang/Odin 2024-10-08 11:58:28 +01:00
gingerBill
131e8d4187 Disable exe path test 2024-10-08 11:57:54 +01: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
Jeroen van Rijn
c50eaa0b77 Merge pull request #4352 from avanspector/master
build.bat: remove wmic and mandatory git requirement
2024-10-06 21:27:13 +02:00
avanspector
46ca1c8b32 Merge branch 'odin-lang:master' into master 2024-10-06 20:47:18 +02:00
avanspector
bb29304029 remove wmic and mandatory git requirement 2024-10-06 20:46:41 +02:00
gingerBill
ed29c881a5 Merge pull request #4351 from jakubtomsu/sys-windows-file-flags
[core:sys/windows] Add more FILE_FLAGs
2024-10-06 19:31:27 +01:00
jakubtomsu
0b74a661e3 add file flags like in WinBase.h 2024-10-06 19:53:04 +02:00
Laytan
cf8f138c61 Merge pull request #4349 from MoritzHamann/master
Fix build for linux aarch64 architectures
2024-10-05 13:50:12 +02:00
Moritz
249242687c Fix build for linux aarch64 architectures
Build failed to compile on Raspberry Pi 4, with

clang: error: the clang compiler does not support '-march=native'

The build script checks $OS_ARCH for `arm64` to distinghuish between ARM
and X64 architecture. However on Raspberry Pi, the `uname -m` command
reports `aarch64` rather than `arm64`.

This change updates the EXTRAFLAGS of the `release-native` target to
check for both - `arm64` and `aarch64`.
2024-10-05 12:09:39 +01:00
Laytan
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
flysand7
f61996fd6f Don't append to buffer if nothing was read 2024-10-05 11:06:36 +11:00
Laytan
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
flysand7
dad418cf91 Remove unused things 2024-10-05 07:23:15 +11:00
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
c305c9dd04 [ABI FIX] Fix 128-bit ABI issues 2024-10-04 11:16:33 +01: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