mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-17 00:24:05 +00:00
Update core/os/os_linux.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
This commit is contained in:
@@ -986,6 +986,7 @@ unset_env :: proc(key: string) -> Error {
|
||||
|
||||
@(require_results)
|
||||
get_current_directory :: proc(allocator := context.allocator) -> string {
|
||||
context.allocator = allocator
|
||||
// NOTE(tetra): I would use PATH_MAX here, but I was not able to find
|
||||
// an authoritative value for it across all systems.
|
||||
// The largest value I could find was 4096, so might as well use the page size.
|
||||
|
||||
Reference in New Issue
Block a user