Linux: consolidate rmdir implementation
commit54ed77914a7718f5847aa193dcc5234675b6ef7b
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Wed, 19 Oct 2022 22:14:15 +0000 (19 19:14 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Dec 2022 14:27:01 +0000 (7 11:27 -0300)
tree3cce2e1098c19ea0eab5078c4fc56bd0e2ab8f27
parent2fc81f6ca56f1df5323fc849f3f8dc40f38fc5b2
Linux: consolidate rmdir implementation

Use rmdir 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/rmdir.c [moved from sysdeps/unix/sysv/linux/generic/rmdir.c with 78% similarity]