Joseph Myers
9c84384cc1
Remove trailing whitespace.
2013-06-05 20:44:03 +00:00
Siddhesh Poyarekar
d180203e97
Increase test case timeout
2013-06-04 11:23:54 +05:30
Dmitry V. Levin
47c22455d4
Test getaddrinfo return value
...
This helps testing for regression of BZ#15339. Creation of network
isolated environments is a privileged operation and therefore is not
included to the test.
2013-05-21 17:21:05 +00:00
Ryan S. Arnold
e054f49430
Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).
2013-05-16 11:32:54 -05:00
Roland McGrath
8fb16a04e6
Move getlogin, getlogin_r, setlogin to login/ subdir.
2013-05-06 15:10:09 -07:00
Paul Pluzhnikov
3e6bd4b198
Set LC_ALL=C before sed.
2013-03-08 20:31:23 -08:00
Siddhesh Poyarekar
adbb8027be
Remove PIPE_BUF Linux-specific code
...
Fixes BZ #12723
The variable pipe buffer size does nothing to the value of PIPE_BUF,
since the number of bytes that are atomically written is still
PIPE_BUF on Linux.
2013-03-07 12:15:08 +05:30
Paul Eggert
b7688c42e7
Bring back definition of __attribute__ for non-gcc and older gcc
...
gnulib copies this file over and needs it.
2013-02-26 14:17:12 +05:30
Siddhesh Poyarekar
53a5c423fb
Fix some build warnings
2013-02-26 10:40:19 +05:30
Andreas Jaeger
f238fd190b
Sort Versions files
2013-02-17 16:34:04 +01:00
Andreas Schwab
a445af0bc7
Fix buffer overrun in regexp matcher
2013-02-12 09:30:34 +01:00
Andreas Schwab
7e2f0d2d77
Fix handling of collating symbols in regexps
2013-02-12 09:25:34 +01:00
Roland McGrath
f1d70dad53
Remove lots of inline keywords.
2013-02-07 14:44:18 -08:00
Andreas Schwab
ab087e0aa4
Avoid busy loop in wordexp when substituted command closed its stdout
2013-01-21 10:40:04 +01:00
Joseph Myers
6a57d93130
Remove __GLIBC_HAVE_LONG_LONG.
2013-01-11 21:13:25 +00:00
H.J. Lu
740b3dbee8
Add --enable-hardcoded-path-in-tests configure option
2013-01-11 07:14:18 -08:00
H.J. Lu
4cf8f2098f
Support run tst-exec and tst-spawn directly
2013-01-10 14:14:55 -08:00
Roland McGrath
ad98e30c90
Force getconf.speclist to be generated in the others pass.
2013-01-09 16:05:32 -08:00
Joseph Myers
568035b787
Update copyright notices with scripts/update-copyrights.
2013-01-02 19:05:09 +00:00
Joseph Myers
f4cf5f2d8b
Add script to update copyright notices and reformat some to facilitate its use.
2013-01-01 16:29:10 +00:00
David S. Miller
0549fbba96
Update copyright years.
...
* catgets/gencat.c: Update copyright year.
* csu/version.c: Likewise.
* debug/catchsegv.sh: Likewise.
* debug/pcprofiledump.c: Likewise.
* debug/xtrace.sh: Likewise.
* elf/ldconfig.c: Likewise.
* elf/ldd.bash.in: Likewise.
* elf/pldd.c: Likewise.
* elf/sotruss.ksh: Likewise.
* elf/sprof.c: Likewise.
* iconv/iconv_prog.c: Likewise.
* iconv/iconvconfig.c: Likewise.
* locale/programs/locale.c: Likewise.
* locale/programs/localedef.c: Likewise.
* login/programs/pt_chown.c: Likewise.
* malloc/memusage.sh: Likewise.
* malloc/memusagestat.c: Likewise.
* malloc/mtrace.pl: Likewise.
* nscd/nscd.c: Likewise.
* nss/getent.c: Likewise.
* nss/makedb.c: Likewise.
* posix/getconf.c: Likewise.
2013-01-01 00:11:43 -08:00
Joseph Myers
877f2d8e8d
Fix _POSIX_TZNAME_MAX for older POSIX (bug 14856).
2012-11-19 23:36:20 +00:00
Joseph Myers
531f1ae0a7
Generate /usr/libexec/getconf files when cross-compiling.
2012-11-17 01:49:19 +00:00
Marcus Shawcroft
c485e4d2cc
Adding missing -fexception CFLAGS
2012-11-14 12:35:10 +00:00
Joseph Myers
8b748aed2a
Support --with-pkgversion and --with-bugurl.
2012-11-09 22:13:45 +00:00
Thomas Schwinge
b830319d49
[BZ #157 ] Remove include/stub-tag.h for good.
2012-11-04 19:59:40 +01:00
Joseph Myers
cc1290d07e
Support cross-testing.
2012-10-24 21:59:01 +00:00
Roland McGrath
6e6249d0b4
BZ#14743: Move clock_* symbols from librt to libc.
2012-10-24 14:50:46 -07:00
Joseph Myers
0708a7d1f0
Use build directory instead of /tmp in globtest.sh.
2012-10-24 11:47:16 +00:00
Joseph Myers
03ac099f6b
Define and use $(run-built-tests).
2012-10-24 00:08:46 +00:00
Joseph Myers
ebfd1bbd04
Use $(run-program-prefix) in posix/globtest.sh.
2012-10-23 23:32:14 +00:00
Jim Blandy
166bca2480
Add and use $(host-built-program-cmd).
2012-10-23 22:49:59 +00:00
Jim Blandy
6fb54a2254
Don't pass shell loops' stdin to programs run on glibc's host.
2012-10-22 17:12:17 +00:00
Joseph Myers
e40a0d2113
Use $(run-program-prefix) in more shell script tests.
2012-10-19 23:30:43 +00:00
Joseph Myers
135948bd50
Use $(built-program-cmd) in posix/tst-getconf.sh.
2012-10-19 20:00:43 +00:00
Roland McGrath
848917f9ee
Add a missing $(make-target-directory).
2012-09-28 14:48:17 -07:00
Jeff Law
115411772b
[BZ #11438 ]
...
* sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918
* addresses
to global scope.
* posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
addresses are in the same scope as 192.0.2/24.
* posix/gai.conf: Document new scope table defaults.
2012-09-28 10:15:05 -06:00
Joseph Myers
b87c4b24d9
Use size_t instead of int for internal variables in glob (bug 14621).
2012-09-25 19:38:15 +00:00
Dmitry V. Levin
57c69bef13
Set "fail on error" mode directly in testsuite shell scripts
2012-09-25 02:48:31 +00:00
Dmitry V. Levin
9a9028b1fe
Add copyright notices to testsuite shell scripts
2012-09-25 02:48:13 +00:00
Roland McGrath
59a629f121
Fix tst-rfc3484* build failures from USE_NSCD move to config.h.
2012-08-23 16:55:40 -07:00
Roland McGrath
3cc3ef96d6
BZ#13696: Add --disable-nscd configure option.
2012-08-22 13:31:12 -07:00
Roland McGrath
329bc01868
Suppress regcomp.c warnings in 32-bit builds.
2012-08-15 16:03:58 -07:00
Florian Weimer
7e66ee5142
* posix/unistd.h (setuid, setreuid, seteuid, setresuid):
...
Declare with warn_unused_result.
(setgid, setregid, setegid, setresgid): Likewise.
* sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
Likewise.
* WUR-REPORT: Remove set*id functions.
2012-08-01 18:12:58 +02:00
Roland McGrath
bea9b19322
Fix lots of bitrot for stub configurations.
2012-07-30 16:34:33 -07:00
Andreas Schwab
56d25bb888
Remove use of INTDEF/INTUSE in intl
2012-05-24 23:08:18 +02:00
Samuel Thibault
db65366043
Hurd: Update posix_opt.h
2012-05-10 15:57:27 -07:00
Marek Polacek
5ac3ea17df
Fix attributes for fortify functions.
2012-04-29 15:34:20 +02:00
Roland McGrath
d6a403f953
Fix last change.
2012-03-25 12:01:29 -07:00
Roland McGrath
ac4c54f0cc
Fix confstr use of local buffer outside its extent.
2012-03-25 11:36:35 -07:00
Paul Pluzhnikov
3ff4252677
2012-03-23 Daniel Jacobowitz <dmj@google.com>
...
Paul Pluzhnikov <ppluzhnikov@google.com>
[BZ #6528 ]
* grp/Makefile (otherlibs): Don't set it.
* inet/Makefile (otherlibs): Likewise.
* login/Makefile (otherlibs): Likewise.
* nscd/Makefile (otherlibs): Likewise.
* posix/Makefile (otherlibs): Likewise.
* pwd/Makefile (otherlibs): Likewise.
* rt/Makefile (otherlibs): Likewise.
* sunrpc/Makefile (otherlibs): Likewise.
* nss/Makefile (otherlibs): Likewise.
Add libnss_files to routines and static-only-routines.
($(objpfx)getent): Remove rule.
* resolv/Makefile: Add libnss_dns and libresolv to routines and
static-only-routines.
2012-03-23 09:47:03 -07:00
H.J. Lu
eb96ffb07d
Move stdio-common/_itoa.h to sysdeps/generic
2012-03-20 16:00:23 -07:00
Paul Eggert
c524201ab0
Replace FSF snail mail address with URL in miscellaneous files.
2012-03-10 00:45:35 +00:00
Ulrich Drepper
a4300c7a4d
Remove distribute variable from Makefiles
2012-03-07 05:17:13 -05:00
Stanislav Brabec
71b5d1c5d5
[BZ #13637 ]
...
* posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
of remain_len that may cause incomplete multi-byte character and
false match.
* posix/bug-regex33.c: New file.
* posix/Makefile (tests): Add bug-regex33.
2012-02-28 16:16:45 +01:00
Ulrich Drepper
d94a467080
Add first fixes for conformtest for POSIX2008
2012-02-26 21:32:56 -05:00
Ulrich Drepper
4efeffc1d5
Fix up POSIX testing in conformtest
2012-02-26 13:17:27 -05:00
Ulrich Drepper
3134156779
First steps to get conformtest fully working
2012-02-25 23:18:39 -05:00
Paul Eggert
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00:00
Joseph Myers
a037381ff8
Remove posix/glob directory (standalone glob build support).
2012-01-24 22:30:03 +00:00
Ulrich Drepper
a784e50247
Remove pre-ISO C support
...
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper
9f1151705e
Optimize regex a bit
2012-01-03 07:54:15 -05:00
Ulrich Drepper
81fb02b046
Update copyright year
2012-01-01 05:50:05 -05:00
Jakub Jelinek
2ba92745c3
Fix up regcomp/regexec
...
The problem is that parse_bracket_symbol is miscompiled, and it turns
out it is because of an incorrect attribute on re_string_fetch_byte_case.
Unlike re_string_peek_byte_case, this one is really not pure, it modifies memory
(increments pstr->cur_idx), and with the pure attribute GCC assumed it doesn't
and it cached the presumed value of regexp->cur_idx in a variable across the
for (;; ++i)
{
if (i >= BRACKET_NAME_BUF_SIZE)
return REG_EBRACK;
if (token->type == OP_OPEN_CHAR_CLASS)
ch = re_string_fetch_byte_case (regexp);
else
ch = re_string_fetch_byte (regexp);
if (re_string_eoi(regexp))
return REG_EBRACK;
if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
break;
elem->opr.name[i] = ch;
}
2011-12-30 17:13:56 -05:00
Andreas Schwab
f3a6cc0a56
Fix access after end of search string in regex matcher
2011-11-30 11:03:20 +01:00
Ulrich Drepper
5e2b63c658
Fix warnings in regex
2011-11-12 01:23:45 -05:00
Ulrich Drepper
fadb59f8d3
Fix tst-rfc3484 build failures
2011-11-01 10:55:29 -04:00
Ulrich Drepper
9beb233493
Mark a few more functions with __THROWNL.
2011-10-29 15:56:44 -04:00
Andreas Schwab
3871f58f06
Don't mark memory synchronisation functions as leaf
2011-10-27 17:20:14 +02:00
Ulrich Drepper
3ce1f29594
Cleanup of configuration options
...
Make several tool features mandatory and simplify the code.
2011-09-10 14:34:15 -04:00
Ulrich Drepper
92963737c4
Remove support for automatic cvs check-ins
...
CVS use for glibc is long gone.
2011-09-08 23:19:04 -04:00
John Stanley
b0727fd83f
Add missing definition of LOCPATH for bug-regex32 run
2011-09-08 22:57:23 -04:00
Ulrich Drepper
d96de9634a
Try shell in posix_spawn* only in compat mode
2011-09-05 20:24:50 -04:00
Ulrich Drepper
54b1f8b6bf
Fix last checkin
2011-09-05 20:06:01 -04:00
Ulrich Drepper
d48e586806
Fix glob.h header by removing gcc 1.x support
2011-09-05 17:31:23 -04:00
Ulrich Drepper
798be72d12
Define SEEK_DATA and SEEK_HOLE
2011-07-23 21:45:57 -04:00
Ulrich Drepper
90bb2039e9
Check for overflows in expressions
...
Some passed in values might cause overflows in expressions.
2011-07-20 22:53:58 -04:00
Ulrich Drepper
01636b2140
Handle W; without long options in getopt
2011-07-06 21:27:14 -04:00
Roland McGrath
5615eaf264
Quash some new warnings from GCC 4.6.
2011-06-10 22:44:20 -07:00
Ulrich Drepper
8887a920a4
Fix unnecessary overallocation due to incomplete character
...
When incomplete characters are found at the end of a string the
code ran amok and allocated lots of memory. Stricter limits
are now in place.
2011-05-28 17:14:30 -04:00
Ulrich Drepper
9ce9d0ec90
Remove unused variable
2011-05-28 14:43:43 -04:00
Ulrich Drepper
f2962a7195
Add a few more alloca size checks
2011-05-22 23:04:16 -04:00
Reuben Thomas
78e64fdcaa
Update documentation in regex.h
2011-05-20 09:14:03 -04:00
Aharon Robbins
a4b89fd846
Update RE_SYNTAX*_AWK constants in regex.h
2011-05-16 10:28:44 -04:00
Ulrich Drepper
bd25564e1e
Provide more helpful error message in getopt
...
If provide with an ambiguous long option we now show all the possibilities.
2011-05-15 13:35:09 -04:00
Andreas Schwab
81a5726bd2
Add syncfs syscall.
2011-04-01 13:08:28 -04:00
Ulrich Drepper
4c1423edfb
Fix typos in comments.
2011-04-01 10:39:30 -04:00
Ulrich Drepper
8126d90480
Check size of pattern in wide character representation in fnmatch.
2011-03-18 05:29:20 -04:00
Roland McGrath
a0bf67cca2
Fix some warning nits.
2011-02-04 10:53:51 -08:00
Ulrich Drepper
c0dafcf176
Update copyright year.
2011-01-17 15:08:10 -05:00
Ulrich Drepper
794c3ad3a4
FIx handling of unterminated [ expression in fnmatch.
2011-01-14 08:06:22 -05:00
Jim Meyering
2543fef229
Fix infloop on persistent failing calloc in regex.
2010-12-27 18:19:56 -05:00
Andreas Schwab
3540d66b66
Fix memory leak in fnmatch
2010-11-12 03:51:28 -05:00
Ulrich Drepper
b833d51fbb
One more regex memory leak fixed.
2010-10-12 09:00:33 -04:00
Ulrich Drepper
e9b9cbf5e9
More regex memory leak fixes and tests.
2010-10-11 22:46:44 -04:00
Ulrich Drepper
ef06edbee6
Test case for last regex problem.
2010-10-11 12:34:53 -04:00
Ulrich Drepper
a129c80d54
Fix memory leak for some invalid regular expressions.
2010-10-11 11:46:22 -04:00
Ulrich Drepper
dda51327ba
Undo feature selection for ftruncate.
2010-09-21 11:01:10 -07:00
Roland McGrath
090555538d
Rejigger header generation for default uname implementation.
2010-08-24 11:56:52 -07:00
Ulrich Drepper
f15ce4d8dc
Avoid too much stack use in fnmatch.
2010-08-09 21:09:37 -07:00
Ulrich Drepper
ac2b484c02
Correct checking loop in group_member.
2010-06-19 11:38:04 -07:00
Jakub Jelinek
f32f28695d
Fix a couple of __REDIRECT () __THROW occurrences
...
This patch fixes some cases which fail to parse with C++.
2010-06-14 08:18:26 -07:00
Andreas Schwab
d84acf388e
Fix lookup of collation sequence value during regexp matching
2010-05-05 09:59:25 -07:00
Roland McGrath
3aa6513708
Fix tst-chmod not to write into srcdir.
2010-04-09 13:59:34 -07:00
Ulrich Drepper
e326768467
Add tests for recent getopt changes.
2010-04-07 22:59:40 -07:00
Eric Blake
66b93be793
getopt mishandles optstring of "+:"
2010-04-07 17:56:20 -07:00
Eric Blake
cf0b68196c
getopt mistakenly allows '-;' as short option
2010-04-07 17:28:36 -07:00
Eric Blake
aa7f642769
Fix -W with optional parameters in getopt.
...
According to the getopt documentation, if "W;" is part of optstring, then '-W
foo' should behave like '--foo'. But if "foo" uses an optional_argument, this
is not the case, since optarg is not NULL when using -W.
2010-04-07 17:16:27 -07:00
Ulrich Drepper
247fdc8ee6
Fix printing error messages in getopt.
2010-04-04 22:48:55 -07:00
Ulrich Drepper
ed08740859
Document problem with NATs in getaddrinfo.
2010-04-03 17:56:51 -07:00
Ulrich Drepper
0a164fe03e
Whitespace fixes.
2010-03-27 06:19:03 -07:00
Ulrich Drepper
a5f3b0f830
Fix one more issue with the glob patch.
2010-03-27 05:48:17 -07:00
Ulrich Drepper
c27849fbbf
Add test for last glob bug.
2010-03-24 12:10:51 -07:00
Ulrich Drepper
8f2e399413
Fix glob with empty pattern
2010-03-24 11:58:05 -07:00
Ulrich Drepper
561470e061
Update copyright year.
2010-03-15 11:50:59 -07: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
Ulrich Drepper
aa732e2b2b
One forgotten checkin from regex changes.
2010-01-15 12:20:55 -08:00
Ulrich Drepper
2da42bc065
Fix a few more cases of ignored return values in regex.
2010-01-15 12:03:16 -08:00
Paul Eggert
21f5de55ec
regcomp.c: do not ignore memory allocation failure
2010-01-14 21:35:15 -08:00
Ulrich Drepper
6a7007d7be
Relax conditions in unistd.h.
2010-01-14 16:23:47 -08:00
Ulrich Drepper
52e2ea9a83
Relax visibility of some more declaration.
2010-01-14 13:22:06 -08:00
Ulrich Drepper
b1a6644267
Declare getpagesize in _GNU_SOURCE mode again.
2010-01-14 09:14:12 -08:00
Ulrich Drepper
25fdd5d134
Fix up sched.h for XPG7.
2010-01-12 11:48:45 -08:00
Jakub Jelinek
8500fa8325
Fix compile error with sys/wait.h.
2010-01-12 05:41:52 -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
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
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
Bruno Haible
4940d71bef
Add more warnings to exec functions.
2009-12-09 08:30:38 -08:00
Ulrich Drepper
3933378fd3
Whitespace fixes.
2009-11-17 16:24:26 -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
Mike Frsyinger
5ec794b4b5
Add missing stdio.h include.
2009-11-14 19:11:44 -08:00
Ulrich Drepper
02bf610ca8
Handle -- on getconf command line.
2009-09-09 22:15:27 -07:00
Ulrich Drepper
d76da20f7f
Handle POSIX2_LINE_MAX in getconf.
2009-09-07 00:18:06 -07:00
Ulrich Drepper
a1ed6c284a
Extend last test case.
2009-08-23 16:03:48 -07:00
Ulrich Drepper
8a7cea0199
Add test case for last fixed regex bug.
2009-08-23 15:33:40 -07:00
Ulrich Drepper
52db8039f5
Recognize ill-formed { } expressions in regcomp.
2009-08-23 15:22:00 -07:00