RLIMITFSIZE
RLIMIT_FSIZE is a per-process resource limit that controls the maximum size to which a file can be created or grown by that process. The limit is expressed in bytes and is stored as a pair in struct rlimit: a soft limit (rlim_cur) and a hard limit (rlim_max).
The limit applies to operations that increase a file’s size, such as write and ftruncate. If a
Interfaces and data structures: The limits are retrieved and changed with getrlimit and setrlimit using the
Usage and behavior: The soft limit (rlim_cur) can be increased by the process up to the hard
Inheritance and environment: Limits are inherited by child processes after fork and persist across execve calls.