[libc-commits] [PATCH] D159104: [libc] Fix setrlimit/getrlimit on 32-bit systems

Mikhail R. Gadelha via libc-commits libc-commits at lists.llvm.org
Tue Sep 5 11:07:26 PDT 2023


My _guess_ is that it would work normally.

I tried to follow glibc here: it defines `rlim_t` as `unsigned long int`
for all systems, while also defining `rlim64_t`, which is always 64 bits
long.

OTOH, musl defines `rlim_t` as `unsigned long long` in both x64 and arm32.
It also defines `rlim64_t` as `unsigned long long`.



Em ter., 5 de set. de 2023 às 14:24, Siva Chandra via Phabricator <
reviews at reviews.llvm.org> escreveu:

> sivachandra added inline comments.
>
>
> ================
> Comment at: libc/include/llvm-libc-types/rlim64_t.h:12
> +
> +typedef __UINT64_TYPE__ rlim64_t;
> +
> ----------------
> Can just define `rlim_t` this way? Would there be any problems in the
> overlay build?
>
>
> Repository:
>   rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D159104/new/
>
> https://reviews.llvm.org/D159104
>
>

-- 

Mikhail R. Gadelha, Ph.D.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230905/41fe5096/attachment-0001.html>


More information about the libc-commits mailing list