Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove NULL-checks before free() and needless argument casts. | 2015-12-28 | 1 | -5/+3 | |
| | | | | ok tb@ | ||||
* | Remove NULL-checks before free() and unnecessary argument casts. | 2015-12-28 | 1 | -8/+5 | |
| | | | | ok tb@ | ||||
* | Remove NULL-checks before free() and a few related dead assignments. | 2015-12-28 | 2 | -6/+4 | |
| | | | | ok and valuable input from millert@ | ||||
* | update NAME section to include all documented functions, | 2015-11-10 | 1 | -3/+3 | |
| | | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze | ||||
* | delete old lint ARGSUSED comments | 2015-11-01 | 2 | -5/+2 | |
| | |||||
* | Avoid .Ns right after .Pf, it's pointless. | 2015-09-14 | 1 | -3/+3 | |
| | | | | In some cases, do additional cleanup in the immediate vicinity. | ||||
* | Wrap <langinfo.h> and <regexp.h> so internal calls go direct and | 2015-09-14 | 1 | -1/+2 | |
| | | | | the symbols are weak | ||||
* | Reduce usage of predefined strings in manpages. | 2015-02-28 | 1 | -6/+6 | |
| | | | | | | | | | | | Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@ | ||||
* | put back some information what the character classes actually mean; | 2014-12-09 | 1 | -2/+5 | |
| | | | | | | while here, remove the lie that regex(3) character classes would depend on the locale; ok jmc@ | ||||
* | no more ctype(3); | 2014-12-09 | 1 | -7/+4 | |
| | |||||
* | reallocarray() -- a little tricky to review | 2014-10-18 | 1 | -3/+3 | |
| | | | | ok doug millert | ||||
* | Userland reallocarray() audit. | 2014-10-11 | 1 | -2/+3 | |
| | | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@ | ||||
* | use reallocarray(NULL, a, b) instead of malloc(a, b), which gives us | 2014-10-09 | 1 | -5/+5 | |
| | | | | | proper mult int overflow detection. The existing code already handles malloc failure properly, of course. | ||||
* | zap trailing whitespace; | 2014-09-10 | 1 | -3/+3 | |
| | |||||
* | document \<word\> as being non standard | 2014-09-10 | 1 | -2/+8 | |
| | | | | | from Pedro F. Giffuni in FreeBSD pr 153257 ok millert@ tedu@ | ||||
* | add \<word\> support to regcomp. prompted by renewed interest from jsg | 2014-09-08 | 1 | -2/+28 | |
| | | | | | | because such support is reportedly common and in somewhat wide use. undocumented for now because we don't endorse this. ok jsg millert | ||||
* | reallocarray for things which are arrays. ok deraadt | 2014-05-06 | 1 | -8/+8 | |
| | |||||
* | Use consistent phrasing for bitmask flags. | 2014-01-22 | 1 | -5/+6 | |
| | | | | tweaking and ok millert@ jmc@ | ||||
* | obvious .Pa fixes; found with mandocdb(8) | 2014-01-21 | 1 | -3/+3 | |
| | |||||
* | The print() routine here can be passed at least some of the non-characters | 2013-11-28 | 1 | -6/+17 | |
| | | | | | | | | | | OUT to EOW, making its domain CHAR_MIN...CODEMAX. It makes sense to have pchar() take the same domain and output those non-characters appropriately, so the (unsigned char) cast for isprint() goes in pchar(). Constipate pchar() while we're here, and let print() pass through NUL to it, as it knows how to output it unambiguously. ok otto@ millert@ | ||||
* | unsigned char cast for ctype; ok guenther | 2013-11-26 | 1 | -2/+2 | |
| | |||||
* | more library history | 2013-07-17 | 1 | -4/+13 | |
| | | | | | facts checked by sobrado@ style tweaks and ok jmc@ | ||||
* | [[:>:]] anchors the character preceding it to end of word, not the | 2013-06-05 | 1 | -3/+3 | |
| | | | | | | character following it; From: Peter Fraser | ||||
* | Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze | 2013-06-05 | 1 | -4/+4 | |
| | |||||
* | silence some warnings by adding prototypes, casts, and headers as | 2013-04-17 | 5 | -11/+14 | |
| | | | | appropriate. in regex, stop using the struct hack for a fixed size array | ||||
* | don't handle out-of-mem conditions using compiled out asserts (ugh). From | 2011-11-07 | 1 | -9/+10 | |
| | | | | netbsd; ok deraadt@ | ||||
* | the posix regex mistake is here to stay. ok deraadt | 2010-11-21 | 2 | -16/+2 | |
| | |||||
* | More delimiters that need quoting inside macros, hunted down by jmc@, | 2010-07-15 | 1 | -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 NULL | 2008-02-23 | 1 | -1/+4 | |
| | | | | | pointer, so add a safety-net. From Gianluigi Tiesi via Torok Edwin. ok chl@ millert@ | ||||
* | add a proper test around allocset | 2007-10-10 | 1 | -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 jsg | 2007-09-02 | 1 | -3/+3 | |
| | |||||
* | convert to new .Dd format; | 2007-05-31 | 2 | -4/+4 | |
| | |||||
* | (char)to{upper,lower}() | 2006-03-31 | 1 | -3/+3 | |
| | |||||
* | zap rcsid | 2005-08-05 | 5 | -37/+5 | |
| | |||||
* | s/-p1003.1-2003/-p1003.1-2004/g | 2005-06-05 | 1 | -3/+3 | |
| | |||||
* | regsub(3) should not be a link to regex(3) as it is not a POSIX regex | 2005-04-15 | 1 | -3/+2 | |
| | | | | routine and is not described in regex(3). | ||||
* | Be correct in our man pages when talking about NUL termination (that is, | 2005-02-25 | 1 | -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 not | 2005-01-03 | 1 | -2/+4 | |
| | | | | | | run out of mem! From FreeBSD PR 75656. ok millert@ deraadt@ | ||||
* | remove useless comments, once used for header file generation and delete | 2004-11-30 | 6 | -210/+54 | |
| | | | | parameter names from prototypes. ok millert@ | ||||
* | Better fix for the "unbounded recursion case", for example | 2004-11-29 | 1 | -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@ | 2004-10-17 | 5 | -402/+284 | |
| | |||||
* | various fixes to make this page more readable/helpful; | 2004-09-28 | 1 | -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 core | 2004-08-13 | 1 | -3/+4 | |
| | | | | dump found by jmc@. OK otto@ | ||||
* | When parsing what follows [, do not allocate memory that is not used, | 2004-05-08 | 1 | -3/+7 | |
| | | | | | | also fix a memory leak in error path. ok millert@ | ||||
* | Describe more accurate what word boundaries are. | 2004-05-07 | 1 | -2/+2 | |
| | | | | ok millert@ | ||||
* | Avoid unbounded recursion in some expressions involving back references. | 2004-04-02 | 1 | -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. | 2004-03-30 | 1 | -2/+6 | |
| | | | | From NetBSD. | ||||
* | improve Nd; from millert@ | 2004-02-10 | 1 | -2/+2 | |
| | |||||
* | Unbreak handling of non-ASCII chars. Fixes PR 3594. From FreeBSD | 2003-12-07 | 1 | -15/+17 | |
| | | | | | | regcmp.c rev 1.13. ok deraadt@ | ||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 12 | -73/+25 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. |