View Single Post
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#3056
Here's a summary of kernel version mentions in Debian's eglibc source package [1]:

A full egrep output is attached.
This is what remains if all kernel versions <=2.6.28 and all lines explicitely only valid for other architectures are eliminated:
Code:
ChangeLog.17:	O_DSYNC to match 2.6.33+ kernels.
ChangeLog.17:	headers up to 2.6.30.
ChangeLog.17:	architectures have preadv/pwritev in 2.6.30.
ChangeLog.17:	have preadv/pwritev in 2.6.30.
ChangeLog.17:	preadv/pwritev in 2.6.30.
ChangeLog.17:	* version.h (VERSION): Set to 2.6.90.
debian/debhelper.in/libc.preinst:        # 2.6.32 kernel is needed.
debian/debhelper.in/libc.preinst:            vmin=2.6.32
ports/sysdeps/unix/sysv/linux/arm/kernel-features.h:/* Support for pselect6, ppoll and epoll_pwait was added in 2.6.32.  */
ports/ChangeLog.arm:	O_DSYNC to match 2.6.33+ kernels.
ports/ChangeLog.arm:	__ASSUME_PPOLL): Don't undefine for kernel 2.6.32 and later.
sysdeps/unix/sysv/linux/sys/timex.h:/* These definitions from linux/timex.h as of 2.6.30.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* Support for the FUTEX_CLOCK_REALTIME flag was added in 2.6.29.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* Support for the AT_RANDOM auxiliary vector entry was added in 2.6.29.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* Support for preadv and pwritev was added in 2.6.30.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* Support for F_GETOWN_EX was introduced in 2.6.32.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* Support for the recvmmsg syscall was added in 2.6.33.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* statfs fills in f_flags since 2.6.36.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* prlimit64 is available in 2.6.36.  */
And short contextual excerpts:

ChangeLog.17
Code:
2009-12-11  Ulrich Drepper  <drepper@redhat.com>

        * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
        O_DSYNC to match 2.6.33+ kernels.
        * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
        * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
        * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
        * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
        * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
        * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
[..]
2009-04-20  Ulrich Drepper  <drepper@redhat.com>

        [BZ #10086]
        * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
        headers up to 2.6.30.

        * po/ca.po: Update from translation team.
[..]
2009-04-17  Ulrich Drepper  <drepper@redhat.com>

        * malloc/malloc.c (malloc_info): Also output system memory information.

        * sysdeps/unix/sysv/linux/kernel-features.h: All supported
        architectures have preadv/pwritev in 2.6.30.

        * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
        * sysdeps/posix/readv.c: Likewise.
        Reported by Markus Armbruster <armbru@redhat.com>.

        * malloc/hooks.c (top_check): Force hook value into register.
[..]
2009-04-09  Ulrich Drepper  <drepper@redhat.com>

        * sysdeps/x86_64/rawmemchr.S: New file.

        * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
        Simplified code and possible copy problem fixed.

        * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
        function if it is not defined.  Add some necessary casts.
        * sysdeps/unix/sysv/linux/pwritev.c: Likewise.

        * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
        have preadv/pwritev in 2.6.30.
[..]
2007-05-17  Ulrich Drepper  <drepper@redhat.com>

        Dummy files to prevent stub versions from being used.
        * sysdeps/x86_64/fpu/k_cosl.c: New file.
        * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
        * sysdeps/x86_64/fpu/k_sinl.c: New file.
        * sysdeps/x86_64/fpu/k_tanl.c: New file.

        * version.h (VERSION): Set to 2.6.90.
ports/sysdeps/unix/sysv/linux/arm/kernel-features.h
Code:
/* Support for pselect6, ppoll and epoll_pwait was added in 2.6.32.  */
#if __LINUX_KERNEL_VERSION < 0x020620
# undef __ASSUME_PSELECT
# undef __ASSUME_PPOLL
#endif
debian/debhelper.in/libc.preinst
Code:
        # The GNU libc requires a >= 2.6.26 kernel, except on m68k where a
        # 2.6.32 kernel is needed.
        if [ "$realarch" != m68k ]
        then
            vmin=2.6.26
        else
            vmin=2.6.32
        fi
        if linux_compare_versions "$kernel_ver" lt ${vmin}
        then
            echo WARNING: this version of the GNU libc requires kernel version
            echo ${vmin} or later.  Please upgrade your kernel before installing
            echo glibc.
            kernel26_help

            exit 1
        fi
ports/ChangeLog.arm
Code:
2009-12-15  Joseph Myers  <joseph@codesourcery.com>

        * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Redefine O_SYNC and
        O_DSYNC to match 2.6.33+ kernels.
[..]
2009-11-19  Joseph Myers  <joseph@codesourcery.com>

        * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_PSELECT,
        __ASSUME_PPOLL): Don't undefine for kernel 2.6.32 and later.
sysdeps/unix/sysv/linux/kernel-features.h
Code:
/* Support for the FUTEX_CLOCK_REALTIME flag was added in 2.6.29.  */
#if __LINUX_KERNEL_VERSION >= 0x02061d
# define __ASSUME_FUTEX_CLOCK_REALTIME  1
#endif

/* Support for the AT_RANDOM auxiliary vector entry was added in 2.6.29.  */
#if __LINUX_KERNEL_VERSION >= 0x02061d
# define __ASSUME_AT_RANDOM     1
#endif

/* Support for preadv and pwritev was added in 2.6.30.  */
#if __LINUX_KERNEL_VERSION >= 0x02061e
# define __ASSUME_PREADV        1
# define __ASSUME_PWRITEV       1
#endif

/* Support for F_GETOWN_EX was introduced in 2.6.32.  */
#if __LINUX_KERNEL_VERSION >= 0x020620
# define __ASSUME_F_GETOWN_EX   1
#endif

/* Support for the recvmmsg syscall was added in 2.6.33.  */
#if __LINUX_KERNEL_VERSION >= 0x020621
# define __ASSUME_RECVMMSG      1
#endif

/* statfs fills in f_flags since 2.6.36.  */
#if __LINUX_KERNEL_VERSION >= 0x020624
# define __ASSUME_STATFS_F_FLAGS        1
#endif

/* prlimit64 is available in 2.6.36.  */
#if __LINUX_KERNEL_VERSION >= 0x020624
# define __ASSUME_PRLIMIT64     1
#endif
sysdeps/unix/sysv/linux/sys/timex.h has only the comment from the egrep output and the rest of the code seems either totally irrelevant or totally relevant to me, so I'll attach the whole file.

Maybe someone can gather any insight from this.


[1] http://packages.debian.org/source/wheezy/eglibc
Attached Files
File Type: txt egrep.txt (9.8 KB, 134 views)
File Type: txt timex.h.txt (5.5 KB, 101 views)

Last edited by sulu; 2014-01-06 at 18:28. Reason: the note was nonsense
 

The Following 3 Users Say Thank You to sulu For This Useful Post: