Implementation of xchg primitives derived from MIT license
[urcu.git] / LICENSE
CommitLineData
af02d47e
MD
1Userspace RCU library licensing
2Mathieu Desnoyers
3May 10, 2009
4
0114ba7f
MD
5
6* LGPLv2.1
7
af02d47e
MD
8The library part is distributed under LGPLv2.1 or later. See lgpl-2.1.txt for
9details. This applies to :
10
11urcu.h
12urcu.c
13urcu-static.h
14arch_x86.h
15arch_ppc.h
16
17LGPL-compatible source code can statically use the library header using :
18
19#define _LGPL_SOURCE
20#include <urcu.h>
21
22Dynamic-only linking with the LGPL library is used if _LGPL_SOURCE is not
23defined. It permits relinking with newer versions of the library, which is
24required by the LGPL license.
25
0114ba7f
MD
26
27* MIT-style license :
28
29xchg() privimitive has been rewritten from scratch starting from atomic_ops 1.2
30which has a MIT-style license that is intended to allow use in both free and
31proprietary software:
32 http://www.hpl.hp.com/research/linux/atomic_ops/LICENSING.txt
33 http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
34
35This license applies to :
36
37arch_atomic_x86.h
38arch_atomic_ppc.h
39
40
41* GPLv2
42
af02d47e
MD
43Library test code is distributed under the GPLv2 license. See gpl-2.0.txt for
44details. This applies to :
45
46urcutorture.h
47urcutorture.c
48api_x86.h
49api_ppc.h
50test_urcu.c
51test_urcu_yield.c
52test_rwlock_timing.c
5e13fab8 53urcu-asm.c
0114ba7f
MD
54
55
56Various details :
57
58ACCESS_ONCE(), likely(), unlikely() and barrier() are considered trivial enough
59that copyright does not apply to them. I (Mathieu Desnoyers) re-typed them from
60scratch in a mail client just to prove it.
This page took 0.024325 seconds and 4 git commands to generate.