mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
use more iterators; global "has pidfd open" state is now thread-safe
This commit is contained in:
@@ -399,7 +399,6 @@ _read_entire_pseudo_file :: proc { _read_entire_pseudo_file_string, _read_entire
|
||||
_read_entire_pseudo_file_string :: proc(name: string, allocator: runtime.Allocator) -> (b: []u8, e: Error) {
|
||||
TEMP_ALLOCATOR_GUARD()
|
||||
name_cstr := clone_to_cstring(name, temp_allocator()) or_return
|
||||
defer delete(name, temp_allocator())
|
||||
return _read_entire_pseudo_file_cstring(name_cstr, allocator)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user