| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | fix for temp_file name prefix being deallocated before being used | Alex Riedl | 2025-09-11 | 1 | -7/+5 |
| | | |||||
| * | Handle optional allocator error when appending read bytes in ↵ | Damian Tarnawski | 2025-09-02 | 1 | -1/+1 |
| | | | | | read_entire_file_from_file | ||||
| * | More contextless fixes | gingerBill | 2025-08-08 | 2 | -7/+8 |
| | | |||||
| * | Add contextless to another proc | gingerBill | 2025-08-08 | 1 | -2/+2 |
| | | |||||
| * | Make `get_args` contextless | gingerBill | 2025-08-08 | 1 | -1/+8 |
| | | |||||
| * | Require `@(init)` and `@(fini)` to be `proc "contextless" ()` | gingerBill | 2025-08-08 | 13 | -29/+45 |
| | | |||||
| * | Merge branch 'master' into bill/utf16-strings | gingerBill | 2025-08-05 | 1 | -3/+3 |
| |\ | |||||
| | * | Fixed delete-after-free in file_windows.odin | Jared Cone | 2025-08-04 | 1 | -3/+3 |
| | | | |||||
| * | | Remove unneeded uses of `intrinsics.constant_utf16_cstring` | gingerBill | 2025-08-02 | 1 | -1/+1 |
| | | | |||||
| * | | os2 internals -> (c)string16 | gingerBill | 2025-08-02 | 8 | -47/+74 |
| | | | |||||
| * | | `for in string16`; Support `string16` across core | gingerBill | 2025-08-02 | 3 | -4/+4 |
| |/ | |||||
| * | Fixed the build check: ('arg' declared but not used) against the ↵ | WisonYe | 2025-07-19 | 4 | -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' ↵ | WisonYe | 2025-07-19 | 3 | -5/+5 |
| | | | | | for Linux/OpenBSD/NetBSD. | ||||
| * | Fixed 'Odin/core/os/os_linux.odin(1104:7) Index 0 is out of range 0..<0' ↵ | WisonYe | 2025-07-19 | 1 | -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' ↵ | WisonYe | 2025-07-19 | 1 | -2/+2 |
| | | | | | when using '-default-to-nil-allocator'. | ||||
| * | Replace system:System.framework imports with system:System | Harold Brenes | 2025-07-13 | 2 | -3/+3 |
| | | | | | This makes the linker work for both macOS and iOS targets | ||||
| * | Merge branch 'master' into args-leak | Jeroen van Rijn | 2025-06-27 | 69 | -1457/+4264 |
| |\ | |||||
| | * | OpenBSD | Jeroen van Rijn | 2025-06-16 | 1 | -2/+31 |
| | | | |||||
| | * | Fix macOS | Jeroen van Rijn | 2025-06-16 | 1 | -1/+1 |
| | | | |||||
| | * | Add buffered get_env variants to os2 | Jeroen van Rijn | 2025-06-16 | 7 | -13/+140 |
| | | | |||||
| | * | Factor out buffered utf helper. | Jeroen van Rijn | 2025-06-16 | 1 | -30/+7 |
| | | | |||||
| | * | Add bring-your-own-buffer versions of `os.lookup_env` and `os.get_env` | Jeroen van Rijn | 2025-06-16 | 9 | -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 | ||||
| | * | WASI | Jeroen van Rijn | 2025-06-13 | 1 | -0/+9 |
| | | | |||||
| | * | stub out get_env for js | Jeroen van Rijn | 2025-06-13 | 1 | -0/+5 |
| | | | |||||
| | * | Replace core:posix usage in core:os/os2 | Jeroen van Rijn | 2025-06-13 | 3 | -9/+106 |
| | | | |||||
| | * | Merge pull request #5286 from Feoramund/no-san-mem | gingerBill | 2025-06-09 | 6 | -16/+17 |
| | |\ | | | | | | | Add `@(no_sanitize_memory)` with additions to `base:sanitizer` | ||||
| | | * | Mark some uninitialized memory as safe | Feoramund | 2025-06-05 | 6 | -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 Rijn | 2025-06-08 | 2 | -61/+41 |
| | | | | |||||
| | * | | Merge pull request #5295 from elyalon/dirs | Jeroen van Rijn | 2025-06-07 | 4 | -57/+222 |
| | |\ \ | | | | | | | | | Fix user dirs, add docs | ||||
| | | * | | remove fmt import | Ely Alon | 2025-06-07 | 1 | -1/+0 |
| | | | | | |||||
| | | * | | Fix user dirs, add docs | Ely Alon | 2025-06-07 | 4 | -57/+223 |
| | | | | | |||||
| | * | | | Merge pull request #5288 from Feoramund/strconv-append-to-write | Jeroen van Rijn | 2025-06-05 | 2 | -2/+2 |
| | |\ \ \ | | |/ / | |/| | | Clarify `strconv.append_*` to `strconv.write_*` | ||||
| | | * | | Clarify `strconv.append_*` to `strconv.write_*` | Feoramund | 2025-06-05 | 2 | -2/+2 |
| | | | | | |||||
| | * | | | Factor out into helper. | Jeroen van Rijn | 2025-06-05 | 1 | -176/+44 |
| | |/ / | |||||
| | * | | UAF | Jeroen van Rijn | 2025-06-05 | 1 | -10/+10 |
| | | | | |||||
| | * | | tabs | Jeroen van Rijn | 2025-06-05 | 1 | -13/+13 |
| | | | | |||||
| | * | | add more user dirs | Ely Alon | 2025-06-05 | 3 | -24/+325 |
| | |/ | |||||
| | * | Fix | Jeroen van Rijn | 2025-06-05 | 2 | -16/+21 |
| | | | |||||
| | * | Change `os2.user_*` on Windows to use `SHGetKnownFolderPath`. | Jeroen van Rijn | 2025-06-05 | 2 | -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 allocator | Jeroen van Rijn | 2025-06-05 | 1 | -4/+4 |
| | | | |||||
| | * | Fix `core:log` on `-target:js_wasm32` | Jeroen van Rijn | 2025-06-02 | 1 | -0/+4 |
| | | | |||||
| | * | os2: remove libc use on Linux | Laytan Laats | 2025-05-20 | 3 | -21/+35 |
| | | | |||||
| | * | Revert "os2: Don't try to translate Windows file attributes to Unix mode flags" | Jeroen van Rijn | 2025-05-12 | 2 | -36/+20 |
| | | | | | | | | | | | This reverts commit 95923c2059758bac282f2b78a004d8daa3824994. It'll be updated later. | ||||
| | * | Fix os2.clean_path on Windows | Jeroen van Rijn | 2025-05-11 | 2 | -28/+58 |
| | | | |||||
| | * | os2: better copy_directory, and add native copy_file and copy_directory ↵ | Laytan Laats | 2025-05-08 | 4 | -13/+94 |
| | | | | | | | | | variants on MacOS | ||||
| | * | Fix linux | Lucas Perlind | 2025-05-08 | 1 | -1/+1 |
| | | | |||||
| | * | Improve assert information | Lucas Perlind | 2025-05-08 | 1 | -1/+1 |
| | | | |||||
| | * | Remove TEMP_ALLOCATOR_GUARD wrapper | Lucas Perlind | 2025-05-08 | 33 | -116/+113 |
| | | | |||||
| | * | Fix posix | Lucas Perlind | 2025-05-08 | 5 | -32/+35 |
| | | | |||||
| | * | Fix linux | Lucas Perlind | 2025-05-08 | 2 | -0/+3 |
| | | | |||||