aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/mknodes.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r292517: sh/mknodes: Close files and check for errors when writing.Jilles Tjoelker2015-12-271-5/+15
| | | | | | | | | This is a build tool only and does not affect run time. PR: 204951 Notes: svn path=/stable/10/; revision=292786
* sh: Fix crash with empty functions (f() { }) introduced in r196483Jilles Tjoelker2009-08-281-4/+2
| | | | | | | | | | | | | | | Empty pairs of braces are represented by a NULL node pointer, just like empty lines at the top level. Support for empty pairs of braces may be removed later. They make the code more complex, have inconsistent behaviour (may or may not change $?), are not specified by POSIX and are not allowed by some other shells like bash, dash and ksh93. Reported by: kan Notes: svn path=/head/; revision=196634
* sh: Fix crash when undefining or redefining a currently executing function.Jilles Tjoelker2009-08-231-2/+7
| | | | | | | | | | | Add a reference count to function definitions. Memory may leak if multiple SIGINTs arrive in interactive mode, this will be fixed later by changing SIGINT handling. PR: bin/137640 Notes: svn path=/head/; revision=196483
* Mark functions as __dead2 in order to help the LLVM static checkerColin Percival2008-08-041-1/+1
| | | | | | | | | | understand which code paths aren't possible. This commit eliminates 117 false positive bug reports of the form "allocate memory; error out if pointer is NULL; use pointer". Notes: svn path=/head/; revision=181269
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-061-4/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* Quiet warnings about copyright[].David E. O'Brien2003-05-011-2/+2
| | | | Notes: svn path=/head/; revision=114433
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99110
* o __P has been reovedWarner Losh2002-02-021-53/+22
| | | | | | | | | | | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o Change int foo() { ... to int foo(void) { ... Notes: svn path=/head/; revision=90111
* Initialize infp at main()Peter Wemm2001-08-131-1/+2
| | | | Notes: svn path=/head/; revision=81602
* -Wnon-const-format sweep: make format strings const char *'s, addKris Kennaway2001-04-171-2/+2
| | | | | | | | | __printflike()/__printf0like() to function prototypes, as appropriate. Reviewed by: bde, -audit Notes: svn path=/head/; revision=75577
* Include strerror(errno) in error messages after failed system calls.Martin Cracauer1999-11-291-3/+4
| | | | | | | Fix a warning. Notes: svn path=/head/; revision=53891
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50471
* Add rcsid. Spelling.Philippe Charnier1998-05-181-3/+5
| | | | Notes: svn path=/head/; revision=36150
* Nuke register keyword usage, #if -> #ifdef, and avoid void *Steve Price1997-04-281-8/+8
| | | | | | | | | arithmetic. Obtained from: NetBSD Notes: svn path=/head/; revision=25226
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Merge in NetBSD mods and -Wall cleaning.Steve Price1996-12-141-3/+3
| | | | | | | Obtained from: NetBSD, me Notes: svn path=/head/; revision=20425
* Misc cleanups and fixes from Bruce:Peter Wemm1996-09-031-2/+2
| | | | | | | | | | | | | - don't put \n on error() calls, error adds it already. - don't prepend "ulimit" on error() calls in miscbltin.c. - getopt typo on ulimit -p -> -u conversion - get/setrlimit() calls were not being error checked ulimit formatting cleanup from me, use same wording as bash on Bruce's suggestion. Add ulimit arg to output on Joerg's suggestion. Notes: svn path=/head/; revision=18016
* Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is aPeter Wemm1996-09-011-49/+93
| | | | | | | | | | | | | | | | | merge of parallel duplicate work by Steve Price and myself. :-] There are some changes to the build that are my fault... mkinit.c was trying (poorly) to duplicate some of the work that make(1) is designed to do. The Makefile hackery is my fault too, the depend list was incomplete because of some explicit OBJS+= entries, so mkdep wasn't picking up their source file #includes. This closes a pile of /bin/sh PR's, but not all of them.. Submitted by: Steve Price <steve@bonsai.hiwaay.net>, peter Notes: svn path=/head/; revision=17987
* Added $Id$David Greenman1994-09-241-0/+2
| | | | Notes: svn path=/head/; revision=3044
* BSD 4.4 Lite bin SourcesRodney W. Grimes1994-05-261-0/+431
Notes: svn path=/head/; revision=1556