]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Fix the definition of the prlimit64 syscall
authorMarco Schlumpp <marco@unikraft.io>
Tue, 18 Apr 2023 12:55:03 +0000 (14:55 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 4 May 2023 14:30:06 +0000 (14:30 +0000)
commitaab68773f4e7a3c8dcf79ad17aa9fb6587e55b69
tree8edecbe786fc714284832866cdc4f8baec07d641
parente69706237d252cd7fea02a7414cae961bbb6c184
Fix the definition of the prlimit64 syscall

The `sys/resource.h` header adds #define-based redirection from
`prlimit64` to `prlimit` when `_GNU_SOURCE` is set. This causes our
`provided_syscalls` to incorrectly define `uk_syscall_r_prlimit` instead
of `uk_syscall_r_prlimit64`. By reordering, the headers we can side-step
this problem.

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #41
patches/0021-prlimit64_conflict.patch [new file with mode: 0644]