vendor containers/psgo@v1.5.2

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

No files matched your search

+1 -1
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
+3 -2
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)
+1 -1
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 {
+2 -2
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