and have it return an API-correct const char * • enhance and stylify comments • a little KNF and simplifications • #ifdef DEBUG: replace strchr and strstr with ucstrchr and ucstrstr that take and return a non-const char *, and fix the violations • new cstrchr, cstrstr (take and give const char *) • new vstrchr, vstrstr (take const or not, give boolean value) • new afreechk(x) = afreechv(x,x) = if (x1) afree(x2, ATEMP) • new ksh_isdash(str) = (str != NULL) && !strcmp(str, "-") • replace the only use of strrchr with inlined code to shrink • minor man page fixes • Minix 3 signames are autogenerated with gcc • rename strlfun.c to strlcpy.c since we don't do strlcat(3) anyway, only strlcpy(3), and shorten it • dot.mkshrc: move MKSH=… down to the export line to not disturb the PS1 visual impression ☺ • dot.mkshrc: Lstripcom(): optimise • bump version ¹) side effect from creating API-correct cstrchr, cstrstr, etc. uses goto so it must be better ☻ tested on mirbsd-current via both Makefile and Build.sh
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
$MirOS: src/bin/mksh/copyright,v 1.20 2007/03/04 03:04:23 tg Rel $
 | 
						|
 | 
						|
The MirBSD Korn Shell (mksh) is
 | 
						|
 | 
						|
Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007
 | 
						|
	Thorsten "mirabilos" Glaser <tg@mirbsd.de>
 | 
						|
 | 
						|
Provided that these terms and disclaimer and all copyright notices
 | 
						|
are retained or reproduced in an accompanying document, permission
 | 
						|
is granted to deal in this work without restriction, including un-
 | 
						|
limited rights to use, publicly perform, distribute, sell, modify,
 | 
						|
merge, give away, or sublicence.
 | 
						|
 | 
						|
Advertising materials mentioning features or use of this work must
 | 
						|
display the following acknowledgement:
 | 
						|
	This product includes material provided by Thorsten Glaser.
 | 
						|
 | 
						|
This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
 | 
						|
the utmost extent permitted by applicable law, neither express nor
 | 
						|
implied; without malicious intent or gross negligence. In no event
 | 
						|
may a licensor, author or contributor be held liable for indirect,
 | 
						|
direct, other damage, loss, or other issues arising in any way out
 | 
						|
of dealing in the work, even if advised of the possibility of such
 | 
						|
damage or existence of a defect, except proven that it results out
 | 
						|
of said person's immediate fault when using the work as intended.
 | 
						|
 | 
						|
 | 
						|
The developer of mksh recognises the efforts of the pdksh authors,
 | 
						|
who had dedicated their work into Public Domain, and all contribu-
 | 
						|
tors. See the documentation, CVS, and web site for details.
 | 
						|
 | 
						|
A number of files that are either always or conditionally included
 | 
						|
during compilation, depending on the target operating environment,
 | 
						|
are covered by different (2/3-clause BSD or similar) licences; re-
 | 
						|
fer to the individual files for details: alloc.c (always included)
 | 
						|
and setmode.c, strlcpy.c
 |