Commit Graph

5447 Commits

Author SHA1 Message Date
Laytan Laats
ae41779366 remove redundant & 2024-08-18 21:10:21 +02:00
Jeroen van Rijn
478f529744 Merge pull request #4094 from amad00r/fix-nil-logger
Fix log unnecessary allocations
2024-08-17 01:50:13 +02:00
gingerBill
536a342873 Merge pull request #4092 from laytan/fix-open-bindings
fix `open` bindings
2024-08-17 00:22:46 +01:00
Amadeu Moya
43dc7704a5 Fix log unnecessary allocations 2024-08-17 00:37:01 +02:00
Laytan Laats
e8933e43ec add haiku to unsupported time file 2024-08-16 23:18:59 +02:00
Laytan Laats
f7d7d65bc0 fix open bindings
`open` specifies the `mode` argument as vararg (presumably to make it
optional). varargs actually have rules about casting, in this case the
rule that any integer arg of size <= 4 has to be casted to `i32` before
passing it.

Not doing that implicit cast makes the permissions wrong or not apply at
all.
2024-08-16 22:54:53 +02:00
Feoramund
a07878be71 Check if file open-mode is O_CREATE on Darwin before forcing chmod
Fixes #4087
2024-08-16 14:08:55 -04:00
gingerBill
40b8150a23 Minor clean ups 2024-08-16 12:47:23 +01:00
gingerBill
31bb3dc4f0 Merge pull request #3971 from jasonKercher/os2-process-linux
os2 process linux implementation
2024-08-16 12:38:27 +01:00
gingerBill
65ce7687d7 Merge pull request #4004 from Skytrias/orca-odin-bindings
Add autogenerated orca bindings and macros from laytan
2024-08-16 12:37:36 +01:00
Laytan
6fc39c1b5d Merge pull request #4075 from yay/more-foundation-bindings
More Foundation bindings.
2024-08-16 13:08:15 +02:00
jason
07a9c69714 update core:filepath's clean, join and split_list to return optional Allocator_Errors 2024-08-16 01:48:27 -04:00
Vitalii Kravchenko
004036dc59 More Foundation bindings. 2024-08-16 00:00:29 +01:00
Laytan
d91fa162d8 Merge pull request #3280 from beaumccartney/shm_syscalls
add shm_open and shm_unlink syscalls for darwin
2024-08-15 17:08:41 +02:00
DerTee
6422e49255 fix error handling in os2.read_entire_file_from_file()
even when an error in file_size() happened, os2.ERROR_NONE was returned
2024-08-14 17:30:02 +02:00
Jeroen van Rijn
f7234e2ed3 Allow ODIN_TEST_LOG_LEVEL override when -debug. 2024-08-14 16:29:51 +02:00
gingerBill
e810c3eace Merge pull request #4012 from laytan/posix
core:sys/posix and core:os/os2 based on it (for darwin, netbsd, freebsd and openbsd)
2024-08-14 15:10:31 +01:00
Laytan Laats
f657b4cc0c time: use assert_contextless in wasi implementation 2024-08-14 13:27:58 +02:00
jason
0f052dbde7 os2/process_linux: improve error handling, use pidfd where possible, remove usage of fmt 2024-08-14 00:45:25 -04:00
Laytan Laats
e29f0a0f40 os2: dup the file descriptor before fdopendir 2024-08-14 01:45:24 +02:00
Laytan Laats
f837e35f4b os2: fix bad free for posix file closure 2024-08-14 01:45:24 +02:00
Laytan Laats
61ee2efa35 os2: just use runtime._heap_allocator_proc instead of a copy for posix 2024-08-14 01:45:24 +02:00
Laytan Laats
e94c4e1e18 posix: remove the is_temp things that prevented use-after-frees
d0709a7de2
fixes those another way.
2024-08-14 01:45:24 +02:00
Laytan Laats
b07d0b38b1 os2: improve absolute/full path handling for posix 2024-08-14 01:45:23 +02:00
Laytan Laats
a73677d21a os2: nice != priority 2024-08-14 01:44:37 +02:00
Laytan Laats
67ea7bb65a posix: address some freebsd feedback 2024-08-14 01:44:37 +02:00
Laytan Laats
175f5b0bb1 os2: don't rely on PATH_MAX in posix read_directory implementation 2024-08-14 01:44:37 +02:00
Laytan Laats
939ba4cf08 os2: fix leak and always close directory 2024-08-14 01:44:37 +02:00
Laytan Laats
f00f68ef6f posix/os2: fix test and add back in removed temp guard 2024-08-14 01:44:37 +02:00
Laytan Laats
de9abe1f7b os2: skip . and .. in read dir 2024-08-14 01:44:37 +02:00
Laytan Laats
bd808f9ec6 os2: fix wiping results with temp allocator guard 2024-08-14 01:44:37 +02:00
Laytan Laats
7474db6a34 os2: fix lstat logic 2024-08-14 01:44:37 +02:00
Laytan Laats
00eb702c4a os2: implement the iterator based read directory 2024-08-14 01:44:37 +02:00
Laytan Laats
ea5783c2ac os2: fixes after rebasing 2024-08-14 01:44:37 +02:00
Laytan Laats
e05fddc001 posix: fix file type checks in stat 2024-08-14 01:44:37 +02:00
Laytan Laats
406e60f5dd posix: revert change to os that was done for testing 2024-08-14 01:44:37 +02:00
Laytan Laats
72220a855f posix: fix write error check 2024-08-14 01:44:37 +02:00
Laytan Laats
4a61bac100 posix: fix test on netbsd 2024-08-14 01:44:37 +02:00
Laytan Laats
726891588f posix: more tests 2024-08-14 01:44:37 +02:00
Laytan Laats
2a5ceff667 posix: move doc 2024-08-14 01:44:37 +02:00
Laytan Laats
9e2c5acb9d os2: fix bit checks 2024-08-14 01:44:37 +02:00
Laytan Laats
7c9ca60ff0 mem/virtual: support the BSDs 2024-08-14 01:44:37 +02:00
Laytan Laats
379cd6fe66 os2: cleanup 2024-08-14 01:44:37 +02:00
Laytan Laats
ffff3c3c88 posix: fix foreign import of dl for free/netbsd 2024-08-14 01:44:37 +02:00
Laytan Laats
a4d459f651 os2: initial implementation for Darwin&BSDs, process API is only thing incomplete 2024-08-14 01:44:37 +02:00
Laytan Laats
ff0ca0bd53 os2: make config directory on darwin also ~/.config, it is the proper place 2024-08-14 01:44:37 +02:00
Laytan Laats
07b9f7d280 os2: fix read_entire_file bad logic 2024-08-14 01:44:37 +02:00
Laytan Laats
9f80191f60 os2: add default make_directory permissions 2024-08-14 01:44:37 +02:00
Laytan Laats
efe68c2e24 posix: add package 2024-08-14 01:44:35 +02:00
Laytan
3847d03248 Merge pull request #3281 from erjohnson/patch-1
Update mem doc example formatting
2024-08-14 00:10:03 +02:00