aboutsummaryrefslogtreecommitdiff
path: root/core/os
Commit message (Collapse)AuthorAgeFilesLines
* fix for temp_file name prefix being deallocated before being usedAlex Riedl2025-09-111-7/+5
|
* Handle optional allocator error when appending read bytes in ↵Damian Tarnawski2025-09-021-1/+1
| | | | read_entire_file_from_file
* More contextless fixesgingerBill2025-08-082-7/+8
|
* Add contextless to another procgingerBill2025-08-081-2/+2
|
* Make `get_args` contextlessgingerBill2025-08-081-1/+8
|
* Require `@(init)` and `@(fini)` to be `proc "contextless" ()`gingerBill2025-08-0813-29/+45
|
* Merge branch 'master' into bill/utf16-stringsgingerBill2025-08-051-3/+3
|\
| * Fixed delete-after-free in file_windows.odinJared Cone2025-08-041-3/+3
| |
* | Remove unneeded uses of `intrinsics.constant_utf16_cstring`gingerBill2025-08-021-1/+1
| |
* | os2 internals -> (c)string16gingerBill2025-08-028-47/+74
| |
* | `for in string16`; Support `string16` across coregingerBill2025-08-023-4/+4
|/
* Fixed the build check: ('arg' declared but not used) against the ↵WisonYe2025-07-194-4/+4
| | | | '-default-to-nil-allocator' fix for FreeBSD/OpenBSD/NetBSD/Linux.
* Fixed Index 0 is out of range 0..<0' when using '-default-to-nil-allocator' ↵WisonYe2025-07-193-5/+5
| | | | for Linux/OpenBSD/NetBSD.
* Fixed 'Odin/core/os/os_linux.odin(1104:7) Index 0 is out of range 0..<0' ↵WisonYe2025-07-191-2/+2
| | | | when using '-default-to-nil-allocator'.
* Fixed 'Odin/core/os/os_freebsd.odin(971:7) Index 0 is out of range 0..<0' ↵WisonYe2025-07-191-2/+2
| | | | when using '-default-to-nil-allocator'.
* Replace system:System.framework imports with system:SystemHarold Brenes2025-07-132-3/+3
| | | | This makes the linker work for both macOS and iOS targets
* Merge branch 'master' into args-leakJeroen van Rijn2025-06-2769-1457/+4264
|\
| * OpenBSDJeroen van Rijn2025-06-161-2/+31
| |
| * Fix macOSJeroen van Rijn2025-06-161-1/+1
| |
| * Add buffered get_env variants to os2Jeroen van Rijn2025-06-167-13/+140
| |
| * Factor out buffered utf helper.Jeroen van Rijn2025-06-161-30/+7
| |
| * Add bring-your-own-buffer versions of `os.lookup_env` and `os.get_env`Jeroen van Rijn2025-06-169-24/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And make `core:terminal` use it so that `core:log` can be imported with `-default-to-nil-allocator`, in which the actual allocator is set up in `main()`. Windows was tricky because of the utf-8 <> utf-16 conversion, so we use some temporary stack buffers for that purpose, limiting the non-allocating version there to 512 utf-16 characters each for the key and environment value. In general the value is (obviously) limited to the size of the supplied buffer, and a `.Buffer_Full` error is returned if that buffer is insufficient. If the key is not found, the procedure returns `.Env_Var_Not_Found`. TODO: - Factor out buffer-backed utf8 + utf16 conversion to `core:sys/util` to more easily apply this pattern. - Add similar `lookup_env` and `get_env` procedures to `core:os/os2`. Fixes #5336
| * WASIJeroen van Rijn2025-06-131-0/+9
| |
| * stub out get_env for jsJeroen van Rijn2025-06-131-0/+5
| |
| * Replace core:posix usage in core:os/os2Jeroen van Rijn2025-06-133-9/+106
| |
| * Merge pull request #5286 from Feoramund/no-san-memgingerBill2025-06-096-16/+17
| |\ | | | | | | Add `@(no_sanitize_memory)` with additions to `base:sanitizer`
| | * Mark some uninitialized memory as safeFeoramund2025-06-056-16/+17
| | | | | | | | | | | | | | | Syscalls (but not C functions) are opaque to MemorySanitizer, thus some memory addresses need to be manually marked as safe to access.
| * | Simplify `_xdg_user_dirs_lookup`Jeroen van Rijn2025-06-082-61/+41
| | |
| * | Merge pull request #5295 from elyalon/dirsJeroen van Rijn2025-06-074-57/+222
| |\ \ | | | | | | | | Fix user dirs, add docs
| | * | remove fmt importEly Alon2025-06-071-1/+0
| | | |
| | * | Fix user dirs, add docsEly Alon2025-06-074-57/+223
| | | |
| * | | Merge pull request #5288 from Feoramund/strconv-append-to-writeJeroen van Rijn2025-06-052-2/+2
| |\ \ \ | | |/ / | |/| | Clarify `strconv.append_*` to `strconv.write_*`
| | * | Clarify `strconv.append_*` to `strconv.write_*`Feoramund2025-06-052-2/+2
| | | |
| * | | Factor out into helper.Jeroen van Rijn2025-06-051-176/+44
| |/ /
| * | UAFJeroen van Rijn2025-06-051-10/+10
| | |
| * | tabsJeroen van Rijn2025-06-051-13/+13
| | |
| * | add more user dirsEly Alon2025-06-053-24/+325
| |/
| * FixJeroen van Rijn2025-06-052-16/+21
| |
| * Change `os2.user_*` on Windows to use `SHGetKnownFolderPath`.Jeroen van Rijn2025-06-052-15/+33
| | | | | | | | | | | | Known folders can be redirected using `SHSetKnownFolderPath`, and it's a bit iffy to rely on environment variables. This also more easily allows us to add `user_*_dir` procedures for the remaining 139 GUIDs in `known_folders.odin`, provided they have equivalents on other platforms.
| * Allocate return value on provided allocatorJeroen van Rijn2025-06-051-4/+4
| |
| * Fix `core:log` on `-target:js_wasm32`Jeroen van Rijn2025-06-021-0/+4
| |
| * os2: remove libc use on LinuxLaytan Laats2025-05-203-21/+35
| |
| * Revert "os2: Don't try to translate Windows file attributes to Unix mode flags"Jeroen van Rijn2025-05-122-36/+20
| | | | | | | | | | This reverts commit 95923c2059758bac282f2b78a004d8daa3824994. It'll be updated later.
| * Fix os2.clean_path on WindowsJeroen van Rijn2025-05-112-28/+58
| |
| * os2: better copy_directory, and add native copy_file and copy_directory ↵Laytan Laats2025-05-084-13/+94
| | | | | | | | variants on MacOS
| * Fix linuxLucas Perlind2025-05-081-1/+1
| |
| * Improve assert informationLucas Perlind2025-05-081-1/+1
| |
| * Remove TEMP_ALLOCATOR_GUARD wrapperLucas Perlind2025-05-0833-116/+113
| |
| * Fix posixLucas Perlind2025-05-085-32/+35
| |
| * Fix linuxLucas Perlind2025-05-082-0/+3
| |