Update copyright information in README and some header files
[platform/upstream/libatomic_ops.git] / README.md
1 # The atomic_ops library (`libatomic_ops`)
2
3 IN NEW CODE, PLEASE USE C11 OR C++14 STANDARD ATOMICS INSTEAD OF THIS PACKAGE.
4
5 This is version 7.6.4 of libatomic_ops.
6
7
8 ## Download
9
10 You might find a more recent/stable version on the
11 [Download](https://github.com/ivmai/libatomic_ops/wiki/Download) page, or
12 [BDWGC site](http://www.hboehm.info/gc/).
13
14 Also, the latest bug fixes and new features are available in the
15 [development repository](https://github.com/ivmai/libatomic_ops).
16
17
18 ## Overview
19
20 This package provides semi-portable access to hardware-provided
21 atomic memory update operations on a number of architectures.  These might
22 allow you to write code:
23
24 * That does more interesting things in signal handlers.
25
26 * Makes more effective use of multiprocessors by allowing you to write
27   clever lock-free code.  Note that such code is very difficult to get
28   right, and will unavoidably be less portable than lock-based code.  It
29   is also not always faster than lock-based code.  But it may occasionally
30   be a large performance win.
31
32 * To experiment with new and much better thread programming paradigms, etc.
33
34 For details and licensing restrictions see the files in the "doc"
35 subdirectory.
36
37
38 ## Installation and Usage
39
40 The configuration and build scripts for this package were generated by
41 Automake/Autoconf.  `./configure; make; sudo make install` in this
42 directory should work.  For a more customized build, see the output of
43 `./configure --help`.  To build it from the development repository,
44 `./autogen.sh` should be executed first.
45
46 Note that much of the content of this library is in the header files.
47 However, two small libraries are built and installed:
48
49 * `libatomic_ops.a` is a support library, which is not needed on some
50   platforms. This is intended to be usable, under some mild restrictions,
51   in free or proprietary code, as are all the header files.
52   See doc/LICENSING.txt.
53
54 * `libatomic_ops_gpl.a` contains some higher level facilities.  This code is
55   currently covered by the GPL.  The contents currently correspond to
56   the headers `atomic_ops_stack.h` and `atomic_ops_malloc.h`.
57
58
59 ## Platform Specific Notes
60
61 Win32/64: src/Makefile.msft contains a very simple Makefile for building
62 and running tests and building the gpl library.  The core `libatomic_ops`
63 implementation is entirely in header files.
64
65 HP-UX/PA-RISC: `aCC -Ae` won't work as a C compiler, since it doesn't support
66 inline assembly code.  Use cc.
67
68
69 ## Feedback, Contribution, Questions and Notifications
70
71 Please address bug reports and new feature ideas to
72 [GitHub issues](https://github.com/ivmai/libatomic_ops/issues).  Before the
73 submission please check that it has not been done yet by someone else.
74
75 If you want to contribute, submit
76 a [pull request](https://github.com/ivmai/libatomic_ops/pulls) to GitHub.
77
78 If you need help, use
79 [Stack Overflow](https://stackoverflow.com/questions/tagged/atomic-ops).
80 Older questions on the site can be found by
81 [this query](https://stackoverflow.com/search?q=atomic_ops).
82 Older technical discussions are also available in `bdwgc` mailing list
83 archive - it can be downloaded as a
84 [compressed file](https://github.com/ivmai/bdwgc/files/1038163/bdwgc-mailing-list-archive-2017_04.tar.gz)
85 or browsed at [Narkive](http://bdwgc.opendylan.narkive.com) (please search
86 for _atomic_ keyword).
87
88 To get new release announcements, subscribe to
89 [RSS feed](https://github.com/ivmai/libatomic_ops/releases.atom).
90 (To receive the notifications by email, a 3rd-party free service like
91 [IFTTT RSS Feed](https://ifttt.com/feed) can be setup.)
92 To be notified on all issues, please
93 [watch](https://github.com/ivmai/libatomic_ops/watchers) the project on
94 GitHub.
95
96
97 ## Copyright & Warranty
98
99  * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
100  * Copyright (c) 1996-1999 by Silicon Graphics.  All rights reserved.
101  * Copyright (c) 1999-2011 Hewlett-Packard Development Company, L.P.
102  * Copyright (c) 2008-2018 Ivan Maidanski
103
104 The file armcc/arm_v6.h is also
105
106  * Copyright (c) 2007 by NEC LE-IT.  All rights reserved.
107
108 The file gcc/avr32.h is
109
110  * Copyright (c) 2009 Bradley Smith <brad@brad-smith.co.uk>
111
112 The file gcc/mips.h is
113
114  * Copyright (c) 2005, 2007 Thiemo Seufer <ths@networkno.de>
115
116 The file gcc/sh.h is
117
118  * Copyright (c) 2009 by Takashi YOSHII. All rights reserved.
119
120 See doc/LICENSING.txt for the details.