2008-02-25 03:52:20 +01:00
|
|
|
$MirOS: src/bin/mksh/copyright,v 1.22 2008/02/25 02:52:20 tg Rel $
|
2006-12-11 22:24:12 +01:00
|
|
|
|
|
|
|
The MirBSD Korn Shell (mksh) is
|
|
|
|
|
2008-02-25 03:52:20 +01:00
|
|
|
Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
• remove strcasestr.c, use home-grown implementation¹, call it stricmp,
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
2007-03-04 04:04:28 +01:00
|
|
|
Thorsten "mirabilos" Glaser <tg@mirbsd.de>
|
2006-12-11 22:24:12 +01:00
|
|
|
|
|
|
|
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-
|
2007-01-17 02:24:29 +01:00
|
|
|
tors. See the documentation, CVS, and web site for details.
|
2006-12-11 22:24:12 +01:00
|
|
|
|
|
|
|
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)
|
2007-07-26 15:35:58 +02:00
|
|
|
and setmode.c, strlcpy.c (included when required)
|