Commit Graph

152 Commits

Author SHA1 Message Date
gingerBill
60bc7f53d2 Comment out open_buffered 2024-08-04 17:41:48 +01:00
gingerBill
cf3c1a85ec Remove temp parameter 2024-08-04 17:36:28 +01:00
gingerBill
046f72befd Mock out open_buffered 2024-08-04 17:31:39 +01:00
gingerBill
f19436fb4d Only swap if there was an arena 2024-08-04 17:17:09 +01:00
gingerBill
d0709a7de2 Allow for nested temp_allocator() calls to flip between arenas on TEMP_ALLOCATOR_GUARDs 2024-08-04 17:14:24 +01:00
gingerBill
fc10b781af Update core/os/os2/process.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2024-08-04 14:47:44 +01:00
gingerBill
3d992e2704 Improve _error_string for Linux 2024-08-04 13:25:35 +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
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
7dae38ce89 Begin mocking out for other errors 2024-08-04 11:12:45 +01:00
gingerBill
1826b0c700 Fix copy-replace errors 2024-08-04 11:10:17 +01:00
gingerBill
e60951a902 Begin converting os.Errno to be a nil-able type as a transition period 2024-08-04 10:51:08 +01:00
gingerBill
71932628cc Add alias 2024-08-04 10:08:48 +01:00
Roland Kovacs
1913c08b7b [os2] Add missing temp_file implementation for Linux 2024-07-30 18:11:44 +02:00
gingerBill
f03c2b7783 General clean up of os2.read_directory for Windows 2024-07-24 21:45:35 +01:00
gingerBill
07b1819dc8 Improve os2.read_directory 2024-07-24 14:53:33 +01:00
gingerBill
9d8953538b Add missing attribute 2024-07-24 14:25:42 +01:00
gingerBill
d4af7b86a7 Begin cleaning up os2.read_directory 2024-07-24 14:19:30 +01:00
gingerBill
38e983cac6 Remove dead code 2024-07-24 13:47:57 +01:00
gingerBill
2ddaae45f3 Better handling of allocators 2024-07-24 13:47:22 +01:00
gingerBill
c407e423d9 Add inode to os2.Stat 2024-07-24 13:37:56 +01:00
gingerBill
efa8c92bab Implement init_long_path_support 2024-07-23 17:46:22 +01:00
gingerBill
65fec9134e Use SHFileOperationW for remove_all on Windows 2024-07-23 17:30:42 +01:00
gingerBill
a28392852a Mock out os2.remove_all for Windows 2024-07-23 17:05:41 +01:00
gingerBill
8037ace873 Begin work on os2/dir.odin 2024-07-23 16:47:49 +01:00
gingerBill
182454a1c0 Minor clean ups 2024-07-23 16:09:15 +01:00
gingerBill
24f9e2bbeb Begin mocking out the linux stuff on os2 2024-07-23 16:06:14 +01:00
gingerBill
0403626acf Add utility calls to os2 2024-07-23 15:57:17 +01:00
gingerBill
2f8399fe20 Merge pull request #3940 from flysand7/os2-handle-inheritance
[os2] Make all handles non-inheritable by default
2024-07-19 11:38:03 +01:00
flysand7
7b501b22bb [os2]: Split file type from mode bits 2024-07-18 23:09:27 +11:00
flysand7
75605a47e7 [os2]: Make anonymous pipes always inheritable 2024-07-18 22:57:30 +11:00
flysand7
4dcb75af6d Make all handles non-inheritable by default
The sockets are left as non-inheritable because they
never should be inherited.
2024-07-18 22:50:47 +11:00
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