Commit Graph

6349 Commits

Author SHA1 Message Date
gingerBill fc10b781af Update core/os/os2/process.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2024-08-04 14:47:44 +01:00
gingerBill 6a6b5061db Update core/os/os_darwin.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2024-08-04 14:47:35 +01:00
gingerBill b67817517e Fix replace typo 2024-08-04 14:46:32 +01:00
gingerBill fff1d509d5 Add read_entire_file_or_err and write_entire_file_or_err 2024-08-04 14:41:55 +01:00
gingerBill e8d26c5797 Move errors to where appropriate 2024-08-04 13:41:34 +01:00
gingerBill 3d992e2704 Improve _error_string for Linux 2024-08-04 13:25:35 +01:00
gingerBill 0c5b645dde Correct EOF value 2024-08-04 13:20:33 +01:00
gingerBill cf5ec25873 Add extra cases for flush 2024-08-04 13:18:51 +01:00
gingerBill 7663a2036a Add read_at/write_at to missing platforms 2024-08-04 13:16:37 +01:00
gingerBill c32f345c68 Move error stuff to errors.odin 2024-08-04 12:55:08 +01:00
gingerBill bdbbbf5c95 Fix typo; remove unneeded casts 2024-08-04 12:39:21 +01:00
gingerBill e8b6d15db9 Fix replace typo 2024-08-04 12:31:22 +01:00
gingerBill 5f7fef92fa Update example to use err != nil instead 2024-08-04 12:25:50 +01:00
gingerBill 66b86bc7e0 Correct os errors for darwin 2024-08-04 12:23:18 +01:00
gingerBill 97c499dbb4 Begin mapping os.Error in the rest of the codebase 2024-08-04 11:58:04 +01:00
gingerBill 1d75a612d5 os.Errno -> os.Error 2024-08-04 11:47:23 +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 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 9f9abb8fb3 Use union #shared_nil for os.Error 2024-08-04 11:05:30 +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
jason c691c7dc68 point stdin, stdout, stderr to /dev/null if unused in os2.process_start 2024-08-04 01:47:10 -04:00
jason 2a7db08c20 Remove returned bool from access and faccessat in sys/linux.
Switch to using AT_EMPTY_PATH to execve with file descriptors.
2024-08-04 00:59:40 -04:00
jason 2b89829b52 minor edits in process_linux.odin 2024-08-03 18:08:00 -04:00
jason 38b96a7981 change child error behavior to trap instead of exit 2024-08-03 17:50:47 -04:00
Laytan Laats 4dd846fa29 fix readir_r link name for netbsd 2024-08-03 15:54:29 +02:00
Jeroen van Rijn 90e573c54a Add image.premultiply_alpha helper. 2024-08-03 12:58:43 +02:00
Laytan Laats 99d9e8f8b1 fix os.read_dir with symlinks 2024-08-03 00:26:46 +02:00
skytrias 9f5854e24e Update orca bindings and macros to requested changes 2024-08-02 23:46:02 +02:00
Jeroen van Rijn 1a16585b10 Add image.pixels_to_image helper. 2024-08-02 14:54:52 +02:00
gingerBill 83599957b1 Merge pull request #3998 from zen3ger/os2-temp_file_linux
[os2] Add missing temp_file implementation for Linux
2024-08-01 20:07:21 +01:00
skytrias f8e0cda113 Add autogenerated orca bindings and macros from laytan 2024-08-01 19:19:24 +02:00
Jeroen van Rijn f627a38b4f Update rand.reset() example. 2024-07-31 20:00:55 +02:00
gingerBill 04c3723985 Merge pull request #3992 from thetarnav/parser-patch
Correct the Array_Type.len comment and assign tok when making Ellipsis node
2024-07-30 21:25:21 +01:00
gingerBill ac19bb3a8c Merge pull request #3985 from flysand7/docs-sync
[sync]: Document all procedures
2024-07-30 21:24:59 +01:00
Roland Kovacs 1913c08b7b [os2] Add missing temp_file implementation for Linux 2024-07-30 18:11:44 +02:00
jason c7eb2ae6bb use sys/linux dirent instead of manual iteration 2024-07-30 10:19:09 -04:00
jason 792640df1f remove File_Impl_Kind from file_linux 2024-07-30 09:41:49 -04:00
jason 278a63caaa remove pidfd availability caching 2024-07-30 09:28:40 -04:00
jason a03dffcd1a improve error handling; do not report errors from failed execve 2024-07-30 08:45:53 -04:00
flysand7 3aac4b1a3e [sync]: Document all procedures 2024-07-30 19:13:35 +11:00
Damian Tarnawski 478b2d7444 Correct the Array_Type.len comment and assign tok when making Ellipsis node 2024-07-29 22:14:42 +02:00
Jeroen van Rijn 24e6f16f4a Clamp dot in angle_between to avoid precision errors.
Fixes #3978
2024-07-28 15:00:29 +02:00
Colin Davidson 27f75c40ab make example compile 2024-07-28 01:29:33 -07:00
Colin Davidson 1d598f8287 tweak doc a little to reduce onboarding friction for thread-users 2024-07-28 01:23:47 -07:00