diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-08-03 21:21:56 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-08-03 21:21:56 +0100 |
| commit | 49d337c83039715fd3100f6ec8a88dff80c08c4b (patch) | |
| tree | f129486fb80a44dc106a277a576438d0ce344d8c /core/os_linux.odin | |
| parent | 294092979e89faa67dc77d2261e9ddafc18b0d0d (diff) | |
v0.6.2; Use Ada_Case for typesv0.6.2
Diffstat (limited to 'core/os_linux.odin')
| -rw-r--r-- | core/os_linux.odin | 14 |
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 { |