Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use proper crossreferences | 2019-05-26 | 1 | -3/+4 | |
| | |||||
* | POSIX requires that awk support \v and \a escapes. I used '\007' | 2018-01-24 | 2 | -2/+8 | |
| | | | | | for BEL since that is what lex.c uses, though we could safely use '\a' there instead. OK martijn@ | ||||
* | Convert snprintf+write into dprintf. It is simply easier to read, and | 2017-12-08 | 1 | -17/+9 | |
| | | | | | provides retry on short-write file descriptors. ok florian, previous versions seen by millert | ||||
* | rename dprintf macro to DPRINTF to avoid collision with libc posix dprintf. | 2017-10-09 | 7 | -51/+51 | |
| | | | | | | (amazing to me that the posix name was chosen though it specifically collides with code Kernighan maintained since the V7). ok millert | ||||
* | Move the assignment to cmdname up before its first use. | 2017-10-08 | 1 | -2/+2 | |
| | | | | | | From Ori Bernstein. ok deraadt | ||||
* | Mark FATAL() as __dead so clang doesn't report | 2017-09-25 | 2 | -4/+4 | |
| | | | | | | | use of uninitialized variables after calls to FATAL(). ok millert@ guenther@ | ||||
* | Fix bitwise operations error messages; from FreeBSD | 2017-09-15 | 1 | -4/+4 | |
| | | | | ok deraadt@ | ||||
* | remove misc. depend and yacc nits that no longer matter. | 2017-07-10 | 1 | -4/+2 | |
| | | | | okay millert@ | ||||
* | mark files as BUILDFIRST, or write explicit dependencies, so that most | 2017-06-16 | 1 | -1/+3 | |
| | | | | | programs will build even without a make depend first. okay tb@ millert@ | ||||
* | Fix awk crash with empty assignment, e.g. 'BEGIN {i=$1}', when | 2016-04-12 | 1 | -1/+2 | |
| | | | | malloc does not return zero-filled data. OK tb@ | ||||
* | Remove modulo bias in random number generator. | 2015-12-16 | 1 | -2/+2 | |
| | | | | | | Diff from Matthew Martin, rewieved by deraadt@ and me. ok deraadt@, millert@ | ||||
* | Until we understand the sitaution better, we should pledge() after | 2015-10-22 | 1 | -3/+4 | |
| | | | | setlocale(), not before. Not just here, but probably everywhere? | ||||
* | Add pledge support in awk and make awk -safe actually safe. | 2015-10-10 | 1 | -1/+17 | |
| | | | | | | | | | | | | | | awk -safe was introduced back in 1997 to stop awk from doing file output, execute commands or access the environment. The lexer rejected programs when it saw awk commands that would write, exec or env. Beyond that, it wasn't safe from write/exec/env during program execution. With pledge "stdio rpath", the kernel is now enforcing the awk -safe mode restrictions at runtime (other than env). Based on a diff by deraadt@ ok deraadt@ beck@ | ||||
* | Avoid .Ns right after .Pf, it's pointless. | 2015-09-14 | 1 | -5/+5 | |
| | | | | In some cases, do additional cleanup in the immediate vicinity. | ||||
* | When rand() was made fully random, the return value of srand() was | 2015-09-05 | 1 | -4/+8 | |
| | | | | | | | | | also affected incorrectly. Noticed by Stephane Chazelas. This reverts the return value of srand() to the old (not very useful) behaviour. This also allows toggling rand() to strong/weak based upon whether srand() is called without/with an argument. Long discussion and work with millert ok beck | ||||
* | Don't display empty error context. | 2015-03-27 | 1 | -2/+3 | |
| | | | | | | Context extraction didn't handle this case and showed uninitialized memory. ok tobias, miod | ||||
* | fix placement of opening parentheses, and drop some .Xo while here | 2015-01-16 | 1 | -15/+7 | |
| | |||||
* | Use reallocarray() where suitable | 2014-12-19 | 2 | -16/+22 | |
| | | | | ok millert doug | ||||
* | .Xr cut which may be what you're really looking for. | 2014-12-15 | 1 | -2/+3 | |
| | |||||
* | Use srandom_deterministic() if a seed is supplied, thereby switching the | 2014-12-08 | 1 | -11/+4 | |
| | | | | | | subsystem out of strong random mode. No effective change from what we've been doing for a while. Result is it becomes 1 line of code. ok millert | ||||
* | Fix %c for floating values that become 0 when coerced to int. | 2014-12-01 | 1 | -2/+2 | |
| | | | | From Jeremy Devenport | ||||
* | Userland reallocarray() audit. | 2014-10-11 | 1 | -2/+2 | |
| | | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@ | ||||
* | as suggested by schwarze, reshuffle STANDARDS text detailing posix features | 2014-03-17 | 1 | -6/+6 | |
| | | | | | | | we don;t support next to the posix compat blurb, in order to make things a bit clearer; this also makes the text more concise; ok millert schwarze sobrado | ||||
* | use a more clearly named variable for the srandom case in the code | 2013-09-29 | 1 | -7/+7 | |
| | | | | ok millert | ||||
* | Remove wrong workaround for the 88100 `awk bug' - it turns out compiling | 2013-08-18 | 1 | -5/+1 | |
| | | | | | with -O2 changes the alignment of code and data, which caused the awk binary to be more prone to trigger the DAE bug which just got fixed. | ||||
* | Build awk with -O1 on m88k for now; when built -O2, it would sporadically | 2013-07-28 | 1 | -1/+5 | |
| | | | | | exit early blaming a spurious '}' in the first few lines of input, but only on 88100-based systems. | ||||
* | remove makefile hacks that are no longer needed with t1 t2: working properly | 2012-12-21 | 1 | -6/+3 | |
| | | | | okay krw@ | ||||
* | Update awk to Aug 10, 2011 version; naddy@ reports no ports problems | 2011-09-28 | 10 | -70/+167 | |
| | | | | from the update. | ||||
* | no need to escape `|'; as discussed with schwartze | 2011-05-02 | 1 | -3/+3 | |
| | |||||
* | Stash the old seed when srand() is called and use it as the return | 2011-04-20 | 1 | -3/+5 | |
| | | | | | value as per POSIX and the fine manual. Fix sent upstream to bwk. OK deraadt@ | ||||
* | some small tweaks from Michael W. Bombardieri; | 2011-03-22 | 1 | -5/+5 | |
| | | | | ok sobrado | ||||
* | Between groff-1.15 and groff-1.20.1, the .Ns macro was changed to no | 2011-02-07 | 1 | -5/+3 | |
| | | | | | | | longer suppress spacing when used at the beginning of an input line, and mandoc now follows the same behaviour as new groff. Thus, sweep the tree and remove useless .Ns. Most places found by jmc@; ok jmc@ kristaps@. | ||||
* | more EXIT STATUS tweaks; from Daniel Dickman | 2010-10-01 | 1 | -2/+8 | |
| | |||||
* | get rid of the nawk hard link | 2010-08-25 | 2 | -7/+3 | |
| | | | | ok millert guenther | ||||
* | convert some of the weirder displays into lists, to avoid mangling; | 2010-08-08 | 1 | -39/+47 | |
| | |||||
* | Update awk to May 23, 2010 version. OK miod@ | 2010-06-13 | 7 | -16/+48 | |
| | |||||
* | remove references to docs we no longer install; | 2010-01-10 | 1 | -5/+2 | |
| | |||||
* | Stop installing many of the incredibly dated and un-authoritative share/doc | 2010-01-04 | 1 | -6/+1 | |
| | | | | | | | files. If any information found in these documents is worthwhile and you miss it, please make the time to work it into the manual pages (which people actually do read). ok guenther | ||||
* | bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few | 2009-02-08 | 1 | -3/+3 | |
| | | | | updates to follow; | ||||
* | Update awk to version 20071023; OK deraadt@ | 2008-10-06 | 9 | -88/+161 | |
| | |||||
* | +awk does not support {n,m} pattern matching | 2008-09-04 | 1 | -2/+5 | |
| | | | | | | noted by Vadim Zhukov, though slightly different (doc) fix committed; ok millert | ||||
* | repair .Pq use; Alan R. S. Bueno | 2008-07-25 | 1 | -3/+3 | |
| | |||||
* | tweak previous, and arrange the text to read a little better; | 2008-06-04 | 1 | -19/+20 | |
| | |||||
* | Extend awk with bitwise operations. This is an extension to the awk | 2008-06-04 | 4 | -6/+91 | |
| | | | | | | | spec and documented as such, but comes in handy from time to time. The prototypes make it compatible with a similar GNU awk extension. ok millert@, enthusiasm from deraadt@ | ||||
* | Use arc4random_buf() when requesting more than a single word of output | 2008-04-13 | 1 | -2/+2 | |
| | | | | | | | Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@ | ||||
* | fail nicely instead of crashing for format strings containing '*', | 2008-02-27 | 1 | -1/+3 | |
| | | | | | without a matching argument following from Jukka Salmi | ||||
* | fix yacc/lex parallel file generation | 2007-11-24 | 1 | -3/+6 | |
| | |||||
* | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | 2007-09-02 | 2 | -5/+5 | |
| | |||||
* | printf(1) is the correct reference here, not printf(3); | 2007-06-27 | 1 | -5/+4 | |
| | | | | from otto; ok millert | ||||
* | convert to new .Dd format; | 2007-05-31 | 1 | -2/+2 | |
| |