This page intends to document glibc source code files that are shared with other projects and the status of any efforts to keep the files in sync.

gnulib

The following files are shared with gnulib.

Filename

Status

argp/argp-ba.c

Unknown

argp/argp-eexst.c

Unknown

argp/argp-fmtstream.c

Unknown

argp/argp-fmtstream.h

Unknown

argp/argp-fs-xinl.c

Unknown

argp/argp-help.c

Unknown

argp/argp-namefrob.h

Unknown

argp/argp-parse.c

Unknown

argp/argp-pv.c

Unknown

argp/argp-pvh.c

Unknown

argp/argp-xinl.c

Unknown

argp/argp.h

Unknown

crypt/md5.c

Needs updating. Splits out md5-block.c which gnulib doesn't. SPARC needs adjusting to update this.

crypt/md5.h

Unknown

dirent/alphasort.c

Unknown

dirent/scandir.c

Unknown

locale/programs/3level.h

Unknown

malloc/obstack.c

Merged from gnulib 2014-6-23

malloc/obstack.h

Merged from gnulib 2014-6-23

misc/error.c

Merged from gnulib 2014-07-10

misc/error.h

Unknown

misc/getpass.c

Unknown

misc/mkdtemp.c

Unknown

posix/fnmatch_loop.c

Unknown

posix/getopt.c

Intended to be the same. Gnulib copy contains glibc changes.

posix/getopt1.c

Intended to be the same. Gnulib copy contains glibc changes.

posix/getopt_int.h

Intended to be the same. Gnulib copy contains glibc changes.

posix/glob.c

Unknown

posix/regcomp.c

Unknown

posix/regex.c

Unknown

posix/regex.h

Unknown

posix/regex_internal.c

Unknown

posix/regex_internal.h

Unknown

posix/regexec.c

Unknown

posix/spawn.c

Unknown

posix/spawn_faction_addclose.c

Unknown

posix/spawn_faction_adddup2.c

Unknown

posix/spawn_faction_addopen.c

Unknown

posix/spawn_faction_destroy.c

Unknown

posix/spawn_faction_init.c

Unknown

posix/spawn_int.h

Unknown

posix/spawnattr_destroy.c

Unknown

posix/spawnattr_getdefault.c

Unknown

posix/spawnattr_getflags.c

Unknown

posix/spawnattr_getpgroup.c

Unknown

posix/spawnattr_getschedparam.c

Unknown

posix/spawnattr_getschedpolicy.c

Unknown

posix/spawnattr_getsigmask.c

Unknown

posix/spawnattr_init.c

Unknown

posix/spawnattr_setdefault.c

Unknown

posix/spawnattr_setflags.c

Unknown

posix/spawnattr_setpgroup.c

Unknown

posix/spawnattr_setschedparam.c

Unknown

posix/spawnattr_setschedpolicy.c

Unknown

posix/spawnattr_setsigmask.c

Unknown

posix/spawnp.c

Unknown

stdlib/atoll.c

Unknown

stdlib/getsubopt.c

Unknown

stdlib/setenv.c

Unknown

stdlib/strtoll.c

Unknown

stdlib/strtoul.c

Unknown

string/memchr.c

Merged from gnulib 2014-6-26, needs merge back

string/memcmp.c

Unknown

string/memmem.c

Unknown

string/mempcpy.c

Unknown

string/memrchr.c

Unknown

string/rawmemchr.c

Unknown

string/stpcpy.c

Unknown

string/stpncpy.c

Unknown

string/str-two-way.h

Unknown

string/strcasestr.c

Unknown

string/strcspn.c

Unknown

string/strdup.c

Unknown

string/strndup.c

Unknown

string/strpbrk.c

Unknown

string/strsignal.c

Unknown

string/strstr.c

Unknown

string/strtok_r.c

Unknown

string/strverscmp.c

Unknown

sysdeps/generic/pty-private.h

Unknown

sysdeps/generic/siglist.h

Unknown

sysdeps/posix/euidaccess.c

Unknown

sysdeps/posix/gai_strerror.c

Unknown

sysdeps/posix/getcwd.c

Unknown

sysdeps/posix/pwrite.c

Unknown

sysdeps/posix/spawni.c

Unknown

sysdeps/posix/tempname.c

Merged from gnulib 2014-6-23

time/mktime.c

Merged from gnulib 2014-6-27

time/strptime.c

Unknown

time/timegm.c

Unknown

The headers on most of these files indicate that glibc is the canonical source for these files, although in many cases there seem to be useful changes in the gnulib versions that could be merged back in. Not all gnulib files contain such a header and it is not always consistent in its format, so it would be useful to make sure that all gnulib files that are using glibc as upstream have a greppable header.

These files are quite hard to find without a header to grep for and each file has to be compared manually so this list is likely incomplete or may contain errors.

GMP

The following files are shared with the GNU multi-precision arithmetic library.

ports/sysdeps/hppa/add_n.S
ports/sysdeps/hppa/hppa1.1/addmul_1.S
ports/sysdeps/hppa/hppa1.1/mul_1.S
ports/sysdeps/hppa/hppa1.1/submul_1.S
ports/sysdeps/hppa/hppa1.1/udiv_qrnnd.S
ports/sysdeps/hppa/lshift.S
ports/sysdeps/hppa/rshift.S
ports/sysdeps/hppa/sub_n.S
ports/sysdeps/hppa/udiv_qrnnd.S
stdlib/add_n.c
stdlib/addmul_1.c
stdlib/cmp.c
stdlib/divmod_1.c
stdlib/divrem.c
stdlib/gmp-impl.h
stdlib/gmp.h
stdlib/lshift.c
stdlib/mod_1.c
stdlib/mul.c
stdlib/mul_1.c
stdlib/mul_n.c
stdlib/rshift.c
stdlib/sub_n.c
stdlib/submul_1.c
sysdeps/alpha/add_n.S
sysdeps/alpha/addmul_1.S
sysdeps/alpha/alphaev5/add_n.S
sysdeps/alpha/alphaev5/lshift.S
sysdeps/alpha/alphaev5/rshift.S
sysdeps/alpha/alphaev5/sub_n.S
sysdeps/alpha/alphaev6/addmul_1.S
sysdeps/alpha/lshift.S
sysdeps/alpha/mul_1.S
sysdeps/alpha/rshift.S
sysdeps/alpha/sub_n.S
sysdeps/alpha/submul_1.S
sysdeps/alpha/udiv_qrnnd.S
sysdeps/arm/gmp-mparam.h
sysdeps/generic/gmp-mparam.h
sysdeps/i386/add_n.S
sysdeps/i386/addmul_1.S
sysdeps/i386/gmp-mparam.h
sysdeps/i386/i586/add_n.S
sysdeps/i386/i586/addmul_1.S
sysdeps/i386/i586/mul_1.S
sysdeps/i386/i586/rshift.S
sysdeps/i386/i586/sub_n.S
sysdeps/i386/i586/submul_1.S
sysdeps/i386/i686/add_n.S
sysdeps/i386/lshift.S
sysdeps/i386/mul_1.S
sysdeps/i386/rshift.S
sysdeps/i386/sub_n.S
sysdeps/i386/submul_1.S
sysdeps/m68k/m680x0/add_n.S
sysdeps/m68k/m680x0/lshift.S
sysdeps/m68k/m680x0/m68020/addmul_1.S
sysdeps/m68k/m680x0/m68020/mul_1.S
sysdeps/m68k/m680x0/m68020/submul_1.S
sysdeps/m68k/m680x0/rshift.S
sysdeps/m68k/m680x0/sub_n.S
sysdeps/mips/add_n.S
sysdeps/mips/addmul_1.S
sysdeps/mips/lshift.S
sysdeps/mips/mips64/add_n.S
sysdeps/mips/mips64/addmul_1.S
sysdeps/mips/mips64/gmp-mparam.h
sysdeps/mips/mips64/lshift.S
sysdeps/mips/mips64/mul_1.S
sysdeps/mips/mips64/rshift.S
sysdeps/mips/mips64/sub_n.S
sysdeps/mips/mips64/submul_1.S
sysdeps/mips/mul_1.S
sysdeps/mips/rshift.S
sysdeps/mips/sub_n.S
sysdeps/mips/submul_1.S
sysdeps/s390/gmp-mparam.h
sysdeps/s390/s390-32/add_n.S
sysdeps/s390/s390-32/addmul_1.S
sysdeps/s390/s390-32/mul_1.S
sysdeps/s390/s390-32/sub_n.S
sysdeps/s390/s390-64/add_n.S
sysdeps/s390/s390-64/sub_n.S
sysdeps/sh/gmp-mparam.h
sysdeps/sparc/sparc32/add_n.S
sysdeps/sparc/sparc32/addmul_1.S
sysdeps/sparc/sparc32/lshift.S
sysdeps/sparc/sparc32/mul_1.S
sysdeps/sparc/sparc32/rshift.S
sysdeps/sparc/sparc32/sparcv8/addmul_1.S
sysdeps/sparc/sparc32/sparcv8/mul_1.S
sysdeps/sparc/sparc32/sparcv8/submul_1.S
sysdeps/sparc/sparc32/sub_n.S
sysdeps/sparc/sparc32/submul_1.S
sysdeps/sparc/sparc64/add_n.S
sysdeps/sparc/sparc64/addmul_1.S
sysdeps/sparc/sparc64/lshift.S
sysdeps/sparc/sparc64/mul_1.S
sysdeps/sparc/sparc64/rshift.S
sysdeps/sparc/sparc64/sub_n.S
sysdeps/sparc/sparc64/submul_1.S
sysdeps/x86_64/add_n.S
sysdeps/x86_64/addmul_1.S
sysdeps/x86_64/lshift.S
sysdeps/x86_64/mul_1.S
sysdeps/x86_64/rshift.S
sysdeps/x86_64/sub_n.S
sysdeps/x86_64/submul_1.S
sysdeps/x86_64/x32/gmp-mparam.h

The most recent update of the files in stdlib seems to have been in 1996 from GMP 2.0.

commit b928942eaa0401de9189a2709188f584425f5ca6
Author: Roland McGrath <roland@gnu.org>
Date:   Tue May 7 21:04:52 1996 +0000

    Updated from /src/gmp-2.0

For these files GMP seems to be considered the upstream. The sysdeps files are updated independently and are from various different versions of GMP.

GMP since version 6 is licensed under LGPLv3 or GPLv2 which may pose problems with moving code from one project to the other.

gettext

The following files are shared with the GNU gettext library.

intl/bindtextdom.c
intl/dcgettext.c
intl/dcigettext.c
intl/dcngettext.c
intl/dgettext.c
intl/dngettext.c
intl/explodename.c
intl/finddomain.c
intl/gettext.c
intl/gettextP.h
intl/gmo.h
intl/hash-string.c
intl/hash-string.h
intl/l10nflist.c
intl/loadinfo.h
intl/loadmsgcat.c
intl/locale.alias
intl/localealias.c
intl/ngettext.c
intl/plural-exp.c
intl/plural-exp.h
intl/plural.y
intl/textdomain.c

The last merge was 2014-12-11 and merged gettext 0.19.3 into glibc with a patch submitted to the gettext mailing list for changes that could be merged back.

This commit was omitted from the merge as it does not appear to be compatible with how glibc expects things to work:

commit 279b57fc367251666f00e8e2b599b83703451afb
Author: Bruno Haible <bruno@clisp.org>
Date:   Fri Jun 14 12:03:49 2002 +0000

    Make absolute pathnames inside $LANGUAGE work.

BIND

Some files in the hesiod and resolv directories originally came from BIND 4.

The last major update of these files was to BIND 8.2.3-T5B in July 2000.

BIND no longer comes with the BIND 4 stub resolver code, so there is no upstream for the glibc sources left.

The sources taken originally from BIND will be modified by glibc to meet the needs of its users.

ptmalloc2/dlmalloc

The following files are shared with ptmalloc2, which is derived from dlamlloc.

malloc/arena.c
malloc/malloc.c

ptmalloc2 upstream is dead and the code has changed considerably since the last ptmalloc2 release, but dlmalloc still sees occasional updates. It's not clear if the changes to dlmalloc could be ported back to glibc or if that would be beneficial.

Unicode

The following files are shared with the upstream Unicode project and must be updated regularly to stay in sync with the upstream unicode releases.

Filename

Status

localedata/unicode-gen/UnicodeData.txt

Merged from Unicode 13.0.0 release.

localedata/unicode-gen/unicode-license.txt

Merged from Unicode 13.0.0 release.

localedata/unicode-gen/DerivedCoreProperties.txt

Merged from Unicode 13.0.0 release.

localedata/unicode-gen/EastAsianWidth.txt

Merged from Unicode 13.0.0 release.

localedata/unicode-gen/PropList.txt

Merged from Unicode 13.0.0 release.

Tzcode

The following files are shared with the upstream tzcode project and must be updated regularly to stay in sync with the upstream releases.

Filename

Status

timezone/private.h

Update from tzcode 2017b.

timezone/tzfile.h

Update from tzcode 2017b.

timezone/zdump.c

Update from tzcode 2017b.

timezone/zic.c

Update from tzcode 2017b.

timezone/tzselect.ksh

Update from tzcode 2017b.

Currently tzcode 2018g is out.

Tzdata

The following files are shared with the upstream tzdata project but is not synchronized regularly. The data files themselves are used only for testing purposes and their data is never used to generate any output. We synchronize them only to stay on top of newer data that might help with testing.

Filename

Status

timezone/africa

2009i.

timezone/antarctica

2009i.

timezone/asia

2009i.

timezone/australasia

2009i.

timezone/europe

2009i.

timezone/northamerica

2009i.

timezone/southamerica

2009i.

timezone/pacificnew

2009i.

timezone/etcetera

2009i.

timezone/factory

2009i.

timezone/backward

2009i.

timezone/systemv

2009i.

timezone/solar87

2009i.

timezone/solar88

2009i.

timezone/solar89

2009i.

timezone/iso3166.tab

2009i.

timezone/zone.tab

2009i.

timezone/leapseconds

2009i.

timezone/yearistype

2009i (as yearistype.sh).

Currently tzdata 2018g is out

None: SharedSourceFiles (last edited 2021-05-03 17:06:20 by CarlosODonell)