mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-17 21:34:29 +01:00
runtime: Add a syscall wrapper package
It allows to support syscall variations between host OSes. Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
This commit is contained in:
14
src/runtime/pkg/syscall/syscall_linux.go
Normal file
14
src/runtime/pkg/syscall/syscall_linux.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright (c) 2022 Apple Inc.
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
package syscall
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func Gettid() int {
|
||||
return syscall.Gettid()
|
||||
}
|
||||
Reference in New Issue
Block a user