diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-06-28 07:46:40 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-06-28 07:46:40 +0000 |
commit | df82f611c8b1113938a652d630b89e4c8459fd14 (patch) | |
tree | 9d4e01a9a8ec79e190fb13efd0b6d41a6c240c5d | |
parent | cb57d551a207198fabdb8c46f96e6a0932143923 (diff) | |
download | busybox-w32-df82f611c8b1113938a652d630b89e4c8459fd14.tar.gz busybox-w32-df82f611c8b1113938a652d630b89e4c8459fd14.tar.bz2 busybox-w32-df82f611c8b1113938a652d630b89e4c8459fd14.zip |
Scrub up the licensing block
-Erik
-rw-r--r-- | ash.c | 897 | ||||
-rw-r--r-- | shell/ash.c | 897 |
2 files changed, 130 insertions, 1664 deletions
@@ -1,43 +1,43 @@ | |||
1 | /*- | 1 | /* vi: set sw=4 ts=4: */ |
2 | * Copyright (c) 1993 | 2 | /* |
3 | * ash shell port for busybox | ||
4 | * | ||
5 | * Copyright (c) 1989, 1991, 1993, 1994 | ||
3 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. |
4 | * | 7 | * |
5 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by |
6 | * Kenneth Almquist. | 9 | * Kenneth Almquist. |
7 | * | 10 | * |
8 | * Redistribution and use in source and binary forms, with or without | 11 | * This program is free software; you can redistribute it and/or modify |
9 | * modification, are permitted provided that the following conditions | 12 | * it under the terms of the GNU General Public License as published by |
10 | * are met: | 13 | * the Free Software Foundation; either version 2 of the License, or |
11 | * 1. Redistributions of source code must retain the above copyright | 14 | * (at your option) any later version. |
12 | * notice, this list of conditions and the following disclaimer. | ||
13 | * 2. Redistributions in binary form must reproduce the above copyright | ||
14 | * notice, this list of conditions and the following disclaimer in the | ||
15 | * documentation and/or other materials provided with the distribution. | ||
16 | * 3. All advertising materials mentioning features or use of this software | ||
17 | * must display the following acknowledgement: | ||
18 | * This product includes software developed by the University of | ||
19 | * California, Berkeley and its contributors. | ||
20 | * 4. Neither the name of the University nor the names of its contributors | ||
21 | * may be used to endorse or promote products derived from this software | ||
22 | * without specific prior written permission. | ||
23 | * | 15 | * |
24 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | 16 | * This program is distributed in the hope that it will be useful, |
25 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | 19 | * General Public License for more details. |
28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 20 | * |
29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 21 | * You should have received a copy of the GNU General Public License |
30 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 22 | * along with this program; if not, write to the Free Software |
31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
32 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 24 | * |
33 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 25 | * This version of ash is adapted from the source in Debian's ash 0.3.8-5 |
34 | * SUCH DAMAGE. | 26 | * package. |
27 | * | ||
28 | * Modified by Erik Andersen <andersee@debian.org> to be used in | ||
29 | * busybox, based in part on prior work done by Vladimir Oleynik | ||
30 | * <vodz@usa.net> | ||
31 | * | ||
32 | * Original copyright notice is retained at the end of this file. | ||
35 | */ | 33 | */ |
36 | 34 | ||
37 | #undef _GNU_SOURCE | 35 | #undef _GNU_SOURCE |
38 | #undef ASH_TYPE | 36 | #undef ASH_TYPE |
39 | #undef ASH_GETOPTS | 37 | #undef ASH_GETOPTS |
40 | #undef ASH_MATH_SUPPORT | 38 | #undef ASH_MATH_SUPPORT |
39 | #undef FNMATCH_BROKEN | ||
40 | #undef GLOB_BROKEN | ||
41 | 41 | ||
42 | #include <assert.h> | 42 | #include <assert.h> |
43 | #include <ctype.h> | 43 | #include <ctype.h> |
@@ -422,42 +422,6 @@ static const struct builtincmd builtincmds[] = { | |||
422 | 422 | ||
423 | /* $NetBSD: cd.c,v 1.27 1999/07/09 03:05:49 christos Exp $ */ | 423 | /* $NetBSD: cd.c,v 1.27 1999/07/09 03:05:49 christos Exp $ */ |
424 | 424 | ||
425 | /*- | ||
426 | * Copyright (c) 1991, 1993 | ||
427 | * The Regents of the University of California. All rights reserved. | ||
428 | * | ||
429 | * This code is derived from software contributed to Berkeley by | ||
430 | * Kenneth Almquist. | ||
431 | * | ||
432 | * Redistribution and use in source and binary forms, with or without | ||
433 | * modification, are permitted provided that the following conditions | ||
434 | * are met: | ||
435 | * 1. Redistributions of source code must retain the above copyright | ||
436 | * notice, this list of conditions and the following disclaimer. | ||
437 | * 2. Redistributions in binary form must reproduce the above copyright | ||
438 | * notice, this list of conditions and the following disclaimer in the | ||
439 | * documentation and/or other materials provided with the distribution. | ||
440 | * 3. All advertising materials mentioning features or use of this software | ||
441 | * must display the following acknowledgement: | ||
442 | * This product includes software developed by the University of | ||
443 | * California, Berkeley and its contributors. | ||
444 | * 4. Neither the name of the University nor the names of its contributors | ||
445 | * may be used to endorse or promote products derived from this software | ||
446 | * without specific prior written permission. | ||
447 | * | ||
448 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
449 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
450 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
451 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
452 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
453 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
454 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
455 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
456 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
457 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
458 | * SUCH DAMAGE. | ||
459 | */ | ||
460 | |||
461 | static int docd __P((char *, int)); | 425 | static int docd __P((char *, int)); |
462 | static char *getcomponent __P((void)); | 426 | static char *getcomponent __P((void)); |
463 | static void updatepwd __P((char *)); | 427 | static void updatepwd __P((char *)); |
@@ -780,42 +744,6 @@ setpwd(const char *val, int setold) | |||
780 | 744 | ||
781 | /* $NetBSD: error.c,v 1.23 2000/07/03 03:26:19 matt Exp $ */ | 745 | /* $NetBSD: error.c,v 1.23 2000/07/03 03:26:19 matt Exp $ */ |
782 | 746 | ||
783 | /*- | ||
784 | * Copyright (c) 1991, 1993 | ||
785 | * The Regents of the University of California. All rights reserved. | ||
786 | * | ||
787 | * This code is derived from software contributed to Berkeley by | ||
788 | * Kenneth Almquist. | ||
789 | * | ||
790 | * Redistribution and use in source and binary forms, with or without | ||
791 | * modification, are permitted provided that the following conditions | ||
792 | * are met: | ||
793 | * 1. Redistributions of source code must retain the above copyright | ||
794 | * notice, this list of conditions and the following disclaimer. | ||
795 | * 2. Redistributions in binary form must reproduce the above copyright | ||
796 | * notice, this list of conditions and the following disclaimer in the | ||
797 | * documentation and/or other materials provided with the distribution. | ||
798 | * 3. All advertising materials mentioning features or use of this software | ||
799 | * must display the following acknowledgement: | ||
800 | * This product includes software developed by the University of | ||
801 | * California, Berkeley and its contributors. | ||
802 | * 4. Neither the name of the University nor the names of its contributors | ||
803 | * may be used to endorse or promote products derived from this software | ||
804 | * without specific prior written permission. | ||
805 | * | ||
806 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
807 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
808 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
809 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
810 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
811 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
812 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
813 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
814 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
815 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
816 | * SUCH DAMAGE. | ||
817 | */ | ||
818 | |||
819 | /* | 747 | /* |
820 | * Errors and exceptions. | 748 | * Errors and exceptions. |
821 | */ | 749 | */ |
@@ -1074,42 +1002,6 @@ __inton() { | |||
1074 | #endif | 1002 | #endif |
1075 | /* $NetBSD: eval.c,v 1.57 2001/02/04 19:52:06 christos Exp $ */ | 1003 | /* $NetBSD: eval.c,v 1.57 2001/02/04 19:52:06 christos Exp $ */ |
1076 | 1004 | ||
1077 | /*- | ||
1078 | * Copyright (c) 1993 | ||
1079 | * The Regents of the University of California. All rights reserved. | ||
1080 | * | ||
1081 | * This code is derived from software contributed to Berkeley by | ||
1082 | * Kenneth Almquist. | ||
1083 | * | ||
1084 | * Redistribution and use in source and binary forms, with or without | ||
1085 | * modification, are permitted provided that the following conditions | ||
1086 | * are met: | ||
1087 | * 1. Redistributions of source code must retain the above copyright | ||
1088 | * notice, this list of conditions and the following disclaimer. | ||
1089 | * 2. Redistributions in binary form must reproduce the above copyright | ||
1090 | * notice, this list of conditions and the following disclaimer in the | ||
1091 | * documentation and/or other materials provided with the distribution. | ||
1092 | * 3. All advertising materials mentioning features or use of this software | ||
1093 | * must display the following acknowledgement: | ||
1094 | * This product includes software developed by the University of | ||
1095 | * California, Berkeley and its contributors. | ||
1096 | * 4. Neither the name of the University nor the names of its contributors | ||
1097 | * may be used to endorse or promote products derived from this software | ||
1098 | * without specific prior written permission. | ||
1099 | * | ||
1100 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
1101 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
1102 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
1103 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
1104 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
1105 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
1106 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
1107 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
1108 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
1109 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
1110 | * SUCH DAMAGE. | ||
1111 | */ | ||
1112 | |||
1113 | 1005 | ||
1114 | /* flags in argument to evaltree */ | 1006 | /* flags in argument to evaltree */ |
1115 | #define EV_EXIT 01 /* exit after evaluating tree */ | 1007 | #define EV_EXIT 01 /* exit after evaluating tree */ |
@@ -2198,42 +2090,6 @@ eprintlist(struct strlist *sp) | |||
2198 | } | 2090 | } |
2199 | /* $NetBSD: exec.c,v 1.32 2001/02/04 19:52:06 christos Exp $ */ | 2091 | /* $NetBSD: exec.c,v 1.32 2001/02/04 19:52:06 christos Exp $ */ |
2200 | 2092 | ||
2201 | /*- | ||
2202 | * Copyright (c) 1991, 1993 | ||
2203 | * The Regents of the University of California. All rights reserved. | ||
2204 | * | ||
2205 | * This code is derived from software contributed to Berkeley by | ||
2206 | * Kenneth Almquist. | ||
2207 | * | ||
2208 | * Redistribution and use in source and binary forms, with or without | ||
2209 | * modification, are permitted provided that the following conditions | ||
2210 | * are met: | ||
2211 | * 1. Redistributions of source code must retain the above copyright | ||
2212 | * notice, this list of conditions and the following disclaimer. | ||
2213 | * 2. Redistributions in binary form must reproduce the above copyright | ||
2214 | * notice, this list of conditions and the following disclaimer in the | ||
2215 | * documentation and/or other materials provided with the distribution. | ||
2216 | * 3. All advertising materials mentioning features or use of this software | ||
2217 | * must display the following acknowledgement: | ||
2218 | * This product includes software developed by the University of | ||
2219 | * California, Berkeley and its contributors. | ||
2220 | * 4. Neither the name of the University nor the names of its contributors | ||
2221 | * may be used to endorse or promote products derived from this software | ||
2222 | * without specific prior written permission. | ||
2223 | * | ||
2224 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
2225 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
2226 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
2227 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
2228 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
2229 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
2230 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
2231 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
2232 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
2233 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
2234 | * SUCH DAMAGE. | ||
2235 | */ | ||
2236 | |||
2237 | /* | 2093 | /* |
2238 | * When commands are first encountered, they are entered in a hash table. | 2094 | * When commands are first encountered, they are entered in a hash table. |
2239 | * This ensures that a full path search will not have to be done for them | 2095 | * This ensures that a full path search will not have to be done for them |
@@ -3254,42 +3110,6 @@ path_change(newval, bltin) | |||
3254 | } | 3110 | } |
3255 | /* $NetBSD: expand.c,v 1.50 2001/02/04 19:52:06 christos Exp $ */ | 3111 | /* $NetBSD: expand.c,v 1.50 2001/02/04 19:52:06 christos Exp $ */ |
3256 | 3112 | ||
3257 | /*- | ||
3258 | * Copyright (c) 1991, 1993 | ||
3259 | * The Regents of the University of California. All rights reserved. | ||
3260 | * | ||
3261 | * This code is derived from software contributed to Berkeley by | ||
3262 | * Kenneth Almquist. | ||
3263 | * | ||
3264 | * Redistribution and use in source and binary forms, with or without | ||
3265 | * modification, are permitted provided that the following conditions | ||
3266 | * are met: | ||
3267 | * 1. Redistributions of source code must retain the above copyright | ||
3268 | * notice, this list of conditions and the following disclaimer. | ||
3269 | * 2. Redistributions in binary form must reproduce the above copyright | ||
3270 | * notice, this list of conditions and the following disclaimer in the | ||
3271 | * documentation and/or other materials provided with the distribution. | ||
3272 | * 3. All advertising materials mentioning features or use of this software | ||
3273 | * must display the following acknowledgement: | ||
3274 | * This product includes software developed by the University of | ||
3275 | * California, Berkeley and its contributors. | ||
3276 | * 4. Neither the name of the University nor the names of its contributors | ||
3277 | * may be used to endorse or promote products derived from this software | ||
3278 | * without specific prior written permission. | ||
3279 | * | ||
3280 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
3281 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
3282 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
3283 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
3284 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
3285 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
3286 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
3287 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
3288 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
3289 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
3290 | * SUCH DAMAGE. | ||
3291 | */ | ||
3292 | |||
3293 | /* | 3113 | /* |
3294 | * Routines to expand arguments to commands. We have to deal with | 3114 | * Routines to expand arguments to commands. We have to deal with |
3295 | * backquotes, shell variables, and file metacharacters. | 3115 | * backquotes, shell variables, and file metacharacters. |
@@ -4947,42 +4767,6 @@ cvtnum(num, buf) | |||
4947 | } | 4767 | } |
4948 | /* $NetBSD: histedit.c,v 1.25 2001/02/04 19:52:06 christos Exp $ */ | 4768 | /* $NetBSD: histedit.c,v 1.25 2001/02/04 19:52:06 christos Exp $ */ |
4949 | 4769 | ||
4950 | /*- | ||
4951 | * Copyright (c) 1993 | ||
4952 | * The Regents of the University of California. All rights reserved. | ||
4953 | * | ||
4954 | * This code is derived from software contributed to Berkeley by | ||
4955 | * Kenneth Almquist. | ||
4956 | * | ||
4957 | * Redistribution and use in source and binary forms, with or without | ||
4958 | * modification, are permitted provided that the following conditions | ||
4959 | * are met: | ||
4960 | * 1. Redistributions of source code must retain the above copyright | ||
4961 | * notice, this list of conditions and the following disclaimer. | ||
4962 | * 2. Redistributions in binary form must reproduce the above copyright | ||
4963 | * notice, this list of conditions and the following disclaimer in the | ||
4964 | * documentation and/or other materials provided with the distribution. | ||
4965 | * 3. All advertising materials mentioning features or use of this software | ||
4966 | * must display the following acknowledgement: | ||
4967 | * This product includes software developed by the University of | ||
4968 | * California, Berkeley and its contributors. | ||
4969 | * 4. Neither the name of the University nor the names of its contributors | ||
4970 | * may be used to endorse or promote products derived from this software | ||
4971 | * without specific prior written permission. | ||
4972 | * | ||
4973 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
4974 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
4975 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
4976 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
4977 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
4978 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
4979 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
4980 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
4981 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
4982 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
4983 | * SUCH DAMAGE. | ||
4984 | */ | ||
4985 | |||
4986 | /* | 4770 | /* |
4987 | * Editline and history functions (and glue). | 4771 | * Editline and history functions (and glue). |
4988 | */ | 4772 | */ |
@@ -5206,42 +4990,6 @@ initshellproc() { | |||
5206 | } | 4990 | } |
5207 | /* $NetBSD: input.c,v 1.35 2001/02/04 19:52:06 christos Exp $ */ | 4991 | /* $NetBSD: input.c,v 1.35 2001/02/04 19:52:06 christos Exp $ */ |
5208 | 4992 | ||
5209 | /*- | ||
5210 | * Copyright (c) 1991, 1993 | ||
5211 | * The Regents of the University of California. All rights reserved. | ||
5212 | * | ||
5213 | * This code is derived from software contributed to Berkeley by | ||
5214 | * Kenneth Almquist. | ||
5215 | * | ||
5216 | * Redistribution and use in source and binary forms, with or without | ||
5217 | * modification, are permitted provided that the following conditions | ||
5218 | * are met: | ||
5219 | * 1. Redistributions of source code must retain the above copyright | ||
5220 | * notice, this list of conditions and the following disclaimer. | ||
5221 | * 2. Redistributions in binary form must reproduce the above copyright | ||
5222 | * notice, this list of conditions and the following disclaimer in the | ||
5223 | * documentation and/or other materials provided with the distribution. | ||
5224 | * 3. All advertising materials mentioning features or use of this software | ||
5225 | * must display the following acknowledgement: | ||
5226 | * This product includes software developed by the University of | ||
5227 | * California, Berkeley and its contributors. | ||
5228 | * 4. Neither the name of the University nor the names of its contributors | ||
5229 | * may be used to endorse or promote products derived from this software | ||
5230 | * without specific prior written permission. | ||
5231 | * | ||
5232 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
5233 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
5234 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
5235 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
5236 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
5237 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
5238 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
5239 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
5240 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
5241 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
5242 | * SUCH DAMAGE. | ||
5243 | */ | ||
5244 | |||
5245 | /* | 4993 | /* |
5246 | * This file implements the input routines used by the parser. | 4994 | * This file implements the input routines used by the parser. |
5247 | */ | 4995 | */ |
@@ -5685,42 +5433,6 @@ closescript() { | |||
5685 | } | 5433 | } |
5686 | /* $NetBSD: jobs.c,v 1.36 2000/05/22 10:18:47 elric Exp $ */ | 5434 | /* $NetBSD: jobs.c,v 1.36 2000/05/22 10:18:47 elric Exp $ */ |
5687 | 5435 | ||
5688 | /*- | ||
5689 | * Copyright (c) 1991, 1993 | ||
5690 | * The Regents of the University of California. All rights reserved. | ||
5691 | * | ||
5692 | * This code is derived from software contributed to Berkeley by | ||
5693 | * Kenneth Almquist. | ||
5694 | * | ||
5695 | * Redistribution and use in source and binary forms, with or without | ||
5696 | * modification, are permitted provided that the following conditions | ||
5697 | * are met: | ||
5698 | * 1. Redistributions of source code must retain the above copyright | ||
5699 | * notice, this list of conditions and the following disclaimer. | ||
5700 | * 2. Redistributions in binary form must reproduce the above copyright | ||
5701 | * notice, this list of conditions and the following disclaimer in the | ||
5702 | * documentation and/or other materials provided with the distribution. | ||
5703 | * 3. All advertising materials mentioning features or use of this software | ||
5704 | * must display the following acknowledgement: | ||
5705 | * This product includes software developed by the University of | ||
5706 | * California, Berkeley and its contributors. | ||
5707 | * 4. Neither the name of the University nor the names of its contributors | ||
5708 | * may be used to endorse or promote products derived from this software | ||
5709 | * without specific prior written permission. | ||
5710 | * | ||
5711 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
5712 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
5713 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
5714 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
5715 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
5716 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
5717 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
5718 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
5719 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
5720 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
5721 | * SUCH DAMAGE. | ||
5722 | */ | ||
5723 | |||
5724 | 5436 | ||
5725 | struct job *jobtab; /* array of jobs */ | 5437 | struct job *jobtab; /* array of jobs */ |
5726 | static int njobs; /* size of array */ | 5438 | static int njobs; /* size of array */ |
@@ -6961,42 +6673,6 @@ static void waitonint(int sig) { | |||
6961 | } | 6673 | } |
6962 | /* $NetBSD: mail.c,v 1.14 2000/07/03 03:26:19 matt Exp $ */ | 6674 | /* $NetBSD: mail.c,v 1.14 2000/07/03 03:26:19 matt Exp $ */ |
6963 | 6675 | ||
6964 | /*- | ||
6965 | * Copyright (c) 1991, 1993 | ||
6966 | * The Regents of the University of California. All rights reserved. | ||
6967 | * | ||
6968 | * This code is derived from software contributed to Berkeley by | ||
6969 | * Kenneth Almquist. | ||
6970 | * | ||
6971 | * Redistribution and use in source and binary forms, with or without | ||
6972 | * modification, are permitted provided that the following conditions | ||
6973 | * are met: | ||
6974 | * 1. Redistributions of source code must retain the above copyright | ||
6975 | * notice, this list of conditions and the following disclaimer. | ||
6976 | * 2. Redistributions in binary form must reproduce the above copyright | ||
6977 | * notice, this list of conditions and the following disclaimer in the | ||
6978 | * documentation and/or other materials provided with the distribution. | ||
6979 | * 3. All advertising materials mentioning features or use of this software | ||
6980 | * must display the following acknowledgement: | ||
6981 | * This product includes software developed by the University of | ||
6982 | * California, Berkeley and its contributors. | ||
6983 | * 4. Neither the name of the University nor the names of its contributors | ||
6984 | * may be used to endorse or promote products derived from this software | ||
6985 | * without specific prior written permission. | ||
6986 | * | ||
6987 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
6988 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
6989 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
6990 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
6991 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
6992 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
6993 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
6994 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
6995 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
6996 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
6997 | * SUCH DAMAGE. | ||
6998 | */ | ||
6999 | |||
7000 | /* | 6676 | /* |
7001 | * Routines to check for mail. (Perhaps make part of main.c?) | 6677 | * Routines to check for mail. (Perhaps make part of main.c?) |
7002 | */ | 6678 | */ |
@@ -7072,42 +6748,6 @@ chkmail(silent) | |||
7072 | } | 6748 | } |
7073 | /* $NetBSD: main.c,v 1.40 2001/02/04 19:52:06 christos Exp $ */ | 6749 | /* $NetBSD: main.c,v 1.40 2001/02/04 19:52:06 christos Exp $ */ |
7074 | 6750 | ||
7075 | /*- | ||
7076 | * Copyright (c) 1991, 1993 | ||
7077 | * The Regents of the University of California. All rights reserved. | ||
7078 | * | ||
7079 | * This code is derived from software contributed to Berkeley by | ||
7080 | * Kenneth Almquist. | ||
7081 | * | ||
7082 | * Redistribution and use in source and binary forms, with or without | ||
7083 | * modification, are permitted provided that the following conditions | ||
7084 | * are met: | ||
7085 | * 1. Redistributions of source code must retain the above copyright | ||
7086 | * notice, this list of conditions and the following disclaimer. | ||
7087 | * 2. Redistributions in binary form must reproduce the above copyright | ||
7088 | * notice, this list of conditions and the following disclaimer in the | ||
7089 | * documentation and/or other materials provided with the distribution. | ||
7090 | * 3. All advertising materials mentioning features or use of this software | ||
7091 | * must display the following acknowledgement: | ||
7092 | * This product includes software developed by the University of | ||
7093 | * California, Berkeley and its contributors. | ||
7094 | * 4. Neither the name of the University nor the names of its contributors | ||
7095 | * may be used to endorse or promote products derived from this software | ||
7096 | * without specific prior written permission. | ||
7097 | * | ||
7098 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
7099 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
7100 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
7101 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
7102 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
7103 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
7104 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
7105 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
7106 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
7107 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
7108 | * SUCH DAMAGE. | ||
7109 | */ | ||
7110 | |||
7111 | 6751 | ||
7112 | #define PROFILE 0 | 6752 | #define PROFILE 0 |
7113 | 6753 | ||
@@ -7458,43 +7098,6 @@ exitcmd(argc, argv) | |||
7458 | } | 7098 | } |
7459 | /* $NetBSD: memalloc.c,v 1.23 2000/11/01 19:56:01 christos Exp $ */ | 7099 | /* $NetBSD: memalloc.c,v 1.23 2000/11/01 19:56:01 christos Exp $ */ |
7460 | 7100 | ||
7461 | /*- | ||
7462 | * Copyright (c) 1991, 1993 | ||
7463 | * The Regents of the University of California. All rights reserved. | ||
7464 | * | ||
7465 | * This code is derived from software contributed to Berkeley by | ||
7466 | * Kenneth Almquist. | ||
7467 | * | ||
7468 | * Redistribution and use in source and binary forms, with or without | ||
7469 | * modification, are permitted provided that the following conditions | ||
7470 | * are met: | ||
7471 | * 1. Redistributions of source code must retain the above copyright | ||
7472 | * notice, this list of conditions and the following disclaimer. | ||
7473 | * 2. Redistributions in binary form must reproduce the above copyright | ||
7474 | * notice, this list of conditions and the following disclaimer in the | ||
7475 | * documentation and/or other materials provided with the distribution. | ||
7476 | * 3. All advertising materials mentioning features or use of this software | ||
7477 | * must display the following acknowledgement: | ||
7478 | * This product includes software developed by the University of | ||
7479 | * California, Berkeley and its contributors. | ||
7480 | * 4. Neither the name of the University nor the names of its contributors | ||
7481 | * may be used to endorse or promote products derived from this software | ||
7482 | * without specific prior written permission. | ||
7483 | * | ||
7484 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
7485 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
7486 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
7487 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
7488 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
7489 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
7490 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
7491 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
7492 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
7493 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
7494 | * SUCH DAMAGE. | ||
7495 | */ | ||
7496 | |||
7497 | |||
7498 | /* | 7101 | /* |
7499 | * Parse trees for commands are allocated in lifo order, so we use a stack | 7102 | * Parse trees for commands are allocated in lifo order, so we use a stack |
7500 | * to make this more efficient, and also to avoid all sorts of exception | 7103 | * to make this more efficient, and also to avoid all sorts of exception |
@@ -7725,42 +7328,6 @@ ungrabstackstr(s, p) | |||
7725 | } | 7328 | } |
7726 | /* $NetBSD: miscbltin.c,v 1.30 2001/02/04 19:52:06 christos Exp $ */ | 7329 | /* $NetBSD: miscbltin.c,v 1.30 2001/02/04 19:52:06 christos Exp $ */ |
7727 | 7330 | ||
7728 | /*- | ||
7729 | * Copyright (c) 1991, 1993 | ||
7730 | * The Regents of the University of California. All rights reserved. | ||
7731 | * | ||
7732 | * This code is derived from software contributed to Berkeley by | ||
7733 | * Kenneth Almquist. | ||
7734 | * | ||
7735 | * Redistribution and use in source and binary forms, with or without | ||
7736 | * modification, are permitted provided that the following conditions | ||
7737 | * are met: | ||
7738 | * 1. Redistributions of source code must retain the above copyright | ||
7739 | * notice, this list of conditions and the following disclaimer. | ||
7740 | * 2. Redistributions in binary form must reproduce the above copyright | ||
7741 | * notice, this list of conditions and the following disclaimer in the | ||
7742 | * documentation and/or other materials provided with the distribution. | ||
7743 | * 3. All advertising materials mentioning features or use of this software | ||
7744 | * must display the following acknowledgement: | ||
7745 | * This product includes software developed by the University of | ||
7746 | * California, Berkeley and its contributors. | ||
7747 | * 4. Neither the name of the University nor the names of its contributors | ||
7748 | * may be used to endorse or promote products derived from this software | ||
7749 | * without specific prior written permission. | ||
7750 | * | ||
7751 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
7752 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
7753 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
7754 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
7755 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
7756 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
7757 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
7758 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
7759 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
7760 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
7761 | * SUCH DAMAGE. | ||
7762 | */ | ||
7763 | |||
7764 | /* | 7331 | /* |
7765 | * Miscelaneous builtins. | 7332 | * Miscelaneous builtins. |
7766 | */ | 7333 | */ |
@@ -8119,42 +7686,6 @@ ulimitcmd(argc, argv) | |||
8119 | } | 7686 | } |
8120 | /* $NetBSD: mystring.c,v 1.14 1999/07/09 03:05:50 christos Exp $ */ | 7687 | /* $NetBSD: mystring.c,v 1.14 1999/07/09 03:05:50 christos Exp $ */ |
8121 | 7688 | ||
8122 | /*- | ||
8123 | * Copyright (c) 1991, 1993 | ||
8124 | * The Regents of the University of California. All rights reserved. | ||
8125 | * | ||
8126 | * This code is derived from software contributed to Berkeley by | ||
8127 | * Kenneth Almquist. | ||
8128 | * | ||
8129 | * Redistribution and use in source and binary forms, with or without | ||
8130 | * modification, are permitted provided that the following conditions | ||
8131 | * are met: | ||
8132 | * 1. Redistributions of source code must retain the above copyright | ||
8133 | * notice, this list of conditions and the following disclaimer. | ||
8134 | * 2. Redistributions in binary form must reproduce the above copyright | ||
8135 | * notice, this list of conditions and the following disclaimer in the | ||
8136 | * documentation and/or other materials provided with the distribution. | ||
8137 | * 3. All advertising materials mentioning features or use of this software | ||
8138 | * must display the following acknowledgement: | ||
8139 | * This product includes software developed by the University of | ||
8140 | * California, Berkeley and its contributors. | ||
8141 | * 4. Neither the name of the University nor the names of its contributors | ||
8142 | * may be used to endorse or promote products derived from this software | ||
8143 | * without specific prior written permission. | ||
8144 | * | ||
8145 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
8146 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
8147 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
8148 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
8149 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
8150 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
8151 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
8152 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
8153 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
8154 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
8155 | * SUCH DAMAGE. | ||
8156 | */ | ||
8157 | |||
8158 | /* | 7689 | /* |
8159 | * String functions. | 7690 | * String functions. |
8160 | * | 7691 | * |
@@ -8357,44 +7888,6 @@ findstring(const char *s, const char *const *array, size_t nmemb) | |||
8357 | 7888 | ||
8358 | /* $NetBSD: nodes.c.pat,v 1.8 1997/04/11 23:03:09 christos Exp $ */ | 7889 | /* $NetBSD: nodes.c.pat,v 1.8 1997/04/11 23:03:09 christos Exp $ */ |
8359 | 7890 | ||
8360 | /*- | ||
8361 | * Copyright (c) 1991, 1993 | ||
8362 | * The Regents of the University of California. All rights reserved. | ||
8363 | * | ||
8364 | * This code is derived from software contributed to Berkeley by | ||
8365 | * Kenneth Almquist. | ||
8366 | * | ||
8367 | * Redistribution and use in source and binary forms, with or without | ||
8368 | * modification, are permitted provided that the following conditions | ||
8369 | * are met: | ||
8370 | * 1. Redistributions of source code must retain the above copyright | ||
8371 | * notice, this list of conditions and the following disclaimer. | ||
8372 | * 2. Redistributions in binary form must reproduce the above copyright | ||
8373 | * notice, this list of conditions and the following disclaimer in the | ||
8374 | * documentation and/or other materials provided with the distribution. | ||
8375 | * 3. All advertising materials mentioning features or use of this software | ||
8376 | * must display the following acknowledgement: | ||
8377 | * This product includes software developed by the University of | ||
8378 | * California, Berkeley and its contributors. | ||
8379 | * 4. Neither the name of the University nor the names of its contributors | ||
8380 | * may be used to endorse or promote products derived from this software | ||
8381 | * without specific prior written permission. | ||
8382 | * | ||
8383 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
8384 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
8385 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
8386 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
8387 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
8388 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
8389 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
8390 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
8391 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
8392 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
8393 | * SUCH DAMAGE. | ||
8394 | * | ||
8395 | * @(#)nodes.c.pat 8.2 (Berkeley) 5/4/95 | ||
8396 | */ | ||
8397 | |||
8398 | /* | 7891 | /* |
8399 | * Routine for dealing with parsed shell commands. | 7892 | * Routine for dealing with parsed shell commands. |
8400 | */ | 7893 | */ |
@@ -8705,42 +8198,6 @@ freefunc(n) | |||
8705 | } | 8198 | } |
8706 | /* $NetBSD: options.c,v 1.31 2001/02/26 13:06:43 wiz Exp $ */ | 8199 | /* $NetBSD: options.c,v 1.31 2001/02/26 13:06:43 wiz Exp $ */ |
8707 | 8200 | ||
8708 | /*- | ||
8709 | * Copyright (c) 1991, 1993 | ||
8710 | * The Regents of the University of California. All rights reserved. | ||
8711 | * | ||
8712 | * This code is derived from software contributed to Berkeley by | ||
8713 | * Kenneth Almquist. | ||
8714 | * | ||
8715 | * Redistribution and use in source and binary forms, with or without | ||
8716 | * modification, are permitted provided that the following conditions | ||
8717 | * are met: | ||
8718 | * 1. Redistributions of source code must retain the above copyright | ||
8719 | * notice, this list of conditions and the following disclaimer. | ||
8720 | * 2. Redistributions in binary form must reproduce the above copyright | ||
8721 | * notice, this list of conditions and the following disclaimer in the | ||
8722 | * documentation and/or other materials provided with the distribution. | ||
8723 | * 3. All advertising materials mentioning features or use of this software | ||
8724 | * must display the following acknowledgement: | ||
8725 | * This product includes software developed by the University of | ||
8726 | * California, Berkeley and its contributors. | ||
8727 | * 4. Neither the name of the University nor the names of its contributors | ||
8728 | * may be used to endorse or promote products derived from this software | ||
8729 | * without specific prior written permission. | ||
8730 | * | ||
8731 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
8732 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
8733 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
8734 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
8735 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
8736 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
8737 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
8738 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
8739 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
8740 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
8741 | * SUCH DAMAGE. | ||
8742 | */ | ||
8743 | |||
8744 | 8201 | ||
8745 | struct optent optlist[NOPTS] = { | 8202 | struct optent optlist[NOPTS] = { |
8746 | { "errexit", 'e', 0 }, | 8203 | { "errexit", 'e', 0 }, |
@@ -9273,42 +8730,6 @@ nextopt(optstring) | |||
9273 | 8730 | ||
9274 | /* $NetBSD: output.c,v 1.23 2001/01/07 23:39:07 lukem Exp $ */ | 8731 | /* $NetBSD: output.c,v 1.23 2001/01/07 23:39:07 lukem Exp $ */ |
9275 | 8732 | ||
9276 | /*- | ||
9277 | * Copyright (c) 1991, 1993 | ||
9278 | * The Regents of the University of California. All rights reserved. | ||
9279 | * | ||
9280 | * This code is derived from software contributed to Berkeley by | ||
9281 | * Kenneth Almquist. | ||
9282 | * | ||
9283 | * Redistribution and use in source and binary forms, with or without | ||
9284 | * modification, are permitted provided that the following conditions | ||
9285 | * are met: | ||
9286 | * 1. Redistributions of source code must retain the above copyright | ||
9287 | * notice, this list of conditions and the following disclaimer. | ||
9288 | * 2. Redistributions in binary form must reproduce the above copyright | ||
9289 | * notice, this list of conditions and the following disclaimer in the | ||
9290 | * documentation and/or other materials provided with the distribution. | ||
9291 | * 3. All advertising materials mentioning features or use of this software | ||
9292 | * must display the following acknowledgement: | ||
9293 | * This product includes software developed by the University of | ||
9294 | * California, Berkeley and its contributors. | ||
9295 | * 4. Neither the name of the University nor the names of its contributors | ||
9296 | * may be used to endorse or promote products derived from this software | ||
9297 | * without specific prior written permission. | ||
9298 | * | ||
9299 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
9300 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
9301 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
9302 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
9303 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
9304 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
9305 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
9306 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
9307 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
9308 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
9309 | * SUCH DAMAGE. | ||
9310 | */ | ||
9311 | |||
9312 | /* | 8733 | /* |
9313 | * Shell output routines. We use our own output routines because: | 8734 | * Shell output routines. We use our own output routines because: |
9314 | * When a builtin command is interrupted we have to discard | 8735 | * When a builtin command is interrupted we have to discard |
@@ -9880,43 +9301,6 @@ __closememout() { | |||
9880 | #endif | 9301 | #endif |
9881 | /* $NetBSD: parser.c,v 1.46 2001/02/04 19:52:06 christos Exp $ */ | 9302 | /* $NetBSD: parser.c,v 1.46 2001/02/04 19:52:06 christos Exp $ */ |
9882 | 9303 | ||
9883 | /*- | ||
9884 | * Copyright (c) 1991, 1993 | ||
9885 | * The Regents of the University of California. All rights reserved. | ||
9886 | * | ||
9887 | * This code is derived from software contributed to Berkeley by | ||
9888 | * Kenneth Almquist. | ||
9889 | * | ||
9890 | * Redistribution and use in source and binary forms, with or without | ||
9891 | * modification, are permitted provided that the following conditions | ||
9892 | * are met: | ||
9893 | * 1. Redistributions of source code must retain the above copyright | ||
9894 | * notice, this list of conditions and the following disclaimer. | ||
9895 | * 2. Redistributions in binary form must reproduce the above copyright | ||
9896 | * notice, this list of conditions and the following disclaimer in the | ||
9897 | * documentation and/or other materials provided with the distribution. | ||
9898 | * 3. All advertising materials mentioning features or use of this software | ||
9899 | * must display the following acknowledgement: | ||
9900 | * This product includes software developed by the University of | ||
9901 | * California, Berkeley and its contributors. | ||
9902 | * 4. Neither the name of the University nor the names of its contributors | ||
9903 | * may be used to endorse or promote products derived from this software | ||
9904 | * without specific prior written permission. | ||
9905 | * | ||
9906 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
9907 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
9908 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
9909 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
9910 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
9911 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
9912 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
9913 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
9914 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
9915 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
9916 | * SUCH DAMAGE. | ||
9917 | */ | ||
9918 | |||
9919 | |||
9920 | /* | 9304 | /* |
9921 | * Shell command parser. | 9305 | * Shell command parser. |
9922 | */ | 9306 | */ |
@@ -11451,42 +10835,6 @@ findkwd(const char *s) { | |||
11451 | } | 10835 | } |
11452 | /* $NetBSD: redir.c,v 1.22 2000/05/22 10:18:47 elric Exp $ */ | 10836 | /* $NetBSD: redir.c,v 1.22 2000/05/22 10:18:47 elric Exp $ */ |
11453 | 10837 | ||
11454 | /*- | ||
11455 | * Copyright (c) 1991, 1993 | ||
11456 | * The Regents of the University of California. All rights reserved. | ||
11457 | * | ||
11458 | * This code is derived from software contributed to Berkeley by | ||
11459 | * Kenneth Almquist. | ||
11460 | * | ||
11461 | * Redistribution and use in source and binary forms, with or without | ||
11462 | * modification, are permitted provided that the following conditions | ||
11463 | * are met: | ||
11464 | * 1. Redistributions of source code must retain the above copyright | ||
11465 | * notice, this list of conditions and the following disclaimer. | ||
11466 | * 2. Redistributions in binary form must reproduce the above copyright | ||
11467 | * notice, this list of conditions and the following disclaimer in the | ||
11468 | * documentation and/or other materials provided with the distribution. | ||
11469 | * 3. All advertising materials mentioning features or use of this software | ||
11470 | * must display the following acknowledgement: | ||
11471 | * This product includes software developed by the University of | ||
11472 | * California, Berkeley and its contributors. | ||
11473 | * 4. Neither the name of the University nor the names of its contributors | ||
11474 | * may be used to endorse or promote products derived from this software | ||
11475 | * without specific prior written permission. | ||
11476 | * | ||
11477 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
11478 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
11479 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
11480 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
11481 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
11482 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
11483 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
11484 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
11485 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
11486 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
11487 | * SUCH DAMAGE. | ||
11488 | */ | ||
11489 | |||
11490 | /* | 10838 | /* |
11491 | * Code for dealing with input/output redirection. | 10839 | * Code for dealing with input/output redirection. |
11492 | */ | 10840 | */ |
@@ -11913,42 +11261,6 @@ noclobberopen(fname) | |||
11913 | } | 11261 | } |
11914 | /* $NetBSD: setmode.c,v 1.28 2000/01/25 15:43:43 enami Exp $ */ | 11262 | /* $NetBSD: setmode.c,v 1.28 2000/01/25 15:43:43 enami Exp $ */ |
11915 | 11263 | ||
11916 | /* | ||
11917 | * Copyright (c) 1989, 1993, 1994 | ||
11918 | * The Regents of the University of California. All rights reserved. | ||
11919 | * | ||
11920 | * This code is derived from software contributed to Berkeley by | ||
11921 | * Dave Borman at Cray Research, Inc. | ||
11922 | * | ||
11923 | * Redistribution and use in source and binary forms, with or without | ||
11924 | * modification, are permitted provided that the following conditions | ||
11925 | * are met: | ||
11926 | * 1. Redistributions of source code must retain the above copyright | ||
11927 | * notice, this list of conditions and the following disclaimer. | ||
11928 | * 2. Redistributions in binary form must reproduce the above copyright | ||
11929 | * notice, this list of conditions and the following disclaimer in the | ||
11930 | * documentation and/or other materials provided with the distribution. | ||
11931 | * 3. All advertising materials mentioning features or use of this software | ||
11932 | * must display the following acknowledgement: | ||
11933 | * This product includes software developed by the University of | ||
11934 | * California, Berkeley and its contributors. | ||
11935 | * 4. Neither the name of the University nor the names of its contributors | ||
11936 | * may be used to endorse or promote products derived from this software | ||
11937 | * without specific prior written permission. | ||
11938 | * | ||
11939 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
11940 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
11941 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
11942 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
11943 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
11944 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
11945 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
11946 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
11947 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
11948 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
11949 | * SUCH DAMAGE. | ||
11950 | */ | ||
11951 | |||
11952 | #ifdef __weak_alias | 11264 | #ifdef __weak_alias |
11953 | __weak_alias(getmode,_getmode) | 11265 | __weak_alias(getmode,_getmode) |
11954 | __weak_alias(setmode,_setmode) | 11266 | __weak_alias(setmode,_setmode) |
@@ -12376,42 +11688,6 @@ compress_mode(set) | |||
12376 | } | 11688 | } |
12377 | /* $NetBSD: show.c,v 1.18 1999/10/08 21:10:44 pk Exp $ */ | 11689 | /* $NetBSD: show.c,v 1.18 1999/10/08 21:10:44 pk Exp $ */ |
12378 | 11690 | ||
12379 | /*- | ||
12380 | * Copyright (c) 1991, 1993 | ||
12381 | * The Regents of the University of California. All rights reserved. | ||
12382 | * | ||
12383 | * This code is derived from software contributed to Berkeley by | ||
12384 | * Kenneth Almquist. | ||
12385 | * | ||
12386 | * Redistribution and use in source and binary forms, with or without | ||
12387 | * modification, are permitted provided that the following conditions | ||
12388 | * are met: | ||
12389 | * 1. Redistributions of source code must retain the above copyright | ||
12390 | * notice, this list of conditions and the following disclaimer. | ||
12391 | * 2. Redistributions in binary form must reproduce the above copyright | ||
12392 | * notice, this list of conditions and the following disclaimer in the | ||
12393 | * documentation and/or other materials provided with the distribution. | ||
12394 | * 3. All advertising materials mentioning features or use of this software | ||
12395 | * must display the following acknowledgement: | ||
12396 | * This product includes software developed by the University of | ||
12397 | * California, Berkeley and its contributors. | ||
12398 | * 4. Neither the name of the University nor the names of its contributors | ||
12399 | * may be used to endorse or promote products derived from this software | ||
12400 | * without specific prior written permission. | ||
12401 | * | ||
12402 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
12403 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
12404 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
12405 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
12406 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
12407 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
12408 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
12409 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
12410 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
12411 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
12412 | * SUCH DAMAGE. | ||
12413 | */ | ||
12414 | |||
12415 | 11691 | ||
12416 | #ifdef DEBUG | 11692 | #ifdef DEBUG |
12417 | static void shtree __P((union node *, int, char *, FILE*)); | 11693 | static void shtree __P((union node *, int, char *, FILE*)); |
@@ -13138,48 +12414,6 @@ static const char is_type[257] = { | |||
13138 | }; | 12414 | }; |
13139 | /* $NetBSD: trap.c,v 1.25 2001/02/04 19:52:07 christos Exp $ */ | 12415 | /* $NetBSD: trap.c,v 1.25 2001/02/04 19:52:07 christos Exp $ */ |
13140 | 12416 | ||
13141 | /*- | ||
13142 | * Copyright (c) 1991, 1993 | ||
13143 | * The Regents of the University of California. All rights reserved. | ||
13144 | * | ||
13145 | * This code is derived from software contributed to Berkeley by | ||
13146 | * Kenneth Almquist. | ||
13147 | * | ||
13148 | * Redistribution and use in source and binary forms, with or without | ||
13149 | * modification, are permitted provided that the following conditions | ||
13150 | * are met: | ||
13151 | * 1. Redistributions of source code must retain the above copyright | ||
13152 | * notice, this list of conditions and the following disclaimer. | ||
13153 | * 2. Redistributions in binary form must reproduce the above copyright | ||
13154 | * notice, this list of conditions and the following disclaimer in the | ||
13155 | * documentation and/or other materials provided with the distribution. | ||
13156 | * 3. All advertising materials mentioning features or use of this software | ||
13157 | * must display the following acknowledgement: | ||
13158 | * This product includes software developed by the University of | ||
13159 | * California, Berkeley and its contributors. | ||
13160 | * 4. Neither the name of the University nor the names of its contributors | ||
13161 | * may be used to endorse or promote products derived from this software | ||
13162 | * without specific prior written permission. | ||
13163 | * | ||
13164 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
13165 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
13166 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
13167 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
13168 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
13169 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
13170 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
13171 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
13172 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
13173 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
13174 | * SUCH DAMAGE. | ||
13175 | */ | ||
13176 | |||
13177 | /* | ||
13178 | * Sigmode records the current value of the signal handlers for the various | ||
13179 | * modes. A value of zero means that the current handler is not known. | ||
13180 | * S_HARD_IGN indicates that the signal was ignored on entry to the shell, | ||
13181 | */ | ||
13182 | |||
13183 | /* | 12417 | /* |
13184 | * The trap builtin. | 12418 | * The trap builtin. |
13185 | */ | 12419 | */ |
@@ -13509,43 +12743,6 @@ zero: | |||
13509 | } | 12743 | } |
13510 | /* $NetBSD: var.c,v 1.27 2001/02/04 19:52:07 christos Exp $ */ | 12744 | /* $NetBSD: var.c,v 1.27 2001/02/04 19:52:07 christos Exp $ */ |
13511 | 12745 | ||
13512 | /*- | ||
13513 | * Copyright (c) 1991, 1993 | ||
13514 | * The Regents of the University of California. All rights reserved. | ||
13515 | * | ||
13516 | * This code is derived from software contributed to Berkeley by | ||
13517 | * Kenneth Almquist. | ||
13518 | * | ||
13519 | * Redistribution and use in source and binary forms, with or without | ||
13520 | * modification, are permitted provided that the following conditions | ||
13521 | * are met: | ||
13522 | * 1. Redistributions of source code must retain the above copyright | ||
13523 | * notice, this list of conditions and the following disclaimer. | ||
13524 | * 2. Redistributions in binary form must reproduce the above copyright | ||
13525 | * notice, this list of conditions and the following disclaimer in the | ||
13526 | * documentation and/or other materials provided with the distribution. | ||
13527 | * 3. All advertising materials mentioning features or use of this software | ||
13528 | * must display the following acknowledgement: | ||
13529 | * This product includes software developed by the University of | ||
13530 | * California, Berkeley and its contributors. | ||
13531 | * 4. Neither the name of the University nor the names of its contributors | ||
13532 | * may be used to endorse or promote products derived from this software | ||
13533 | * without specific prior written permission. | ||
13534 | * | ||
13535 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
13536 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
13537 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
13538 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
13539 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
13540 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
13541 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
13542 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
13543 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
13544 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
13545 | * SUCH DAMAGE. | ||
13546 | */ | ||
13547 | |||
13548 | |||
13549 | #define VTABSIZE 39 | 12746 | #define VTABSIZE 39 |
13550 | 12747 | ||
13551 | 12748 | ||
@@ -14220,7 +13417,7 @@ findvar(struct var **vpp, const char *name) | |||
14220 | /* | 13417 | /* |
14221 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> | 13418 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> |
14222 | * This file contains code for the times builtin. | 13419 | * This file contains code for the times builtin. |
14223 | * $Id: ash.c,v 1.1 2001/06/28 07:25:15 andersen Exp $ | 13420 | * $Id: ash.c,v 1.2 2001/06/28 07:46:40 andersen Exp $ |
14224 | */ | 13421 | */ |
14225 | static int timescmd (int argc, char **argv) | 13422 | static int timescmd (int argc, char **argv) |
14226 | { | 13423 | { |
@@ -14240,3 +13437,39 @@ static int timescmd (int argc, char **argv) | |||
14240 | return 0; | 13437 | return 0; |
14241 | } | 13438 | } |
14242 | 13439 | ||
13440 | |||
13441 | /*- | ||
13442 | * Copyright (c) 1989, 1991, 1993, 1994 | ||
13443 | * The Regents of the University of California. All rights reserved. | ||
13444 | * | ||
13445 | * This code is derived from software contributed to Berkeley by | ||
13446 | * Kenneth Almquist. | ||
13447 | * | ||
13448 | * Redistribution and use in source and binary forms, with or without | ||
13449 | * modification, are permitted provided that the following conditions | ||
13450 | * are met: | ||
13451 | * 1. Redistributions of source code must retain the above copyright | ||
13452 | * notice, this list of conditions and the following disclaimer. | ||
13453 | * 2. Redistributions in binary form must reproduce the above copyright | ||
13454 | * notice, this list of conditions and the following disclaimer in the | ||
13455 | * documentation and/or other materials provided with the distribution. | ||
13456 | * | ||
13457 | * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change | ||
13458 | * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change> | ||
13459 | * | ||
13460 | * 4. Neither the name of the University nor the names of its contributors | ||
13461 | * may be used to endorse or promote products derived from this software | ||
13462 | * without specific prior written permission. | ||
13463 | * | ||
13464 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
13465 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
13466 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
13467 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
13468 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
13469 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
13470 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
13471 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
13472 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
13473 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
13474 | * SUCH DAMAGE. | ||
13475 | */ | ||
diff --git a/shell/ash.c b/shell/ash.c index bab12b93b..90725a178 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -1,43 +1,43 @@ | |||
1 | /*- | 1 | /* vi: set sw=4 ts=4: */ |
2 | * Copyright (c) 1993 | 2 | /* |
3 | * ash shell port for busybox | ||
4 | * | ||
5 | * Copyright (c) 1989, 1991, 1993, 1994 | ||
3 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. |
4 | * | 7 | * |
5 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by |
6 | * Kenneth Almquist. | 9 | * Kenneth Almquist. |
7 | * | 10 | * |
8 | * Redistribution and use in source and binary forms, with or without | 11 | * This program is free software; you can redistribute it and/or modify |
9 | * modification, are permitted provided that the following conditions | 12 | * it under the terms of the GNU General Public License as published by |
10 | * are met: | 13 | * the Free Software Foundation; either version 2 of the License, or |
11 | * 1. Redistributions of source code must retain the above copyright | 14 | * (at your option) any later version. |
12 | * notice, this list of conditions and the following disclaimer. | ||
13 | * 2. Redistributions in binary form must reproduce the above copyright | ||
14 | * notice, this list of conditions and the following disclaimer in the | ||
15 | * documentation and/or other materials provided with the distribution. | ||
16 | * 3. All advertising materials mentioning features or use of this software | ||
17 | * must display the following acknowledgement: | ||
18 | * This product includes software developed by the University of | ||
19 | * California, Berkeley and its contributors. | ||
20 | * 4. Neither the name of the University nor the names of its contributors | ||
21 | * may be used to endorse or promote products derived from this software | ||
22 | * without specific prior written permission. | ||
23 | * | 15 | * |
24 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | 16 | * This program is distributed in the hope that it will be useful, |
25 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | 19 | * General Public License for more details. |
28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 20 | * |
29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 21 | * You should have received a copy of the GNU General Public License |
30 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 22 | * along with this program; if not, write to the Free Software |
31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
32 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 24 | * |
33 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 25 | * This version of ash is adapted from the source in Debian's ash 0.3.8-5 |
34 | * SUCH DAMAGE. | 26 | * package. |
27 | * | ||
28 | * Modified by Erik Andersen <andersee@debian.org> to be used in | ||
29 | * busybox, based in part on prior work done by Vladimir Oleynik | ||
30 | * <vodz@usa.net> | ||
31 | * | ||
32 | * Original copyright notice is retained at the end of this file. | ||
35 | */ | 33 | */ |
36 | 34 | ||
37 | #undef _GNU_SOURCE | 35 | #undef _GNU_SOURCE |
38 | #undef ASH_TYPE | 36 | #undef ASH_TYPE |
39 | #undef ASH_GETOPTS | 37 | #undef ASH_GETOPTS |
40 | #undef ASH_MATH_SUPPORT | 38 | #undef ASH_MATH_SUPPORT |
39 | #undef FNMATCH_BROKEN | ||
40 | #undef GLOB_BROKEN | ||
41 | 41 | ||
42 | #include <assert.h> | 42 | #include <assert.h> |
43 | #include <ctype.h> | 43 | #include <ctype.h> |
@@ -422,42 +422,6 @@ static const struct builtincmd builtincmds[] = { | |||
422 | 422 | ||
423 | /* $NetBSD: cd.c,v 1.27 1999/07/09 03:05:49 christos Exp $ */ | 423 | /* $NetBSD: cd.c,v 1.27 1999/07/09 03:05:49 christos Exp $ */ |
424 | 424 | ||
425 | /*- | ||
426 | * Copyright (c) 1991, 1993 | ||
427 | * The Regents of the University of California. All rights reserved. | ||
428 | * | ||
429 | * This code is derived from software contributed to Berkeley by | ||
430 | * Kenneth Almquist. | ||
431 | * | ||
432 | * Redistribution and use in source and binary forms, with or without | ||
433 | * modification, are permitted provided that the following conditions | ||
434 | * are met: | ||
435 | * 1. Redistributions of source code must retain the above copyright | ||
436 | * notice, this list of conditions and the following disclaimer. | ||
437 | * 2. Redistributions in binary form must reproduce the above copyright | ||
438 | * notice, this list of conditions and the following disclaimer in the | ||
439 | * documentation and/or other materials provided with the distribution. | ||
440 | * 3. All advertising materials mentioning features or use of this software | ||
441 | * must display the following acknowledgement: | ||
442 | * This product includes software developed by the University of | ||
443 | * California, Berkeley and its contributors. | ||
444 | * 4. Neither the name of the University nor the names of its contributors | ||
445 | * may be used to endorse or promote products derived from this software | ||
446 | * without specific prior written permission. | ||
447 | * | ||
448 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
449 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
450 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
451 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
452 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
453 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
454 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
455 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
456 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
457 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
458 | * SUCH DAMAGE. | ||
459 | */ | ||
460 | |||
461 | static int docd __P((char *, int)); | 425 | static int docd __P((char *, int)); |
462 | static char *getcomponent __P((void)); | 426 | static char *getcomponent __P((void)); |
463 | static void updatepwd __P((char *)); | 427 | static void updatepwd __P((char *)); |
@@ -780,42 +744,6 @@ setpwd(const char *val, int setold) | |||
780 | 744 | ||
781 | /* $NetBSD: error.c,v 1.23 2000/07/03 03:26:19 matt Exp $ */ | 745 | /* $NetBSD: error.c,v 1.23 2000/07/03 03:26:19 matt Exp $ */ |
782 | 746 | ||
783 | /*- | ||
784 | * Copyright (c) 1991, 1993 | ||
785 | * The Regents of the University of California. All rights reserved. | ||
786 | * | ||
787 | * This code is derived from software contributed to Berkeley by | ||
788 | * Kenneth Almquist. | ||
789 | * | ||
790 | * Redistribution and use in source and binary forms, with or without | ||
791 | * modification, are permitted provided that the following conditions | ||
792 | * are met: | ||
793 | * 1. Redistributions of source code must retain the above copyright | ||
794 | * notice, this list of conditions and the following disclaimer. | ||
795 | * 2. Redistributions in binary form must reproduce the above copyright | ||
796 | * notice, this list of conditions and the following disclaimer in the | ||
797 | * documentation and/or other materials provided with the distribution. | ||
798 | * 3. All advertising materials mentioning features or use of this software | ||
799 | * must display the following acknowledgement: | ||
800 | * This product includes software developed by the University of | ||
801 | * California, Berkeley and its contributors. | ||
802 | * 4. Neither the name of the University nor the names of its contributors | ||
803 | * may be used to endorse or promote products derived from this software | ||
804 | * without specific prior written permission. | ||
805 | * | ||
806 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
807 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
808 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
809 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
810 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
811 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
812 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
813 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
814 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
815 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
816 | * SUCH DAMAGE. | ||
817 | */ | ||
818 | |||
819 | /* | 747 | /* |
820 | * Errors and exceptions. | 748 | * Errors and exceptions. |
821 | */ | 749 | */ |
@@ -1074,42 +1002,6 @@ __inton() { | |||
1074 | #endif | 1002 | #endif |
1075 | /* $NetBSD: eval.c,v 1.57 2001/02/04 19:52:06 christos Exp $ */ | 1003 | /* $NetBSD: eval.c,v 1.57 2001/02/04 19:52:06 christos Exp $ */ |
1076 | 1004 | ||
1077 | /*- | ||
1078 | * Copyright (c) 1993 | ||
1079 | * The Regents of the University of California. All rights reserved. | ||
1080 | * | ||
1081 | * This code is derived from software contributed to Berkeley by | ||
1082 | * Kenneth Almquist. | ||
1083 | * | ||
1084 | * Redistribution and use in source and binary forms, with or without | ||
1085 | * modification, are permitted provided that the following conditions | ||
1086 | * are met: | ||
1087 | * 1. Redistributions of source code must retain the above copyright | ||
1088 | * notice, this list of conditions and the following disclaimer. | ||
1089 | * 2. Redistributions in binary form must reproduce the above copyright | ||
1090 | * notice, this list of conditions and the following disclaimer in the | ||
1091 | * documentation and/or other materials provided with the distribution. | ||
1092 | * 3. All advertising materials mentioning features or use of this software | ||
1093 | * must display the following acknowledgement: | ||
1094 | * This product includes software developed by the University of | ||
1095 | * California, Berkeley and its contributors. | ||
1096 | * 4. Neither the name of the University nor the names of its contributors | ||
1097 | * may be used to endorse or promote products derived from this software | ||
1098 | * without specific prior written permission. | ||
1099 | * | ||
1100 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
1101 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
1102 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
1103 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
1104 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
1105 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
1106 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
1107 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
1108 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
1109 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
1110 | * SUCH DAMAGE. | ||
1111 | */ | ||
1112 | |||
1113 | 1005 | ||
1114 | /* flags in argument to evaltree */ | 1006 | /* flags in argument to evaltree */ |
1115 | #define EV_EXIT 01 /* exit after evaluating tree */ | 1007 | #define EV_EXIT 01 /* exit after evaluating tree */ |
@@ -2198,42 +2090,6 @@ eprintlist(struct strlist *sp) | |||
2198 | } | 2090 | } |
2199 | /* $NetBSD: exec.c,v 1.32 2001/02/04 19:52:06 christos Exp $ */ | 2091 | /* $NetBSD: exec.c,v 1.32 2001/02/04 19:52:06 christos Exp $ */ |
2200 | 2092 | ||
2201 | /*- | ||
2202 | * Copyright (c) 1991, 1993 | ||
2203 | * The Regents of the University of California. All rights reserved. | ||
2204 | * | ||
2205 | * This code is derived from software contributed to Berkeley by | ||
2206 | * Kenneth Almquist. | ||
2207 | * | ||
2208 | * Redistribution and use in source and binary forms, with or without | ||
2209 | * modification, are permitted provided that the following conditions | ||
2210 | * are met: | ||
2211 | * 1. Redistributions of source code must retain the above copyright | ||
2212 | * notice, this list of conditions and the following disclaimer. | ||
2213 | * 2. Redistributions in binary form must reproduce the above copyright | ||
2214 | * notice, this list of conditions and the following disclaimer in the | ||
2215 | * documentation and/or other materials provided with the distribution. | ||
2216 | * 3. All advertising materials mentioning features or use of this software | ||
2217 | * must display the following acknowledgement: | ||
2218 | * This product includes software developed by the University of | ||
2219 | * California, Berkeley and its contributors. | ||
2220 | * 4. Neither the name of the University nor the names of its contributors | ||
2221 | * may be used to endorse or promote products derived from this software | ||
2222 | * without specific prior written permission. | ||
2223 | * | ||
2224 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
2225 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
2226 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
2227 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
2228 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
2229 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
2230 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
2231 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
2232 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
2233 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
2234 | * SUCH DAMAGE. | ||
2235 | */ | ||
2236 | |||
2237 | /* | 2093 | /* |
2238 | * When commands are first encountered, they are entered in a hash table. | 2094 | * When commands are first encountered, they are entered in a hash table. |
2239 | * This ensures that a full path search will not have to be done for them | 2095 | * This ensures that a full path search will not have to be done for them |
@@ -3254,42 +3110,6 @@ path_change(newval, bltin) | |||
3254 | } | 3110 | } |
3255 | /* $NetBSD: expand.c,v 1.50 2001/02/04 19:52:06 christos Exp $ */ | 3111 | /* $NetBSD: expand.c,v 1.50 2001/02/04 19:52:06 christos Exp $ */ |
3256 | 3112 | ||
3257 | /*- | ||
3258 | * Copyright (c) 1991, 1993 | ||
3259 | * The Regents of the University of California. All rights reserved. | ||
3260 | * | ||
3261 | * This code is derived from software contributed to Berkeley by | ||
3262 | * Kenneth Almquist. | ||
3263 | * | ||
3264 | * Redistribution and use in source and binary forms, with or without | ||
3265 | * modification, are permitted provided that the following conditions | ||
3266 | * are met: | ||
3267 | * 1. Redistributions of source code must retain the above copyright | ||
3268 | * notice, this list of conditions and the following disclaimer. | ||
3269 | * 2. Redistributions in binary form must reproduce the above copyright | ||
3270 | * notice, this list of conditions and the following disclaimer in the | ||
3271 | * documentation and/or other materials provided with the distribution. | ||
3272 | * 3. All advertising materials mentioning features or use of this software | ||
3273 | * must display the following acknowledgement: | ||
3274 | * This product includes software developed by the University of | ||
3275 | * California, Berkeley and its contributors. | ||
3276 | * 4. Neither the name of the University nor the names of its contributors | ||
3277 | * may be used to endorse or promote products derived from this software | ||
3278 | * without specific prior written permission. | ||
3279 | * | ||
3280 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
3281 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
3282 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
3283 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
3284 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
3285 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
3286 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
3287 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
3288 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
3289 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
3290 | * SUCH DAMAGE. | ||
3291 | */ | ||
3292 | |||
3293 | /* | 3113 | /* |
3294 | * Routines to expand arguments to commands. We have to deal with | 3114 | * Routines to expand arguments to commands. We have to deal with |
3295 | * backquotes, shell variables, and file metacharacters. | 3115 | * backquotes, shell variables, and file metacharacters. |
@@ -4947,42 +4767,6 @@ cvtnum(num, buf) | |||
4947 | } | 4767 | } |
4948 | /* $NetBSD: histedit.c,v 1.25 2001/02/04 19:52:06 christos Exp $ */ | 4768 | /* $NetBSD: histedit.c,v 1.25 2001/02/04 19:52:06 christos Exp $ */ |
4949 | 4769 | ||
4950 | /*- | ||
4951 | * Copyright (c) 1993 | ||
4952 | * The Regents of the University of California. All rights reserved. | ||
4953 | * | ||
4954 | * This code is derived from software contributed to Berkeley by | ||
4955 | * Kenneth Almquist. | ||
4956 | * | ||
4957 | * Redistribution and use in source and binary forms, with or without | ||
4958 | * modification, are permitted provided that the following conditions | ||
4959 | * are met: | ||
4960 | * 1. Redistributions of source code must retain the above copyright | ||
4961 | * notice, this list of conditions and the following disclaimer. | ||
4962 | * 2. Redistributions in binary form must reproduce the above copyright | ||
4963 | * notice, this list of conditions and the following disclaimer in the | ||
4964 | * documentation and/or other materials provided with the distribution. | ||
4965 | * 3. All advertising materials mentioning features or use of this software | ||
4966 | * must display the following acknowledgement: | ||
4967 | * This product includes software developed by the University of | ||
4968 | * California, Berkeley and its contributors. | ||
4969 | * 4. Neither the name of the University nor the names of its contributors | ||
4970 | * may be used to endorse or promote products derived from this software | ||
4971 | * without specific prior written permission. | ||
4972 | * | ||
4973 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
4974 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
4975 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
4976 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
4977 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
4978 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
4979 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
4980 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
4981 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
4982 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
4983 | * SUCH DAMAGE. | ||
4984 | */ | ||
4985 | |||
4986 | /* | 4770 | /* |
4987 | * Editline and history functions (and glue). | 4771 | * Editline and history functions (and glue). |
4988 | */ | 4772 | */ |
@@ -5206,42 +4990,6 @@ initshellproc() { | |||
5206 | } | 4990 | } |
5207 | /* $NetBSD: input.c,v 1.35 2001/02/04 19:52:06 christos Exp $ */ | 4991 | /* $NetBSD: input.c,v 1.35 2001/02/04 19:52:06 christos Exp $ */ |
5208 | 4992 | ||
5209 | /*- | ||
5210 | * Copyright (c) 1991, 1993 | ||
5211 | * The Regents of the University of California. All rights reserved. | ||
5212 | * | ||
5213 | * This code is derived from software contributed to Berkeley by | ||
5214 | * Kenneth Almquist. | ||
5215 | * | ||
5216 | * Redistribution and use in source and binary forms, with or without | ||
5217 | * modification, are permitted provided that the following conditions | ||
5218 | * are met: | ||
5219 | * 1. Redistributions of source code must retain the above copyright | ||
5220 | * notice, this list of conditions and the following disclaimer. | ||
5221 | * 2. Redistributions in binary form must reproduce the above copyright | ||
5222 | * notice, this list of conditions and the following disclaimer in the | ||
5223 | * documentation and/or other materials provided with the distribution. | ||
5224 | * 3. All advertising materials mentioning features or use of this software | ||
5225 | * must display the following acknowledgement: | ||
5226 | * This product includes software developed by the University of | ||
5227 | * California, Berkeley and its contributors. | ||
5228 | * 4. Neither the name of the University nor the names of its contributors | ||
5229 | * may be used to endorse or promote products derived from this software | ||
5230 | * without specific prior written permission. | ||
5231 | * | ||
5232 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
5233 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
5234 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
5235 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
5236 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
5237 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
5238 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
5239 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
5240 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
5241 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
5242 | * SUCH DAMAGE. | ||
5243 | */ | ||
5244 | |||
5245 | /* | 4993 | /* |
5246 | * This file implements the input routines used by the parser. | 4994 | * This file implements the input routines used by the parser. |
5247 | */ | 4995 | */ |
@@ -5685,42 +5433,6 @@ closescript() { | |||
5685 | } | 5433 | } |
5686 | /* $NetBSD: jobs.c,v 1.36 2000/05/22 10:18:47 elric Exp $ */ | 5434 | /* $NetBSD: jobs.c,v 1.36 2000/05/22 10:18:47 elric Exp $ */ |
5687 | 5435 | ||
5688 | /*- | ||
5689 | * Copyright (c) 1991, 1993 | ||
5690 | * The Regents of the University of California. All rights reserved. | ||
5691 | * | ||
5692 | * This code is derived from software contributed to Berkeley by | ||
5693 | * Kenneth Almquist. | ||
5694 | * | ||
5695 | * Redistribution and use in source and binary forms, with or without | ||
5696 | * modification, are permitted provided that the following conditions | ||
5697 | * are met: | ||
5698 | * 1. Redistributions of source code must retain the above copyright | ||
5699 | * notice, this list of conditions and the following disclaimer. | ||
5700 | * 2. Redistributions in binary form must reproduce the above copyright | ||
5701 | * notice, this list of conditions and the following disclaimer in the | ||
5702 | * documentation and/or other materials provided with the distribution. | ||
5703 | * 3. All advertising materials mentioning features or use of this software | ||
5704 | * must display the following acknowledgement: | ||
5705 | * This product includes software developed by the University of | ||
5706 | * California, Berkeley and its contributors. | ||
5707 | * 4. Neither the name of the University nor the names of its contributors | ||
5708 | * may be used to endorse or promote products derived from this software | ||
5709 | * without specific prior written permission. | ||
5710 | * | ||
5711 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
5712 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
5713 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
5714 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
5715 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
5716 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
5717 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
5718 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
5719 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
5720 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
5721 | * SUCH DAMAGE. | ||
5722 | */ | ||
5723 | |||
5724 | 5436 | ||
5725 | struct job *jobtab; /* array of jobs */ | 5437 | struct job *jobtab; /* array of jobs */ |
5726 | static int njobs; /* size of array */ | 5438 | static int njobs; /* size of array */ |
@@ -6961,42 +6673,6 @@ static void waitonint(int sig) { | |||
6961 | } | 6673 | } |
6962 | /* $NetBSD: mail.c,v 1.14 2000/07/03 03:26:19 matt Exp $ */ | 6674 | /* $NetBSD: mail.c,v 1.14 2000/07/03 03:26:19 matt Exp $ */ |
6963 | 6675 | ||
6964 | /*- | ||
6965 | * Copyright (c) 1991, 1993 | ||
6966 | * The Regents of the University of California. All rights reserved. | ||
6967 | * | ||
6968 | * This code is derived from software contributed to Berkeley by | ||
6969 | * Kenneth Almquist. | ||
6970 | * | ||
6971 | * Redistribution and use in source and binary forms, with or without | ||
6972 | * modification, are permitted provided that the following conditions | ||
6973 | * are met: | ||
6974 | * 1. Redistributions of source code must retain the above copyright | ||
6975 | * notice, this list of conditions and the following disclaimer. | ||
6976 | * 2. Redistributions in binary form must reproduce the above copyright | ||
6977 | * notice, this list of conditions and the following disclaimer in the | ||
6978 | * documentation and/or other materials provided with the distribution. | ||
6979 | * 3. All advertising materials mentioning features or use of this software | ||
6980 | * must display the following acknowledgement: | ||
6981 | * This product includes software developed by the University of | ||
6982 | * California, Berkeley and its contributors. | ||
6983 | * 4. Neither the name of the University nor the names of its contributors | ||
6984 | * may be used to endorse or promote products derived from this software | ||
6985 | * without specific prior written permission. | ||
6986 | * | ||
6987 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
6988 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
6989 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
6990 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
6991 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
6992 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
6993 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
6994 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
6995 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
6996 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
6997 | * SUCH DAMAGE. | ||
6998 | */ | ||
6999 | |||
7000 | /* | 6676 | /* |
7001 | * Routines to check for mail. (Perhaps make part of main.c?) | 6677 | * Routines to check for mail. (Perhaps make part of main.c?) |
7002 | */ | 6678 | */ |
@@ -7072,42 +6748,6 @@ chkmail(silent) | |||
7072 | } | 6748 | } |
7073 | /* $NetBSD: main.c,v 1.40 2001/02/04 19:52:06 christos Exp $ */ | 6749 | /* $NetBSD: main.c,v 1.40 2001/02/04 19:52:06 christos Exp $ */ |
7074 | 6750 | ||
7075 | /*- | ||
7076 | * Copyright (c) 1991, 1993 | ||
7077 | * The Regents of the University of California. All rights reserved. | ||
7078 | * | ||
7079 | * This code is derived from software contributed to Berkeley by | ||
7080 | * Kenneth Almquist. | ||
7081 | * | ||
7082 | * Redistribution and use in source and binary forms, with or without | ||
7083 | * modification, are permitted provided that the following conditions | ||
7084 | * are met: | ||
7085 | * 1. Redistributions of source code must retain the above copyright | ||
7086 | * notice, this list of conditions and the following disclaimer. | ||
7087 | * 2. Redistributions in binary form must reproduce the above copyright | ||
7088 | * notice, this list of conditions and the following disclaimer in the | ||
7089 | * documentation and/or other materials provided with the distribution. | ||
7090 | * 3. All advertising materials mentioning features or use of this software | ||
7091 | * must display the following acknowledgement: | ||
7092 | * This product includes software developed by the University of | ||
7093 | * California, Berkeley and its contributors. | ||
7094 | * 4. Neither the name of the University nor the names of its contributors | ||
7095 | * may be used to endorse or promote products derived from this software | ||
7096 | * without specific prior written permission. | ||
7097 | * | ||
7098 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
7099 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
7100 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
7101 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
7102 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
7103 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
7104 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
7105 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
7106 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
7107 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
7108 | * SUCH DAMAGE. | ||
7109 | */ | ||
7110 | |||
7111 | 6751 | ||
7112 | #define PROFILE 0 | 6752 | #define PROFILE 0 |
7113 | 6753 | ||
@@ -7458,43 +7098,6 @@ exitcmd(argc, argv) | |||
7458 | } | 7098 | } |
7459 | /* $NetBSD: memalloc.c,v 1.23 2000/11/01 19:56:01 christos Exp $ */ | 7099 | /* $NetBSD: memalloc.c,v 1.23 2000/11/01 19:56:01 christos Exp $ */ |
7460 | 7100 | ||
7461 | /*- | ||
7462 | * Copyright (c) 1991, 1993 | ||
7463 | * The Regents of the University of California. All rights reserved. | ||
7464 | * | ||
7465 | * This code is derived from software contributed to Berkeley by | ||
7466 | * Kenneth Almquist. | ||
7467 | * | ||
7468 | * Redistribution and use in source and binary forms, with or without | ||
7469 | * modification, are permitted provided that the following conditions | ||
7470 | * are met: | ||
7471 | * 1. Redistributions of source code must retain the above copyright | ||
7472 | * notice, this list of conditions and the following disclaimer. | ||
7473 | * 2. Redistributions in binary form must reproduce the above copyright | ||
7474 | * notice, this list of conditions and the following disclaimer in the | ||
7475 | * documentation and/or other materials provided with the distribution. | ||
7476 | * 3. All advertising materials mentioning features or use of this software | ||
7477 | * must display the following acknowledgement: | ||
7478 | * This product includes software developed by the University of | ||
7479 | * California, Berkeley and its contributors. | ||
7480 | * 4. Neither the name of the University nor the names of its contributors | ||
7481 | * may be used to endorse or promote products derived from this software | ||
7482 | * without specific prior written permission. | ||
7483 | * | ||
7484 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
7485 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
7486 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
7487 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
7488 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
7489 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
7490 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
7491 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
7492 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
7493 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
7494 | * SUCH DAMAGE. | ||
7495 | */ | ||
7496 | |||
7497 | |||
7498 | /* | 7101 | /* |
7499 | * Parse trees for commands are allocated in lifo order, so we use a stack | 7102 | * Parse trees for commands are allocated in lifo order, so we use a stack |
7500 | * to make this more efficient, and also to avoid all sorts of exception | 7103 | * to make this more efficient, and also to avoid all sorts of exception |
@@ -7725,42 +7328,6 @@ ungrabstackstr(s, p) | |||
7725 | } | 7328 | } |
7726 | /* $NetBSD: miscbltin.c,v 1.30 2001/02/04 19:52:06 christos Exp $ */ | 7329 | /* $NetBSD: miscbltin.c,v 1.30 2001/02/04 19:52:06 christos Exp $ */ |
7727 | 7330 | ||
7728 | /*- | ||
7729 | * Copyright (c) 1991, 1993 | ||
7730 | * The Regents of the University of California. All rights reserved. | ||
7731 | * | ||
7732 | * This code is derived from software contributed to Berkeley by | ||
7733 | * Kenneth Almquist. | ||
7734 | * | ||
7735 | * Redistribution and use in source and binary forms, with or without | ||
7736 | * modification, are permitted provided that the following conditions | ||
7737 | * are met: | ||
7738 | * 1. Redistributions of source code must retain the above copyright | ||
7739 | * notice, this list of conditions and the following disclaimer. | ||
7740 | * 2. Redistributions in binary form must reproduce the above copyright | ||
7741 | * notice, this list of conditions and the following disclaimer in the | ||
7742 | * documentation and/or other materials provided with the distribution. | ||
7743 | * 3. All advertising materials mentioning features or use of this software | ||
7744 | * must display the following acknowledgement: | ||
7745 | * This product includes software developed by the University of | ||
7746 | * California, Berkeley and its contributors. | ||
7747 | * 4. Neither the name of the University nor the names of its contributors | ||
7748 | * may be used to endorse or promote products derived from this software | ||
7749 | * without specific prior written permission. | ||
7750 | * | ||
7751 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
7752 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
7753 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
7754 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
7755 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
7756 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
7757 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
7758 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
7759 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
7760 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
7761 | * SUCH DAMAGE. | ||
7762 | */ | ||
7763 | |||
7764 | /* | 7331 | /* |
7765 | * Miscelaneous builtins. | 7332 | * Miscelaneous builtins. |
7766 | */ | 7333 | */ |
@@ -8119,42 +7686,6 @@ ulimitcmd(argc, argv) | |||
8119 | } | 7686 | } |
8120 | /* $NetBSD: mystring.c,v 1.14 1999/07/09 03:05:50 christos Exp $ */ | 7687 | /* $NetBSD: mystring.c,v 1.14 1999/07/09 03:05:50 christos Exp $ */ |
8121 | 7688 | ||
8122 | /*- | ||
8123 | * Copyright (c) 1991, 1993 | ||
8124 | * The Regents of the University of California. All rights reserved. | ||
8125 | * | ||
8126 | * This code is derived from software contributed to Berkeley by | ||
8127 | * Kenneth Almquist. | ||
8128 | * | ||
8129 | * Redistribution and use in source and binary forms, with or without | ||
8130 | * modification, are permitted provided that the following conditions | ||
8131 | * are met: | ||
8132 | * 1. Redistributions of source code must retain the above copyright | ||
8133 | * notice, this list of conditions and the following disclaimer. | ||
8134 | * 2. Redistributions in binary form must reproduce the above copyright | ||
8135 | * notice, this list of conditions and the following disclaimer in the | ||
8136 | * documentation and/or other materials provided with the distribution. | ||
8137 | * 3. All advertising materials mentioning features or use of this software | ||
8138 | * must display the following acknowledgement: | ||
8139 | * This product includes software developed by the University of | ||
8140 | * California, Berkeley and its contributors. | ||
8141 | * 4. Neither the name of the University nor the names of its contributors | ||
8142 | * may be used to endorse or promote products derived from this software | ||
8143 | * without specific prior written permission. | ||
8144 | * | ||
8145 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
8146 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
8147 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
8148 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
8149 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
8150 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
8151 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
8152 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
8153 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
8154 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
8155 | * SUCH DAMAGE. | ||
8156 | */ | ||
8157 | |||
8158 | /* | 7689 | /* |
8159 | * String functions. | 7690 | * String functions. |
8160 | * | 7691 | * |
@@ -8357,44 +7888,6 @@ findstring(const char *s, const char *const *array, size_t nmemb) | |||
8357 | 7888 | ||
8358 | /* $NetBSD: nodes.c.pat,v 1.8 1997/04/11 23:03:09 christos Exp $ */ | 7889 | /* $NetBSD: nodes.c.pat,v 1.8 1997/04/11 23:03:09 christos Exp $ */ |
8359 | 7890 | ||
8360 | /*- | ||
8361 | * Copyright (c) 1991, 1993 | ||
8362 | * The Regents of the University of California. All rights reserved. | ||
8363 | * | ||
8364 | * This code is derived from software contributed to Berkeley by | ||
8365 | * Kenneth Almquist. | ||
8366 | * | ||
8367 | * Redistribution and use in source and binary forms, with or without | ||
8368 | * modification, are permitted provided that the following conditions | ||
8369 | * are met: | ||
8370 | * 1. Redistributions of source code must retain the above copyright | ||
8371 | * notice, this list of conditions and the following disclaimer. | ||
8372 | * 2. Redistributions in binary form must reproduce the above copyright | ||
8373 | * notice, this list of conditions and the following disclaimer in the | ||
8374 | * documentation and/or other materials provided with the distribution. | ||
8375 | * 3. All advertising materials mentioning features or use of this software | ||
8376 | * must display the following acknowledgement: | ||
8377 | * This product includes software developed by the University of | ||
8378 | * California, Berkeley and its contributors. | ||
8379 | * 4. Neither the name of the University nor the names of its contributors | ||
8380 | * may be used to endorse or promote products derived from this software | ||
8381 | * without specific prior written permission. | ||
8382 | * | ||
8383 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
8384 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
8385 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
8386 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
8387 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
8388 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
8389 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
8390 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
8391 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
8392 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
8393 | * SUCH DAMAGE. | ||
8394 | * | ||
8395 | * @(#)nodes.c.pat 8.2 (Berkeley) 5/4/95 | ||
8396 | */ | ||
8397 | |||
8398 | /* | 7891 | /* |
8399 | * Routine for dealing with parsed shell commands. | 7892 | * Routine for dealing with parsed shell commands. |
8400 | */ | 7893 | */ |
@@ -8705,42 +8198,6 @@ freefunc(n) | |||
8705 | } | 8198 | } |
8706 | /* $NetBSD: options.c,v 1.31 2001/02/26 13:06:43 wiz Exp $ */ | 8199 | /* $NetBSD: options.c,v 1.31 2001/02/26 13:06:43 wiz Exp $ */ |
8707 | 8200 | ||
8708 | /*- | ||
8709 | * Copyright (c) 1991, 1993 | ||
8710 | * The Regents of the University of California. All rights reserved. | ||
8711 | * | ||
8712 | * This code is derived from software contributed to Berkeley by | ||
8713 | * Kenneth Almquist. | ||
8714 | * | ||
8715 | * Redistribution and use in source and binary forms, with or without | ||
8716 | * modification, are permitted provided that the following conditions | ||
8717 | * are met: | ||
8718 | * 1. Redistributions of source code must retain the above copyright | ||
8719 | * notice, this list of conditions and the following disclaimer. | ||
8720 | * 2. Redistributions in binary form must reproduce the above copyright | ||
8721 | * notice, this list of conditions and the following disclaimer in the | ||
8722 | * documentation and/or other materials provided with the distribution. | ||
8723 | * 3. All advertising materials mentioning features or use of this software | ||
8724 | * must display the following acknowledgement: | ||
8725 | * This product includes software developed by the University of | ||
8726 | * California, Berkeley and its contributors. | ||
8727 | * 4. Neither the name of the University nor the names of its contributors | ||
8728 | * may be used to endorse or promote products derived from this software | ||
8729 | * without specific prior written permission. | ||
8730 | * | ||
8731 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
8732 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
8733 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
8734 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
8735 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
8736 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
8737 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
8738 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
8739 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
8740 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
8741 | * SUCH DAMAGE. | ||
8742 | */ | ||
8743 | |||
8744 | 8201 | ||
8745 | struct optent optlist[NOPTS] = { | 8202 | struct optent optlist[NOPTS] = { |
8746 | { "errexit", 'e', 0 }, | 8203 | { "errexit", 'e', 0 }, |
@@ -9273,42 +8730,6 @@ nextopt(optstring) | |||
9273 | 8730 | ||
9274 | /* $NetBSD: output.c,v 1.23 2001/01/07 23:39:07 lukem Exp $ */ | 8731 | /* $NetBSD: output.c,v 1.23 2001/01/07 23:39:07 lukem Exp $ */ |
9275 | 8732 | ||
9276 | /*- | ||
9277 | * Copyright (c) 1991, 1993 | ||
9278 | * The Regents of the University of California. All rights reserved. | ||
9279 | * | ||
9280 | * This code is derived from software contributed to Berkeley by | ||
9281 | * Kenneth Almquist. | ||
9282 | * | ||
9283 | * Redistribution and use in source and binary forms, with or without | ||
9284 | * modification, are permitted provided that the following conditions | ||
9285 | * are met: | ||
9286 | * 1. Redistributions of source code must retain the above copyright | ||
9287 | * notice, this list of conditions and the following disclaimer. | ||
9288 | * 2. Redistributions in binary form must reproduce the above copyright | ||
9289 | * notice, this list of conditions and the following disclaimer in the | ||
9290 | * documentation and/or other materials provided with the distribution. | ||
9291 | * 3. All advertising materials mentioning features or use of this software | ||
9292 | * must display the following acknowledgement: | ||
9293 | * This product includes software developed by the University of | ||
9294 | * California, Berkeley and its contributors. | ||
9295 | * 4. Neither the name of the University nor the names of its contributors | ||
9296 | * may be used to endorse or promote products derived from this software | ||
9297 | * without specific prior written permission. | ||
9298 | * | ||
9299 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
9300 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
9301 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
9302 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
9303 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
9304 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
9305 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
9306 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
9307 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
9308 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
9309 | * SUCH DAMAGE. | ||
9310 | */ | ||
9311 | |||
9312 | /* | 8733 | /* |
9313 | * Shell output routines. We use our own output routines because: | 8734 | * Shell output routines. We use our own output routines because: |
9314 | * When a builtin command is interrupted we have to discard | 8735 | * When a builtin command is interrupted we have to discard |
@@ -9880,43 +9301,6 @@ __closememout() { | |||
9880 | #endif | 9301 | #endif |
9881 | /* $NetBSD: parser.c,v 1.46 2001/02/04 19:52:06 christos Exp $ */ | 9302 | /* $NetBSD: parser.c,v 1.46 2001/02/04 19:52:06 christos Exp $ */ |
9882 | 9303 | ||
9883 | /*- | ||
9884 | * Copyright (c) 1991, 1993 | ||
9885 | * The Regents of the University of California. All rights reserved. | ||
9886 | * | ||
9887 | * This code is derived from software contributed to Berkeley by | ||
9888 | * Kenneth Almquist. | ||
9889 | * | ||
9890 | * Redistribution and use in source and binary forms, with or without | ||
9891 | * modification, are permitted provided that the following conditions | ||
9892 | * are met: | ||
9893 | * 1. Redistributions of source code must retain the above copyright | ||
9894 | * notice, this list of conditions and the following disclaimer. | ||
9895 | * 2. Redistributions in binary form must reproduce the above copyright | ||
9896 | * notice, this list of conditions and the following disclaimer in the | ||
9897 | * documentation and/or other materials provided with the distribution. | ||
9898 | * 3. All advertising materials mentioning features or use of this software | ||
9899 | * must display the following acknowledgement: | ||
9900 | * This product includes software developed by the University of | ||
9901 | * California, Berkeley and its contributors. | ||
9902 | * 4. Neither the name of the University nor the names of its contributors | ||
9903 | * may be used to endorse or promote products derived from this software | ||
9904 | * without specific prior written permission. | ||
9905 | * | ||
9906 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
9907 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
9908 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
9909 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
9910 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
9911 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
9912 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
9913 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
9914 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
9915 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
9916 | * SUCH DAMAGE. | ||
9917 | */ | ||
9918 | |||
9919 | |||
9920 | /* | 9304 | /* |
9921 | * Shell command parser. | 9305 | * Shell command parser. |
9922 | */ | 9306 | */ |
@@ -11451,42 +10835,6 @@ findkwd(const char *s) { | |||
11451 | } | 10835 | } |
11452 | /* $NetBSD: redir.c,v 1.22 2000/05/22 10:18:47 elric Exp $ */ | 10836 | /* $NetBSD: redir.c,v 1.22 2000/05/22 10:18:47 elric Exp $ */ |
11453 | 10837 | ||
11454 | /*- | ||
11455 | * Copyright (c) 1991, 1993 | ||
11456 | * The Regents of the University of California. All rights reserved. | ||
11457 | * | ||
11458 | * This code is derived from software contributed to Berkeley by | ||
11459 | * Kenneth Almquist. | ||
11460 | * | ||
11461 | * Redistribution and use in source and binary forms, with or without | ||
11462 | * modification, are permitted provided that the following conditions | ||
11463 | * are met: | ||
11464 | * 1. Redistributions of source code must retain the above copyright | ||
11465 | * notice, this list of conditions and the following disclaimer. | ||
11466 | * 2. Redistributions in binary form must reproduce the above copyright | ||
11467 | * notice, this list of conditions and the following disclaimer in the | ||
11468 | * documentation and/or other materials provided with the distribution. | ||
11469 | * 3. All advertising materials mentioning features or use of this software | ||
11470 | * must display the following acknowledgement: | ||
11471 | * This product includes software developed by the University of | ||
11472 | * California, Berkeley and its contributors. | ||
11473 | * 4. Neither the name of the University nor the names of its contributors | ||
11474 | * may be used to endorse or promote products derived from this software | ||
11475 | * without specific prior written permission. | ||
11476 | * | ||
11477 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
11478 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
11479 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
11480 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
11481 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
11482 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
11483 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
11484 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
11485 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
11486 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
11487 | * SUCH DAMAGE. | ||
11488 | */ | ||
11489 | |||
11490 | /* | 10838 | /* |
11491 | * Code for dealing with input/output redirection. | 10839 | * Code for dealing with input/output redirection. |
11492 | */ | 10840 | */ |
@@ -11913,42 +11261,6 @@ noclobberopen(fname) | |||
11913 | } | 11261 | } |
11914 | /* $NetBSD: setmode.c,v 1.28 2000/01/25 15:43:43 enami Exp $ */ | 11262 | /* $NetBSD: setmode.c,v 1.28 2000/01/25 15:43:43 enami Exp $ */ |
11915 | 11263 | ||
11916 | /* | ||
11917 | * Copyright (c) 1989, 1993, 1994 | ||
11918 | * The Regents of the University of California. All rights reserved. | ||
11919 | * | ||
11920 | * This code is derived from software contributed to Berkeley by | ||
11921 | * Dave Borman at Cray Research, Inc. | ||
11922 | * | ||
11923 | * Redistribution and use in source and binary forms, with or without | ||
11924 | * modification, are permitted provided that the following conditions | ||
11925 | * are met: | ||
11926 | * 1. Redistributions of source code must retain the above copyright | ||
11927 | * notice, this list of conditions and the following disclaimer. | ||
11928 | * 2. Redistributions in binary form must reproduce the above copyright | ||
11929 | * notice, this list of conditions and the following disclaimer in the | ||
11930 | * documentation and/or other materials provided with the distribution. | ||
11931 | * 3. All advertising materials mentioning features or use of this software | ||
11932 | * must display the following acknowledgement: | ||
11933 | * This product includes software developed by the University of | ||
11934 | * California, Berkeley and its contributors. | ||
11935 | * 4. Neither the name of the University nor the names of its contributors | ||
11936 | * may be used to endorse or promote products derived from this software | ||
11937 | * without specific prior written permission. | ||
11938 | * | ||
11939 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
11940 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
11941 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
11942 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
11943 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
11944 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
11945 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
11946 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
11947 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
11948 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
11949 | * SUCH DAMAGE. | ||
11950 | */ | ||
11951 | |||
11952 | #ifdef __weak_alias | 11264 | #ifdef __weak_alias |
11953 | __weak_alias(getmode,_getmode) | 11265 | __weak_alias(getmode,_getmode) |
11954 | __weak_alias(setmode,_setmode) | 11266 | __weak_alias(setmode,_setmode) |
@@ -12376,42 +11688,6 @@ compress_mode(set) | |||
12376 | } | 11688 | } |
12377 | /* $NetBSD: show.c,v 1.18 1999/10/08 21:10:44 pk Exp $ */ | 11689 | /* $NetBSD: show.c,v 1.18 1999/10/08 21:10:44 pk Exp $ */ |
12378 | 11690 | ||
12379 | /*- | ||
12380 | * Copyright (c) 1991, 1993 | ||
12381 | * The Regents of the University of California. All rights reserved. | ||
12382 | * | ||
12383 | * This code is derived from software contributed to Berkeley by | ||
12384 | * Kenneth Almquist. | ||
12385 | * | ||
12386 | * Redistribution and use in source and binary forms, with or without | ||
12387 | * modification, are permitted provided that the following conditions | ||
12388 | * are met: | ||
12389 | * 1. Redistributions of source code must retain the above copyright | ||
12390 | * notice, this list of conditions and the following disclaimer. | ||
12391 | * 2. Redistributions in binary form must reproduce the above copyright | ||
12392 | * notice, this list of conditions and the following disclaimer in the | ||
12393 | * documentation and/or other materials provided with the distribution. | ||
12394 | * 3. All advertising materials mentioning features or use of this software | ||
12395 | * must display the following acknowledgement: | ||
12396 | * This product includes software developed by the University of | ||
12397 | * California, Berkeley and its contributors. | ||
12398 | * 4. Neither the name of the University nor the names of its contributors | ||
12399 | * may be used to endorse or promote products derived from this software | ||
12400 | * without specific prior written permission. | ||
12401 | * | ||
12402 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
12403 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
12404 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
12405 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
12406 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
12407 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
12408 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
12409 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
12410 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
12411 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
12412 | * SUCH DAMAGE. | ||
12413 | */ | ||
12414 | |||
12415 | 11691 | ||
12416 | #ifdef DEBUG | 11692 | #ifdef DEBUG |
12417 | static void shtree __P((union node *, int, char *, FILE*)); | 11693 | static void shtree __P((union node *, int, char *, FILE*)); |
@@ -13138,48 +12414,6 @@ static const char is_type[257] = { | |||
13138 | }; | 12414 | }; |
13139 | /* $NetBSD: trap.c,v 1.25 2001/02/04 19:52:07 christos Exp $ */ | 12415 | /* $NetBSD: trap.c,v 1.25 2001/02/04 19:52:07 christos Exp $ */ |
13140 | 12416 | ||
13141 | /*- | ||
13142 | * Copyright (c) 1991, 1993 | ||
13143 | * The Regents of the University of California. All rights reserved. | ||
13144 | * | ||
13145 | * This code is derived from software contributed to Berkeley by | ||
13146 | * Kenneth Almquist. | ||
13147 | * | ||
13148 | * Redistribution and use in source and binary forms, with or without | ||
13149 | * modification, are permitted provided that the following conditions | ||
13150 | * are met: | ||
13151 | * 1. Redistributions of source code must retain the above copyright | ||
13152 | * notice, this list of conditions and the following disclaimer. | ||
13153 | * 2. Redistributions in binary form must reproduce the above copyright | ||
13154 | * notice, this list of conditions and the following disclaimer in the | ||
13155 | * documentation and/or other materials provided with the distribution. | ||
13156 | * 3. All advertising materials mentioning features or use of this software | ||
13157 | * must display the following acknowledgement: | ||
13158 | * This product includes software developed by the University of | ||
13159 | * California, Berkeley and its contributors. | ||
13160 | * 4. Neither the name of the University nor the names of its contributors | ||
13161 | * may be used to endorse or promote products derived from this software | ||
13162 | * without specific prior written permission. | ||
13163 | * | ||
13164 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
13165 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
13166 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
13167 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
13168 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
13169 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
13170 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
13171 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
13172 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
13173 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
13174 | * SUCH DAMAGE. | ||
13175 | */ | ||
13176 | |||
13177 | /* | ||
13178 | * Sigmode records the current value of the signal handlers for the various | ||
13179 | * modes. A value of zero means that the current handler is not known. | ||
13180 | * S_HARD_IGN indicates that the signal was ignored on entry to the shell, | ||
13181 | */ | ||
13182 | |||
13183 | /* | 12417 | /* |
13184 | * The trap builtin. | 12418 | * The trap builtin. |
13185 | */ | 12419 | */ |
@@ -13509,43 +12743,6 @@ zero: | |||
13509 | } | 12743 | } |
13510 | /* $NetBSD: var.c,v 1.27 2001/02/04 19:52:07 christos Exp $ */ | 12744 | /* $NetBSD: var.c,v 1.27 2001/02/04 19:52:07 christos Exp $ */ |
13511 | 12745 | ||
13512 | /*- | ||
13513 | * Copyright (c) 1991, 1993 | ||
13514 | * The Regents of the University of California. All rights reserved. | ||
13515 | * | ||
13516 | * This code is derived from software contributed to Berkeley by | ||
13517 | * Kenneth Almquist. | ||
13518 | * | ||
13519 | * Redistribution and use in source and binary forms, with or without | ||
13520 | * modification, are permitted provided that the following conditions | ||
13521 | * are met: | ||
13522 | * 1. Redistributions of source code must retain the above copyright | ||
13523 | * notice, this list of conditions and the following disclaimer. | ||
13524 | * 2. Redistributions in binary form must reproduce the above copyright | ||
13525 | * notice, this list of conditions and the following disclaimer in the | ||
13526 | * documentation and/or other materials provided with the distribution. | ||
13527 | * 3. All advertising materials mentioning features or use of this software | ||
13528 | * must display the following acknowledgement: | ||
13529 | * This product includes software developed by the University of | ||
13530 | * California, Berkeley and its contributors. | ||
13531 | * 4. Neither the name of the University nor the names of its contributors | ||
13532 | * may be used to endorse or promote products derived from this software | ||
13533 | * without specific prior written permission. | ||
13534 | * | ||
13535 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
13536 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
13537 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
13538 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
13539 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
13540 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
13541 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
13542 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
13543 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
13544 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
13545 | * SUCH DAMAGE. | ||
13546 | */ | ||
13547 | |||
13548 | |||
13549 | #define VTABSIZE 39 | 12746 | #define VTABSIZE 39 |
13550 | 12747 | ||
13551 | 12748 | ||
@@ -14220,7 +13417,7 @@ findvar(struct var **vpp, const char *name) | |||
14220 | /* | 13417 | /* |
14221 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> | 13418 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> |
14222 | * This file contains code for the times builtin. | 13419 | * This file contains code for the times builtin. |
14223 | * $Id: ash.c,v 1.1 2001/06/28 07:25:15 andersen Exp $ | 13420 | * $Id: ash.c,v 1.2 2001/06/28 07:46:40 andersen Exp $ |
14224 | */ | 13421 | */ |
14225 | static int timescmd (int argc, char **argv) | 13422 | static int timescmd (int argc, char **argv) |
14226 | { | 13423 | { |
@@ -14240,3 +13437,39 @@ static int timescmd (int argc, char **argv) | |||
14240 | return 0; | 13437 | return 0; |
14241 | } | 13438 | } |
14242 | 13439 | ||
13440 | |||
13441 | /*- | ||
13442 | * Copyright (c) 1989, 1991, 1993, 1994 | ||
13443 | * The Regents of the University of California. All rights reserved. | ||
13444 | * | ||
13445 | * This code is derived from software contributed to Berkeley by | ||
13446 | * Kenneth Almquist. | ||
13447 | * | ||
13448 | * Redistribution and use in source and binary forms, with or without | ||
13449 | * modification, are permitted provided that the following conditions | ||
13450 | * are met: | ||
13451 | * 1. Redistributions of source code must retain the above copyright | ||
13452 | * notice, this list of conditions and the following disclaimer. | ||
13453 | * 2. Redistributions in binary form must reproduce the above copyright | ||
13454 | * notice, this list of conditions and the following disclaimer in the | ||
13455 | * documentation and/or other materials provided with the distribution. | ||
13456 | * | ||
13457 | * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change | ||
13458 | * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change> | ||
13459 | * | ||
13460 | * 4. Neither the name of the University nor the names of its contributors | ||
13461 | * may be used to endorse or promote products derived from this software | ||
13462 | * without specific prior written permission. | ||
13463 | * | ||
13464 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
13465 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
13466 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
13467 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
13468 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
13469 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
13470 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
13471 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
13472 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
13473 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
13474 | * SUCH DAMAGE. | ||
13475 | */ | ||