summaryrefslogtreecommitdiff
path: root/lib/libc/regex
AgeCommit message (Collapse)Author
2010-07-15More delimiters that need quoting inside macros, hunted down by jmc@,Ingo Schwarze
who asked me to commit because he is just running out of the door.
2008-02-23if the first call to allocset() fails, the second might deref a NULLOtto Moerbeek
pointer, so add a safety-net. From Gianluigi Tiesi via Torok Edwin. ok chl@ millert@
2007-10-10add a proper test around allocsetCharles Longeau
use a simpler way to allocated memory in allocset, mostly done by replacing malloc/realloc dance, by only one realloc add comments about variables that are not used uninitialized, even if gcc told the contrary another malloc/realloc -> realloc change Work initially started by otto@, and then I joined him ok otto@ ray@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2006-03-31(char)to{upper,lower}()Theo de Raadt
2005-08-05zap rcsidMarc Espie
2005-06-05s/-p1003.1-2003/-p1003.1-2004/gJason McIntyre
2005-04-15regsub(3) should not be a link to regex(3) as it is not a POSIX regexTodd C. Miller
routine and is not described in regex(3).
2005-02-25Be correct in our man pages when talking about NUL termination (that is,Chad Loder
termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
2005-01-03Plug a mem leak. Now you can run hanoi.sed witt a lot of pegs and notOtto Moerbeek
run out of mem! From FreeBSD PR 75656. ok millert@ deraadt@
2004-11-30remove useless comments, once used for header file generation and deleteOtto Moerbeek
parameter names from prototypes. ok millert@
2004-11-29Better fix for the "unbounded recursion case", for exampleOtto Moerbeek
\(b*\)\(a*\1\)*, more cases in regress/lib/libc/regexp/test. Only stop evaluation of a back reference if the match lenght is zero and the recursion level is too deep. With help from jaredy@ Problem case found by Andrew Brown in NetBSD PR 28126. ok deraadt@ millert@
2004-10-17ansify and deregister; no change in obj code. ok millert@Otto Moerbeek
2004-09-28various fixes to make this page more readable/helpful;Jason McIntyre
also split into 2 sections (ere and bre) and add a list of the expressions supported (nicked/adapted from ed(1)); includes fixes/feedback from otto and jared;
2004-08-13Change an assert into a loop termination condition. Fixes a coreTodd C. Miller
dump found by jmc@. OK otto@
2004-05-08When parsing what follows [, do not allocate memory that is not used,Otto Moerbeek
also fix a memory leak in error path. ok millert@
2004-05-07Describe more accurate what word boundaries are.Otto Moerbeek
ok millert@
2004-04-02Avoid unbounded recursion in some expressions involving back references.Otto Moerbeek
For example: echo "foo foo bar bar bar baz" | sed 's/\([^ ]*\)\( *\1\)*/\1/g' Test case found by dhartmei@ ok millert@ dhartmei@ tedu@
2004-03-30Allow compilation w/ -DREDEBUG; non-debug compilation is unaffected.Todd C. Miller
From NetBSD.
2004-02-10improve Nd; from millert@Jason McIntyre
2003-12-07Unbreak handling of non-ASCII chars. Fixes PR 3594. From FreeBSDOtto Moerbeek
regcmp.c rev 1.13. ok deraadt@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-30section reorder;Jason McIntyre
2003-04-05strcpy/strcat -> strlcpy/strlcatThierry Deval
ok tedu@, hints by deraadt@ and millert@
2002-10-16- don't use the function enclosure macros.Wilbern Cobb
- replace `POSIX 1003.2' instances with St -p1003.2. ok mpech@, millert@
2002-05-25remaining easy snprintf conversionsTheo de Raadt
2002-05-24try to use strlcpy and snprintf more; ok variousTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-01much greater care for malloc & realloc failures; millert okTheo de Raadt
2001-06-27use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel
2000-08-09More of the same.Aaron Campbell
2000-04-18Repairs, mostly removing hard sentence breaks.Aaron Campbell
2000-04-15Mostly punctuation fixes.Aaron Campbell
2000-03-14Suffix "i.e." and "e.g." with a comma. Just another really picky man pageAaron Campbell
commit, as we want our documentation to be as consistently formatted as possible (it's getting there :-)).
2000-03-06Do not leave `(' characters dangling at the end of lines; instead, use theAaron Campbell
appropriate mdoc macros to handle these cases.
1999-11-17Add missing MLINKsTodd C. Miller
1999-07-09- remove all trailing whitespaceAaron Campbell
* except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
1999-07-04trash some old leftover macros and replace them with -mdoc macrosAaron Campbell
1999-06-05use .Tn instead of .Em for logical/bitwise OR + ANDAaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-05-12grammar police: do not hyphenate compound words that act as adjectives if theAaron Campbell
first word ends in -ly i.e., fully-qualified, newly-created, globally-visible, etc. are wrong
1999-02-27make function names the correct caseTheo de Raadt
1998-11-20Add thread-safety to libc, so that libc_r will build (on i386 at least).David Leonard
All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO
1998-08-14realloc repairTheo de Raadt
1998-06-15use Bx macro for BSD versionsMichael Shalayeff
1998-03-19some -WallTodd C. Miller
1997-08-24Fix warningsTodd C. Miller
1997-07-29convert to mdoc formatflipk
1997-07-17formattingMichael Shalayeff