v / thirdparty / libatomic_ops
Raw file | 76 loc (54 sloc) | 3.17 KB | Latest commit hash 90d9b200f
1MIT License (core library) / GPL-2.0 (gpl extension library)
2
3Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved.
4Copyright (c) 1996-1999 by Silicon Graphics. All rights reserved.
5Copyright (c) 1999-2011 Hewlett-Packard Development Company, L.P.
6Copyright (c) 2005, 2007 Thiemo Seufer
7Copyright (c) 2007 by NEC LE-IT. All rights reserved.
8Copyright (c) 2008-2022 Ivan Maidanski
9Copyright (c) 2009 Bradley Smith
10Copyright (c) 2009 by Takashi Yoshii. All rights reserved.
11
12
13Our intent is to make it easy to use libatomic_ops, in both free and
14proprietary software. Hence most of code (core library) that we expect to
15be linked into a client application is covered by a MIT or MIT-style license.
16
17However, a few library routines (the gpl extension library) are covered by
18the GNU General Public License. These are put into a separate library,
19libatomic_ops_gpl.a file.
20
21Most of the test code is covered by the GNU General Public License too.
22
23
24The low-level (core) part of the library (libatomic_ops.a) is mostly covered
25by the MIT license:
26
27----------------------------------------
28
29Copyright (c) ...
30
31Permission is hereby granted, free of charge, to any person obtaining a copy
32of this software and associated documentation files (the "Software"), to deal
33in the Software without restriction, including without limitation the rights
34to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35copies of the Software, and to permit persons to whom the Software is
36furnished to do so, subject to the following conditions:
37
38The above copyright notice and this permission notice shall be included in
39all copies or substantial portions of the Software.
40
41THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47SOFTWARE.
48
49--------------------------------
50
51
52Some files in the atomic_ops/sysdeps directory (part of core library) were
53inherited in part from the Boehm-Demers-Weiser conservative garbage collector,
54and are covered by its license, which is similar in spirit to MIT license:
55
56--------------------------------
57
58Copyright (c) ...
59
60THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
61OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
62
63Permission is hereby granted to use or copy this program
64for any purpose, provided the above notices are retained on all copies.
65Permission to modify the code and to distribute modified code is granted,
66provided the above notices are retained, and a notice that the code was
67modified is included with the above copyright notice.
68
69----------------------------------
70
71
72A few files are covered by the GNU General Public License. (See file
73"COPYING".) This applies only to the test code and the atomic_ops_gpl
74portion of the library. Thus, atomic_ops_gpl should generally not be
75linked into proprietary code. (This distinction was motivated by patent
76considerations.)