summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch/crunchgen/crunched_main.c
Commit message (Collapse)AuthorAgeFilesLines
* Some amount of style(9)obrien2012-06-271-7/+12
| | | | -- function definitions, header ordering, and $FreeBSD$.
* Include <stdlib.h> for the right prototype for exit(3).yar2007-10-271-0/+1
|
* Set the program name if the crunched program is selected throughyar2007-10-271-0/+5
| | | | | | | | | | | | argv[1] to mimic crt0 behaviour. Do the job by a direct assignment to __progname in order to stay compatible with NetBSD, whose setprogname() is a deliberate no-op. The reason for this change is that some programs (usually those imported from NetBSD) use getprogname() to distinguish between their aliases. (See pkill aka pgrep for example.) This change can be useful, and applicable, to NetBSD, too.
* Apply the envp fix to the other call to main() as well.gshapiro2002-08-091-2/+2
| | | | Submitted by: Peter Edwards <pmedwards@eircom.net>
* Pass envp to crunched program's main() routines as some depend on it.gshapiro2002-08-041-2/+4
| | | | | | | | | | | | Note that crunchgen's stub .c programs already have the code to use it: "int _crunched_%s_stub(int argc, char **argv, char **envp)" "{return main(argc,argv,envp);}\" >%s_stub.c\n", Add $FreeBSD$ to allow the commit. Reviewed by: luigi MFC after: 3 days
* Use err(3).charnier1997-09-151-1/+1
|
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Added a crunched_here(char *path) function so crunched programs can find outphk1995-05-211-0/+15
| | | | who they share bed and breakfast with.
* Just talked with James - there's another, better way to go about this.jkh1994-06-241-2/+0
| | | | | | Back out my earlier change. Note that this is just for the 1.1.5R floppies; the 1.1.5A ones still have the work-around method (which works fine and doesn't hurt anything, it's just kludge!).
* This is a kludge. Unless I make a link from sh to - (which would leave a filejkh1994-06-241-0/+2
| | | | | | called `-' lying around on the users system forever) login shells will fail. Just special-case the handling of `-' for now until/unless I find a more palatable solution.
* This is the new crunch utility for making distribution floppies fromjkh1994-06-151-0/+102
James da Silva. We need to integrate this before 1.1.5 so that we can actually make the boot floppies.
OpenPOWER on IntegriCloud