aboutsummaryrefslogtreecommitdiff
path: root/core/os_x.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-08-03 21:21:56 +0100
committerGinger Bill <bill@gingerbill.org>2017-08-03 21:21:56 +0100
commit49d337c83039715fd3100f6ec8a88dff80c08c4b (patch)
treef129486fb80a44dc106a277a576438d0ce344d8c /core/os_x.odin
parent294092979e89faa67dc77d2261e9ddafc18b0d0d (diff)
v0.6.2; Use Ada_Case for typesv0.6.2
Diffstat (limited to 'core/os_x.odin')
-rw-r--r--core/os_x.odin16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/os_x.odin b/core/os_x.odin
index 1bf594e00..dbcc6ed72 100644
--- a/core/os_x.odin
+++ b/core/os_x.odin
@@ -6,7 +6,7 @@ foreign_system_library (
import "strings.odin";
Handle :: i32;
-FileTime :: u64;
+File_Time :: u64;
Errno :: int;
@@ -46,7 +46,7 @@ RTLD_FIRST :: 0x100;
args: [dynamic]string;
-_FileTime :: struct #ordered {
+_File_Time :: struct #ordered {
seconds: i64;
nanoseconds: i64;
}
@@ -60,10 +60,10 @@ Stat :: struct #ordered {
gid: u32; // Group ID of the file's group
rdev: i32; // Device ID, if device
- last_access: FileTime; // Time of last access
- modified: FileTime; // Time of last modification
- status_change: FileTime; // Time of last status change
- created: FileTime; // Time of creation
+ last_access: File_Time; // Time of last access
+ modified: File_Time; // Time of last modification
+ status_change: File_Time; // Time of last status change
+ created: File_Time; // Time of creation
size: i64; // Size of the file, in bytes
blocks: i64; // Number of blocks allocated for the file
@@ -212,8 +212,8 @@ stdout: Handle = 1; // get_std_handle(win32.STD_OUTPUT_HANDLE);
stderr: Handle = 2; // get_std_handle(win32.STD_ERROR_HANDLE);
/* 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, bool) #inline {