Go to file
Peng Haitao f6da27e536 bindresvport() uses two static variables port and startport which are not
protected. It is not safe when in multithread circumstance.

bindresvport() select a port number from the range 512 to 1023, when in
multithread circumstance, the port may be 1024. So the static variables will be
protected.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
2012-11-19 02:05:12 -05:00
argp Fix lots of bitrot for stub configurations. 2012-07-30 16:34:33 -07:00
assert Remove use of INTDEF/INTUSE in libio 2012-05-24 23:06:20 +02:00
bits Get rid of unused __swblk_t type. 2012-10-01 14:39:29 -07:00
catgets Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
conf
conform conformtest: Fix miscellaneous UNIX98 expectations. 2012-11-10 01:13:39 +00:00
crypt Add support for sparc cryptographic hash opcodes. 2012-11-13 17:12:45 -08:00
csu Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
ctype Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
debug Update --version copyright dates for memusagestat and pcprofiledump. 2012-11-15 01:01:33 +00:00
dirent [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
dlfcn Free errstring if _dl_addr doesn't returns 0 2012-10-09 15:22:16 -07:00
elf Add ldconfig cache tag handling for AArch64 2012-11-19 01:22:33 -05:00
gmon [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
gnulib Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
grp [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
gshadow Fix shadow, gshadow, networks, protocols, rpc, aliases, and nscd routines for USE_NSCD case. 2012-08-22 16:06:53 -07:00
hesiod Rename __secure_getenv to secure_getenv 2012-07-25 19:46:22 +02:00
hurd Distinguish ELOOP diagnosis threshold from SYMLOOP_MAX. 2012-08-03 11:39:30 -07:00
iconv iconv: Fix -c 2012-11-16 18:48:36 +01:00
iconvdata Fix printf format mismatches 2012-11-02 22:52:16 +01:00
include [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
inet [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
intl Define and use $(run-built-tests). 2012-10-24 00:08:46 +00:00
io Adding missing -fexception CFLAGS 2012-11-14 12:35:10 +00:00
libidn Automatically disable libidn add-on under --disable-shared. 2012-10-09 15:48:55 -07:00
libio printf should return negative value on error 2012-11-16 19:13:11 +05:30
locale Add support for sparc cryptographic hash opcodes. 2012-11-13 17:12:45 -08:00
localedata Add szl_PL 2012-11-16 15:23:52 +01:00
login Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
mach Remove distribute variable from Makefiles 2012-03-07 05:17:13 -05:00
malloc Update --version copyright dates for memusagestat and pcprofiledump. 2012-11-15 01:01:33 +00:00
manual Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
math Correct tinyness handling in long-double and float y0/y1. 2012-11-18 12:33:53 -08:00
misc Adding missing -fexception CFLAGS 2012-11-14 12:35:10 +00:00
nis 2012-10-01 Patsy Franklin <pfrankli@redhat.com> 2012-10-01 15:32:39 -06:00
nptl Adding missing -fexception CFLAGS 2012-11-14 12:35:10 +00:00
nptl_db nptl_db/Makefile: force C locale when running readelf 2012-10-08 14:04:23 -07:00
nscd Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
nss Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
po Update from translation team for Esperanto 2012-11-06 20:11:07 +01:00
ports hppa: Mark __pthread_once as a hidden def. 2012-11-19 00:55:04 -05:00
posix Generate /usr/libexec/getconf files when cross-compiling. 2012-11-17 01:49:19 +00:00
pwd BZ#13696: Add --disable-nscd configure option. 2012-08-22 13:31:12 -07:00
resolv Define IPPORT_RESERVED in netdb.h for XPG4 and UNIX98 (bug 14838). 2012-11-13 18:11:49 +00:00
resource [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
rt [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
scripts check-local-headers: ignore Mach kernel headers 2012-11-16 18:55:19 +01:00
setjmp [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
shadow Fix shadow, gshadow, networks, protocols, rpc, aliases, and nscd routines for USE_NSCD case. 2012-08-22 16:06:53 -07:00
signal [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
socket [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
soft-fp Fix missing truncation UNDERFLOW. 2012-11-13 17:01:05 +00:00
stdio-common printf should return negative value on error 2012-11-16 19:13:11 +05:30
stdlib Declare ecvt, fcvt, gcvt, mktemp in stdlib.h for XOPEN2K (bug 14824). 2012-11-09 21:16:58 +00:00
streams [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
string Use memcpy in memmove when possible 2012-11-06 17:47:55 -08:00
sunrpc bindresvport() uses two static variables port and startport which are not 2012-11-19 02:05:12 -05:00
sysdeps Add ldconfig cache tag handling for AArch64 2012-11-19 01:22:33 -05:00
sysvipc [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
termios [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
time [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
timezone Update tzcode from upstream git and support --with-bugurl for it. 2012-11-13 22:25:45 +00:00
wcsmbs Add wcsmbs IFUNC tests 2012-10-19 22:13:34 -07:00
wctype Remove distribute variable from Makefiles 2012-03-07 05:17:13 -05:00
.gitattributes exempt timezone files from the no-bad-whitespace policy 2009-06-15 18:15:54 +02:00
.gitignore drop ports ignore 2012-07-03 15:54:35 -04:00
abi-tags * abi-tags (*-.*-syllable.*): New match, with ABI value 5. 2006-01-04 17:14:58 +00:00
aclocal.m4 Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
BUGS [BZ #5222] 2007-10-28 08:24:07 +00:00
CANCEL-FCT-WAIVE Update. 2004-03-08 07:58:18 +00:00
CANCEL-FILE-WAIVE Update. 2004-03-08 07:58:18 +00:00
ChangeLog bindresvport() uses two static variables port and startport which are not 2012-11-19 02:05:12 -05:00
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5 * sysdeps/posix/getaddrinfo.c: Implement configuration file 2006-05-04 06:38:07 +00:00
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9 Update. 2000-04-28 06:14:43 +00:00
ChangeLog.10
ChangeLog.11 2.5-18.1 2007-07-12 18:26:36 +00:00
ChangeLog.12 2.5-18.1 2007-07-12 18:26:36 +00:00
ChangeLog.13 Update. 2002-10-03 16:37:04 +00:00
ChangeLog.14 Update. 2004-04-20 04:28:00 +00:00
ChangeLog.15 Split out ChangeLog.15 at 2.3 branch point 2005-02-16 07:34:17 +00:00
ChangeLog.16 Fix typo in name 2012-06-21 16:45:27 +02:00
ChangeLog.17 Revert "Sun agreed to a change of the license for the RPC code to a BSD-like license." 2010-06-27 19:34:03 -07:00
config.h.in Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
config.make.in Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
configure Fix ifunc configure check for 64-bit targets 2012-11-18 16:30:16 +01:00
configure.in Fix ifunc configure check for 64-bit targets 2012-11-18 16:30:16 +01:00
CONFORMANCE Move __STDC_* predefined macros from features.h to stdc-predef.h. 2012-02-22 12:53:04 +00:00
COPYING Update. 2001-07-06 06:58:28 +00:00
COPYING.LIB 2002-08-26 Brian Youmans <3diff@gnu.org> 2002-08-26 22:40:48 +00:00
cppflags-iterator.mk 2004-03-11 Jeroen Dekkers <jeroen@dekkers.cx> 2004-03-14 19:13:17 +00:00
extra-lib.mk Add --enable-systemtap configuration to define static probe points. 2012-05-25 13:40:20 -07:00
extra-modules.mk Update. 2004-03-08 21:31:23 +00:00
INSTALL Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
libc-abis A few more archs have IFUNC support. 2010-03-17 02:43:12 -07:00
LICENSES Update the LICENSES file. 2010-08-23 05:53:52 -07:00
Makeconfig Fix run-program-prefix comment. 2012-10-25 15:54:16 +00:00
Makefile Remove $(format-me) and fix indentation. 2012-11-09 23:01:03 +00:00
Makefile.in Declare targets with .PHONY in Makefile.in. 2012-09-25 16:21:15 -07:00
Makerules [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
NAMESPACE Add and update many more entries. 2000-03-20 00:42:58 +00:00
NEWS bindresvport() uses two static variables port and startport which are not 2012-11-19 02:05:12 -05:00
o-iterator.mk
PROJECTS Update. 2004-10-12 06:19:23 +00:00
README Remove pre-2.6.16 Linux kernel support. 2012-08-07 16:40:32 +00:00
Rules Support cross-testing. 2012-10-24 21:59:01 +00:00
shlib-versions Convert WORDSIZE[32|64]/ld entries to abi-variants 2012-05-30 08:33:26 -07:00
test-skeleton.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
version.h Open development for 2.17. 2012-07-03 16:36:22 +00:00
Versions.def Rename __secure_getenv to secure_getenv 2012-07-25 19:46:22 +02:00
WUR-REPORT * posix/unistd.h (setuid, setreuid, seteuid, setresuid): 2012-08-01 18:12:58 +02:00

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[34567]86-*-gnu.  The current
GNU/Hurd support requires out-of-tree patches that will eventually be
incorporated into an official GNU C Library release.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 2.6.16 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	powerpc-*-linux-gnu	Hardware floating point required
	powerpc64-*-linux-gnu
	s390-*-linux-gnu
	s390x-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

The code for other CPU configurations supported by volunteers outside of
the core glibc maintenance effort is contained in the separate `ports'
add-on.  You can find glibc-ports-VERSION distributed separately in the
same place where you got the main glibc distribution files.
Currently these configurations have code in the `ports' add-on:

	alpha*-*-linux-gnu
	am33*-*-linux-gnu	Not currently functional
	arm-*-linux-gnueabi
	hppa-*-linux-gnu	Not currently functional without patches.
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Software floating point (--without-fp)
	tilegx-*-linux-gnu
	tilepro-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 2000-2011, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.