aboutsummaryrefslogtreecommitdiff
path: root/core/os
Commit message (Collapse)AuthorAgeFilesLines
* Document the rest of `os2`.gingerBill2025-10-313-5/+45
|
* Update documentation for `os2` once more!gingerBill2025-10-315-18/+143
|
* Improve documentation for the file based operations in os2gingerBill2025-10-311-5/+145
|
* Change to `Permissions` bit_set from relying on octal numbering for os2gingerBill2025-10-3114-44/+88
|
* use `runtime.exit` for `os2.exit`gingerBill2025-10-315-20/+2
|
* Remove `core:encoding/ini` dependency in `user_posix.odin`gingerBill2025-10-281-12/+12
|
* Add `#caller_location` to `os2.read_entire_file`gingerBill2025-10-281-10/+7
|
* [core:os/os2] zeroed `n` value on failed file operationsA10293847562025-10-272-12/+19
|
* Fix Linux executable pathKamron Bhavnagri2025-10-181-1/+2
| | | | | | | | 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
* Further overhaul of package line comments.Jeroen van Rijn2025-10-091-1/+1
|
* More package lines.Jeroen van Rijn2025-10-091-0/+1
|
* fix: another itoa() used in path_linux.odin had to be replaced with write_int()samwega2025-10-031-1/+1
|
* fix: cars i64 instead of intsamwega2025-10-031-1/+1
|
* os_linux.odin was using itoa, changed to use write_int()samwega2025-10-031-1/+1
|
* 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
| | |