This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Correct __ASSUME_PRLIMIT64 for hppa/microblaze/sh (bug 17779)
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: joseph at codesourcery dot com
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 01 Jan 2015 19:12:53 +0900 (JST)
- Subject: Re: Correct __ASSUME_PRLIMIT64 for hppa/microblaze/sh (bug 17779)
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1412311652210 dot 26199 at digraph dot polyomino dot org dot uk>
Joseph Myers <joseph@codesourcery.com> wrote:
> __ASSUME_PRLIMIT64 is defined in kernel-features.h for kernels 2.6.36
> and later, but hppa, microblaze and sh did not add the prlimit64
> syscall until 2.6.37. This patch adds corresponding undefines of
> __ASSUME_PRLIMIT64 to those architectures' kernel-features.h files.
>
> (This concludes the kernel-features.h fixes arising out of the review
> - limited to macros defined in the architecture-independent
> kernel-features.h file - I did in connection with the move to 2.6.32
> minimum kernel version. For that subset of macros - I didn't check
> any purely architecture-specific macros - I think they are now defined
> for the correct kernel versions on each architecture after this
> patch.)
>
> Untested.
>
> 2014-12-31 Joseph Myers <joseph@codesourcery.com>
>
> [BZ #17779]
> * sysdeps/unix/sysv/linux/hppa/kernel-features.h
> [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
> Undefine.
> * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
> [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
> Likewise.
> * sysdeps/unix/sysv/linux/sh/kernel-features.h
> [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
> Likewise.
Fine on SH. Tested with 2.6.32 and 3.14.0 kernels.
Regards,
kaz