summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent (follow)
Commit message (Collapse)AuthorAgeFilesLines
* satisfy -fno-common, by (1) copying all the variable decls fromderaadt2021-01-262-67/+191
| | | | | | indent_globs.h to indent.c, and (2) changing all the same decls in indent_globs.h to be extern ok mortimer
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-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.
* it's typedef, not typdef.tobiasu2016-06-061-2/+2
| | | | typo found by Piotr Stefaniak
* creat() -> open equiv; from Frederic Nowakderaadt2015-11-111-2/+2
|
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
|
* tame "stdio rpath wpath cpath", because this program reads and createsderaadt2015-10-051-1/+3
| | | | files, using stdio. It does nothing else.
* Mark diag() as printf-likeguenther2015-09-272-5/+4
| | | | ok millert@
* Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopederaadt2015-08-203-13/+13
| | | | ok krw millert
* Recognise 'F'/'f' constant suffix for single precision floating point.jsg2015-01-221-1/+7
| | | | | | | Prevents indent from inserting a space which broke the build of the development version of Mesa. ok millert@ deraadt@
* Make some $OpenBSD$ lines prettier/standardier by eliminatingkrw2015-01-192-2/+2
| | | | | | | superflous '*' after '/*' and adding blank after terminating '$'. Also eases parsing of the lines by simple awk scripts. Aesthetic approval from tedu@.
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-4/+4
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Userland reallocarray() audit.doug2014-10-111-2/+2
| | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
* Make sure the correct errno is reported by warn* or err* and notguenther2014-07-201-2/+3
| | | | | | the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)
* Use errc/warnc to simplify code.guenther2014-05-202-4/+4
| | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
* unsigned char casts for ctypederaadt2013-11-264-14/+17
| | | | ok krw
* tweak previous;jmc2013-06-241-4/+4
|
* Default to stdin/stdout if no input files arejsg2013-06-212-7/+11
| | | | | | given to indent. Based on FreeBSD svn rev 40502. ok kettenis@ millert@ lteo@
* add ut/nut flags to indent to enable/disable tabs.jsg2013-06-205-12/+57
| | | | | based on FreeBSD svn rev 131184. ok deraadt@
* remove uesless Pp;jmc2013-01-171-3/+2
|
* no more vgrind(1); ok deraadtjmc2010-10-191-7/+4
|
* More delimiters that need quoting inside macros, hunted down by jmc@,schwarze2010-07-151-3/+3
| | | | who asked me to commit because he is just running out of the door.
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-276-45/+6
| | | | | | | 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
* "input-file" is a required argument; while here, remove a few superfluoussobrado2009-05-292-6/+6
| | | | | | spaces around the brackets and synchronize the argument names. ok jmc@
* typos; ok jmc@martynas2007-11-271-3/+3
| | | | sys/dev/pci/pciide.c from naddy@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-3/+3
|
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* When checking for comment characters using negative pointer arithmeticmillert2005-05-151-3/+3
| | | | | make sure that we don't peek at memory outside the string boundaries. Fixes a core dump with mmap malloc.
* Fix realloc bug introduce in rev 1.10 and do some minor cleanup.millert2005-03-061-11/+8
| | | | OK henning@ and tdeval@
* clearer wording;jmc2005-02-041-4/+4
| | | | based on a diff from freebsd -r1.22;
* Spell precede correctly.jsg2004-11-291-3/+3
| | | | 'looks fine' millert@, krw@. ok jmc@
* ansi; khalek@linuxgamers.netderaadt2004-07-205-52/+29
|
* - some fixes from PR 1446jmc2003-11-281-62/+65
| | | | | | | | | | | - much simpler groff macros - sync SYNOPSIS with reality - document which options are broken (-bap, -ip, -ln, -sob) - remove groff macros - document defaults - document -lcn Together with pjanzen's fixes (rev. 1.10), fixes PR 1446
* better realloc. ok deraadt@ henning@tedu2003-09-262-10/+15
|
* minimal protosderaadt2003-06-262-7/+7
|
* delete junk protoderaadt2003-06-251-2/+1
|
* de-register and ansification; millert okderaadt2003-06-121-6/+4
|
* final bits of obvious UCB term 3 removalderaadt2003-06-128-53/+21
|
* de-registerderaadt2003-06-111-5/+9
|
* - section reorderjmc2003-06-101-5/+1
| | | | | | | | | - 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 Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* sprintf -> snprintf and add a couple of size checks to ensure againstkrw2003-04-251-5/+11
| | | | | | overflow. ok tdeval@ deraadt@ dhartmei@
* snprintfderaadt2003-04-011-4/+3
|
* inconsistant spelling; torh@bogus.netderaadt2002-11-291-3/+3
|
* misplaced break in the lastmickey2002-10-071-3/+3
|
* some formatting from mickey.mickey2002-10-041-8/+8
| | | | | | | From: Maxim Tsyplakov <tm@openbsd.ru> indent -i0 somefile.c dumps core in indent.c line 276 ps.ind_level = ps.i_l_follow = col / ps.ind_size;
* fprintf+exit vs errxmickey2002-10-041-6/+4
|
* better error message when we find unmatched braces. (i.e. "braces" is morevincent2002-03-161-3/+3
| | | | precise than "stuff")
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-21/+5
|
* 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-162-26/+26
|
* kill more registersmpech2001-11-193-11/+11
| | | | millert@ ok