mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +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 {
|
syscall_fsync :: #force_inline proc "contextless" (fildes: c.int) -> bool {
|
||||||
return !(cast(bool)intrinsics.syscall(unix_offset_syscall(.fsync), uintptr(fildes)))
|
return !(cast(bool)intrinsics.syscall(unix_offset_syscall(.fsync), uintptr(fildes)))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package sys_freebsd
|
||||||
|
|
||||||
|
/* Get window size */
|
||||||
|
TIOCGWINSZ :: 0x40087468
|
||||||
|
|
||||||
@@ -373,3 +373,6 @@ PTRACE_SECCOMP_GET_FILTER :: PTrace_Seccomp_Get_Filter_Type(.SECCOMP_GET_FIL
|
|||||||
PTRACE_SECCOMP_GET_METADATA :: PTrace_Seccomp_Get_Metadata_Type(.SECCOMP_GET_METADATA)
|
PTRACE_SECCOMP_GET_METADATA :: PTrace_Seccomp_Get_Metadata_Type(.SECCOMP_GET_METADATA)
|
||||||
PTRACE_GET_SYSCALL_INFO :: PTrace_Get_Syscall_Info_Type(.GET_SYSCALL_INFO)
|
PTRACE_GET_SYSCALL_INFO :: PTrace_Get_Syscall_Info_Type(.GET_SYSCALL_INFO)
|
||||||
PTRACE_GET_RSEQ_CONFIGURATION :: PTrace_Get_RSeq_Configuration_Type(.GET_RSEQ_CONFIGURATION)
|
PTRACE_GET_RSEQ_CONFIGURATION :: PTrace_Get_RSeq_Configuration_Type(.GET_RSEQ_CONFIGURATION)
|
||||||
|
|
||||||
|
/* Get window size */
|
||||||
|
TIOCGWINSZ :: 0x5413
|
||||||
|
|||||||
Reference in New Issue
Block a user