GLIBC using deprecated __NR_stat

Florian Weimer fweimer@redhat.com
Sat Feb 22 11:16:00 GMT 2020


* William Tambe:

> What would be the best work around for GCC using deprecated __NR_stat ?
> I am working on an architecture where __NR_stat is not defined, hence
> the GLIBC fails to build.
>
> ie: __NR_stat is being used in sysdeps/unix/sysv/linux/xstat.c:
> https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/xstat.c;h=a93d63561165f45b55af9de0a14aa34d5f3afe0d;hb=HEAD#l46

If your port is for a newer Linux system call interface, it needs to
include the (misnamed) generic subdirectory in its Implies file.
aarc64, csky, nios2, riscv all do this.

Thanks,
Florian



More information about the Libc-help mailing list