mirror of
https://github.com/containers/podman.git
synced 2025-11-16 11:07:44 +08:00
vendor containers/psgo@v1.5.2
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
2
vendor/github.com/containers/psgo/internal/capabilities/capabilities.go
generated
vendored
2
vendor/github.com/containers/psgo/internal/capabilities/capabilities.go
generated
vendored
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
// Package capabilities provides a mapping from common kernel bit masks to the
|
||||
// alphanumerical represenation of kernel capabilities. See capabilities(7)
|
||||
// alphanumerical representation of kernel capabilities. See capabilities(7)
|
||||
// for additional information.
|
||||
package capabilities
|
||||
|
||||
|
||||
5
vendor/github.com/containers/psgo/internal/dev/tty.go
generated
vendored
5
vendor/github.com/containers/psgo/internal/dev/tty.go
generated
vendored
@@ -113,8 +113,9 @@ func TTYs() (*[]TTY, error) {
|
||||
}
|
||||
s := fi.Sys().(*syscall.Stat_t)
|
||||
t := TTY{
|
||||
Minor: minDevNum(s.Rdev),
|
||||
Major: majDevNum(s.Rdev),
|
||||
// Rdev is type uint32 on mips arch so we have to cast to uint64
|
||||
Minor: minDevNum(uint64(s.Rdev)),
|
||||
Major: majDevNum(uint64(s.Rdev)),
|
||||
Path: dev,
|
||||
}
|
||||
ttys = append(ttys, t)
|
||||
|
||||
2
vendor/github.com/containers/psgo/internal/proc/status.go
generated
vendored
2
vendor/github.com/containers/psgo/internal/proc/status.go
generated
vendored
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// Status is a direct translation of a `/proc/[pid]/status`, wich provides much
|
||||
// Status is a direct translation of a `/proc/[pid]/status`, which provides much
|
||||
// of the information in /proc/[pid]/stat and /proc/[pid]/statm in a format
|
||||
// that's easier for humans to parse.
|
||||
type Status struct {
|
||||
|
||||
4
vendor/github.com/containers/psgo/internal/process/process.go
generated
vendored
4
vendor/github.com/containers/psgo/internal/process/process.go
generated
vendored
@@ -31,9 +31,9 @@ type Process struct {
|
||||
Pid string
|
||||
// Stat contains data from /proc/$pid/stat.
|
||||
Stat proc.Stat
|
||||
// Status containes data from /proc/$pid/status.
|
||||
// Status contains data from /proc/$pid/status.
|
||||
Status proc.Status
|
||||
// CmdLine containes data from /proc/$pid/cmdline.
|
||||
// CmdLine contains data from /proc/$pid/cmdline.
|
||||
CmdLine []string
|
||||
// Label containers data from /proc/$pid/attr/current.
|
||||
Label string
|
||||
|
||||
Reference in New Issue
Block a user