aboutsummaryrefslogtreecommitdiff
path: root/core/os_linux.odin
diff options
context:
space:
mode:
Diffstat (limited to 'core/os_linux.odin')
-rw-r--r--core/os_linux.odin14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/os_linux.odin b/core/os_linux.odin
index ab65236e2..676739c04 100644
--- a/core/os_linux.odin
+++ b/core/os_linux.odin
@@ -5,7 +5,7 @@ foreign_system_library (
import "strings.odin";
Handle :: i32;
-FileTime :: u64;
+File_Time :: u64;
Errno :: i32;
@@ -40,7 +40,7 @@ RTLD_GLOBAL :: 0x100;
// "Argv" arguments converted to Odin strings
args := _alloc_command_line_arguments();
-_FileTime :: struct #ordered {
+_File_Time :: struct #ordered {
seconds: i64;
nanoseconds: i32;
reserved: i32;
@@ -63,9 +63,9 @@ Stat :: struct #ordered {
block_size: i64; // Optimal bllocksize for I/O
blocks: i64; // Number of 512-byte blocks allocated
- last_access: _FileTime; // Time of last access
- modified: _FileTime; // Time of last modification
- status_change: _FileTime; // Time of last status change
+ last_access: _File_Time; // Time of last access
+ modified: _File_Time; // Time of last modification
+ status_change: _File_Time; // Time of last status change
_reserve1,
_reserve2,
@@ -195,8 +195,8 @@ stdout: Handle = 1;
stderr: Handle = 2;
/* TODO(zangent): Implement these!
-last_write_time :: proc(fd: Handle) -> FileTime {}
-last_write_time_by_name :: proc(name: string) -> FileTime {}
+last_write_time :: proc(fd: Handle) -> File_Time {}
+last_write_time_by_name :: proc(name: string) -> File_Time {}
*/
stat :: proc(path: string) -> (Stat, int) #inline {