Oleksandr Kovalenko
8d8aaf65aa
os\os2 windows: fix truncate-clamp op order when determining to_read size
2026-01-31 15:01:56 +02:00
David Bader
fb9377df17
core/os: fix lookup_env_buf only working with empty buffer
2026-01-30 14:44:38 +01:00
gingerBill
16881e256d
Fix absolute and volume name checks on Windows
2026-01-28 15:24:21 +00:00
Laytan Laats
bc70402093
os: add non blocking open flag
2026-01-11 20:21:25 +01:00
laytan
67177db0a8
os/os2: use ReadFile for Console reads too, at least for now
2025-12-20 20:09:19 +01:00
laytan
45a3cfa245
os/os2: better fix for the stale errors
2025-12-20 19:45:45 +01:00
laytan
ca1bb09e97
os/os2: fix stale errors on windows when reading from console
2025-12-20 18:31:48 +01:00
gingerBill
a0bcc73663
Only call get_args() if args is actually used by using an indirect value
2025-12-16 15:09:21 +00:00
gingerBill
3f354a4717
Modify IMPORTANT NOTE from os2
2025-12-06 16:08:46 +00:00
jason
c16909ab4a
os2 env changes
...
Use core:sys/posix for Linux when linking libc
fix copy paste error in posix_env
2025-12-03 09:48:30 -05:00
jason
de97e9f344
use libc for linux env when not no-crt
2025-12-02 23:52:18 -05:00
gingerBill
e53bc165ae
Add #assert(intrinsics.type_is_superset_of(File_Stream_Mode, io.Stream_Mode))
2025-11-17 10:03:25 +00:00
gingerBill
bbf0c0dc00
Merge branch 'master' into bill/os2-file-stream
2025-11-17 09:41:46 +00:00
gingerBill
93fa00c191
Use _get_platform_error() where more appropriate
2025-11-14 21:08:32 +00:00
gingerBill
8558ab59ed
Added some comments
2025-11-14 16:10:11 +00:00
gingerBill
63780110f4
Add File_Stream to replace io.Stream+Fstat_Callback within os2
2025-11-14 15:57:41 +00:00
gingerBill
e4fcebe4bf
Empty -> Unsupported
2025-11-14 11:17:38 +00:00
gingerBill
51536fecf4
Move some of the os&os2 errors into io.Error; Rename Empty to Unsupported
2025-11-14 11:08:24 +00: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
Jeroen van Rijn
7a9ea3ee6d
Further overhaul of package line comments.
2025-10-09 23:05:29 +02:00
Jeroen van Rijn
8a35acd506
More package lines.
2025-10-09 20:11:06 +02: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
samwega
9e9d41ddfd
fix: cars i64 instead of int
2025-10-03 22:17:25 +03:00
samwega
83d36451a3
os_linux.odin was using itoa, changed to use write_int()
2025-10-03 22:13:03 +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
WisonYe
4ccdb48044
Fixed the build check: ('arg' declared but not used) against the '-default-to-nil-allocator' fix for FreeBSD/OpenBSD/NetBSD/Linux.
2025-07-19 12:29:03 +12:00
WisonYe
b9f08412ae
Fixed Index 0 is out of range 0..<0' when using '-default-to-nil-allocator' for Linux/OpenBSD/NetBSD.
2025-07-19 12:03:22 +12:00
WisonYe
26e4104ac9
Fixed 'Odin/core/os/os_linux.odin(1104:7) Index 0 is out of range 0..<0' when using '-default-to-nil-allocator'.
2025-07-19 11:59:18 +12:00
WisonYe
80cd080175
Fixed 'Odin/core/os/os_freebsd.odin(971:7) Index 0 is out of range 0..<0' when using '-default-to-nil-allocator'.
2025-07-19 11:54:17 +12: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
2e83e22141
Merge branch 'master' into args-leak
2025-06-27 01:20:37 +02:00
Jeroen van Rijn
b9809e7aa4
OpenBSD
2025-06-16 20:39:19 +02:00