This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v4 06/13] C-SKY: Linux ABI


On Wed, Sep 12, 2018 at 03:40:35PM +0200, Arnd Bergmann wrote:
> On Wed, Sep 12, 2018 at 4:58 AM Mao Han <han_mao@c-sky.com> wrote:
> >
> > Linux-specific code that is required for maintaining ABI compatibility.
> > This doesn't contain the actual system call interface.
> >  sysdeps/unix/sysv/linux/csky/sys/user.h           |  60 +++
> >  sysdeps/unix/sysv/linux/csky/sysdep.h             | 534 ++++++++++++++++++++++
> 
> 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?
> 
>        Arnd

We have SHMLBA defined to __getpagesize () << 2 in the linux port not
__getpagesize () in the generic version in glibc. So an arch specific
bits/shm.h seems needed.
The generic sys/procfs.h in glibc define pr_uid/pr_gid as 'unsigned short',
we have __kernel_uid_t define as "unsigned int"  in linux/include/uapi/
asm-generic/posix_types.h. So I need an arch specific sys/procfs.h
with pr_uid/pr_gid define as "unsigned int".

Thanks
Han Mao


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]