diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-30 16:28:13 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-30 16:28:13 +0100 |
| commit | 7057034b75f18cb2369e922053f74cda87738776 (patch) | |
| tree | 9c30ac5ffdee92dbbf9f85beb9aed6e6151bbcd1 /core/os_linux.odin | |
| parent | 1430ca30a3a0677fb395d2c5c190e86f02ed2b06 (diff) | |
v0.2.0v0.2.0
Diffstat (limited to 'core/os_linux.odin')
| -rw-r--r-- | core/os_linux.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/os_linux.odin b/core/os_linux.odin index 1de14b0f9..0ac376d69 100644 --- a/core/os_linux.odin +++ b/core/os_linux.odin @@ -165,12 +165,12 @@ close :: proc(fd: Handle) { } read :: proc(fd: Handle, data: []byte) -> (int, Errno) { - sz := _unix_read(fd, ^data[0], len(data)); + sz := _unix_read(fd, &data[0], len(data)); return sz, 0; } write :: proc(fd: Handle, data: []byte) -> (int, Errno) { - sz := _unix_write(fd, ^data[0], len(data)); + sz := _unix_write(fd, &data[0], len(data)); return sz, 0; } @@ -194,7 +194,7 @@ stat :: proc(path: string) -> (Stat, int) #inline { s: Stat; cstr := strings.new_c_string(path); defer free(cstr); - ret_int := _unix_stat(cstr, ^s); + ret_int := _unix_stat(cstr, &s); return s, int(ret_int); } @@ -271,7 +271,7 @@ exit :: proc(code: int) { } current_thread_id :: proc() -> int { - // return cast(int) _unix_gettid(); + // return int(_unix_gettid()); return 0; } |