2 // Copyright (c) 1998, M. Warner Losh <imp@freebsd.org>
3 // All rights reserved.
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions
8 // 1. Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.c
10 // 2. Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
14 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 // This license applies to all the permissions of the below mentioned function.
31 // Copyright (c) 1981, 1993
32 // The Regents of the University of California. All rights reserved.
34 // This code is derived from software contributed to Berkeley by
37 // Redistribution and use in source and binary forms, with or without
38 // modification, are permitted provided that the following conditions
40 // 1. Redistributions of source code must retain the above copyright
41 // notice, this list of conditions and the following disclaimer.
42 // 2. Redistributions in binary form must reproduce the above copyright
43 // notice, this list of conditions and the following disclaimer in the
44 // documentation and/or other materials provided with the distribution.
45 // 3. All advertising materials mentioning features or use of this software
46 // must display the following acknowledgement:
47 // This product includes software developed by the University of
48 // California, Berkeley and its contributors.
49 // 4. Neither the name of the University nor the names of its contributors
50 // may be used to endorse or promote products derived from this software
51 // without specific prior written permission.
53 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
54 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
55 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
56 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
57 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
58 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
59 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
60 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
61 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
62 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
67 // Copyright (c) 1990, 2007 The Regents of the University of California.
68 // All rights reserved.
70 // Redistribution and use in source and binary forms are permitted
71 // provided that the above copyright notice and this paragraph are
72 // duplicated in all such forms and that any documentation,
73 // advertising materials, and other materials related to such
74 // distribution and use acknowledge that the software was developed
75 // by the University of California, Berkeley. The name of the
76 // University may not be used to endorse or promote products derived
77 // from this software without specific prior written permission.
78 // THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
79 // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
80 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
82 // This license applies to all the permissions of the below mentioned functions.
83 // Functions: asiprintf, iprintf, fiprintf, siprintf, sniprintf, vasiprintf,
84 // viprintf, vsiprintf, vsniprintf, siscanf, vfiscanf, vsiscanf, fiscanf
89 // Copyright (c) 1990 The Regents of the University of California.
90 // All rights reserved.
92 // This code is derived from software contributed to Berkeley by
95 // Redistribution and use in source and binary forms, with or without
96 // modification, are permitted provided that the following conditions
98 // 1. Redistributions of source code must retain the above copyright
99 // notice, this list of conditions and the following disclaimer.
100 // 2. Redistributions in binary form must reproduce the above copyright
101 // notice, this list of conditions and the following disclaimer in the
102 // documentation and/or other materials provided with the distribution.
103 // 3. All advertising materials mentioning features or use of this software
104 // must display the following acknowledgement:
105 // This product includes software developed by the University of
106 // California, Berkeley and its contributors.
107 // 4. Neither the name of the University nor the names of its contributors
108 // may be used to endorse or promote products derived from this software
109 // without specific prior written permission.
111 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
112 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
113 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
114 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
115 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
116 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
117 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
118 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
119 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
120 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
123 // This license applies to all the permissions of the below mentioned function.
124 // Function: vfiprintf
128 // Copyright (C) 2007, 2008 Eric Blake
129 // Permission to use, copy, modify, and distribute this software
130 // is freely granted, provided that this notice is preserved.
132 // This license applies to all the permissions of the below mentioned functions.
133 // Functions: asnprintfc, vasnprintf, asniprintf, vasniprintf, funopen, fropen, fwopen
137 // Copyright 2005, 2007 Shaun Jackman
138 // Permission to use, copy, modify, and distribute this software
139 // is freely granted, provided that this notice is preserved.
141 // This license applies to all the permissions of the below mentioned functions.
142 // Functions: diprintf, vdiprintf
146 // Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
147 // All rights reserved.
149 // Redistribution and use in source and binary forms, with or without
150 // modification, are permitted provided that the following conditions
152 // 1. Redistributions of source code must retain the above copyright
153 // notice, this list of conditions and the following disclaimer.
154 // 2. Redistributions in binary form must reproduce the above copyright
155 // notice, this list of conditions and the following disclaimer in the
156 // documentation and/or other materials provided with the distribution.
157 // 3. The name of the author may not be used to endorse or promote products
158 // derived from this software without specific prior written permission.
160 // THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
161 // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
162 // AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
163 // THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
164 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
165 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
166 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
167 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
168 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
169 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
171 // This license applies to all the permissions of the below mentioned functions.
172 // Functions: wcslcat, wcslcpy