os: use stricter declarations for C.getc/1, C.fseeko/3 and C._fseeki64/3
parent
c04fc7bfc2
commit
b7bf4b034e
|
@ -13,11 +13,11 @@ struct FileInfo {
|
||||||
size int
|
size int
|
||||||
}
|
}
|
||||||
|
|
||||||
fn C.fseeko(voidptr, u64, int) int
|
fn C.fseeko(&C.FILE, u64, int) int
|
||||||
|
|
||||||
fn C._fseeki64(voidptr, u64, int) int
|
fn C._fseeki64(&C.FILE, u64, int) int
|
||||||
|
|
||||||
fn C.getc(voidptr) int
|
fn C.getc(&C.FILE) int
|
||||||
|
|
||||||
// open_file can be used to open or create a file with custom flags and permissions and returns a `File` object.
|
// open_file can be used to open or create a file with custom flags and permissions and returns a `File` object.
|
||||||
pub fn open_file(path string, mode string, options ...int) ?File {
|
pub fn open_file(path string, mode string, options ...int) ?File {
|
||||||
|
|
Loading…
Reference in New Issue