forked from lattera/glibc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make several tool features mandatory and simplify the code.
- Loading branch information
Showing
84 changed files
with
467 additions
and
796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,83 @@ | ||
2011-09-10 Ulrich Drepper <[email protected]> | ||
|
||
* configure.in: Remove --with-__thread option. Make tests for | ||
--no-whole-archive, __builtin_expect, symbol redirection, __thread, | ||
tls_model attribute fail if no support is available. Remove | ||
USE_IN_LIBIO. | ||
* Makeconfig: Adjust for dropped configure option. All features are | ||
now mandatory. | ||
* Makerules: Likewise. | ||
* Versions.def: Likewise. | ||
* argp/argp-fmtstream.c: Likewise. | ||
* argp/argp-fmtstream.h: Likewise. | ||
* argp/argp-help.c: Likewise. | ||
* assert/assert.c: Likewise. | ||
* config.h.in: Likewise. | ||
* config.make.in: Likewise. | ||
* configure: Likewise. | ||
* configure.in: Likewise. | ||
* csu/Versions: Likewise. | ||
* csu/init.c: Likewise. | ||
* elf/tst-audit2.c: Likewise. | ||
* elf/tst-tls10.c: Likewise. | ||
* elf/tst-tls10.h: Likewise. | ||
* elf/tst-tls11.c: Likewise. | ||
* elf/tst-tls12.c: Likewise. | ||
* elf/tst-tls14.c: Likewise. | ||
* elf/tst-tlsmod11.c: Likewise. | ||
* elf/tst-tlsmod12.c: Likewise. | ||
* elf/tst-tlsmod13.c: Likewise. | ||
* elf/tst-tlsmod13a.c: Likewise. | ||
* elf/tst-tlsmod14a.c: Likewise. | ||
* elf/tst-tlsmod15b.c: Likewise. | ||
* elf/tst-tlsmod16a.c: Likewise. | ||
* elf/tst-tlsmod16b.c: Likewise. | ||
* elf/tst-tlsmod7.c: Likewise. | ||
* elf/tst-tlsmod8.c: Likewise. | ||
* elf/tst-tlsmod9.c: Likewise. | ||
* gmon/gmon.c: Likewise. | ||
* grp/fgetgrent_r.c: Likewise. | ||
* grp/putgrent.c: Likewise. | ||
* hurd/fopenport.c: Likewise. | ||
* include/libc-symbols.h: Likewise. | ||
* include/tls.h: Likewise. | ||
* intl/gettextP.h: Likewise. | ||
* intl/loadinfo.h: Likewise. | ||
* locale/global-locale.c: Likewise. | ||
* locale/localeinfo.h: Likewise. | ||
* mach/devstream.c: Likewise. | ||
* malloc/arena.c: Likewise. | ||
* malloc/set-freeres.c: Likewise. | ||
* misc/err.c: Likewise. | ||
* misc/getttyent.c: Likewise. | ||
* misc/mntent_r.c: Likewise. | ||
* posix/getopt.c: Likewise. | ||
* posix/wordexp.c: Likewise. | ||
* pwd/fgetpwent_r.c: Likewise. | ||
* resolv/Versions: Likewise. | ||
* resolv/res_hconf.c: Likewise. | ||
* shadow/fgetspent_r.c: Likewise. | ||
* shadow/putspent.c: Likewise. | ||
* stdio-common/printf_fphex.c: Likewise. | ||
* stdio-common/tmpfile.c: Likewise. | ||
* stdlib/abort.c: Likewise. | ||
* stdlib/fmtmsg.c: Likewise. | ||
* sunrpc/auth_unix.c: Likewise. | ||
* sunrpc/clnt_perr.c: Likewise. | ||
* sunrpc/clnt_tcp.c: Likewise. | ||
* sunrpc/clnt_udp.c: Likewise. | ||
* sunrpc/clnt_unix.c: Likewise. | ||
* sunrpc/openchild.c: Likewise. | ||
* sunrpc/svc_simple.c: Likewise. | ||
* sunrpc/svc_tcp.c: Likewise. | ||
* sunrpc/svc_udp.c: Likewise. | ||
* sunrpc/svc_unix.c: Likewise. | ||
* sunrpc/xdr.c: Likewise. | ||
* sunrpc/xdr_array.c: Likewise. | ||
* sunrpc/xdr_rec.c: Likewise. | ||
* sunrpc/xdr_ref.c: Likewise. | ||
* sunrpc/xdr_stdio.c: Likewise. | ||
|
||
2011-09-09 Ulrich Drepper <[email protected]> | ||
|
||
* sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Word-wrapping and line-truncating streams | ||
Copyright (C) 1997-1999,2001,2002,2003,2005 Free Software Foundation, Inc. | ||
Copyright (C) 1997-1999,2001-2003,2005,2011 Free Software Foundation, Inc. | ||
This file is part of the GNU C Library. | ||
Written by Miles Bader <[email protected]>. | ||
|
@@ -40,7 +40,7 @@ | |
#define isblank(ch) ((ch)==' ' || (ch)=='\t') | ||
#endif | ||
|
||
#if defined _LIBC && defined USE_IN_LIBIO | ||
#ifdef _LIBC | ||
# include <wchar.h> | ||
# include <libio/libioP.h> | ||
# define __vsnprintf(s, l, f, a) _IO_vsnprintf (s, l, f, a) | ||
|
@@ -101,11 +101,7 @@ __argp_fmtstream_free (argp_fmtstream_t fs) | |
__argp_fmtstream_update (fs); | ||
if (fs->p > fs->buf) | ||
{ | ||
#ifdef USE_IN_LIBIO | ||
__fxprintf (fs->stream, "%.*s", (int) (fs->p - fs->buf), fs->buf); | ||
#else | ||
fwrite_unlocked (fs->buf, 1, fs->p - fs->buf, fs->stream); | ||
#endif | ||
} | ||
free (fs->buf); | ||
free (fs); | ||
|
@@ -150,11 +146,9 @@ __argp_fmtstream_update (argp_fmtstream_t fs) | |
size_t i; | ||
for (i = 0; i < pad; i++) | ||
{ | ||
#ifdef USE_IN_LIBIO | ||
if (_IO_fwide (fs->stream, 0) > 0) | ||
putwc_unlocked (L' ', fs->stream); | ||
else | ||
#endif | ||
putc_unlocked (' ', fs->stream); | ||
} | ||
} | ||
|
@@ -315,11 +309,9 @@ __argp_fmtstream_update (argp_fmtstream_t fs) | |
*nl++ = ' '; | ||
else | ||
for (i = 0; i < fs->wmargin; ++i) | ||
#ifdef USE_IN_LIBIO | ||
if (_IO_fwide (fs->stream, 0) > 0) | ||
putwc_unlocked (L' ', fs->stream); | ||
else | ||
#endif | ||
putc_unlocked (' ', fs->stream); | ||
|
||
/* Copy the tail of the original buffer into the current buffer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Word-wrapping and line-truncating streams. | ||
Copyright (C) 1997 Free Software Foundation, Inc. | ||
Copyright (C) 1997, 2011 Free Software Foundation, Inc. | ||
This file is part of the GNU C Library. | ||
Written by Miles Bader <[email protected]>. | ||
|
@@ -43,8 +43,7 @@ | |
# endif | ||
#endif | ||
|
||
#if (_LIBC - 0 && !defined (USE_IN_LIBIO)) \ | ||
|| (defined (__GNU_LIBRARY__) && defined (HAVE_LINEWRAP_H)) | ||
#if defined (__GNU_LIBRARY__) && defined (HAVE_LINEWRAP_H) | ||
/* line_wrap_stream is available, so use that. */ | ||
#define ARGP_FMTSTREAM_USE_LINEWRAP | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
/* Hierarchial argument parsing help output | ||
Copyright (C) 1995-2003, 2004, 2005, 2006, 2007 | ||
Free Software Foundation, Inc. | ||
Copyright (C) 1995-2007, 2011 Free Software Foundation, Inc. | ||
This file is part of the GNU C Library. | ||
Written by Miles Bader <[email protected]>. | ||
|
@@ -312,13 +311,13 @@ fill_in_uparams (const struct argp_state *state) | |
{"no-parent", 'P', 0, 0, "Include processes without parents"}, | ||
{0, 'x', 0, OPTION_ALIAS}, | ||
{"all-fields",'Q', 0, 0, "Don't elide unusable fields (normally" | ||
" if there's some reason ps can't" | ||
" if there's some reason ps can't" | ||
" print a field for any process, it's" | ||
" removed from the output entirely)" }, | ||
" removed from the output entirely)" }, | ||
{"reverse", 'r', 0, 0, "Reverse the order of any sort"}, | ||
{"gratuitously-long-reverse-option", 0, 0, OPTION_ALIAS}, | ||
{"session", OPT_SESS, "SID", OPTION_ARG_OPTIONAL, | ||
"Add the processes from the session" | ||
"Add the processes from the session" | ||
" SID (which defaults to the sid of" | ||
" the current process)" }, | ||
|
@@ -1874,11 +1873,9 @@ __argp_failure (const struct argp_state *state, int status, int errnum, | |
#endif | ||
} | ||
|
||
#ifdef USE_IN_LIBIO | ||
if (_IO_fwide (stream, 0) > 0) | ||
putwc_unlocked (L'\n', stream); | ||
else | ||
#endif | ||
putc_unlocked ('\n', stream); | ||
|
||
#if _LIBC || (HAVE_FLOCKFILE && HAVE_FUNLOCKFILE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.