@pgxsinkit/pgwasm-pg-dump 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -0
- package/NOTICE +1019 -0
- package/README.md +82 -0
- package/artefacts/pg_dump.d.ts +6 -0
- package/artefacts/pg_dump.js +2 -0
- package/artefacts/pg_dump.wasm +0 -0
- package/dist/artefact-pins.d.ts +36 -0
- package/dist/artefact-pins.d.ts.map +1 -0
- package/dist/artefacts.d.ts +14 -0
- package/dist/artefacts.d.ts.map +1 -0
- package/dist/emscripten.d.ts +38 -0
- package/dist/emscripten.d.ts.map +1 -0
- package/dist/errors.d.ts +34 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/framing.d.ts +25 -0
- package/dist/framing.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +456 -0
- package/dist/index.js.map +16 -0
- package/dist/output.d.ts +14 -0
- package/dist/output.d.ts.map +1 -0
- package/dist/pg-dump.d.ts +30 -0
- package/dist/pg-dump.d.ts.map +1 -0
- package/dist/session.d.ts +35 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/wasm.d.ts +2 -0
- package/dist/wasm.d.ts.map +1 -0
- package/package.json +48 -0
- package/src/artefact-pins.ts +30 -0
- package/src/artefacts.ts +16 -0
- package/src/emscripten.ts +43 -0
- package/src/errors.ts +52 -0
- package/src/framing.ts +70 -0
- package/src/index.ts +2 -0
- package/src/output.ts +86 -0
- package/src/pg-dump.ts +260 -0
- package/src/session.ts +173 -0
- package/src/wasm.ts +34 -0
package/NOTICE
ADDED
|
@@ -0,0 +1,1019 @@
|
|
|
1
|
+
@pgxsinkit/pgwasm-pg-dump
|
|
2
|
+
=========================
|
|
3
|
+
|
|
4
|
+
This package republishes compiled third-party software and includes code that began as
|
|
5
|
+
a copy of third-party code. These attributions are permanent.
|
|
6
|
+
|
|
7
|
+
------------------------------------------------------------------------------
|
|
8
|
+
ElectricSQL — @electric-sql/pglite-tools (the pg_dump wrapper under `src/`)
|
|
9
|
+
------------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
The code that runs pg_dump over a database's wire (`src/pg-dump.ts`,
|
|
12
|
+
`src/emscripten.ts`, `src/wasm.ts`) began as a copy of ElectricSQL's PGlite
|
|
13
|
+
(`packages/pglite-tools`, and the artefact loading of `packages/pglite-utils`):
|
|
14
|
+
|
|
15
|
+
Source: https://github.com/electric-sql/pglite
|
|
16
|
+
License: PostgreSQL License (PGlite is dual-licensed Apache-2.0 / PostgreSQL
|
|
17
|
+
License, at the licensee's choice; pgxsinkit takes it under the
|
|
18
|
+
PostgreSQL License)
|
|
19
|
+
Copyright (c) ElectricSQL and contributors
|
|
20
|
+
|
|
21
|
+
Owned outright (ADR-0062); compatibility with PGlite is an explicit anti-goal. The
|
|
22
|
+
PostgreSQL License text is in LICENSE.
|
|
23
|
+
|
|
24
|
+
------------------------------------------------------------------------------
|
|
25
|
+
The artefacts, and what is compiled into them
|
|
26
|
+
------------------------------------------------------------------------------
|
|
27
|
+
|
|
28
|
+
`artefacts/` holds two files: assets of the pgwasm-postgres release 18.6.1
|
|
29
|
+
(https://github.com/pgxsinkit/pgwasm-postgres/releases/tag/18.6.1), the release that also holds `@pgxsinkit/pgwasm-c`'s server, republished
|
|
30
|
+
byte-identical (each file's size and sha256 are pinned in `src/artefact-pins.ts`, from
|
|
31
|
+
the release's manifest.json checked against its SHA256SUMS):
|
|
32
|
+
|
|
33
|
+
- `pg_dump.wasm`: pg_dump from PostgreSQL 18.6 (it reports
|
|
34
|
+
`pg_dump (PostgreSQL) 18.6`), compiled to WebAssembly;
|
|
35
|
+
- `pg_dump.js`, its Emscripten-generated loader.
|
|
36
|
+
|
|
37
|
+
pgxsinkit/pgwasm-postgres (https://github.com/pgxsinkit/pgwasm-postgres) builds them
|
|
38
|
+
from PostgreSQL 18.6 (the upstream tag REL_18_6, commit
|
|
39
|
+
724edf9bde9d356724ad384a2e196edc3c9f80f7) plus a patch series and an overlay derived
|
|
40
|
+
from ElectricSQL's PGlite fork of PostgreSQL
|
|
41
|
+
(https://github.com/electric-sql/postgres-pglite at
|
|
42
|
+
b133782cd759f08b3aeb263b80a963b39c7b7af1; PostgreSQL License, Copyright (c)
|
|
43
|
+
ElectricSQL and contributors). Release 18.6.1 is pgwasm-postgres commit
|
|
44
|
+
28f0c1551db8c7f5df143ef1e424c641af93072d, built inside the builder image
|
|
45
|
+
ghcr.io/pgxsinkit/pgwasm-builder@sha256:0c4d5255c5f1824216d1eb347cc231a6f881574c3d5b8172796a8cbe5f9f63c8
|
|
46
|
+
(whose recipe is that repository's `builder/Containerfile`); its manifest.json records
|
|
47
|
+
every file's size and sha256, and the release was published only because a rebuild of
|
|
48
|
+
the tag gave the gated build's manifest. pg_dump is built with the server, in the same run.
|
|
49
|
+
|
|
50
|
+
What is compiled in comes from the build (`build-pglite.sh`,
|
|
51
|
+
`src/bin/pg_dump/Makefile`) and from the binary itself:
|
|
52
|
+
|
|
53
|
+
- pg_dump is linked from its own objects, libpq and PostgreSQL's frontend
|
|
54
|
+
libraries (fe_utils, pgcommon, pgport), with ElectricSQL's `pglitec.c`, the host
|
|
55
|
+
shims that route libpq's socket calls to the loader's callbacks;
|
|
56
|
+
- the configure line (--with-zlib --with-libxml --with-icu --with-openssl=no
|
|
57
|
+
--without-llvm) puts -lz and -lxml2 on every program's link line. zlib is
|
|
58
|
+
compiled in: its inflate messages are in pg_dump.wasm. No code from libxml2 or
|
|
59
|
+
ICU is: none of their messages or names are in the binary (pg_dump calls none of
|
|
60
|
+
them, and the link keeps only what is called), so their notices are not
|
|
61
|
+
reproduced here (`@pgxsinkit/pgwasm-c`'s NOTICE has them);
|
|
62
|
+
- Emscripten 6.0.10 (the builder image's) provides the loader's runtime and the
|
|
63
|
+
system libraries: musl libc and LLVM's compiler-rt. pg_dump is C, and no C++
|
|
64
|
+
runtime (libc++, libc++abi) is in the binary.
|
|
65
|
+
|
|
66
|
+
Not included: OpenSSL (--with-openssl=no), GSSAPI, LZ4 and Zstandard (not
|
|
67
|
+
configured), and the backend's own third-party code (its regular-expression engine,
|
|
68
|
+
Snowball), which pg_dump does not contain.
|
|
69
|
+
|
|
70
|
+
Each component's notice follows, copied from the file named with it.
|
|
71
|
+
|
|
72
|
+
------------------------------------------------------------------------------
|
|
73
|
+
PostgreSQL 18.6, with changes derived from ElectricSQL's for PGlite (pg_dump.wasm)
|
|
74
|
+
------------------------------------------------------------------------------
|
|
75
|
+
|
|
76
|
+
Source: https://github.com/electric-sql/postgres-pglite at b133782cd759f08b3aeb263b80a963b39c7b7af1,
|
|
77
|
+
file COPYRIGHT. ElectricSQL's changes in that tree are distributed under the same file.
|
|
78
|
+
|
|
79
|
+
PostgreSQL Database Management System
|
|
80
|
+
(also known as Postgres, formerly known as Postgres95)
|
|
81
|
+
|
|
82
|
+
Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
|
|
83
|
+
|
|
84
|
+
Portions Copyright (c) 1994, The Regents of the University of California
|
|
85
|
+
|
|
86
|
+
Permission to use, copy, modify, and distribute this software and its
|
|
87
|
+
documentation for any purpose, without fee, and without a written agreement
|
|
88
|
+
is hereby granted, provided that the above copyright notice and this
|
|
89
|
+
paragraph and the following two paragraphs appear in all copies.
|
|
90
|
+
|
|
91
|
+
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
|
|
92
|
+
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
|
|
93
|
+
LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
|
|
94
|
+
DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE
|
|
95
|
+
POSSIBILITY OF SUCH DAMAGE.
|
|
96
|
+
|
|
97
|
+
THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
|
|
98
|
+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
99
|
+
AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
100
|
+
ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
|
|
101
|
+
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
102
|
+
|
|
103
|
+
These PostgreSQL source files, compiled into PostgreSQL's frontend libraries, carry
|
|
104
|
+
their own licences, which ask for their notice in binary distributions. Some of the
|
|
105
|
+
src/port files are compiled only where the C library lacks the function; all are
|
|
106
|
+
listed. Each is reproduced from the same tree:
|
|
107
|
+
|
|
108
|
+
src/common/md5.c
|
|
109
|
+
|
|
110
|
+
/*
|
|
111
|
+
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
|
112
|
+
* All rights reserved.
|
|
113
|
+
*
|
|
114
|
+
* Redistribution and use in source and binary forms, with or without
|
|
115
|
+
* modification, are permitted provided that the following conditions
|
|
116
|
+
* are met:
|
|
117
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
118
|
+
* notice, this list of conditions and the following disclaimer.
|
|
119
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
120
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
121
|
+
* documentation and/or other materials provided with the distribution.
|
|
122
|
+
* 3. Neither the name of the project nor the names of its contributors
|
|
123
|
+
* may be used to endorse or promote products derived from this software
|
|
124
|
+
* without specific prior written permission.
|
|
125
|
+
*
|
|
126
|
+
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
|
127
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
128
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
129
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
|
130
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
131
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
132
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
133
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
134
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
135
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
136
|
+
* SUCH DAMAGE.
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
src/common/md5_int.h
|
|
140
|
+
|
|
141
|
+
/*
|
|
142
|
+
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
|
143
|
+
* All rights reserved.
|
|
144
|
+
*
|
|
145
|
+
* Redistribution and use in source and binary forms, with or without
|
|
146
|
+
* modification, are permitted provided that the following conditions
|
|
147
|
+
* are met:
|
|
148
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
149
|
+
* notice, this list of conditions and the following disclaimer.
|
|
150
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
151
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
152
|
+
* documentation and/or other materials provided with the distribution.
|
|
153
|
+
* 3. Neither the name of the project nor the names of its contributors
|
|
154
|
+
* may be used to endorse or promote products derived from this software
|
|
155
|
+
* without specific prior written permission.
|
|
156
|
+
*
|
|
157
|
+
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
|
158
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
159
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
160
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
|
161
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
162
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
163
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
164
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
165
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
166
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
167
|
+
* SUCH DAMAGE.
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
src/common/sha1.c
|
|
171
|
+
|
|
172
|
+
/*
|
|
173
|
+
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
|
174
|
+
* All rights reserved.
|
|
175
|
+
*
|
|
176
|
+
* Redistribution and use in source and binary forms, with or without
|
|
177
|
+
* modification, are permitted provided that the following conditions
|
|
178
|
+
* are met:
|
|
179
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
180
|
+
* notice, this list of conditions and the following disclaimer.
|
|
181
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
182
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
183
|
+
* documentation and/or other materials provided with the distribution.
|
|
184
|
+
* 3. Neither the name of the project nor the names of its contributors
|
|
185
|
+
* may be used to endorse or promote products derived from this software
|
|
186
|
+
* without specific prior written permission.
|
|
187
|
+
*
|
|
188
|
+
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
|
189
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
190
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
191
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
|
192
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
193
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
194
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
195
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
196
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
197
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
198
|
+
* SUCH DAMAGE.
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
src/common/sha1_int.h
|
|
202
|
+
|
|
203
|
+
/*
|
|
204
|
+
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
|
205
|
+
* All rights reserved.
|
|
206
|
+
*
|
|
207
|
+
* Redistribution and use in source and binary forms, with or without
|
|
208
|
+
* modification, are permitted provided that the following conditions
|
|
209
|
+
* are met:
|
|
210
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
211
|
+
* notice, this list of conditions and the following disclaimer.
|
|
212
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
213
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
214
|
+
* documentation and/or other materials provided with the distribution.
|
|
215
|
+
* 3. Neither the name of the project nor the names of its contributors
|
|
216
|
+
* may be used to endorse or promote products derived from this software
|
|
217
|
+
* without specific prior written permission.
|
|
218
|
+
*
|
|
219
|
+
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
|
220
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
221
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
222
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
|
223
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
224
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
225
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
226
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
227
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
228
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
229
|
+
* SUCH DAMAGE.
|
|
230
|
+
*/
|
|
231
|
+
|
|
232
|
+
src/common/sha2.c
|
|
233
|
+
|
|
234
|
+
/*
|
|
235
|
+
* FILE: sha2.c
|
|
236
|
+
* AUTHOR: Aaron D. Gifford <me@aarongifford.com>
|
|
237
|
+
*
|
|
238
|
+
* Copyright (c) 2000-2001, Aaron D. Gifford
|
|
239
|
+
* All rights reserved.
|
|
240
|
+
*
|
|
241
|
+
* Redistribution and use in source and binary forms, with or without
|
|
242
|
+
* modification, are permitted provided that the following conditions
|
|
243
|
+
* are met:
|
|
244
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
245
|
+
* notice, this list of conditions and the following disclaimer.
|
|
246
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
247
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
248
|
+
* documentation and/or other materials provided with the distribution.
|
|
249
|
+
* 3. Neither the name of the copyright holder nor the names of contributors
|
|
250
|
+
* may be used to endorse or promote products derived from this software
|
|
251
|
+
* without specific prior written permission.
|
|
252
|
+
*
|
|
253
|
+
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND
|
|
254
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
255
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
256
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE
|
|
257
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
258
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
259
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
260
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
261
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
262
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
263
|
+
* SUCH DAMAGE.
|
|
264
|
+
*
|
|
265
|
+
* $From: sha2.c,v 1.1 2001/11/08 00:01:51 adg Exp adg $
|
|
266
|
+
*/
|
|
267
|
+
|
|
268
|
+
src/common/sha2_int.h
|
|
269
|
+
|
|
270
|
+
/*
|
|
271
|
+
* FILE: sha2.h
|
|
272
|
+
* AUTHOR: Aaron D. Gifford <me@aarongifford.com>
|
|
273
|
+
*
|
|
274
|
+
* Copyright (c) 2000-2001, Aaron D. Gifford
|
|
275
|
+
* All rights reserved.
|
|
276
|
+
*
|
|
277
|
+
* Redistribution and use in source and binary forms, with or without
|
|
278
|
+
* modification, are permitted provided that the following conditions
|
|
279
|
+
* are met:
|
|
280
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
281
|
+
* notice, this list of conditions and the following disclaimer.
|
|
282
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
283
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
284
|
+
* documentation and/or other materials provided with the distribution.
|
|
285
|
+
* 3. Neither the name of the copyright holder nor the names of contributors
|
|
286
|
+
* may be used to endorse or promote products derived from this software
|
|
287
|
+
* without specific prior written permission.
|
|
288
|
+
*
|
|
289
|
+
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND
|
|
290
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
291
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
292
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE
|
|
293
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
294
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
295
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
296
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
297
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
298
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
299
|
+
* SUCH DAMAGE.
|
|
300
|
+
*
|
|
301
|
+
* $From: sha2.h,v 1.1 2001/11/08 00:02:01 adg Exp adg $
|
|
302
|
+
*/
|
|
303
|
+
|
|
304
|
+
src/include/lib/sort_template.h
|
|
305
|
+
|
|
306
|
+
/*-
|
|
307
|
+
* Copyright (c) 1992, 1993
|
|
308
|
+
* The Regents of the University of California. All rights reserved.
|
|
309
|
+
*
|
|
310
|
+
* Redistribution and use in source and binary forms, with or without
|
|
311
|
+
* modification, are permitted provided that the following conditions
|
|
312
|
+
* are met:
|
|
313
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
314
|
+
* notice, this list of conditions and the following disclaimer.
|
|
315
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
316
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
317
|
+
* documentation and/or other materials provided with the distribution.
|
|
318
|
+
* 3. Neither the name of the University nor the names of its contributors
|
|
319
|
+
* may be used to endorse or promote products derived from this software
|
|
320
|
+
* without specific prior written permission.
|
|
321
|
+
*
|
|
322
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
323
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
324
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
325
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
326
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
327
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
328
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
329
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
330
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
331
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
332
|
+
* SUCH DAMAGE.
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
src/port/bsearch_arg.c
|
|
336
|
+
|
|
337
|
+
/*
|
|
338
|
+
* bsearch_arg.c: bsearch variant with a user-supplied pointer
|
|
339
|
+
*
|
|
340
|
+
* Copyright (c) 2021-2025, PostgreSQL Global Development Group
|
|
341
|
+
* Copyright (c) 1990 Regents of the University of California.
|
|
342
|
+
* All rights reserved.
|
|
343
|
+
*
|
|
344
|
+
* Redistribution and use in source and binary forms, with or without
|
|
345
|
+
* modification, are permitted provided that the following conditions
|
|
346
|
+
* are met:
|
|
347
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
348
|
+
* notice, this list of conditions and the following disclaimer.
|
|
349
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
350
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
351
|
+
* documentation and/or other materials provided with the distribution.
|
|
352
|
+
* 3. [rescinded 22 July 1999]
|
|
353
|
+
* 4. Neither the name of the University nor the names of its contributors
|
|
354
|
+
* may be used to endorse or promote products derived from this software
|
|
355
|
+
* without specific prior written permission.
|
|
356
|
+
*
|
|
357
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
358
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
359
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
360
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
361
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
362
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
363
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
364
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
365
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
366
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
367
|
+
* SUCH DAMAGE.
|
|
368
|
+
*
|
|
369
|
+
* src/port/bsearch_arg.c
|
|
370
|
+
*/
|
|
371
|
+
|
|
372
|
+
src/port/getopt.c
|
|
373
|
+
|
|
374
|
+
/*
|
|
375
|
+
* Copyright (c) 1987, 1993, 1994
|
|
376
|
+
* The Regents of the University of California. All rights reserved.
|
|
377
|
+
*
|
|
378
|
+
* Redistribution and use in source and binary forms, with or without
|
|
379
|
+
* modification, are permitted provided that the following conditions
|
|
380
|
+
* are met:
|
|
381
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
382
|
+
* notice, this list of conditions and the following disclaimer.
|
|
383
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
384
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
385
|
+
* documentation and/or other materials provided with the distribution.
|
|
386
|
+
* 3. Neither the name of the University nor the names of its contributors
|
|
387
|
+
* may be used to endorse or promote products derived from this software
|
|
388
|
+
* without specific prior written permission.
|
|
389
|
+
*
|
|
390
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
391
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
392
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
393
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
394
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
395
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
396
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
397
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
398
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
399
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
400
|
+
* SUCH DAMAGE.
|
|
401
|
+
*/
|
|
402
|
+
|
|
403
|
+
src/port/getopt_long.c
|
|
404
|
+
|
|
405
|
+
/*
|
|
406
|
+
* getopt_long() -- long options parser
|
|
407
|
+
*
|
|
408
|
+
* Portions Copyright (c) 1987, 1993, 1994
|
|
409
|
+
* The Regents of the University of California. All rights reserved.
|
|
410
|
+
*
|
|
411
|
+
* Portions Copyright (c) 2003
|
|
412
|
+
* PostgreSQL Global Development Group
|
|
413
|
+
*
|
|
414
|
+
* Redistribution and use in source and binary forms, with or without
|
|
415
|
+
* modification, are permitted provided that the following conditions
|
|
416
|
+
* are met:
|
|
417
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
418
|
+
* notice, this list of conditions and the following disclaimer.
|
|
419
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
420
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
421
|
+
* documentation and/or other materials provided with the distribution.
|
|
422
|
+
* 3. Neither the name of the University nor the names of its contributors
|
|
423
|
+
* may be used to endorse or promote products derived from this software
|
|
424
|
+
* without specific prior written permission.
|
|
425
|
+
*
|
|
426
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
427
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
428
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
429
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
430
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
431
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
432
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
433
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
434
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
435
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
436
|
+
* SUCH DAMAGE.
|
|
437
|
+
*
|
|
438
|
+
* src/port/getopt_long.c
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
src/port/inet_aton.c
|
|
442
|
+
|
|
443
|
+
/*
|
|
444
|
+
* Copyright (c) 1983, 1990, 1993
|
|
445
|
+
* The Regents of the University of California. All rights reserved.
|
|
446
|
+
*
|
|
447
|
+
* Redistribution and use in source and binary forms, with or without
|
|
448
|
+
* modification, are permitted provided that the following conditions
|
|
449
|
+
* are met:
|
|
450
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
451
|
+
* notice, this list of conditions and the following disclaimer.
|
|
452
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
453
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
454
|
+
* documentation and/or other materials provided with the distribution.
|
|
455
|
+
* 3. Neither the name of the University nor the names of its contributors
|
|
456
|
+
* may be used to endorse or promote products derived from this software
|
|
457
|
+
* without specific prior written permission.
|
|
458
|
+
*
|
|
459
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
460
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
461
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
462
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
463
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
464
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
465
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
466
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
467
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
468
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
469
|
+
* SUCH DAMAGE. */
|
|
470
|
+
|
|
471
|
+
src/port/mkdtemp.c
|
|
472
|
+
|
|
473
|
+
/*
|
|
474
|
+
* Copyright (c) 1987, 1993
|
|
475
|
+
* The Regents of the University of California. All rights reserved.
|
|
476
|
+
*
|
|
477
|
+
* Redistribution and use in source and binary forms, with or without
|
|
478
|
+
* modification, are permitted provided that the following conditions
|
|
479
|
+
* are met:
|
|
480
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
481
|
+
* notice, this list of conditions and the following disclaimer.
|
|
482
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
483
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
484
|
+
* documentation and/or other materials provided with the distribution.
|
|
485
|
+
* 3. Neither the name of the University nor the names of its contributors
|
|
486
|
+
* may be used to endorse or promote products derived from this software
|
|
487
|
+
* without specific prior written permission.
|
|
488
|
+
*
|
|
489
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
490
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
491
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
492
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
493
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
494
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
495
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
496
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
497
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
498
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
499
|
+
* SUCH DAMAGE.
|
|
500
|
+
*/
|
|
501
|
+
/*
|
|
502
|
+
* Copyright (c) 1987, 1993
|
|
503
|
+
* The Regents of the University of California. All rights reserved.
|
|
504
|
+
*
|
|
505
|
+
* Redistribution and use in source and binary forms, with or without
|
|
506
|
+
* modification, are permitted provided that the following conditions
|
|
507
|
+
* are met:
|
|
508
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
509
|
+
* notice, this list of conditions and the following disclaimer.
|
|
510
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
511
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
512
|
+
* documentation and/or other materials provided with the distribution.
|
|
513
|
+
* 3. Neither the name of the University nor the names of its contributors
|
|
514
|
+
* may be used to endorse or promote products derived from this software
|
|
515
|
+
* without specific prior written permission.
|
|
516
|
+
*
|
|
517
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
518
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
519
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
520
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
521
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
522
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
523
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
524
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
525
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
526
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
527
|
+
* SUCH DAMAGE.
|
|
528
|
+
*/
|
|
529
|
+
|
|
530
|
+
src/port/pgmkdirp.c
|
|
531
|
+
|
|
532
|
+
/*
|
|
533
|
+
* This is adapted from FreeBSD's src/bin/mkdir/mkdir.c, which bears
|
|
534
|
+
* the following copyright notice:
|
|
535
|
+
*
|
|
536
|
+
* Copyright (c) 1983, 1992, 1993
|
|
537
|
+
* The Regents of the University of California. All rights reserved.
|
|
538
|
+
*
|
|
539
|
+
* Redistribution and use in source and binary forms, with or without
|
|
540
|
+
* modification, are permitted provided that the following conditions
|
|
541
|
+
* are met:
|
|
542
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
543
|
+
* notice, this list of conditions and the following disclaimer.
|
|
544
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
545
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
546
|
+
* documentation and/or other materials provided with the distribution.
|
|
547
|
+
* 4. Neither the name of the University nor the names of its contributors
|
|
548
|
+
* may be used to endorse or promote products derived from this software
|
|
549
|
+
* without specific prior written permission.
|
|
550
|
+
*
|
|
551
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
552
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
553
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
554
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
555
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
556
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
557
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
558
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
559
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
560
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
561
|
+
* SUCH DAMAGE.
|
|
562
|
+
*/
|
|
563
|
+
|
|
564
|
+
src/port/snprintf.c
|
|
565
|
+
|
|
566
|
+
/*
|
|
567
|
+
* Copyright (c) 1983, 1995, 1996 Eric P. Allman
|
|
568
|
+
* Copyright (c) 1988, 1993
|
|
569
|
+
* The Regents of the University of California. All rights reserved.
|
|
570
|
+
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
|
|
571
|
+
*
|
|
572
|
+
* Redistribution and use in source and binary forms, with or without
|
|
573
|
+
* modification, are permitted provided that the following conditions
|
|
574
|
+
* are met:
|
|
575
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
576
|
+
* notice, this list of conditions and the following disclaimer.
|
|
577
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
578
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
579
|
+
* documentation and/or other materials provided with the distribution.
|
|
580
|
+
* 3. Neither the name of the University nor the names of its contributors
|
|
581
|
+
* may be used to endorse or promote products derived from this software
|
|
582
|
+
* without specific prior written permission.
|
|
583
|
+
*
|
|
584
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
585
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
586
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
587
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
588
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
589
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
590
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
591
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
592
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
593
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
594
|
+
* SUCH DAMAGE.
|
|
595
|
+
*
|
|
596
|
+
* src/port/snprintf.c
|
|
597
|
+
*/
|
|
598
|
+
|
|
599
|
+
src/port/strsep.c
|
|
600
|
+
|
|
601
|
+
/*-
|
|
602
|
+
* Copyright (c) 1990, 1993
|
|
603
|
+
* The Regents of the University of California. All rights reserved.
|
|
604
|
+
*
|
|
605
|
+
* Redistribution and use in source and binary forms, with or without
|
|
606
|
+
* modification, are permitted provided that the following conditions
|
|
607
|
+
* are met:
|
|
608
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
609
|
+
* notice, this list of conditions and the following disclaimer.
|
|
610
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
611
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
612
|
+
* documentation and/or other materials provided with the distribution.
|
|
613
|
+
* 3. Neither the name of the University nor the names of its contributors
|
|
614
|
+
* may be used to endorse or promote products derived from this software
|
|
615
|
+
* without specific prior written permission.
|
|
616
|
+
*
|
|
617
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
618
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
619
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
620
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
621
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
622
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
623
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
624
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
625
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
626
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
627
|
+
* SUCH DAMAGE.
|
|
628
|
+
*/
|
|
629
|
+
|
|
630
|
+
------------------------------------------------------------------------------
|
|
631
|
+
zlib 1.3.2 (pg_dump.wasm)
|
|
632
|
+
------------------------------------------------------------------------------
|
|
633
|
+
|
|
634
|
+
Source: https://raw.githubusercontent.com/madler/zlib/v1.3.2/LICENSE
|
|
635
|
+
|
|
636
|
+
Copyright notice:
|
|
637
|
+
|
|
638
|
+
(C) 1995-2026 Jean-loup Gailly and Mark Adler
|
|
639
|
+
|
|
640
|
+
This software is provided 'as-is', without any express or implied
|
|
641
|
+
warranty. In no event will the authors be held liable for any damages
|
|
642
|
+
arising from the use of this software.
|
|
643
|
+
|
|
644
|
+
Permission is granted to anyone to use this software for any purpose,
|
|
645
|
+
including commercial applications, and to alter it and redistribute it
|
|
646
|
+
freely, subject to the following restrictions:
|
|
647
|
+
|
|
648
|
+
1. The origin of this software must not be misrepresented; you must not
|
|
649
|
+
claim that you wrote the original software. If you use this software
|
|
650
|
+
in a product, an acknowledgment in the product documentation would be
|
|
651
|
+
appreciated but is not required.
|
|
652
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
653
|
+
misrepresented as being the original software.
|
|
654
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
655
|
+
|
|
656
|
+
Jean-loup Gailly Mark Adler
|
|
657
|
+
jloup@gzip.org madler@alumni.caltech.edu
|
|
658
|
+
|
|
659
|
+
------------------------------------------------------------------------------
|
|
660
|
+
Emscripten 6.0.10 (the runtime in pg_dump.js, and its system libraries in pg_dump.wasm)
|
|
661
|
+
------------------------------------------------------------------------------
|
|
662
|
+
|
|
663
|
+
Source: https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.10/LICENSE
|
|
664
|
+
|
|
665
|
+
Emscripten is available under 2 licenses, the MIT license and the
|
|
666
|
+
University of Illinois/NCSA Open Source License.
|
|
667
|
+
|
|
668
|
+
Both are permissive open source licenses, with little if any
|
|
669
|
+
practical difference between them.
|
|
670
|
+
|
|
671
|
+
The reason for offering both is that (1) the MIT license is
|
|
672
|
+
well-known, while (2) the University of Illinois/NCSA Open Source
|
|
673
|
+
License allows Emscripten's code to be integrated upstream into
|
|
674
|
+
LLVM, which uses that license, should the opportunity arise.
|
|
675
|
+
|
|
676
|
+
The full text of both licenses follows.
|
|
677
|
+
|
|
678
|
+
==============================================================================
|
|
679
|
+
|
|
680
|
+
Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file.
|
|
681
|
+
|
|
682
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
683
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
684
|
+
in the Software without restriction, including without limitation the rights
|
|
685
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
686
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
687
|
+
furnished to do so, subject to the following conditions:
|
|
688
|
+
|
|
689
|
+
The above copyright notice and this permission notice shall be included in
|
|
690
|
+
all copies or substantial portions of the Software.
|
|
691
|
+
|
|
692
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
693
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
694
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
695
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
696
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
697
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
698
|
+
THE SOFTWARE.
|
|
699
|
+
|
|
700
|
+
==============================================================================
|
|
701
|
+
|
|
702
|
+
Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file.
|
|
703
|
+
All rights reserved.
|
|
704
|
+
|
|
705
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
706
|
+
copy of this software and associated documentation files (the
|
|
707
|
+
"Software"), to deal with the Software without restriction, including
|
|
708
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
709
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
710
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
711
|
+
the following conditions:
|
|
712
|
+
|
|
713
|
+
Redistributions of source code must retain the above copyright
|
|
714
|
+
notice, this list of conditions and the following disclaimers.
|
|
715
|
+
|
|
716
|
+
Redistributions in binary form must reproduce the above
|
|
717
|
+
copyright notice, this list of conditions and the following disclaimers
|
|
718
|
+
in the documentation and/or other materials provided with the
|
|
719
|
+
distribution.
|
|
720
|
+
|
|
721
|
+
Neither the names of Mozilla,
|
|
722
|
+
nor the names of its contributors may be used to endorse
|
|
723
|
+
or promote products derived from this Software without specific prior
|
|
724
|
+
written permission.
|
|
725
|
+
|
|
726
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
727
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
728
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
729
|
+
IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
|
730
|
+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
731
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
732
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
|
|
733
|
+
|
|
734
|
+
==============================================================================
|
|
735
|
+
|
|
736
|
+
This program uses portions of Node.js source code located in src/library_path.js,
|
|
737
|
+
in accordance with the terms of the MIT license. Node's license follows:
|
|
738
|
+
|
|
739
|
+
"""
|
|
740
|
+
Copyright Joyent, Inc. and other Node contributors. All rights reserved.
|
|
741
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
742
|
+
of this software and associated documentation files (the "Software"), to
|
|
743
|
+
deal in the Software without restriction, including without limitation the
|
|
744
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
745
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
746
|
+
furnished to do so, subject to the following conditions:
|
|
747
|
+
|
|
748
|
+
The above copyright notice and this permission notice shall be included in
|
|
749
|
+
all copies or substantial portions of the Software.
|
|
750
|
+
|
|
751
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
752
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
753
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
754
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
755
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
756
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
757
|
+
IN THE SOFTWARE.
|
|
758
|
+
"""
|
|
759
|
+
|
|
760
|
+
The musl libc project is bundled in this repo, and it has the MIT license, see
|
|
761
|
+
system/lib/libc/musl/COPYRIGHT
|
|
762
|
+
|
|
763
|
+
The third_party/ subdirectory contains code with other licenses. None of it is
|
|
764
|
+
used by default, but certain options use it (e.g., the optional closure compiler
|
|
765
|
+
flag will run closure compiler from third_party/).
|
|
766
|
+
|
|
767
|
+
------------------------------------------------------------------------------
|
|
768
|
+
musl libc, as bundled in Emscripten 6.0.10 (pg_dump.wasm)
|
|
769
|
+
------------------------------------------------------------------------------
|
|
770
|
+
|
|
771
|
+
Source: https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.10/system/lib/libc/musl/COPYRIGHT
|
|
772
|
+
|
|
773
|
+
musl as a whole is licensed under the following standard MIT license:
|
|
774
|
+
|
|
775
|
+
----------------------------------------------------------------------
|
|
776
|
+
Copyright © 2005-2020 Rich Felker, et al.
|
|
777
|
+
|
|
778
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
779
|
+
a copy of this software and associated documentation files (the
|
|
780
|
+
"Software"), to deal in the Software without restriction, including
|
|
781
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
782
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
783
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
784
|
+
the following conditions:
|
|
785
|
+
|
|
786
|
+
The above copyright notice and this permission notice shall be
|
|
787
|
+
included in all copies or substantial portions of the Software.
|
|
788
|
+
|
|
789
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
790
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
791
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
792
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
793
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
794
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
795
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
796
|
+
----------------------------------------------------------------------
|
|
797
|
+
|
|
798
|
+
Authors/contributors include:
|
|
799
|
+
|
|
800
|
+
A. Wilcox
|
|
801
|
+
Ada Worcester
|
|
802
|
+
Alex Dowad
|
|
803
|
+
Alex Suykov
|
|
804
|
+
Alexander Monakov
|
|
805
|
+
Andre McCurdy
|
|
806
|
+
Andrew Kelley
|
|
807
|
+
Anthony G. Basile
|
|
808
|
+
Aric Belsito
|
|
809
|
+
Arvid Picciani
|
|
810
|
+
Bartosz Brachaczek
|
|
811
|
+
Benjamin Peterson
|
|
812
|
+
Bobby Bingham
|
|
813
|
+
Boris Brezillon
|
|
814
|
+
Brent Cook
|
|
815
|
+
Chris Spiegel
|
|
816
|
+
Clément Vasseur
|
|
817
|
+
Daniel Micay
|
|
818
|
+
Daniel Sabogal
|
|
819
|
+
Daurnimator
|
|
820
|
+
David Carlier
|
|
821
|
+
David Edelsohn
|
|
822
|
+
Denys Vlasenko
|
|
823
|
+
Dmitry Ivanov
|
|
824
|
+
Dmitry V. Levin
|
|
825
|
+
Drew DeVault
|
|
826
|
+
Emil Renner Berthing
|
|
827
|
+
Fangrui Song
|
|
828
|
+
Felix Fietkau
|
|
829
|
+
Felix Janda
|
|
830
|
+
Gianluca Anzolin
|
|
831
|
+
Hauke Mehrtens
|
|
832
|
+
He X
|
|
833
|
+
Hiltjo Posthuma
|
|
834
|
+
Isaac Dunham
|
|
835
|
+
Jaydeep Patil
|
|
836
|
+
Jens Gustedt
|
|
837
|
+
Jeremy Huntwork
|
|
838
|
+
Jo-Philipp Wich
|
|
839
|
+
Joakim Sindholt
|
|
840
|
+
John Spencer
|
|
841
|
+
Julien Ramseier
|
|
842
|
+
Justin Cormack
|
|
843
|
+
Kaarle Ritvanen
|
|
844
|
+
Khem Raj
|
|
845
|
+
Kylie McClain
|
|
846
|
+
Leah Neukirchen
|
|
847
|
+
Luca Barbato
|
|
848
|
+
Luka Perkov
|
|
849
|
+
Lynn Ochs
|
|
850
|
+
M Farkas-Dyck (Strake)
|
|
851
|
+
Mahesh Bodapati
|
|
852
|
+
Markus Wichmann
|
|
853
|
+
Masanori Ogino
|
|
854
|
+
Michael Clark
|
|
855
|
+
Michael Forney
|
|
856
|
+
Mikhail Kremnyov
|
|
857
|
+
Natanael Copa
|
|
858
|
+
Nicholas J. Kain
|
|
859
|
+
orc
|
|
860
|
+
Pascal Cuoq
|
|
861
|
+
Patrick Oppenlander
|
|
862
|
+
Petr Hosek
|
|
863
|
+
Petr Skocik
|
|
864
|
+
Pierre Carrier
|
|
865
|
+
Reini Urban
|
|
866
|
+
Rich Felker
|
|
867
|
+
Richard Pennington
|
|
868
|
+
Ryan Fairfax
|
|
869
|
+
Samuel Holland
|
|
870
|
+
Segev Finer
|
|
871
|
+
Shiz
|
|
872
|
+
sin
|
|
873
|
+
Solar Designer
|
|
874
|
+
Stefan Kristiansson
|
|
875
|
+
Stefan O'Rear
|
|
876
|
+
Szabolcs Nagy
|
|
877
|
+
Timo Teräs
|
|
878
|
+
Trutz Behn
|
|
879
|
+
Will Dietz
|
|
880
|
+
William Haddon
|
|
881
|
+
William Pitcock
|
|
882
|
+
|
|
883
|
+
Portions of this software are derived from third-party works licensed
|
|
884
|
+
under terms compatible with the above MIT license:
|
|
885
|
+
|
|
886
|
+
The TRE regular expression implementation (src/regex/reg* and
|
|
887
|
+
src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed
|
|
888
|
+
under a 2-clause BSD license (license text in the source files). The
|
|
889
|
+
included version has been heavily modified by Rich Felker in 2012, in
|
|
890
|
+
the interests of size, simplicity, and namespace cleanliness.
|
|
891
|
+
|
|
892
|
+
Much of the math library code (src/math/* and src/complex/*) is
|
|
893
|
+
Copyright © 1993,2004 Sun Microsystems or
|
|
894
|
+
Copyright © 2003-2011 David Schultz or
|
|
895
|
+
Copyright © 2003-2009 Steven G. Kargl or
|
|
896
|
+
Copyright © 2003-2009 Bruce D. Evans or
|
|
897
|
+
Copyright © 2008 Stephen L. Moshier or
|
|
898
|
+
Copyright © 2017-2018 Arm Limited
|
|
899
|
+
and labelled as such in comments in the individual source files. All
|
|
900
|
+
have been licensed under extremely permissive terms.
|
|
901
|
+
|
|
902
|
+
The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008
|
|
903
|
+
The Android Open Source Project and is licensed under a two-clause BSD
|
|
904
|
+
license. It was taken from Bionic libc, used on Android.
|
|
905
|
+
|
|
906
|
+
The AArch64 memcpy and memset code (src/string/aarch64/*) are
|
|
907
|
+
Copyright © 1999-2019, Arm Limited.
|
|
908
|
+
|
|
909
|
+
The implementation of DES for crypt (src/crypt/crypt_des.c) is
|
|
910
|
+
Copyright © 1994 David Burren. It is licensed under a BSD license.
|
|
911
|
+
|
|
912
|
+
The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was
|
|
913
|
+
originally written by Solar Designer and placed into the public
|
|
914
|
+
domain. The code also comes with a fallback permissive license for use
|
|
915
|
+
in jurisdictions that may not recognize the public domain.
|
|
916
|
+
|
|
917
|
+
The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011
|
|
918
|
+
Lynn Ochs and is licensed under an MIT-style license.
|
|
919
|
+
|
|
920
|
+
The x86_64 port was written by Nicholas J. Kain and is licensed under
|
|
921
|
+
the standard MIT terms.
|
|
922
|
+
|
|
923
|
+
The mips and microblaze ports were originally written by Richard
|
|
924
|
+
Pennington for use in the ellcc project. The original code was adapted
|
|
925
|
+
by Rich Felker for build system and code conventions during upstream
|
|
926
|
+
integration. It is licensed under the standard MIT terms.
|
|
927
|
+
|
|
928
|
+
The mips64 port was contributed by Imagination Technologies and is
|
|
929
|
+
licensed under the standard MIT terms.
|
|
930
|
+
|
|
931
|
+
The powerpc port was also originally written by Richard Pennington,
|
|
932
|
+
and later supplemented and integrated by John Spencer. It is licensed
|
|
933
|
+
under the standard MIT terms.
|
|
934
|
+
|
|
935
|
+
All other files which have no copyright comments are original works
|
|
936
|
+
produced specifically for use as part of this library, written either
|
|
937
|
+
by Rich Felker, the main author of the library, or by one or more
|
|
938
|
+
contibutors listed above. Details on authorship of individual files
|
|
939
|
+
can be found in the git version control history of the project. The
|
|
940
|
+
omission of copyright and license comments in each file is in the
|
|
941
|
+
interest of source tree size.
|
|
942
|
+
|
|
943
|
+
In addition, permission is hereby granted for all public header files
|
|
944
|
+
(include/* and arch/*/bits/*) and crt files intended to be linked into
|
|
945
|
+
applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit
|
|
946
|
+
the copyright notice and permission notice otherwise required by the
|
|
947
|
+
license, and to use these files without any requirement of
|
|
948
|
+
attribution. These files include substantial contributions from:
|
|
949
|
+
|
|
950
|
+
Bobby Bingham
|
|
951
|
+
John Spencer
|
|
952
|
+
Nicholas J. Kain
|
|
953
|
+
Rich Felker
|
|
954
|
+
Richard Pennington
|
|
955
|
+
Stefan Kristiansson
|
|
956
|
+
Szabolcs Nagy
|
|
957
|
+
|
|
958
|
+
all of whom have explicitly granted such permission.
|
|
959
|
+
|
|
960
|
+
This file previously contained text expressing a belief that most of
|
|
961
|
+
the files covered by the above exception were sufficiently trivial not
|
|
962
|
+
to be subject to copyright, resulting in confusion over whether it
|
|
963
|
+
negated the permissions granted in the license. In the spirit of
|
|
964
|
+
permissive licensing, and of not having licensing issues being an
|
|
965
|
+
obstacle to adoption, that text has been removed.
|
|
966
|
+
|
|
967
|
+
------------------------------------------------------------------------------
|
|
968
|
+
compiler-rt, as bundled in Emscripten 6.0.10 (pg_dump.wasm)
|
|
969
|
+
------------------------------------------------------------------------------
|
|
970
|
+
|
|
971
|
+
Source: https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.10/system/lib/compiler-rt/LICENSE.TXT
|
|
972
|
+
|
|
973
|
+
It is under the Apache License v2.0 with LLVM Exceptions. Its object code is
|
|
974
|
+
embedded in pg_dump.wasm, which the exception covers:
|
|
975
|
+
|
|
976
|
+
---- LLVM Exceptions to the Apache 2.0 License ----
|
|
977
|
+
|
|
978
|
+
As an exception, if, as a result of your compiling your source code, portions
|
|
979
|
+
of this Software are embedded into an Object form of such source code, you
|
|
980
|
+
may redistribute such embedded portions in such Object form without complying
|
|
981
|
+
with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
|
|
982
|
+
|
|
983
|
+
In addition, if you combine or link compiled forms of this Software with
|
|
984
|
+
software that is licensed under the GPLv2 ("Combined Software") and if a
|
|
985
|
+
court of competent jurisdiction determines that the patent provision (Section
|
|
986
|
+
3), the indemnity provision (Section 9) or other Section of the License
|
|
987
|
+
conflicts with the conditions of the GPLv2, you may retroactively and
|
|
988
|
+
prospectively choose to deem waived or otherwise exclude such Section(s) of
|
|
989
|
+
the License, but only in their entirety and only with respect to the Combined
|
|
990
|
+
Software.
|
|
991
|
+
|
|
992
|
+
Its legacy licence (dual NCSA / MIT; the MIT notice is reproduced):
|
|
993
|
+
|
|
994
|
+
The compiler_rt library is dual licensed under both the University of Illinois
|
|
995
|
+
"BSD-Like" license and the MIT license. As a user of this code you may choose
|
|
996
|
+
to use it under either license. As a contributor, you agree to allow your code
|
|
997
|
+
to be used under both.
|
|
998
|
+
|
|
999
|
+
Full text of the relevant licenses is included below.
|
|
1000
|
+
|
|
1001
|
+
Copyright (c) 2009-2015 by the contributors listed in CREDITS.TXT
|
|
1002
|
+
|
|
1003
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1004
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1005
|
+
in the Software without restriction, including without limitation the rights
|
|
1006
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1007
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1008
|
+
furnished to do so, subject to the following conditions:
|
|
1009
|
+
|
|
1010
|
+
The above copyright notice and this permission notice shall be included in
|
|
1011
|
+
all copies or substantial portions of the Software.
|
|
1012
|
+
|
|
1013
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1014
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1015
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1016
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1017
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1018
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1019
|
+
THE SOFTWARE.
|