mirror of
https://github.com/containers/podman.git
synced 2025-12-01 18:49:18 +08:00
Switch common, storage and image to monorepo.
Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
5
vendor/github.com/containers/psgo/internal/host/host_nocgo.go
generated
vendored
5
vendor/github.com/containers/psgo/internal/host/host_nocgo.go
generated
vendored
@@ -1,3 +1,4 @@
|
||||
//go:build !cgo
|
||||
// +build !cgo
|
||||
|
||||
// Copyright 2018 psgo authors
|
||||
@@ -21,7 +22,7 @@ package host
|
||||
import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -46,7 +47,7 @@ const (
|
||||
|
||||
func getFromAuxv(what uint, whatName string) (uint, error) {
|
||||
dataLen := int(unsafe.Sizeof(int(0)))
|
||||
p, err := ioutil.ReadFile("/proc/self/auxv")
|
||||
p, err := os.ReadFile("/proc/self/auxv")
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user