diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-07-18 10:40:15 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-07-18 10:40:15 +0000 |
commit | 04adf5332c666d066f6829c7b47862bb37caa675 (patch) | |
tree | c2d32403115e58858461b54eef4c6c7501771eb3 /share | |
parent | f67dc84fb8d096f91bbecf68bfc01eb126a1a8a3 (diff) |
pass atomic_{cas,swap}_uint a volatile void * instead of a volatile
void **. the latter is really hard to cast for, and not what what
solaris does.
ok kettenis@
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/atomic_cas_uint.9 | 6 | ||||
-rw-r--r-- | share/man/man9/atomic_swap_uint.9 | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/share/man/man9/atomic_cas_uint.9 b/share/man/man9/atomic_cas_uint.9 index a8e5370486a..a4840fb0443 100644 --- a/share/man/man9/atomic_cas_uint.9 +++ b/share/man/man9/atomic_cas_uint.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: atomic_cas_uint.9,v 1.5 2014/02/13 12:03:47 dlg Exp $ +.\" $OpenBSD: atomic_cas_uint.9,v 1.6 2014/07/18 10:40:14 dlg Exp $ .\" .\" Copyright (c) 2014 David Gwynne <dlg@openbsd.org> .\" All rights reserved. @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: February 13 2014 $ +.Dd $Mdocdate: July 18 2014 $ .Dt ATOMIC_CAS_UINT 9 .Os .Sh NAME @@ -30,7 +30,7 @@ .Ft unsigned long .Fn atomic_cas_ulong "volatile unsigned long *p" "unsigned long expected" "unsigned long new" .Ft void * -.Fn atomic_cas_ptr "volatile void **p" "void *expected" "void *new" +.Fn atomic_cas_ptr "volatile void *p" "void *expected" "void *new" .Sh DESCRIPTION The atomic_cas set of functions provide an interface for atomically performing compare-and-swap operations with respect to interrupts diff --git a/share/man/man9/atomic_swap_uint.9 b/share/man/man9/atomic_swap_uint.9 index c60dfbc302f..64c6b9e60f8 100644 --- a/share/man/man9/atomic_swap_uint.9 +++ b/share/man/man9/atomic_swap_uint.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: atomic_swap_uint.9,v 1.5 2014/02/13 12:03:47 dlg Exp $ +.\" $OpenBSD: atomic_swap_uint.9,v 1.6 2014/07/18 10:40:14 dlg Exp $ .\" .\" Copyright (c) 2014 David Gwynne <dlg@openbsd.org> .\" All rights reserved. @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: February 13 2014 $ +.Dd $Mdocdate: July 18 2014 $ .Dt ATOMIC_SWAP_UINT 9 .Os .Sh NAME @@ -30,7 +30,7 @@ .Ft unsigned long .Fn atomic_swap_ulong "volatile unsigned long *p" "unsigned long new" .Ft void * -.Fn atomic_swap_ptr "volatile void **p" "void *new" +.Fn atomic_swap_ptr "volatile void *p" "void *new" .Sh DESCRIPTION The atomic_swap set of functions provide an interface for atomically performing swap operations with respect to interrupts and multiple |