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
Jeroen van Rijn
3862555153
Replace core:posix usage in core:os/os2
2025-06-13 17:49:05 +02:00
Feoramund
b7de15caa3
Clarify strconv.append_* to strconv.write_*
2025-06-05 16:56:00 -04:00
Laytan Laats
c6a0d302b3
loop write_entire_file to write more than MAX_RW
...
Fixes #4042
2024-08-11 17:27:54 +02:00
gingerBill
fff1d509d5
Add read_entire_file_or_err and write_entire_file_or_err
2024-08-04 14:41:55 +01:00
gingerBill
c32f345c68
Move error stuff to errors.odin
2024-08-04 12:55:08 +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
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
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
e296d6fb90
Fix loads of indentation issues with mixing spaces and tabs
2024-06-29 19:50:51 +01:00
gingerBill
7df7fec6f7
Keep -vet happy
2024-02-28 18:27:49 +00:00
gingerBill
dce176fa39
Remove unnecessary use of transmute
2024-02-28 18:24:59 +00:00
gingerBill
038086d1d9
Alias heap calls from base:runtime is core:os
2024-01-28 22:47:55 +00:00
Colin Davidson
58e4a011c7
add non-zeroing append and resize
2023-12-04 00:08:13 -08:00
Jeroen van Rijn
962d599996
Fix reading from /sys/ pseudo fx
2023-10-26 14:30:04 +02:00
jason
f9c600a760
add nil check to heap_alloc calls (issue 2530)
2023-05-11 14:04:09 -04:00
Daniel
d23d7cf0f2
Add caller location info to os.read_entire_file()
...
This helps people using the mem.Tracking_Allocator to more easily
pinpoint where they leaked memory in their own code, rather than
having the leaks be reported as if they were in the core library
itself.
2023-01-27 02:42:16 -05:00
Colin Davidson
6ff2db47b4
shuffle to private/public wrapper
2023-01-06 13:33:47 -08:00
gingerBill
7f601c9535
Add Allocator_Mode.Alloc_Non_Zerored
2022-09-22 12:12:57 +01:00
Vitaly Kravchenko
d469c2da48
Fix indent
2022-09-21 17:31:37 +01:00
gingerBill
5d190b15d7
Minor improvements to io and os
2022-05-05 15:30:07 +01:00
gingerBill
f5697dd7f2
Merge branch 'master' into odin-global-constants-as-enums
2022-02-15 15:47:24 +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
CiD-
e5868e3205
add zeroing regardless of ODIN_OS
2022-01-20 10:17:47 -05:00
CiD-
29ca6ee420
add zeroing to new region from realloc
2021-12-17 10:41:49 -05:00
gingerBill
c9c197ba08
Add os.read_at_least and os_read_full utility procedures.
2021-11-27 14:57:49 +00:00
zhibog
c632125d82
Added a read_entire_file proc that only takes a handle and turned it into a proc group with the one, that takes a path
2021-10-16 18:45:25 +02:00
Jeroen van Rijn
72fe1e88a3
Make sure to delete on the right allocator.
2021-09-19 12:19:01 +02:00
gingerBill
251da264ed
Remove unneeded semicolons from the core library
2021-08-31 22:21:13 +01:00
gingerBill
4d00c2b800
Allocator_Error.Mode_Not_Implemented; Minor improvement to map runtime procedures
2021-08-08 14:29:45 +01:00
gingerBill
e9b1d4f633
Fix #906
2021-04-20 10:34:41 +01:00
gingerBill
f98c4d6837
Improve the Allocator interface to support returning Allocator_Error to allow for safer calls
...
Virtually all code (except for user-written custom allocators) should work as normal. Extra features will need to be added to make the current procedures support the `Allocator_Error` return value (akin to #optional_ok)
2021-04-19 12:31:31 +01:00
gingerBill
fc4fdd588e
Remove usage of do in core library
2020-09-23 17:17:14 +01:00
gingerBill
9f1f194d18
Merge pull request #727 from JoshuaManton/master-fork
...
Add allocator parameter to os.read_entire_file()
2020-09-03 08:37:22 +01:00
Joshua Mark Manton
0fe47a2f1b
Add allocator parameter to os.read_entire_file()
2020-09-02 18:42:12 -07:00
gingerBill
e7f54d25d6
Add mem.Allocator_Query_Info and mem.query_info
2020-08-16 23:05:33 +01:00
gingerBill
033b46def8
Add mem.Allocator_Mode.Query_Features, mem.Allocator_Mode_Set, mem.query_features`
2020-08-16 22:07:40 +01:00
gingerBill
65b9dbe13f
Clean-up OS constants; Clean-up procs_wasm32.odin
2020-07-09 17:21:40 +01:00
Hasen Judy
705984f828
Fix darwin open flags and mode
2020-04-19 01:39:22 +09:00
gingerBill
a0d0e93475
Fix os.read_entire_file
2020-03-12 23:45:46 +00:00
Tetralux
1181d7cf90
Fix os.read / os.read_entire_file
...
- DWORDs are NOT i32
- os.read didn't correctly read as much as it could
2020-03-12 22:31:00 +00:00
Tetralux
a4b60b78c8
Fix heap allocator alignment on all platforms
2020-01-22 12:03:16 +00:00
Justas Dabrila
38a9a2b7fc
Linux: write_entire_file sets 644 permissions on open.
2019-12-23 16:35:10 +02:00
gingerBill
ee78374281
Fix typo
2019-12-01 18:57:43 +00:00
gingerBill
ebe152a155
Disable aligned heap allocations hack in os.heap_allocator_proc
2019-12-01 18:53:27 +00:00