Differences between revisions 11 and 12
Revision 11 as of 2014-07-10 09:06:02
Size: 13074
Comment:
Revision 12 as of 2014-12-11 12:04:56
Size: 13376
Editor: WillNewton
Comment: Updated gettext section
Deletions are marked like this. Additions are marked like this.
Line 264: Line 264:
There have been attempts to keep these files in sync over the years with fixes going in both directions. gettext is LGPL >= 2.1 so copying files across should be simple. 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.
}}}

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

Unknown

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

Unknown

posix/getopt1.c

Unknown

posix/getopt_int.h

Unknown

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

The following files are shared with the BIND DNS server project.

hesiod/hesiod.c
hesiod/hesiod.h
hesiod/hesiod_p.h
resolv/arpa/nameser.h
resolv/base64.c
resolv/herror.c
resolv/inet_addr.c
resolv/inet_net_ntop.c
resolv/inet_net_pton.c
resolv/inet_neta.c
resolv/inet_ntop.c
resolv/inet_pton.c
resolv/ns_print.c
resolv/ns_samedomain.c
resolv/ns_ttl.c
resolv/nsap_addr.c
resolv/res_comp.c
resolv/res_data.c
resolv/res_debug.c
resolv/res_debug.h
resolv/res_init.c
resolv/res_libc.c
resolv/res_mkquery.c
resolv/res_query.c
resolv/res_send.c
resolv/resolv.h

The last major update of these files from the BIND code was to BIND 8.2.3-T5B in July 2000 and there seems to be considerable divergence with the current upstream code in places.

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.

None: SharedSourceFiles (last edited 2014-12-11 12:04:56 by WillNewton)