Linux: consolidate unlink implementation
commit9cffb295e3af682bcc1c2629e808e3db8a4e2cbf
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Wed, 19 Oct 2022 22:14:17 +0000 (19 19:14 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Dec 2022 14:27:01 +0000 (7 11:27 -0300)
tree84185c745074efba1c45bb10d797f8894a4e9593
parentbf58f34a708055361056907511c625449b7d27d6
Linux: consolidate unlink implementation

Use unlink syscall if defined, otherwise use unlinkat.

Checked on x86_64-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/unlink.c [moved from sysdeps/unix/sysv/linux/generic/unlink.c with 77% similarity]