mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-28 18:54:37 +01:00
It allows to support syscall variations between host OSes. Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
17 lines
247 B
Go
17 lines
247 B
Go
// Copyright (c) 2022 Apple Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package syscall
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func Gettid() int {
|
|
// There is no equivalent to a thread ID on Darwin.
|
|
// We use the PID instead.
|
|
return syscall.Getpid()
|
|
}
|