vendor containers/psgo@v1.5.2

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2021-01-05 10:44:16 +01:00
parent 1b9366d650
commit 21f5154399
8 changed files with 23 additions and 22 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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 {

View File

@@ -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