mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Linux is in the unfortunate situation where the system call number is architecture specific. This consolidates the system call number definitions in a single location, adds some wrappers, and hopefully fixes the existing non-portable invocations of the syscall intrinsic.
10 lines
146 B
Odin
10 lines
146 B
Odin
//+build linux
|
|
//+private
|
|
package sync2
|
|
|
|
import "core:sys/unix"
|
|
|
|
_current_thread_id :: proc "contextless" () -> int {
|
|
return unix.sys_gettid()
|
|
}
|