[LTP] [PATCH v4] Add test case to cover the setting resource limit64 for process
Li Wang
liwan@redhat.com
Fri Feb 28 10:22:26 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
Li Wang
More information about the ltp
mailing list