Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | When system calls indicate an error they return -1, not some arbitrary | 2019-06-28 | 1 | -3/+3 | |
| | | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | ||||
* | mkstemp() returns -1 on failure | 2019-06-28 | 1 | -1/+1 | |
| | |||||
* | Some asprintf() calls were checked < 0, rather than the precise == -1. | 2019-06-27 | 1 | -1/+1 | |
| | | | | ok millert nicm tb, etc | ||||
* | Pa -> Lk; ok jmc@ | 2017-10-23 | 1 | -3/+3 | |
| | |||||
* | Replace snprintf(NULL, malloc, snprintf.... with the much better asprintf. | 2017-04-02 | 1 | -12/+4 | |
| | | | | ok millert | ||||
* | Replace two malloc casts that deraadt@ and I removed over the past year | 2016-03-15 | 1 | -2/+2 | |
| | | | | | | | | | | | or two. Upstream wants to keep them for C++ support, and it isn't worth maintaining a larger diff. No binary change. Upstream commit: https://github.com/fanf2/unifdef/commit/87dfd91 I'll send more merging diffs to tech@ soon. | ||||
* | Merge a lexer fix from upstream: | 2015-12-10 | 1 | -2/+6 | |
| | | | | | | | | https://github.com/fanf2/unifdef/commit/90ca2eee76db715943ec4b7ca2892d155ca64075 Fixes the supplied test case, as expected. ok sthen@ | ||||
* | Remove extraneous punctuation in DIAGNOSTICS. Reduces diff with | 2015-12-10 | 1 | -6/+6 | |
| | | | | | | upstream. ok sthen@ | ||||
* | Swap two DIAGNOSTICS entries to alphabetize. Reduces diff with upstream. | 2015-12-10 | 1 | -5/+5 | |
| | |||||
* | Capitalize a few error messages to reduce diff with upstream. | 2015-12-10 | 1 | -6/+6 | |
| | |||||
* | Fix previous by using the right argument name. | 2015-12-05 | 1 | -3/+3 | |
| | |||||
* | Document that the -M option doesn't save a backup when passed ''. Also | 2015-12-04 | 2 | -4/+7 | |
| | | | | | | clean up the corresponding logic to avoid a useless rename(2) call. ok deraadt sthen | ||||
* | Change all tame callers to namechange to pledge(2). | 2015-10-09 | 1 | -2/+2 | |
| | |||||
* | tame "stdio rpath wpath cpath fattr", because this creates new files, | 2015-10-05 | 1 | -0/+3 | |
| | | | | | fchmod's them, and possibly renames them. ok doug | ||||
* | refactor, so we don't a C function in a .h file, yuck! | 2015-10-05 | 3 | -57/+27 | |
| | |||||
* | you can't edit stdin in place. check for this before the hack that | 2015-10-03 | 1 | -1/+3 | |
| | | | | | increments argc when run with no arguments, causing a read past the end of argv. | ||||
* | don't use literal brackets to indicate optional syntax elements, | 2015-09-12 | 1 | -4/+4 | |
| | | | | use the .Op macro (or in this case, .Oo/.Oc) | ||||
* | Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope | 2015-08-20 | 1 | -1/+1 | |
| | | | | ok krw millert | ||||
* | Convert many atoi() calls to strtonum(), adding range checks and failure | 2015-04-18 | 1 | -4/+5 | |
| | | | | | handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert | ||||
* | Mark up email addresses semantically with Mt. | 2015-02-17 | 1 | -4/+4 | |
| | | | | ok schwarze@ | ||||
* | Convert a strcpy() call to strlcpy(); ok millert@ sthen@ | 2015-02-17 | 1 | -2/+2 | |
| | |||||
* | more tweaking; ok sthen | 2014-05-03 | 1 | -6/+6 | |
| | |||||
* | tidy up SYNOPSIS, usage() and the options list; ok sthen | 2014-04-30 | 2 | -94/+91 | |
| | |||||
* | Re-add rcsid, and switch back to our previous descriptions for -iDsym[=value] | 2014-04-24 | 1 | -10/+32 | |
| | | | | and -iUsym which jmc and I find a bit easier to understand. ok jmc | ||||
* | Since we've been making heavy use of unifdef recently: update it to the | 2014-04-18 | 5 | -685/+1292 | |
| | | | | | | | | | | | | recent 2.10 release. "This code was derived from software contributed to Berkeley by Dave Yost. It was rewritten to support ANSI C by Tony Finch. The original version of unifdef carried the 4-clause BSD copyright licence. None of its code remains in this version (though some of the names remain) so it now carries a more liberal licence." ok deraadt@ | ||||
* | remove uesless Pp; | 2013-01-17 | 1 | -3/+2 | |
| | |||||
* | In preparation for getline and getdelim additions to libc, rename getline() | 2012-03-04 | 1 | -4/+4 | |
| | | | | | occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech. | ||||
* | add an EXIT STATUS section for /usr/bin; | 2010-09-03 | 1 | -7/+7 | |
| | |||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -12/+1 | |
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | ||||
* | kill "is is"; from Charles Longeau | 2007-06-25 | 1 | -3/+3 | |
| | |||||
* | convert to new .Dd format; | 2007-05-31 | 1 | -2/+2 | |
| | |||||
* | tidy up synopsis and usage(); sort options; | 2007-04-02 | 2 | -56/+72 | |
| | | | | from Igor Sobrado, tweaked by myself | ||||
* | remove -Werror from userland builds, to give us a chance to | 2003-11-20 | 1 | -2/+2 | |
| | | | | | use more verbose warning options if desired. ok millert@, henning@, david@ | ||||
* | macros with too many args; | 2003-10-23 | 1 | -3/+6 | |
| | |||||
* | sync with freebsd: | 2003-06-30 | 1 | -7/+13 | |
| | | | | | | | - avoid a coredump in 'line mode' and correct a comment - stub for -I option (our manpage already mentions this) - add author's copyright (tony finch) millert@ ok | ||||
* | - section reorder | 2003-06-10 | 1 | -9/+9 | |
| | | | | | | | | | - COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@ | ||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-03 | 2 | -13/+5 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | more sync from freebsd; tedu@Stanford.EDU | 2003-01-22 | 2 | -72/+206 | |
| | |||||
* | merge; by tedu@Stanford.EDU | 2003-01-18 | 1 | -586/+679 | |
| | |||||
* | nuke unifdefall | 2002-12-02 | 2 | -40/+3 | |
| | |||||
* | freebsd diffs; merged by tedu@Stanford.EDU | 2002-12-02 | 3 | -492/+920 | |
| | |||||
* | remove the BSS crud | 2002-10-04 | 1 | -21/+20 | |
| | |||||
* | In getlin(): match and handle EOF before checking isprint() | 2002-05-10 | 1 | -5/+4 | |
| | | | | millert ok. | ||||
* | 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. | 2002-02-16 | 1 | -12/+12 | |
| | |||||
* | Various cleanups and standardizations. | 2000-03-11 | 1 | -22/+23 | |
| | |||||
* | Some section re-ordering. | 2000-03-06 | 1 | -5/+5 | |
| | |||||
* | Remove some redundant .Pp. | 1999-10-17 | 1 | -2/+1 | |
| | |||||
* | More consistent introduction to options. | 1999-10-17 | 1 | -2/+2 | |
| | |||||
* | - remove trailing white space | 1999-06-05 | 1 | -2/+2 | |
| | | | | | | | - remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/ | ||||
* | clean; adding // comment support | 1998-11-16 | 1 | -474/+501 | |
| |