]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Use function declaration for getdents64 RELEASE-0.11.0
authorRazvan Deaconescu <razvand@unikraft.io>
Tue, 29 Nov 2022 22:26:52 +0000 (00:26 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 1 Dec 2022 10:58:13 +0000 (10:58 +0000)
commit81315b9556f262fee452be68abb18d4cf4a1052d
treedc88b0547d9eb1c90adcd0169b93670950c8e001
parent980bf21159e0a366c20241d98e3a57e35009932a
Use function declaration for getdents64

When defining `getdents64` as a macro aliasing `getdents`, the
syscall shim layer complains.

This patch uses a typical C-style declaration of `getdents64()`. This,
combined with the `LFS64(getdents)`, aliasing used in
`src/dirent/__getdents.c` solves the issue with the syscall shim layer.

Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #31
patches/0022-include-Use-function-declaration-for-getdents64.patch [new file with mode: 0644]