summaryrefslogtreecommitdiffstats
path: root/bin/sh/mkinit.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove duplicated header fileskevlo2011-06-241-1/+0
|
* Fix some typos under bin/uqs2011-05-221-1/+1
| | | | Found by: codespell
* sh: Remove special code for shell scripts without magic number.jilles2011-02-041-6/+0
| | | | | | | | | | These are called "shell procedures" in the source. If execve() failed with [ENOEXEC], the shell would reinitialize itself and execute the program as a script. This requires a fair amount of code which is not frequently used (most scripts have a #! magic number). Therefore just execute a new instance of sh (_PATH_BSHELL) to run the script.
* sh: Various warning fixes (from WARNS=6 NO_WERROR=1):jilles2009-12-271-26/+26
| | | | | | | - const - initializations to silence -Wuninitialized (it was safe anyway) - remove nested extern declarations - rename "index" locals to "idx"
* be more type correct and align local ckmalloc() with its underlying ↵rse2009-06-011-2/+2
| | | | malloc(3) by using a "size_t" instead of an "int" argument
* - Provide all initialisers for a struct event.stefanf2005-08-131-5/+6
| | | | | - Include init.h in the generated init.c. - Generate prototypes and put the brace on the next line.
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* o __P has been reovedimp2002-02-021-61/+39
| | | | | | | | | | | | | | | | | | 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) { ...
* Include strerror(errno) in error messages after failed system calls.cracauer1999-11-291-1/+2
| | | | Fix a warning.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Add rcsid. Spelling.charnier1998-05-181-3/+5
|
* Use the __unused attribute where warranted.steve1997-05-191-2/+2
|
* Nuke register keyword usage and #if -> #ifdef.steve1997-04-281-12/+12
| | | | Obtained from: NetBSD
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Merge in NetBSD mods and -Wall cleaning.steve1996-12-141-20/+18
| | | | Obtained from: NetBSD, me
* Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is apeter1996-09-011-81/+37
| | | | | | | | | | | | | | 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
* Make the mkinit internal command issue an #undef for each #define, tojoerg1995-10-011-3/+15
| | | | avoid "duplicate definition" warnings.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
| | | | Reviewed by: phk
* Add end of line check so mkinit doesn't produce garbage if you have apst1994-11-061-2/+2
| | | | | | | | MKINIT line that doesn't have a comment on it (we have at least two). This mkinit program was written by someone who obviously doesn't believe in defensive programming. :-( There's a LOT of work that needs to be done on this thing. :-( :-( :-(
* Added $Id$dg1994-09-241-0/+2
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+547
OpenPOWER on IntegriCloud