libclues
Linux C++ Tracing Library
Loading...
Searching...
No Matches
clues::rlimit32 Struct Reference

32-bit based struct rlimit used with getrlimit() and setrlimit(). More...

#include <other.hxx>

Public Attributes

uint32_t rlim_cur
 
uint32_t rlim_max
 

Detailed Description

32-bit based struct rlimit used with getrlimit() and setrlimit().

The kernel calls this struct compat_rlimit. The userspace struct rlimit always uses 64-bit wide integers (at least on glibc), but getrlimit() and setrlimit() on e.g. i386 only support 32-bit wide ints, meaning that larger values are silently ignored by glibc.

The prlimit64 system call always uses 64-bit integers instead, which is not clearly visible from the man page.

For getrlimit() and setrlimit() depending on system call ABI either rlimit32 or rlimit64 needs to be considered.

Definition at line 23 of file other.hxx.

Member Data Documentation

◆ rlim_cur

uint32_t clues::rlimit32::rlim_cur

Definition at line 24 of file other.hxx.

◆ rlim_max

uint32_t clues::rlimit32::rlim_max

Definition at line 25 of file other.hxx.


The documentation for this struct was generated from the following file: