Documentation ¶
Overview ¶
Package rlimit provides data structure for resource limits by setrlimit syscall on linux.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RLimit ¶
type RLimit struct { // Res is the resource type (e.g. syscall.RLIMIT_CPU) Res int // Rlim is the limit applied to that resource Rlim syscall.Rlimit }
RLimit is the resource limits defined by Linux setrlimit
type RLimits ¶
type RLimits struct { CPU uint64 // in s CPUHard uint64 // in s Data uint64 // in bytes FileSize uint64 // in bytes Stack uint64 // in bytes AddressSpace uint64 // in bytes }
RLimits defines the rlimit applied by setrlimit syscall to traced process
func (*RLimits) PrepareRLimit ¶
PrepareRLimit creates rlimit structures for tracee TimeLimit in s, SizeLimit in byte
Click to show internal directories.
Click to hide internal directories.