summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* don't handle out-of-mem conditions using compiled out asserts (ugh). Fromotto2011-11-071-9/+10
| | | | netbsd; ok deraadt@
* the posix regex mistake is here to stay. ok deraadttedu2010-11-212-16/+2
|
* More delimiters that need quoting inside macros, hunted down by jmc@,schwarze2010-07-151-5/+5
| | | | who asked me to commit because he is just running out of the door.
* if the first call to allocset() fails, the second might deref a NULLotto2008-02-231-1/+4
| | | | | pointer, so add a safety-net. From Gianluigi Tiesi via Torok Edwin. ok chl@ millert@
* add a proper test around allocsetchl2007-10-101-51/+33
| | | | | | | | | | | 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@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-3/+3
|
* convert to new .Dd format;jmc2007-05-312-4/+4
|
* (char)to{upper,lower}()deraadt2006-03-311-3/+3
|
* zap rcsidespie2005-08-055-37/+5
|
* s/-p1003.1-2003/-p1003.1-2004/gjmc2005-06-051-3/+3
|
* regsub(3) should not be a link to regex(3) as it is not a POSIX regexmillert2005-04-151-3/+2
| | | | routine and is not described in regex(3).
* Be correct in our man pages when talking about NUL termination (that is,cloder2005-02-251-3/+3
| | | | | termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
* Plug a mem leak. Now you can run hanoi.sed witt a lot of pegs and nototto2005-01-031-2/+4
| | | | | | run out of mem! From FreeBSD PR 75656. ok millert@ deraadt@
* remove useless comments, once used for header file generation and deleteotto2004-11-306-210/+54
| | | | parameter names from prototypes. ok millert@
* Better fix for the "unbounded recursion case", for exampleotto2004-11-291-17/+18
| | | | | | | | \(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@
* ansify and deregister; no change in obj code. ok millert@otto2004-10-175-402/+284
|
* various fixes to make this page more readable/helpful;jmc2004-09-281-136/+596
| | | | | | | 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;
* Change an assert into a loop termination condition. Fixes a coremillert2004-08-131-3/+4
| | | | dump found by jmc@. OK otto@
* When parsing what follows [, do not allocate memory that is not used,otto2004-05-081-3/+7
| | | | | | also fix a memory leak in error path. ok millert@
* Describe more accurate what word boundaries are.otto2004-05-071-2/+2
| | | | ok millert@
* Avoid unbounded recursion in some expressions involving back references.otto2004-04-021-2/+4
| | | | | | | For example: echo "foo foo bar bar bar baz" | sed 's/\([^ ]*\)\( *\1\)*/\1/g' Test case found by dhartmei@ ok millert@ dhartmei@ tedu@
* Allow compilation w/ -DREDEBUG; non-debug compilation is unaffected.millert2004-03-301-2/+6
| | | | From NetBSD.
* improve Nd; from millert@jmc2004-02-101-2/+2
|
* Unbreak handling of non-ASCII chars. Fixes PR 3594. From FreeBSDotto2003-12-071-15/+17
| | | | | | regcmp.c rev 1.13. ok deraadt@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0212-73/+25
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* section reorder;jmc2003-05-301-9/+9
|
* strcpy/strcat -> strlcpy/strlcattdeval2003-04-051-3/+2
| | | | ok tedu@, hints by deraadt@ and millert@
* - don't use the function enclosure macros.wcobb2002-10-161-32/+38
| | | | | - replace `POSIX 1003.2' instances with St -p1003.2. ok mpech@, millert@
* remaining easy snprintf conversionsderaadt2002-05-252-10/+12
|
* try to use strlcpy and snprintf more; ok variousderaadt2002-05-241-2/+2
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-163-51/+51
|
* much greater care for malloc & realloc failures; millert okderaadt2001-11-011-16/+37
|
* use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel2001-06-271-3/+2
|
* More of the same.aaron2000-08-091-2/+5
|
* Repairs, mostly removing hard sentence breaks.aaron2000-04-181-2/+3
|
* Mostly punctuation fixes.aaron2000-04-151-2/+2
|
* Suffix "i.e." and "e.g." with a comma. Just another really picky man pageaaron2000-03-142-7/+7
| | | | | commit, as we want our documentation to be as consistently formatted as possible (it's getting there :-)).
* Do not leave `(' characters dangling at the end of lines; instead, use theaaron2000-03-061-3/+3
| | | | appropriate mdoc macros to handle these cases.
* Add missing MLINKsmillert1999-11-171-2/+2
|
* - remove all trailing whitespaceaaron1999-07-092-15/+15
| | | | | | | | | | * 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...
* trash some old leftover macros and replace them with -mdoc macrosaaron1999-07-041-3/+3
|
* use .Tn instead of .Em for logical/bitwise OR + ANDaaron1999-06-051-80/+171
|
* remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonaaron1999-05-232-4/+4
| | | | is used instead; kwesterback@home.com
* grammar police: do not hyphenate compound words that act as adjectives if theaaron1999-05-121-3/+3
| | | | | | first word ends in -ly i.e., fully-qualified, newly-created, globally-visible, etc. are wrong
* make function names the correct casederaadt1999-02-271-13/+13
|
* Add thread-safety to libc, so that libc_r will build (on i386 at least).d1998-11-201-2/+2
| | | | | | | | | | | | | 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
* realloc repairderaadt1998-08-141-4/+9
|
* use Bx macro for BSD versionsmickey1998-06-151-2/+4
|
* some -Wallmillert1998-03-191-18/+18
|
* Fix warningsmillert1997-08-242-120/+120
|