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
8581240ece
Make O_RDONLY default for os.open on all platforms.
...
And also moved Windows file procs to `os_windows.odin`, in line with all the other platforms who didn't have a dedicated `file_<platform>.odin`
2024-11-28 15:57:48 +01:00
Feoramund
861d892ffe
Make Windows pread and pwrite conform to POSIX
2024-08-28 19:53:20 +02:00
Feoramund
1ced76cdd1
Fix broken cases of Seek usage in _file_stream_proc
...
Handles `EINVAL`, among other fixes.
2024-08-28 19:53:20 +02:00
gingerBill
c078b2dd1b
Add @(require_results)
2024-08-04 15:24:26 +01:00
gingerBill
e8d26c5797
Move errors to where appropriate
2024-08-04 13:41:34 +01:00
gingerBill
0c5b645dde
Correct EOF value
2024-08-04 13:20:33 +01:00
gingerBill
160048eaee
Errno -> Error
2024-08-04 11:46:42 +01:00
gingerBill
def2e2e271
Try to map to General_Error where possible
2024-08-04 11:44:45 +01:00
gingerBill
28666414bc
More clean ups of ERROR_NONE and != nil usage
2024-08-04 11:37:49 +01:00
gingerBill
a241168142
Clean up err != nil usage
2024-08-04 11:26:35 +01:00
gingerBill
29b6eebcd5
Clean up error handling
2024-08-04 11:21:09 +01:00
gingerBill
9f9abb8fb3
Use union #shared_nil for os.Error
2024-08-04 11:05:30 +01:00
flysand7
a7d95ab3e1
[core/os]: Fix read_console not stopping the read when newline can't fit in output slice
2024-07-12 20:28:38 +11:00
Tetralux
d6734c85b8
[os] Fix os.change_directory(), os.set_current_directory()
...
- set_current_directory() was leaking the wstring path string because it wasn't using the temp allocator.
- change_directory() wasn't calling SetCurrentDirectoryW() under the lock!
2024-02-12 06:03:51 +00:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
flysand7
af636eedde
os: Fix casting errors in other files
2024-01-25 21:32:24 +11:00
Jeroen van Rijn
0c97f6aa4e
Fix unhandled EOF in streaming io on Windows
2023-11-18 18:01:14 +01:00
Colin Davidson
b0eda47b26
prevent infinite-loop on EOF
2023-05-06 17:52:08 -07:00
Colin Davidson
291111e626
oops. define e
2023-05-06 17:23:44 -07:00
Colin Davidson
47693da4aa
Make read_at and write_at more consistent between platforms
2023-05-06 17:14:11 -07:00
gingerBill
986cba584e
Add runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD where appropriate
2023-02-10 16:23:33 +00:00
Jeroen van Rijn
0ca773114a
Fix os.read implementation on Windows.
2022-11-02 16:48:39 +01:00
Peter DV
e58f45bef7
Correct error reporting
2022-06-27 11:26:34 +10:00
Jeroen van Rijn
db8d119cad
Fix Windows os.make_directory.
2022-05-20 19:15:13 +02:00
gingerBill
eef44b11f3
Make the utf16 conversion procedures in core:sys/windows safer by checking for memory leaks
2022-05-12 13:17:58 +01:00
gingerBill
a4d2ff05a9
Merge pull request #1688 from bkrypt/fix_file_windows_open_create_append_order
...
os/file_windows: Fix "create or append" file open behavior
2022-04-05 12:29:20 +01:00
bkrypt
e80bee6867
Change order of O_CREATE & O_APPEND checks
2022-04-02 21:55:01 +02:00
Tetralux
c686133172
Have get_std_handle() no longer make the handles uninheritable
...
This caused all handles returned by GetStdHandle() to also not be inheritable,
which prevents you from handing them to child processes that you might create.
This fixes that.
2022-03-31 17:03:12 +00:00
gingerBill
45124e4d5c
Merge branch 'master' into freestanding_amd64
2022-02-28 12:32:51 +00:00
gingerBill
e9f901b82d
Keep -vet happy
2022-02-25 15:30:24 +00:00
gingerBill
ed3004f8a0
Correct read_console reading
2022-02-25 15:30:05 +00:00
gingerBill
d97df080f9
Revert change
2022-02-25 15:08:02 +00:00
gingerBill
0e5c7e08fc
Change < to <=
2022-02-25 14:54:35 +00:00
gingerBill
47c79a2f25
Correct os.read on windows for os.stdin
2022-02-25 12:02:41 +00:00
gingerBill
32988b0363
Correct internals for os.read on windows (read_console) for os.stdin ( Fix #1556 )
2022-02-25 12:01:53 +00:00
gingerBill
3d7d347192
Convert ODIN_OS and ODIN_ARCH to use enums rather than use strings
2022-01-20 19:56:05 +00:00
gingerBill
6616882708
Correct reading from a console on Windows
...
e.g. `os.read(os.stdin, buf[:])`
2021-11-27 14:59:35 +00:00
gingerBill
251da264ed
Remove unneeded semicolons from the core library
2021-08-31 22:21:13 +01:00
gingerBill
f0437a4242
Enforce core:builtin and core:intrinsics for imports
2021-08-21 13:44:16 +01:00
gingerBill
86649e6b44
Core library clean up: Make range expressions more consistent and replace uses of .. with ..=
2021-06-14 11:15:25 +01:00
Daniel Gavin
c46317c00b
fix os error
2021-04-14 02:20:05 +02:00
gingerBill
b727b6438b
Minimize unneeded casts
2021-03-03 14:31:17 +00:00
gingerBill
0be6ddc7e2
Add -microarch:<string> (e.g. -microarch:native)
2020-10-20 12:25:11 +01:00
gingerBill
519dcc2b76
Add os.read_at and for Windows; fix mem.clone_slice; fix current directory locking code
2020-09-29 11:11:28 +01:00
gingerBill
840af6825a
Update packages os, path, and filepath
2020-09-26 16:02:03 +01:00