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