]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Add patch to replace open with openat with AT_FDCWD
authorRobert Kuban <robert.kuban@opensynergy.com>
Mon, 15 Aug 2022 13:43:34 +0000 (15:43 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 24 Nov 2022 19:37:39 +0000 (19:37 +0000)
commit84f96d701cfb91bd12d09ab19783d66821a8c675
treeac7f45f9e0cd27507dbfae2d6eeecf96132cc9dc
parente2056bf3b192921d80b92b07e64dd3211a2a4e0c
Add patch to replace open with openat with AT_FDCWD

This patch replaces calls to the open systemcall with the openat systemcall
with the AT_FDCWD argument if SYS_open is not defined, similar to the
original musl code.

This is necessary as the open systemcall is not available on aarch64.

Signed-off-by: Robert Kuban <robert.kuban@opensynergy.com>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Razvan Virtan <virtanrazvan@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #6
patches/0020-use_openat_ifndef_SYS_open.patch [new file with mode: 0644]