Commit graph

17020 commits

Author SHA1 Message Date
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 0f622686af Avoid local PLTs. 2009-11-24 18:47:26 -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 fa214705b9 Once again forgot to add new test file. 2009-11-24 18:22:30 -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 80b3a4ea1c New NPTL POSIX semaphore test. 2009-11-24 16:37:29 -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
Ulrich Drepper ee5a5ba672 Define week, first_weekday, and first_workday for hsb_DE locale. 2009-11-24 10:00:28 -08:00
Ulrich Drepper 49c7f27194 Define week, first_weekday, and first_workday for en_DK locale. 2009-11-23 16:16:26 -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
Roland McGrath 57a299fe47 Use #include instead of duplication for i386 vs i686 dl-sysdep.h in NPTL. 2009-11-22 17:49:21 -08:00
Ulrich Drepper 6503cfe2de Fix week information for nl_NL locale. 2009-11-22 16:54:45 -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 dfedb126d6 Minor optimizations and cleanups of x86 cond_broadcast. 2009-11-18 06:40:25 -08:00
Dinakar Guniguntala dd7106b3c6 Update cfi offsets for pthread_cond_broadcast and signal fir x86. 2009-11-18 06:33:23 -08:00
Ulrich Drepper 7429b1970e Merge branch 'master' of ssh://sources.redhat.com/git/glibc 2009-11-17 23:13:39 -08:00
Ulrich Drepper 62616842ec Minimal unwind section size reduction. 2009-11-17 23:13:08 -08:00
Ulrich Drepper b5f2ab824c Minial unwind section size reduction. 2009-11-17 22:55:55 -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
Ulrich Drepper f8c10bb45b Use cfi directives in x86 pthread_cond_{,timed}wait. 2009-11-17 17:59:33 -08:00
Ulrich Drepper 3933378fd3 Whitespace fixes. 2009-11-17 16:24:26 -08:00
Ulrich Drepper 3a00b16da4 Add missing test files. 2009-11-17 16:23:57 -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 f9a7bd536e Fix building on x86 with older kernel headers.
Fix building on x86 when older linux headers lack __NR_fallocate define.
2009-11-14 19:16:01 -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
Ulrich Drepper 639d6699e9 Fix up whitespaces. 2009-11-06 09:34:23 -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