summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2013-08-07 22:20:25 +0000
committermillert <millert@openbsd.org>2013-08-07 22:20:25 +0000
commitbd44f92ca8398cfd596868e6733e51b387eba4fb (patch)
tree821884af64ca2c796e5dae0de3827ba61ce4f5af
parentdisable libexec/identd and enable usr.sbin/identd. (diff)
downloadwireguard-openbsd-bd44f92ca8398cfd596868e6733e51b387eba4fb.tar.xz
wireguard-openbsd-bd44f92ca8398cfd596868e6733e51b387eba4fb.zip
Document lgamma_r, lgammaf_r, and lgammal_r.
Prodded by espie@, OK martynas@
-rw-r--r--lib/libm/man/lgamma.337
1 files changed, 35 insertions, 2 deletions
diff --git a/lib/libm/man/lgamma.3 b/lib/libm/man/lgamma.3
index 0e4bf818aea..914a8df95a4 100644
--- a/lib/libm/man/lgamma.3
+++ b/lib/libm/man/lgamma.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: lgamma.3,v 1.20 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: lgamma.3,v 1.21 2013/08/07 22:20:25 millert Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,13 +28,16 @@
.\"
.\" from: @(#)lgamma.3 6.6 (Berkeley) 12/3/92
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: August 7 2013 $
.Dt LGAMMA 3
.Os
.Sh NAME
.Nm lgamma ,
.Nm lgammaf ,
.Nm lgammal ,
+.Nm lgamma_r ,
+.Nm lgammaf_r ,
+.Nm lgammal_r ,
.Nm tgamma ,
.Nm tgammaf ,
.Nm tgammal
@@ -51,6 +54,12 @@
.Ft long double
.Fn lgammal "long double x"
.Ft double
+.Fn lgamma_r "double x" "int *signgamp"
+.Ft float
+.Fn lgammaf_r "float x" "int *signgamp"
+.Ft long double
+.Fn lgammal_r "long double x" "int *signgamp"
+.Ft double
.Fn tgamma "double x"
.Ft float
.Fn tgammaf "float x"
@@ -82,6 +91,21 @@ function is an extended precision version of
.Fn lgamma .
.Pp
The
+.Fn lgamma_r ,
+.Fn lgammaf_r ,
+and
+.Fn lgammal_r
+functions are thread-safe versions of
+.Fn lgamma ,
+.Fn lgammaf ,
+and
+.Fn lgammal
+that return the sign via the
+.Fa signgamp
+pointer instead of modifying
+.Fa signgam .
+.Pp
+The
.Fn tgamma x ,
.Fn tgammaf x
and
@@ -134,6 +158,15 @@ and
functions are expected to conform to
.St -isoC-99 .
.Pp
+The
+.Fn lgamma_r ,
+.Fn lgammaf_r ,
+and
+.Fn lgammal_r
+functions are
+.Bx
+extensions.
+.Pp
.Fn gamma
and
.Fn gammaf