gingerBill
03e90bf924
Use RTTI to get the error_string for Windows
2024-07-16 12:26:24 +01:00
gingerBill
8d70a264ab
Check for specific error directly
2024-07-16 12:21:55 +01:00
gingerBill
fe718460c6
Clean up bit_set usage
2024-07-16 12:17:48 +01:00
gingerBill
1afb10109e
Remove the need for temporary variables where possible
2024-07-16 12:13:39 +01:00
gingerBill
3a162de18f
More clean up for process_windows.odin
2024-07-16 12:08:59 +01:00
gingerBill
321ef82d76
Add @(require_results) where needed
2024-07-16 11:57:22 +01:00
gingerBill
169fc4d3be
General clean up of the os2/process_windows.odin code
2024-07-16 11:56:31 +01:00
flysand7
8df61b7209
[os2/process]: Make get_args() private and use heap_allocator
2024-07-15 23:28:03 +11:00
flysand7
255f00d971
[os2/process]: Implement missing functionality, update docs
2024-07-15 20:24:05 +11:00
flysand7
b7ccfed9af
[os2/process]: Implement process_kill
2024-07-15 07:27:44 +11:00
flysand7
4eca60946c
[os2/process]: Refactor process_info procs, add process_info_by_handle
2024-07-15 07:27:44 +11:00
flysand7
8f4755532e
[os2/process]: Adjust docs on process_close function
2024-07-15 07:27:44 +11:00
flysand7
63d94301fc
[os2/process]: Implement process creation procedures
2024-07-15 07:27:43 +11:00
flysand7
e1eed7610c
[os2/process]: Fix leaking memory on errors
2024-07-15 07:27:43 +11:00
flysand7
5d6e0bc793
[os2/process]: Implement retrieving command args in process info
2024-07-15 07:27:43 +11:00
flysand7
c1f5d8f006
[os2/process]: Improve documentation for *process_info() family of function
2024-07-15 07:27:43 +11:00
flysand7
f3d4a734d8
[os2/process]: Fix environment block null-terminator counting
2024-07-15 07:27:43 +11:00
flysand7
6387cd2c24
[os2/process] Added process_info() procedure
2024-07-15 07:27:43 +11:00
flysand7
56d55e4a86
Rebase master
2024-07-15 07:27:43 +11:00
flysand7
6fab055f43
[os2/process]: Add process list function
2024-07-15 07:27:43 +11:00
flysand7
2495f1c39a
[os2/process]: Fill in basic functions
2024-07-15 07:27:43 +11:00
gingerBill
5de6016e7f
Clean up os2.File.impl usage
2024-07-14 15:26:59 +01:00
gingerBill
4f73b35da5
Make os2.File a more generic interface
2024-07-14 15:09:33 +01:00
gingerBill
3d38f14202
Use fstat on os2.File directly
2024-07-14 14:51:22 +01:00
flysand7
b686b072d5
[os2/file]: Fixes related to handle inheritance
...
All file handles created on Windows used to be made
non-inheritable, by forcing the .Close_On_Exec flag
in _open() function. In addition, there was an
issue with security descriptor being freed before
use, which has been fixed.
2024-07-14 15:06:28 +11: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
Hector Mejia
2b854c94da
added the setenv and unsetenv bindings for darwin, inspired but os_linux.odin
2024-07-05 16:26:03 -04:00
Laytan Laats
5399093050
make preopens a slice and remove bad current_dir
2024-07-02 20:17:24 +02:00
Laytan Laats
10c68a8951
wasm: support vendor:stb/truetype and vendor:fontstash
2024-07-02 16:03:42 +02:00
Laytan Laats
4e18e1b191
wasi: make os.open work with absolute paths
2024-07-02 15:29:24 +02:00
Laytan Laats
604551eb2d
wasi: make the demo run on wasi and run it in CI
2024-06-29 23:15:31 +02:00
gingerBill
e296d6fb90
Fix loads of indentation issues with mixing spaces and tabs
2024-06-29 19:50:51 +01:00
gingerBill
103eccf104
More style improvements
2024-06-29 19:23:58 +01:00
gingerBill
b9861a0cf6
cast to transmute
2024-06-29 12:14:21 +01:00
gingerBill
c18c0a3364
Adhere to -vet-cast
2024-06-29 12:07:21 +01:00
gingerBill
4b71c47fd5
Check for unneeded transmute with -vet-cast
2024-06-29 12:02:31 +01:00
Feoramund
b3caae6db4
Keep -vet happy
2024-06-28 23:14:03 -04:00
jason
6a894195cb
revert os2/process
2024-06-28 09:45:22 -04:00
jason
dc954307d7
fix assumption about std handles in os2/file.odin
2024-06-28 07:55:33 -04:00
jason
a15cbc474d
change error strings to an enumerated array in rodata; print_error takes a file argument
2024-06-28 07:45:24 -04:00
jason
f24f72c280
convert all to use sys/linux over sys/unix; new implementations for pipe, process and env
2024-06-27 17:14:48 -04:00
gingerBill
28e33d86de
Merge pull request #3776 from IllusionMan1212/os2-read-fix
...
fix(os2): check for 0 bytes read and return EOF
2024-06-20 15:37:41 +01:00
IllusionMan1212
c987b964c8
fix(os2): check for 0 bytes read and return EOF
2024-06-18 17:03:54 +02:00
Feoramund
fc88de12c2
Implement absolute_path_from_handle for FreeBSD
2024-06-11 04:16:42 -04:00
Feoramund
a3da796d54
Fix file_size on FreeBSD
...
It was using the generic UNIX `fstat` implemented in Odin, which is more
than what is needed here.
This also avoids the issue of needing a proper
`absolute_path_from_handle` implementation for it to work without error.
2024-06-11 03:55:41 -04:00
Feoramund
40e99ebb10
Fix file open O_* flags on FreeBSD
2024-06-11 03:55:41 -04:00
Jeroen van Rijn
de7d3e2487
Update dir_windows.odin
2024-06-08 17:00:38 +02:00
John Leidegren
35e57fdef8
Fixed error handling in read_dir on Windows
2024-06-08 15:58:34 +02:00
gingerBill
3a9b86628a
Add @(rodata) and @(static, rodata) where appropriate
2024-06-06 15:23:52 +01:00
Andreas T Jonsson
929437c7bc
Fixed broken import
2024-06-05 11:17:13 +02:00