mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
added TIOCGWINSZ to darwin, linux and freebsd
This commit is contained in:
@@ -233,6 +233,11 @@ _Proc_Bsdinfo :: struct {
|
||||
|
||||
/*--==========================================================================--*/
|
||||
|
||||
/* Get window size */
|
||||
TIOCGWINSZ :: 0x40087468
|
||||
|
||||
/*--==========================================================================--*/
|
||||
|
||||
syscall_fsync :: #force_inline proc "contextless" (fildes: c.int) -> bool {
|
||||
return !(cast(bool)intrinsics.syscall(unix_offset_syscall(.fsync), uintptr(fildes)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user