Commit Graph

929 Commits

Author SHA1 Message Date
gingerBill
d21fea404b Merge pull request #6631 from heavyrain266/deprecate-haiku
removed Haiku from supported targets
2026-05-06 15:52:36 +01:00
gingerBill
560f8847c7 Merge pull request #6651 from IllusionMan1212/os-fixes
os fixes
2026-05-04 19:55:04 +01:00
IllusionMan1212
bda83a7c36 fix(os): create all dst directories in copy_directory_all 2026-05-04 01:26:23 +02:00
IllusionMan1212
a1a7da6f8a fix(os): store absolute path on File_Info on Windows, matching Linux
fixes #6170
2026-05-04 01:25:19 +02:00
Ignacy Koper
c01e85ca67 removed core:sys/haiku package
also removes Haiku from core:sys/info, core:os/old, core:path/filepath, core:dynlib, core:time, core:testing, and core:terminal (minor changes)

Signed-off-by: Ignacy Koper <ignacy423@gmail.com>
2026-04-28 19:27:24 +02:00
Ignacy Koper
3e64a72bad removed Essence from supported targets
Signed-off-by: Ignacy Koper <ignacy423@gmail.com>
2026-04-27 11:10:48 +02:00
juaum
7e4240a460 Fix os.stem on empty path 2026-04-16 15:11:40 +02:00
Shane Shrybman
f4aa97f89a Fix os._volume_name_len to handle paths of purely separators. Also, fix '\h\s' handling 2026-04-09 23:26:37 -04:00
Jeroen van Rijn
e558f9852e Add comment to os.exit 2026-04-08 10:17:43 +02:00
juaum
d06572c831 core/os: Add dir procedure 2026-04-04 10:13:19 +02:00
imp0s5ible
0d8fe07388 Fix array-bounds-exceeded error
We didn't consider empty base/target strings and accessed the ith
element unconditionally. We now check to make sure `i` is in range.
2026-03-29 21:24:57 +02:00
imp0s5ible
1f2d978396 Fix #6495 - Handle starting separator during name comparison
During the loop comparing file/directory names, the starting character
in both will be a path separator in most cases.
Since a naive string equality will regard forward slashes and
backslashes as different, we must specially handle the first character
and exclude it from the equality comparison if necessary.
2026-03-29 21:11:22 +02:00
pawelt
911f00521c Handle OOM error in path_linux / _get_working_directory() 2026-03-17 14:37:22 +01:00
gingerBill
20dcc8fd80 Remove use of @(init) for checking if Windows has long path support and check on first usage instead 2026-03-15 19:09:45 +00:00
IllusionMan1212
afbb0b4357 os: return .Permission_Denied for .EACCES in posix and linux 2026-03-03 17:50:31 +02:00
gingerBill
aea6274a10 Fix _mkdir_all for wasi 2026-02-19 14:54:34 +00:00
gingerBill
b643b0b1a9 Fix _copy_directory_all_native 2026-02-19 14:05:49 +00:00
gingerBill
cf3ac07a7e Fix copy_directory_all 2026-02-19 14:00:38 +00:00
gingerBill
26a4b2bfef Fix perm: int to perm: Permissions 2026-02-19 13:58:02 +00:00
Laytan Laats
7a7d7560b6 os: remove sys/unix dep on Linux 2026-02-18 20:16:55 +01:00
Laytan Laats
e87e3fba1b os: remove process_close and add process_terminate
`process_wait` (optionally prefaced with a `process_kill`) can be used
to properly close and free resources of the process.

`process_terminate` was added because `process_kill` is a forceful
exit, we were missing a way to request the process to terminate.
2026-02-18 20:15:07 +01:00
gingerBill
442b163871 Fix typos 2026-02-17 14:41:09 +00:00
gingerBill
966b76c4cb Add write_slice/read_slice utility procedures to core:bytes, core:io, and core:os 2026-02-17 14:34:28 +00:00
Jeroen van Rijn
95c82e0f76 Fix #6279
If the replacement rune was multi-byte, `os.replace_path_separators` would silently fail to replace anything.

Now it properly handles non-ASCII separator. Additionally added a fast path for when all runes in the input path as well as the replacement separator are simple ASCII.

Test added.
2026-02-15 12:42:55 +01:00
Jeroen van Rijn
d26ad6a0e5 Update doc line for core:os and core:os/old. 2026-02-14 00:55:21 +01:00
Jeroen van Rijn
faca11d593 Fix os.stem, os.short_stem. 2026-02-13 12:36:15 +01:00
Jeroen van Rijn
62cfa9e8e3 Narrowly tailor panic. 2026-02-12 12:21:01 +01:00
Jeroen van Rijn
658e6b9d9f Add core:log support for js/wasm
Also add #panic when importing `core:os` on wasm.
2026-02-12 12:12:21 +01:00
Jeroen van Rijn
97683ae014 Simplify 2026-02-12 10:48:26 +01:00
Jeroen van Rijn
8468d269dc Remove @(require_results) from os.read_directory_iterator 2026-02-11 19:15:32 +01:00
Jeroen van Rijn
1a37f4eb0c Only count bits in touched array members. 2026-02-09 19:13:32 +01:00
Jeroen van Rijn
454ad1f4b8 Unwrap cpu affinity syscalls. 2026-02-09 19:01:43 +01:00
Jeroen van Rijn
fa44c64c42 != nil 2026-02-09 18:29:31 +01:00
Jeroen van Rijn
ec05bb57dc Implement get_processor_core_count without libc for Linux. 2026-02-09 18:16:16 +01:00
Jeroen van Rijn
7a7127aa13 Fix package line 2026-02-09 16:34:24 +01:00
Jeroen van Rijn
8366e7094a Fix up ABI name for core:os and core:os/old 2026-02-09 16:27:53 +01:00
Jeroen van Rijn
e7dbabf668 core:os -> core:os/old && core:os/os2 -> core:os 2026-02-09 15:50:21 +01:00
Jeroen van Rijn
5bf30b2d56 Fix os2 file_wasi 2026-02-08 14:13:20 +01:00
Jeroen van Rijn
6270b02b2c Remove os2 mockup warning 2026-02-08 13:07:41 +01:00
Jeroen van Rijn
2e970db51d Link some more of filepath to os2 2026-02-08 12:56:05 +01:00
Jeroen van Rijn
0c341123cb More conflicts during rebase 2026-02-08 12:56:00 +01:00
Jeroen van Rijn
5924fb448e Add tests for glob + match 2026-02-08 12:54:25 +01:00
Jeroen van Rijn
1c9e36b05e Fix js_wasm 2026-02-08 12:54:23 +01:00
Jeroen van Rijn
691dc44719 Add glob + match to os2 2026-02-08 12:51:29 +01:00
Jeroen van Rijn
cc50be1a6c Add more filepath to os2 2026-02-08 12:51:29 +01:00
Jeroen van Rijn
ab0f1aa0c4 BSDs 2026-02-08 12:44:10 +01:00
Jeroen van Rijn
14021f6444 core:testing Darwin 2026-02-08 12:44:09 +01:00
Jeroen van Rijn
47786deddc In the middle of porting core:testing 2026-02-08 12:44:08 +01:00
Jeroen van Rijn
e094de5874 Add loc := #caller_location to read_entire_file 2026-02-08 12:44:05 +01:00
Jeroen van Rijn
a86ec95944 Address wasi errors 2026-02-08 12:42:29 +01:00