os: use stricter declarations for C.getc/1, C.fseeko/3 and C._fseeki64/3

pull/10167/head
Delyan Angelov 2021-05-22 07:45:00 +03:00
parent c04fc7bfc2
commit b7bf4b034e
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 3 additions and 3 deletions

View File

@ -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 {