about summary refs log tree commit diff
path: root/posix
Commit message (Collapse)AuthorAgeFilesLines
* Fix unnecessary overallocation due to incomplete characterUlrich Drepper2011-09-034-20/+62
| | | | | | | | 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. (cherry picked from commit 8887a920a4b81a500f54893250085e0d1a52cf9a)
* Check size of pattern in wide character representation in fnmatch.Ulrich Drepper2011-05-271-1/+12
| | | | (cherry picked from commit 8126d90480fa3e0c5c5cd0d02cb1c93174b45485)
* Fix infloop on persistent failing calloc in regex.Jim Meyering2011-02-031-0/+2
| | | | (cherry picked from commit 2543fef229599e8a6e4feeea65ca2dd3f984154f)
* Fix memory leak in fnmatchAndreas Schwab2010-11-153-8/+15
| | | | (cherry picked from commit 3540d66b669af54900b2e4bfc0ab82960e84a471)
* Avoid too much stack use in fnmatch.Ulrich Drepper2010-11-152-61/+128
| | | | (cherry picked from commit f15ce4d8dc139523fe0c273580b604b2453acba6)
* One more regex memory leak fixed.Ulrich Drepper2010-11-092-0/+3
| | | | (cherry picked from commit b833d51fbbf78b38c6ff68074c22d3fe3ddd0ce3)
* More regex memory leak fixes and testcasesUlrich Drepper2010-11-094-5/+53
| | | | | (cherry picked from commit ef06edbee6463061a7f3dcbd2f56a625b41a4810) (cherry picked from commit e9b9cbf5e9bdcda6f0b50456658bac748202dd70)
* Fix memory leak for some invalid regular expressions.Ulrich Drepper2010-11-091-1/+9
| | | | (cherry picked from commit a129c80d54ec951567caa8c1b042275422d5f367)
* Fix a couple of __REDIRECT () __THROW occurrencesJakub Jelinek2010-11-011-4/+4
| | | | | This patch fixes some cases which fail to parse with C++. (cherry picked from commit f32f28695d938597ad93177dc83225dcb3c69f74)
* Fix lookup of collation sequence value during regexp matchingAndreas Schwab2010-05-121-1/+1
| | | | (cherry picked from commit d84acf388ed8b3f162dda0512139095bfc268beb)
* getopt mishandles optstring of "+:"Eric Blake2010-05-121-2/+4
| | | | (cherry picked from commit 66b93be793af309fb78d54199aed2306650079d0)
* getopt mistakenly allows '-;' as short optionEric Blake2010-05-121-1/+1
| | | | (cherry picked from commit cf0b68196c837ad591f0e7fc0f8e8a0f690b847c)
* Fix -W with optional parameters in getopt.Eric Blake2010-05-121-1/+6
| | | | | | | | 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. (cherry picked from commit aa7f642769abcfbce658aeaaffdc9fb4790cd905)
* Fix printing error messages in getopt.Ulrich Drepper2010-05-121-12/+13
| | | | (cherry picked from commit 247fdc8ee68cf49cd808becce56b2e923b4f776b)
* Document problem with NATs in getaddrinfo.Ulrich Drepper2010-05-121-0/+9
| | | | (cherry picked from commit ed0874085976531bda8a05540b0816e8bf711b71)
* Extend overflow detection in re_dfa_add_node.Ulrich Drepper2010-05-121-2/+5
| | | | (cherry picked from commit 22364644882b6cf426ed13be5b6480c3a9210eb1)
* regex: avoid internal re_realloc overflowUlrich Drepper2010-05-121-1/+8
| | | | (cherry picked from commit 54dd0ab31fe2b2168ba1a6180a0c05941fb54b3c)
* regcomp.c: do not ignore memory allocation failurePaul Eggert2010-01-181-55/+57
| | | | (cherry picked from commit 21f5de55ec4fa5eba06060c40fed87aad2aecdee)
* Whitespace fixes.Ulrich Drepper2009-11-181-2/+2
| | | | (cherry picked from commit 3933378fd3cbe49c1e0ca42844f959eb12f05f60)
* Fix ranges with multibyte characters as endpoints.Paolo Bonzini2009-11-183-2/+106
| | | | | | | | | | | | | | | | | | 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. (cherry picked from commit 815d8147a3418334ffa91e2384c6e159f0809d65)
* Add missing stdio.h include.Mike Frsyinger2009-11-181-0/+1
| | | | (cherry picked from commit 5ec794b4b537bc507010af28d2d93bb76d0972ac)
* Handle -- on getconf command line.Ulrich Drepper2009-09-091-34/+38
|
* Handle POSIX2_LINE_MAX in getconf.Ulrich Drepper2009-09-071-0/+1
|
* Extend last test case.Ulrich Drepper2009-08-231-1/+8
|
* Add test case for last fixed regex bug.Ulrich Drepper2009-08-232-0/+16
|
* Recognize ill-formed { } expressions in regcomp.Ulrich Drepper2009-08-231-1/+1
|
* Also correct _POSIX2_* constants in case older standards are selected.Ulrich Drepper2009-08-231-5/+19
|
* Define _POSIX_VERSION correctly when older POSIX versions are selected.Ulrich Drepper2009-08-231-1/+15
|
* Avoid warnings in test cases.Ulrich Drepper2009-07-233-0/+6
| | | | | | The posix/tst-rfc3484* test cases caused warnings in newer gccs because the unused but copied sin_zero part of sockaddr_in wasn't explicitly initialized.
* Don't treat bug reporting message as a format string.Andreas Schwab2009-06-161-2/+2
|
* When iterating over CPU bitmask, don't try more than CPU_SETSIZE.Ulrich Drepper2009-06-151-1/+2
|
* Implement execvpe.Ulrich Drepper2009-06-025-191/+235
| | | | | There is some existing practice in other OSes and it's trivial to implement giving the existing code. Fixes BZ #10221.
* Fix typos and pretty printing in sys/wait.h.Ulrich Drepper2009-05-161-13/+13
|
* Remove redundant .gitignore files.Andreas Schwab2009-05-161-6/+0
|
* rename each .cvsignore file to .gitignoreJim Meyering2009-05-151-0/+0
|
* * posix/bits/posix1_lim.h: Cleanup namespace a bit.Ulrich Drepper2009-04-261-4/+8
|
* * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,Ulrich Drepper2009-03-102-9/+11
| | | | | | | | | _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to 200809L instead of 200112L. (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700. * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L. 2009-03-10 Jakub Jelinek <jakub@redhat.com>
* * wctype/wctype.h: The *_l functions are in POSIX 2008.Ulrich Drepper2009-02-262-2/+10
| | | | | | | | | | | | | | | | | | | | * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy, wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs, wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l. * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from 200112L to 200809L. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise. * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and _SC_THREAD_ROBUST_PRIO_PROTECT entries. * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and _SC_THREAD_ROBUST_PRIO_PROTECT. * posix/unistd.h: fexecve is in POSIX 2008. * time/time.h: strftime_l is in POSIX 2008. * io/sys/stat.h: futimens is in POSIX 2008. * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008. * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal, strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008. * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
* * include/features.h: If no feature selection given and we selectUlrich Drepper2009-02-265-18/+51
| | | | | | | | | | | | | | | | | | | | | by default a POSIX mode, also define __USE_POSIX_IMPLICITLY. * posix/Versions: Export __posix_getopt. * posix/getopt.c (_getopt_initialize): Take additional parameter. Use it to alternatively initialize __posixly_correct. (_getopt_internal_r): Take addition parameter. Pass on to _getopt_initialize. (_getopt_internal): Take addition parameter. Pass on to _getopt_internal_r. (getopt): Pass additional zero to _getopt_internal. (__posix_getopt): New function. * posix/getopt.h: Add redirection for getopt. * posix/getopt1.c (getopt_long): Pass additional zero to _getopt_internal. (getopt_long_only): Likewise. (_getopt_long_r): Pass additional zero to _getopt_internal_r. (_getopt_long_only_r): Likewise. * posix/getopt_int.h: Adjust declarations of _getopt_internal and _getopt_internal_r.
* * stdlib/monetary.h: Uglify function parameter names. cvs/fedora-glibc-20090218T1534Jakub Jelinek2009-02-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sunrpc/rpc/pmap_clnt.h: Likewise. * sunrpc/rpc/svc.h: Likewise. * sunrpc/rpc/xdr.h: Likewise. * sunrpc/rpc/clnt.h: Likewise. * resolv/netdb.h: Likewise. * resolv/arpa/nameser.h: Likewise. * resolv/resolv.h: Likewise. * argp/argp.h: Likewise. * locale/langinfo.h: Likewise. * io/sys/stat.h: Likewise. * posix/spawn.h: Likewise. * nis/rpcsvc/nislib.h: Likewise. * malloc/obstack.h: Likewise. * sysdeps/ia64/bits/link.h: Likewise. * sysdeps/i386/bits/link.h: Likewise. * sysdeps/s390/bits/link.h: Likewise. * sysdeps/powerpc/bits/link.h: Likewise. * sysdeps/x86_64/bits/link.h: Likewise. * sysdeps/sparc/bits/link.h: Likewise. * sysdeps/sh/bits/link.h: Likewise. * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise. * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise. 2009-02-16 Jakub Jelinek <jakub@redhat.com> * stdlib/monetary.h: Uglify function parameter names. * sunrpc/rpc/pmap_clnt.h: Likewise. * sunrpc/rpc/svc.h: Likewise. * sunrpc/rpc/xdr.h: Likewise. * sunrpc/rpc/clnt.h: Likewise. * resolv/netdb.h: Likewise. * resolv/arpa/nameser.h: Likewise. * resolv/resolv.h: Likewise. * argp/argp.h: Likewise. * locale/langinfo.h: Likewise. * io/sys/stat.h: Likewise. * posix/spawn.h: Likewise. * nis/rpcsvc/nislib.h: Likewise. * malloc/obstack.h: Likewise. * sysdeps/ia64/bits/link.h: Likewise. * sysdeps/i386/bits/link.h: Likewise. * sysdeps/s390/bits/link.h: Likewise. * sysdeps/powerpc/bits/link.h: Likewise. * sysdeps/x86_64/bits/link.h: Likewise. * sysdeps/sparc/bits/link.h: Likewise. * sysdeps/sh/bits/link.h: Likewise. * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise. * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
* [BZ #7095]Ulrich Drepper2009-02-074-25/+288
| | | | | | | | | | | | | | | | | | 2009-02-06 Ulrich Drepper <drepper@redhat.com> [BZ #7095] * bits/confname.h: Add SUSv7 macros for getconf environments. * bits/environments.h: Likewise. * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise. * posix/confstr.c: Handle SUSv5 and SUSv7 environments. * posix/getconf.c: Likewise. * posix/sysconf.c: Likewise. * sysdeps/posix/sysconf.c: Likewise. * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7 environments.
* * debug/xtrace.sh: Unify translatable messages.Ulrich Drepper2009-02-061-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf/ldd.bash.in: Likewise. * elf/sprof.c: Likewise. * locale/programs/locale.c: Likewise. * malloc/memusage.sh: Likewise. * nss/getent.c: Likewise. 2009-02-06 Joseph Myers <joseph@codesourcery.com> * debug/pcprofiledump.c (print_version, argp_program_version_hook): New function. * elf/ldconfig.c (more_help): New function. (argp): Use it. * elf/sln.c (usage): New function. (main): Support --help and --version. * malloc/memusagestat.c (print_version): New function. (argp_program_version_hook): New variable. * nscd/nscd.c (more_help): New function. (argp): Use it. * posix/getconf.c (main): Send --version output to stdout. Support --help. * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS arguments. All callers changed. (print_version): New function. (parseargs): Support --help and --version. * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers changed. (print_version): New function. (main): Use getopt_long. Support --help and --version. * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and --version. 2009-02-06 Ulrich Drepper <drepper@redhat.com>
* [BZ 697] cvs/fedora-glibc-20090108T0952Ulrich Drepper2009-01-082-1/+10
| | | | | | * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0] being NULL also if there are no backreferences. * posix/rxspencer/tests: Add testcases.
* [BZ 9697]Ulrich Drepper2009-01-082-37/+73
| | | | | | * posix/bug-regex17.c: Add testcases. * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET handling.
* * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.Ulrich Drepper2009-01-083-11/+12
| | | | | | * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer, re_string_skip_chars, re_string_reconstruct): Likewise. * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
* * posix/getconf.c: Update copyright year.Ulrich Drepper2009-01-021-2/+2
| | | | | | | | | | | | | | | | | | * nss/getent.c: Likewise. * iconv/iconvconfig.c: Likewise. * iconv/iconv_prog.c: Likewise. * elf/ldconfig.c: Likewise. * catgets/gencat.c: Likewise. * csu/version.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/sprof.c (print_version): Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * nscd/nscd.c (print_version): Likewise. * debug/xtrace.sh: Likewise. * malloc/memusage.sh: Likewise. * malloc/mtrace.pl: Likewise. * debug/catchsegv.sh: Likewise.
* * posix/globtest.sh: Use mktemp to create temporary file andUlrich Drepper2008-12-061-6/+3
| | | | directory.
* * posix/regex_internal.h (build_wcs_upper_buffer):Ulrich Drepper2008-12-061-2/+3
| | | | Return type is reg_error_t.
* [BZ #6919]Ulrich Drepper2008-10-311-2/+2
| | | | | | | 2008-10-31 Ulrich Drepper <drepper@redhat.com> [BZ #6919] * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Fix length of copy operation.
* [BZ #6980]Ulrich Drepper2008-10-311-2/+2
| | | | | | | * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for negative sizees. * posix/bits/unistd.h (getgroups): Call __getgroups_chk for negative __size.