Linux: consolidate link implementation
commitf178e5173f737c33f421a7a994a3ab67a8a4eb86
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Wed, 19 Oct 2022 22:14:12 +0000 (19 19:14 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Dec 2022 14:27:01 +0000 (7 11:27 -0300)
tree032385d8c1e1352fd77c8a3b9b225a6a60be3734
parent25ca6175bacb40b9704458e53ddee58865d8ab2b
Linux: consolidate link implementation

Use link syscall if defined, otherwise use linkat.

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