[LTP] [PATCH v4] Add test case to cover the setting resource limit64 for process

Petr Vorel pvorel@suse.cz
Fri Feb 28 12:37:23 CET 2025


> Li Wang <liwan@redhat.com> wrote:


> > P.s. the patch caused a compiling error on Alpine I haven't figured out
> > reason:).

> > https://github.com/linux-test-project/ltp/actions/runs/13580985467/job/37966850497


> Well, we have to enable _LARGEFILE64_SOURCE macro to tells glibc
> to expose 64-bit structures, see:

> $ cat /usr/include/bits/resource.h
> ...
> #ifdef __USE_LARGEFILE64
> struct rlimit64
>   {
>     /* The current (soft) limit.  */
>     rlim64_t rlim_cur;
>     /* The hard limit.  */
>     rlim64_t rlim_max;
>  };
> #endif
> ...

> Sent a patch to resolve it:
>   https://lists.linux.it/pipermail/ltp/2025-February/042497.html

FYI patch already merged.

Kind regards,
Petr

> Li Wang


More information about the ltp mailing list