This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v4 06/13] C-SKY: Linux ABI
On Wed, 12 Sep 2018, Arnd Bergmann wrote:
> I'm surprised to see copies of bits/shm.h, bits/mman.h and sys/procfs.h.
> Since the kernel port just uses the generic interfaces that all other
> architectures used in the past decade, shouldn't the glibc defaults
> match be enough here?
There's no generic bits/mman.h for systems using the Linux kernel; a lot
is shared through bits/mman-linux.h and bits/mman-shared.h, but all
architectures need their own bits/mman.h as well.
In practice there's no generic sys/procfs.h either
(sysdeps/unix/sysv/linux/sys/procfs.h exists but all architectures
override it - so if there's something in common between many architectures
such that they don't need their own files, it's quite likely that file
does not reflect whatever is common).
--
Joseph S. Myers
joseph@codesourcery.com