|
@@ -674,7 +674,7 @@ seek :: proc(fd: Handle, offset: i64, whence: int) -> (i64, Error) {
|
|
return i64(res), nil
|
|
return i64(res), nil
|
|
}
|
|
}
|
|
|
|
|
|
-@(require_results)
|
|
|
|
|
|
+@(require_results, no_sanitize_memory)
|
|
file_size :: proc(fd: Handle) -> (i64, Error) {
|
|
file_size :: proc(fd: Handle) -> (i64, Error) {
|
|
// deliberately uninitialized; the syscall fills this buffer for us
|
|
// deliberately uninitialized; the syscall fills this buffer for us
|
|
s: OS_Stat = ---
|
|
s: OS_Stat = ---
|
|
@@ -794,7 +794,7 @@ last_write_time_by_name :: proc(name: string) -> (time: File_Time, err: Error) {
|
|
return File_Time(modified), nil
|
|
return File_Time(modified), nil
|
|
}
|
|
}
|
|
|
|
|
|
-@(private, require_results)
|
|
|
|
|
|
+@(private, require_results, no_sanitize_memory)
|
|
_stat :: proc(path: string) -> (OS_Stat, Error) {
|
|
_stat :: proc(path: string) -> (OS_Stat, Error) {
|
|
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
|
|
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
|
|
cstr := strings.clone_to_cstring(path, context.temp_allocator)
|
|
cstr := strings.clone_to_cstring(path, context.temp_allocator)
|
|
@@ -808,7 +808,7 @@ _stat :: proc(path: string) -> (OS_Stat, Error) {
|
|
return s, nil
|
|
return s, nil
|
|
}
|
|
}
|
|
|
|
|
|
-@(private, require_results)
|
|
|
|
|
|
+@(private, require_results, no_sanitize_memory)
|
|
_lstat :: proc(path: string) -> (OS_Stat, Error) {
|
|
_lstat :: proc(path: string) -> (OS_Stat, Error) {
|
|
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
|
|
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
|
|
cstr := strings.clone_to_cstring(path, context.temp_allocator)
|
|
cstr := strings.clone_to_cstring(path, context.temp_allocator)
|
|
@@ -822,7 +822,7 @@ _lstat :: proc(path: string) -> (OS_Stat, Error) {
|
|
return s, nil
|
|
return s, nil
|
|
}
|
|
}
|
|
|
|
|
|
-@(private, require_results)
|
|
|
|
|
|
+@(private, require_results, no_sanitize_memory)
|
|
_fstat :: proc(fd: Handle) -> (OS_Stat, Error) {
|
|
_fstat :: proc(fd: Handle) -> (OS_Stat, Error) {
|
|
// deliberately uninitialized; the syscall fills this buffer for us
|
|
// deliberately uninitialized; the syscall fills this buffer for us
|
|
s: OS_Stat = ---
|
|
s: OS_Stat = ---
|