Commit Graph

12178 Commits

Author SHA1 Message Date
Ulrich Drepper c63bfa7994 Avoid alloca in setenv for long strings. 2010-02-02 09:55:55 -08:00
Samuel Thibault b34e12e22c Give Hurd weak aliases for getsysstats get_* functions. 2010-01-26 17:44:58 -08:00
Andreas Schwab 7a51836002 Fix error checking in iconv. 2010-01-25 07:17:47 -08:00
Ulrich Drepper 8549abcb9c Add BZ number. 2010-01-22 12:45:43 -08:00
Joe Landers 8b2f25c233 _nl_load_locale() incorrectly handles mmap() failures 2010-01-22 12:44:58 -08:00
Paul Eggert aef699dce1 regexec.c: avoid overflow in realloc buffer length computation 2010-01-22 12:41:12 -08:00
Paul Eggert 74bc9f14db regexec.c: avoid leaks on out-of-memory failure paths 2010-01-22 12:33:58 -08:00
Paul Eggert 42a2c9b5c3 regexec.c: avoid overflow in computing sum of lengths 2010-01-22 12:22:18 -08:00
Paul Eggert eadc09f22c re_search_internal: Avoid overflow in computing re_malloc buffer size 2010-01-22 12:15:53 -08:00
Paul Eggert 4cd028677b prune_impossible_nodes: Avoid overflow in computing re_malloc buffer size 2010-01-22 12:03:56 -08:00
Paul Eggert daa8454919 regexec.c: avoid arithmetic overflow in buffer size calculation 2010-01-22 10:52:38 -08:00
Paul Eggert d044d844dd regexec.c: simplify re_search_2_stub 2010-01-22 10:39:59 -08:00
Ulrich Drepper 5ddf954cf1 Simplify test in re_string_skip_chars. 2010-01-22 10:22:53 -08:00
Ulrich Drepper 4f08104cbf regex_internal.c: don't assume WEOF fits in wchar_t 2010-01-22 10:17:45 -08:00
Ulrich Drepper 0dae5d4ec1 regex_internal.c: remove useless variable and the code to set it. 2010-01-22 09:57:30 -08:00
Ulrich Drepper 2236464488 Extend overflow detection in re_dfa_add_node. 2010-01-22 09:48:35 -08:00
Ulrich Drepper 54dd0ab31f regex: avoid internal re_realloc overflow 2010-01-22 09:33:01 -08:00
Andreas Schwab e3b7670be2 Fix ____longjmp_chk for s390/s390x. 2010-01-20 07:59:30 -08:00
H.J. Lu cff0be8849 Support __memmove_ssse3_rep when SHARED isn't defined. 2010-01-19 12:20:57 -08:00
Ulrich Drepper a7bbf3d742 Remove unnecessary returns. 2010-01-19 12:04:34 -08:00
Samuel Thibault d924beb0f2 Define __rtld_lock_recursive_* for Hurd. 2010-01-18 14:44:22 -08:00
Ulrich Drepper 057edf90e0 memcpy for ppc/cell. 2010-01-18 12:40:29 -08:00
Andreas Schwab f87d0dac8b Remove duplicate definitions of O_DSYNC and O_RSYNC for Linux/sparc. 2010-01-18 08:38:18 -08:00
Andreas Schwab db07e962b6 Use correct type when casting d_tag. 2010-01-18 07:24:09 -08:00
Andreas Schwab 7a033a828d Ignore negative dynamic entry types. 2010-01-18 07:23:23 -08:00
Jakub Jelinek 64f388285e sysdeps/ieee754/ldbl-128/ fixes 2010-01-16 17:55:37 -08:00
Ulrich Drepper 2da42bc065 Fix a few more cases of ignored return values in regex. 2010-01-15 12:03:16 -08:00
Ulrich Drepper 635bc2a20f Fix _XOPEN_SOURCE_EXTENDED handling. 2010-01-15 11:03:44 -08:00
Andreas Krebbel 3a56ea2673 ld.so: Adjust the auxv if ld.so is directly invoked.
If a binary gets invoked by passing it as argument to ld.so the stack
still holds the auxiliary vector of ld.so when entering the _start
routine of the executable.  So the invocation via ld.so is not fully
transparent to the executable.  This causes problems if the executable
wants to scan the auxv itself.
2010-01-15 09:09:35 -08:00
Philip Prindeville dca5d51ebf Define IPTOS_CLASS_* macros according to RFC 2474. 2010-01-14 23:28:05 -08:00
Ulrich Drepper ace4e23f8c Always use IPv4 sockets for IPv4 addresses. 2010-01-14 22:34:28 -08:00
Paul Eggert 21f5de55ec regcomp.c: do not ignore memory allocation failure 2010-01-14 21:35:15 -08:00
Ulrich Drepper 0b689682ad Make unistd.h pre-c((-safe. 2010-01-14 17:03:42 -08:00
Ulrich Drepper 21dfc00031 Merge branch 'master' of ssh://sources.redhat.com/git/glibc 2010-01-14 16:25:15 -08:00
Ulrich Drepper 6a7007d7be Relax conditions in unistd.h. 2010-01-14 16:23:47 -08:00
Ulrich Drepper cd5c5f7051 Relax onditions in strings.h. 2010-01-14 16:16:21 -08:00
Ulrich Drepper c589e093e1 elax some conditions in stdlib.h. 2010-01-14 16:07:58 -08:00
Ryan S. Arnold 35e6599946 Pass $(sysdep-LDFLAGS) when using --print-file-name. 2010-01-14 15:59:02 -08:00
Ulrich Drepper 402cd98775 Actually define pthread_mutex_consistent. 2010-01-14 15:52:46 -08:00
Ulrich Drepper 346bc35c33 Fix malloc_info without prioor allocations. 2010-01-14 13:32:58 -08:00
Ulrich Drepper 52e2ea9a83 Relax visibility of some more declaration. 2010-01-14 13:22:06 -08:00
Ulrich Drepper 63ee841069 Relax condition for resolver constant definition. 2010-01-14 10:05:36 -08:00
Ulrich Drepper b1a6644267 Declare getpagesize in _GNU_SOURCE mode again. 2010-01-14 09:14:12 -08:00
Ulrich Drepper f69190e74a Prevent silent errors should x86-64 strncmp be needed outside libc. 2010-01-14 08:09:32 -08:00
Ulrich Drepper e26dfa69f5 Add nonnull attribute to unsetenv declaration. 2010-01-13 23:06:59 -08:00
H.J. Lu 5a7af22fbb Unroll the loop x86-64 SSE4.2 strlen. 2010-01-13 07:51:48 -08:00
Ulrich Drepper 52e96a8092 Be a bit more relaxed about obsoleted mktemp symbol. 2010-01-13 07:15:17 -08:00
Ulrich Drepper 2e3e1b3309 More test suite fixes. 2010-01-12 20:11:10 -08:00
Ulrich Drepper dfe11a137c Fix up grp.h for XPG7. 2010-01-12 20:01:46 -08:00
Ulrich Drepper 505cf2c00a Fix up netdb.h for XPG7. 2010-01-12 16:43:00 -08:00
Ulrich Drepper a9625ea95f Internal namespace test improvements. 2010-01-12 12:18:08 -08:00
Ulrich Drepper d3c7e68655 Fix up pthread.h for XPG7. 2010-01-12 12:13:04 -08:00
Ulrich Drepper 25fdd5d134 Fix up sched.h for XPG7. 2010-01-12 11:48:45 -08:00
H.J. Lu 3af48cbdfa Optimize 32bit memset/memcpy with SSE2/SSSE3. 2010-01-12 11:22:03 -08:00
Ulrich Drepper 4bfc6ab9ae Fix up sys/select.h test for XPG7. 2010-01-12 07:49:10 -08:00
Jakub Jelinek 8500fa8325 Fix compile error with sys/wait.h. 2010-01-12 05:41:52 -08:00
Ulrich Drepper e00a72ef5e Fix up sys/stat.h for XPG7. 2010-01-11 21:11:29 -08:00
Ulrich Drepper f8c1b120d4 Fix up termios.h for XPG7. 2010-01-11 21:00:23 -08:00
Ulrich Drepper 91251b7f54 Fix up tests of math.h and tgmath.h for XPG[67]. 2010-01-11 20:54:12 -08:00
Ulrich Drepper 75eb41b42e Fix time.h POSIX test. 2010-01-11 20:12:53 -08:00
Ulrich Drepper e531ede5af Fix up wchar.h for XPG7. 2010-01-11 20:07:47 -08:00
Ulrich Drepper 37c8e46632 Fix typo in wordexp.h tests. 2010-01-11 19:06:15 -08:00
Ulrich Drepper 1bdfadb4cc Fix up unistd.h tests. 2010-01-11 18:37:42 -08:00
Ulrich Drepper 21487cc929 Fix handling symbols removed in XPG7. 2010-01-11 14:49:17 -08:00
Ulrich Drepper 7cdb5a32f9 Fix up unistd.h for XPG7. 2010-01-11 14:43:46 -08:00
Ulrich Drepper 64c1f3af5d Fix double-inclusion problem of bits/stat.h. 2010-01-11 11:03:27 -08:00
Ulrich Drepper 7b4715c536 Fix compile error. 2010-01-11 03:41:22 -08:00
Ulrich Drepper 33780b6d33 FIx up signal.h for XPG7. 2010-01-10 18:43:30 -08:00
Ulrich Drepper 99d46ae379 Fix up sys/wait.h header for XPG7. 2010-01-10 11:06:06 -08:00
Ulrich Drepper f9cfa295ae Fix up sys/types.h for XPG7.
Also fix a test.
2010-01-10 07:16:54 -08:00
Ulrich Drepper df06f4855e Fix glob.h for XPG7. 2010-01-10 06:37:41 -08:00
Ulrich Drepper 18598ff105 Cleanup strings.h.
Cleanup the strings.h header for XPG7 and update the tests.
2010-01-10 02:08:32 -08:00
Ulrich Drepper b2660fb624 Missing CLs. 2010-01-10 00:46:27 -08:00
Ulrich Drepper cd2f000c07 Fix standalone stdio.h inclusion. 2010-01-10 00:39:22 -08:00
Ulrich Drepper 6651fa1216 Merge branch 'master' of ssh://sources.redhat.com/git/glibc
Conflicts:
	ChangeLog
2010-01-09 10:59:13 -08:00
Ulrich Drepper f095bb7204 Add support for XPG7 testing.
The header conformance testing code needed extending for XPG7.  This
exposed a few bugs in the headers.  There are more changes to come.
2010-01-09 10:56:41 -08:00
Roland McGrath d5ea695b42 Add new ELF constant PN_XNUM. 2010-01-07 18:48:32 -08:00
Roland McGrath 4472e1de30 Use NT_GNU_HWCAP instead of literal 2. 2010-01-07 15:43:10 -08:00
Ulrich Drepper 44dcc00292 Fix typo in feature selection macro use. 2010-01-06 22:47:31 -08:00
Ulrich Drepper c10f8866e5 Fix up ChangeLog. 2009-12-25 09:49:07 -08:00
Ulrich Drepper a87cd2894c Remove tst-sigcontext test.
It's bogus in many places.
2009-12-24 13:34:05 -08:00
Maciej W. Rozycki 9250545663 Additional setcontext(), etc. conformance tests. 2009-12-24 13:22:33 -08:00
H.J. Lu 6f89d2f30f Enable multiarch whenever possible. 2009-12-23 20:22:46 -08:00
Ulrich Drepper 63de5ef70a Fix isomac test after recent header change. 2009-12-23 19:31:50 -08:00
Ulrich Drepper 7ed319d7da Merge branch 'master' of ssh://sources.redhat.com/git/glibc 2009-12-23 18:50:11 -08:00
Ulrich Drepper 538fa939e7 Fix up ChangeLog. 2009-12-23 18:46:03 -08:00
Samuel Thibault e87e2f48ef Hurd: Fix possibly uninitialized variable in _hurd_locked_install_cttyid. 2009-12-22 11:51:44 -08:00
Samuel Thibault e70ffcb0fa Hurd: Fix spurious mach_port_deallocate in getcwd. 2009-12-22 11:47:13 -08:00
Martin Schwidefsky caf512dec2 Implement handling of the needed S390 relocations. 2009-12-22 08:34:07 -08:00
Ulrich Drepper 4286fa41ed Handle AT_FDCWD in futimens. 2009-12-21 14:08:05 -08:00
Ulrich Drepper f282f6b90a Update poll.h header for POSIX 2008. 2009-12-15 13:05:14 -08:00
Ulrich Drepper 2af6396817 Avoid ELF lookup race.
On some architectures the update of the l_used field in the lookup
functions races with setting the other bits in the bitfield.  Simply
avoid this and optimize use of l_used in general.
2009-12-15 12:32:27 -08:00
H.J. Lu 2510d01ddb Define bit_SSE2 and index_SSE2. 2009-12-13 15:23:02 -08:00
H.J. Lu 51ddd2c01e Define bit_XXX and index_XXX.
This patch defines bit_XXX and index_XXX and use them to check processor
feature in assembly code.  It can prevent typos in processor feature
check.
2009-12-13 09:47:02 -08:00
Kaz Kojima 9b2f1d4b58 Update sysdeps/sh/elf/initfini.c. 2009-12-13 09:43:51 -08:00
Mike Frysinger ca1ccae525 Provide a __set_fpscr prototype. 2009-12-13 09:42:52 -08:00
Ulrich Drepper 2de59be022 Redefine O_SYNC and O_DSYNC to match 2.6.33+ kernels. 2009-12-11 23:00:49 -08:00
Ulrich Drepper a682a1bf55 Fix a few error cases in *name4_r lookup handling. 2009-12-10 15:44:26 -08:00
Ulrich Drepper 633bbc1d91 Fix kernel version check in recent ptsname change. 2009-12-09 08:34:48 -08:00
Bruno Haible 4940d71bef Add more warnings to exec functions. 2009-12-09 08:30:38 -08:00
Ulrich Drepper ee1a7fabb4 Add recvmmsg interface. 2009-12-08 20:10:46 -08:00
Andreas Krebbel 406300d20a Add even more cfi to s390 asm files. 2009-12-07 17:27:45 -08:00
Ulrich Drepper 02a52de084 Define SCHED_IDLE and SCHED_RESET_ON_FORK for Linux. 2009-11-30 08:24:59 -08:00
Ulrich Drepper e2c59de609 Avoid handling long-obsolete old BSD PTY handling in ptsname.
Support for this type of PTY was removed in the 2.1.115 kernel.  Just
use __LINUX_KERNEL_VERSION to determine when we can drop the compat code.
2009-11-26 08:47:56 -08:00
Ulrich Drepper c53f6228f1 Fix comments in random_r.c. 2009-11-24 20:22:44 -08:00
Ulrich Drepper aa9890239a Optimize grantpt.
grantpt was performing two consecutive calls to stat with the same
file name.  Avoid this by creating a special version of the ptsname
function which allows to pass the stat result back to the caller.
2009-11-24 18:50:32 -08:00
Ulrich Drepper 139ee080b6 Prevent unintended file desriptor leak in grantpt.
The pt_chown program is completely transparently called.  It might
not be able to live with the various file descriptors the program
has open at the time of the call (e.g., under SELinux).  Close all
but the needed descriptor and connect stdin, stdout, and stderr
with /dev/null.  pt_chown shouldn't print anything when called to
do real work.
2009-11-24 18:24:14 -08:00
Ulrich Drepper 21f2c22320 Don't get tty group info multiple times in grantpt.
This is a minor optimization.  The tty group mustn't change so a
successful call to getgrnam will always return the same information.
Cache it and reuse it.
2009-11-24 17:50:27 -08:00
Ulrich Drepper 1c3c269b55 Fix startup to security-relevant statically linked binaries.
Before the change they crash on startup.  Perform IREL relocations
earlier to prevent this.
2009-11-24 11:17:06 -08:00
Andreas Schwab e3611aefb4 Use struct timespec for timestamps in struct stat also if __USE_XOPEN2K8.
POSIX.1-2008 made stat.st_[acm]tim mandatory.
2009-11-23 07:10:27 -08:00
Ulrich Drepper 351fe94770 Try harder to re-exec nscd in paranoia mode. 2009-11-22 19:07:52 -08:00
Ulrich Drepper c5a8b997e2 Reinitialize _create_xid state after fork.
Programs forking and using RPC in the forks would use the same XIDs.
2009-11-22 11:43:57 -08:00
Ulrich Drepper eb4157390c Update ntp_gettime for Linux.
The ntp_gettime implementation of NTP exports the tai field the kernel
now produces.  This requires an ABI change since the ntptimeval structure
changed.  Upstream kept the same name, there is nothing to do.  This
patch changes the ntptimeval structure but keeps the old ntp_gettime
definition.  A new ntp_gettimex function which is transparently invoked
through the old name is introduced.  This has the advantage that even
object files can remain compatible.  This wouldn't be the case if
symbol versioning would be used to overload the name ntp_gettime.
2009-11-22 11:07:04 -08:00
Ulrich Drepper 89b432d7a5 Fix up <sys/timex.h> a bit more for recent API changes. 2009-11-22 10:23:12 -08:00
H.J. Lu 6622141795 Properly recover from shorter read. 2009-11-20 08:30:20 -08:00
Ulrich Drepper df1934daa7 Fix getwc* and putwc* on non-wide streams. 2009-11-19 10:29:16 -08:00
Ulrich Drepper 03ebadd9ea Avoid warnings in CPU_* macros when using const bitsets. 2009-11-19 10:03:46 -08:00
Ulrich Drepper c6e7f16c53 Follow kernel F_OWNER_{GID -> PGRP} change.
But maintain compatiblity for 2.11.
2009-11-19 06:38:31 -08:00
Ulrich Drepper 424bea69fb Change misleading names of parameters of sync_file_range. 2009-11-17 18:10:56 -08:00
Jakub Jelinek 8ad81b316b Fix sync_file_range on ppc/ppc64.
I've noticed that sync_file_range is a stub on ppc/ppc64.
The kernel on these arches provides sync_file_range2 syscall with swapped
parameters.
The following completely untested patch ought to fix this.
2009-11-17 18:04:51 -08:00
Paolo Bonzini 815d8147a3 Fix ranges with multibyte characters as endpoints.
This is another bug in computing the fastmap.  It was reported by a user
of sed because it usually does not happen with !_LIBC.  However, it is
there in that case too.

The bug is that whenever we have a range at the beginning of the regex,
the regex must be tested on any possible multibyte character.  The reason
why _LIBC masks it, is that in general there is a collation symbol for
each possible multibyte-character lead byte, so all the lead bytes are
in general already part of the fastmap.

The tests use cyrillic characters as an example.  With _LIBC, they pass
without the patch too, but you can make them fail by removing collation
symbols handling.
2009-11-17 16:23:24 -08:00
Ulrich Drepper 7443244740 Handle LC_GLOBAL_LOCALE in duplocale. 2009-11-17 09:37:31 -08:00
Ulrich Drepper 4fb9241e4e Fix _NC_LOCALE_NAME definition. 2009-11-17 09:18:11 -08:00
Ulrich Drepper 2866eeb1b7 Add missing Linux MADV_* definitions. 2009-11-17 06:43:39 -08:00
H.J. Lu 65a1148bdd Use a simple loop on data shorter than software pipeline.
When data is shorter than software pipeline, recovery may fail. This
patch avoids it by using a simple loop on data shorter than software
pipeline.
2009-11-14 19:20:19 -08:00
Mike Frsyinger fabe43aba8 Missing CL. 2009-11-14 19:16:49 -08:00
Mike Frsyinger 5ec794b4b5 Add missing stdio.h include. 2009-11-14 19:11:44 -08:00
Ulrich Drepper 0079dd2382 Add support for new Linux error ERFKILL. 2009-11-14 10:20:25 -08:00
Ulrich Drepper 8964681064 Fix F_SETOWN_EX and F_GETOWN_EX definitions. 2009-11-14 08:28:40 -08:00
Ulrich Drepper 24c0bf7a76 Start 2.12 development. 2009-11-12 08:46:19 -08:00
Andreas Schwab 51e4196f16 Handle running out of buffer space with IPv6 mapping enabled.
With big DNS answers like the one you get for goodtimesdot.com you can
get a truncated address list if IPv6 mapping is enabled.  Instead tell
the caller to resize the buffer.
2009-11-10 07:36:50 -08:00
Caolan McNamara 6515a01fc1 Avoid memset warning in one case. 2009-11-10 06:29:13 -08:00
Philippe De Muyter 868f7a4053 Fix spelling of (Newton-)Raphson 2009-11-06 09:33:27 -08:00
Holger Hans Peter Freyther 685cb08356 Fix spelling in memusagestat.c 2009-11-06 09:32:06 -08:00
H.J. Lu 8608ae1f7b Properly handle STT_GNU_IFUNC symbols in do_sym.
do_sym should use DL_FIXUP_VALUE_XXX macros to call IFUNC function.
Otherwise, it won't compile on ia64. This patch fixes it and adds
a test.
2009-11-06 09:30:56 -08:00
Andreas Schwab 5b55d23611 Correct readahead syscall wrapper on powerpc32.
Due to alignment of 64bit parameters there is a dummy second argument.
But other than that the syscall arguments are directly mapped to the
function arguments.
2009-11-06 09:29:24 -08:00
Jakub Jelinek 872873d48d Fix R_PPC64_{JMP_IREL,IRELATIVE} handling in dl-conflict.c.
I've just committed STT_GNU_IFUNC ppc/ppc64 support into prelink,
and this patch is needed on the glibc side.  Without it ld.so segfaults,
as in dl-conflict.c sym_map is always NULL.  While dl-machine.h could use
RESOLVE_CONFLICT_FIND_MAP macro to compute it, it doesn't make sense,
because with prelink we know it is already properly relocated (all relative
relocations are applied by prelink).
2009-11-06 09:27:41 -08:00
Jakub Jelinek 34df851b33 Fix preadv, pwritev and fallocate for -D_FILE_OFFSET_BITS=64.
As reported in http://bugzilla.redhat.com/533063 , preadv/pwritev prototypes
are wrong on 32-bit arches with -D_FILE_OFFSET_BITS=64 and as I've just
found, fallocate is wrong too.
The problem is that only off_t is remapped to the 64-bit type transparently,
__off_t is not.
2009-11-06 09:26:31 -08:00
Andreas Schwab 13f6812ffb Make name of libgcc_s library configurable 2009-11-03 23:52:01 +01:00
Ulrich Drepper cc49a5a883 Restore locking in free_check.
This code is only used when MALLOC_CHECK_ is used.  Then some bogus
crashes and/or assert could result from the locking changes.  The code
ain't fast.
2009-11-01 07:27:00 -08:00
Ulrich Drepper 7f9cd6ed20 2.11 release. 2009-10-30 10:17:08 -07:00
Ulrich Drepper 3005703bb9 Add cast in tst-execstack to avoid warning. 2009-10-30 09:26:00 -07:00
Ulrich Drepper 1c52a97a1e Avoid warning in scanf test. 2009-10-30 09:23:24 -07:00
Ulrich Drepper 08c7ad975c Avoid two warnings in strtol{,l} tests. 2009-10-30 09:22:34 -07:00
Keith Stribley 3c2c4bf6f7 Implement Burmese language locale for Myanmar. 2009-10-30 08:14:02 -07:00
Ulrich Drepper 3a83202db6 Implement mkostemps and mkostemps64. 2009-10-30 08:02:30 -07:00
Andreas Schwab 2c5c07f5fc Add missing declarations. 2009-10-30 07:15:12 -07:00
Andreas Schwab de2cc8095b Fix typo in readlinkat 2009-10-30 14:18:18 +01:00
Roland McGrath 6cfe8609b8 New simplified make dist using git archive. 2009-10-30 03:30:14 -07:00
Alan Modra 31c759bf37 Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00