Commit Graph

394 Commits

Author SHA1 Message Date
Jeroen van Rijn
76e3164253 Remove os2 mockup warning 2025-11-03 10:58:09 +01:00
Jeroen van Rijn
fd08181b6b Link some more of filepath to os2 2025-11-02 15:53:57 +01:00
Jeroen van Rijn
6fbb9c417b Link more of path/filepath to os2 2025-11-02 15:53:57 +01:00
Jeroen van Rijn
e46de333e4 Add tests for glob + match 2025-11-02 15:53:57 +01:00
Jeroen van Rijn
44964f8e38 Fix js_wasm 2025-11-02 15:53:56 +01:00
Jeroen van Rijn
e9632c9a97 Add glob + match to os2 2025-11-02 15:53:56 +01:00
Jeroen van Rijn
e67931b755 Add more filepath to os2 2025-11-02 15:53:56 +01:00
Jeroen van Rijn
cf8a3b9b04 BSDs 2025-11-02 15:53:56 +01:00
Jeroen van Rijn
48e2a0f0e8 core:testing Darwin 2025-11-02 15:53:56 +01:00
Jeroen van Rijn
4c3b147d60 In the middle of porting core:testing 2025-11-02 15:53:54 +01:00
Jeroen van Rijn
22ebe06ebf Add loc := #caller_location to read_entire_file 2025-11-02 15:43:31 +01:00
Jeroen van Rijn
578fb3224a Address wasi errors 2025-11-02 15:43:31 +01:00
Jeroen van Rijn
a9ad665bc9 core:os -> core:os/os for CSV, INI, and XML
Also had to vendor `core:encoding/ini` into `core:os/os2` for the user directories on *nix,
as it used that package to read `~/.config/user-dirs.dirs`, causing an import cycle.
2025-11-02 15:43:31 +01:00
Jeroen van Rijn
b504d1673a Stub out core:os/os2 for js_wasm 2025-11-02 15:43:31 +01:00
gingerBill
fc5ef57a97 Document the rest of os2. 2025-10-31 16:00:44 +00:00
gingerBill
d2e274f0fe Update documentation for os2 once more! 2025-10-31 15:51:36 +00:00
gingerBill
1329630bbc Improve documentation for the file based operations in os2 2025-10-31 15:17:54 +00:00
gingerBill
b9df67f8c5 Change to Permissions bit_set from relying on octal numbering for os2 2025-10-31 14:45:53 +00:00
gingerBill
686ddbb548 use runtime.exit for os2.exit 2025-10-31 10:24:21 +00:00
gingerBill
5e528f8e97 Remove core:encoding/ini dependency in user_posix.odin 2025-10-28 13:21:35 +00:00
gingerBill
4c8f99cd36 Add #caller_location to os2.read_entire_file 2025-10-28 10:57:53 +00:00
A1029384756
7afbe23a34 [core:os/os2] zeroed n value on failed file operations 2025-10-27 12:23:47 -04:00
Kamron Bhavnagri
2995536882 Fix Linux executable path
Fixes a bug caused by an executable named identically to the directory
it is in, where then the parent of that directory is both on the path
and marked as executable
Avoid this via stat, as we can check we are working with a file which is
executable
2025-10-18 14:33:35 +11:00
samwega
9da10dece2 fix: another itoa() used in path_linux.odin had to be replaced with write_int() 2025-10-03 22:26:24 +03:00
Alex Riedl
b9a09cebee fix for temp_file name prefix being deallocated before being used 2025-09-11 10:55:29 -05:00
Damian Tarnawski
cdca345d74 Handle optional allocator error when appending read bytes in read_entire_file_from_file 2025-09-02 13:42:25 +02:00
gingerBill
8ff15eaf69 More contextless fixes 2025-08-08 13:02:37 +01:00
gingerBill
78290ceef3 Add contextless to another proc 2025-08-08 12:38:20 +01:00
gingerBill
d3f649d244 Make get_args contextless 2025-08-08 12:25:58 +01:00
gingerBill
7642e0a0e0 Require @(init) and @(fini) to be proc "contextless" () 2025-08-08 12:10:01 +01:00
gingerBill
eae43f1225 Merge branch 'master' into bill/utf16-strings 2025-08-05 15:07:06 +01:00
Jared Cone
b1cda52fd6 Fixed delete-after-free in file_windows.odin 2025-08-04 19:42:23 -07:00
gingerBill
5aec40e3e0 Remove unneeded uses of intrinsics.constant_utf16_cstring 2025-08-02 12:55:05 +01:00
gingerBill
c631a8eff5 os2 internals -> (c)string16 2025-08-02 12:47:03 +01:00
gingerBill
bb4bc316a4 for in string16; Support string16 across core 2025-08-02 12:20:35 +01:00
Harold Brenes
219b0fe535 Replace system:System.framework imports with system:System
This makes the linker work for both macOS and iOS targets
2025-07-13 15:45:21 -04:00
Jeroen van Rijn
73dcc39d98 Fix macOS 2025-06-16 20:22:15 +02:00
Jeroen van Rijn
6347c87b5b Add buffered get_env variants to os2 2025-06-16 20:12:27 +02:00
Jeroen van Rijn
3862555153 Replace core:posix usage in core:os/os2 2025-06-13 17:49:05 +02:00
gingerBill
87247b8bb7 Merge pull request #5286 from Feoramund/no-san-mem
Add `@(no_sanitize_memory)` with additions to `base:sanitizer`
2025-06-09 12:46:22 +01:00
Jeroen van Rijn
77f4199af6 Simplify _xdg_user_dirs_lookup 2025-06-08 14:56:41 +02:00
Jeroen van Rijn
6d7f5baaf8 Merge pull request #5295 from elyalon/dirs
Fix user dirs, add docs
2025-06-07 11:13:40 +02:00
Ely Alon
deeb9e2d12 remove fmt import 2025-06-07 01:40:43 +03:00
Ely Alon
17746db555 Fix user dirs, add docs 2025-06-07 01:22:30 +03:00
Jeroen van Rijn
e870369c97 Merge pull request #5288 from Feoramund/strconv-append-to-write
Clarify `strconv.append_*` to `strconv.write_*`
2025-06-05 23:45:37 +02:00
Feoramund
b7de15caa3 Clarify strconv.append_* to strconv.write_* 2025-06-05 16:56:00 -04:00
Jeroen van Rijn
108c8781c7 Factor out into helper. 2025-06-05 22:27:18 +02:00
Feoramund
f8228a91d1 Mark some uninitialized memory as safe
Syscalls (but not C functions) are opaque to MemorySanitizer, thus some
memory addresses need to be manually marked as safe to access.
2025-06-05 16:06:44 -04:00
Jeroen van Rijn
90a1b0ec4b UAF 2025-06-05 21:45:36 +02:00
Jeroen van Rijn
2428fa37a9 tabs 2025-06-05 21:38:59 +02:00