summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorDan McDonald <danmcd@joyent.com>2021-04-23 10:36:08 -0400
committerDan McDonald <danmcd@joyent.com>2021-04-23 10:36:08 -0400
commit3fbda93f5baf1ee1a0952503d8656a46bc846f6f (patch)
tree3302eb865143816dab81ecae1ccd964e1ca229d5 /usr/src
parent043819558530b9580af0efc07bc0af452bcfcef5 (diff)
parent99d240ec37397536063ecdea5644c8ef759c3e9a (diff)
downloadillumos-joyent-3fbda93f5baf1ee1a0952503d8656a46bc846f6f.tar.gz
[illumos-gate merge]
commit 99d240ec37397536063ecdea5644c8ef759c3e9a 13739 vnode reference leak in copen() commit fc14a9f656c392f9e8344484089464f018de6ef6 13699 strtod(3c)/wcstod(3c) man pages should mention math.h
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/man/man3c/strtod.3c9
-rw-r--r--usr/src/man/man3c/wcstod.3c9
-rw-r--r--usr/src/uts/common/syscall/open.c9
3 files changed, 15 insertions, 12 deletions
diff --git a/usr/src/man/man3c/strtod.3c b/usr/src/man/man3c/strtod.3c
index 2c79bb7373..ac50710053 100644
--- a/usr/src/man/man3c/strtod.3c
+++ b/usr/src/man/man3c/strtod.3c
@@ -44,7 +44,7 @@
.\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
.\" Portions Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
.\"
-.TH STRTOD 3C "Aug 25, 2019"
+.TH STRTOD 3C "Apr 21, 2021"
.SH NAME
strtod, strtof, strtold, atof \- convert string to floating-point number
.SH SYNOPSIS
@@ -206,7 +206,8 @@ conversion could be performed, \fB0\fR is returned.
If the correct value is outside the range of representable values,
\fB\(+-HUGE_VAL\fR, \fB\(+-HUGE_VALF\fR, or \fB\(+-HUGE_VALL\fR is returned
(according to the sign of the value), a floating point overflow exception is
-raised, and \fBerrno\fR is set to \fBERANGE\fR.
+raised, and \fBerrno\fR is set to \fBERANGE\fR. \fBHUGE_VAL\fR,
+\fBHUGE_VALF\fR, and \fBHUGE_VALL\fR are described in \fBmath.h\fR(3HEAD).
.sp
.LP
If the correct value would cause an underflow, the correctly rounded result
@@ -326,8 +327,8 @@ MT-Level MT-Safe with exceptions
.TE
.SH SEE ALSO
-\fBisspace\fR(3C), \fBlocaleconv\fR(3C), \fBscanf\fR(3C), \fBsetlocale\fR(3C),
-\fBstrtol\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
+\fBisspace\fR(3C), \fBlocaleconv\fR(3C), \fBmath.h\fR(3HEAD), \fBscanf\fR(3C),
+\fBsetlocale\fR(3C), \fBstrtol\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
.SH NOTES
The \fBstrtod()\fR and \fBatof()\fR functions can be used safely in
multithreaded applications, as long as \fBsetlocale\fR(3C) is not called to
diff --git a/usr/src/man/man3c/wcstod.3c b/usr/src/man/man3c/wcstod.3c
index e052148c30..276e95e4c5 100644
--- a/usr/src/man/man3c/wcstod.3c
+++ b/usr/src/man/man3c/wcstod.3c
@@ -43,7 +43,7 @@
.\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
.\" Portions Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved
.\"
-.TH WCSTOD 3C "Aug 25, 2019"
+.TH WCSTOD 3C "Apr 21, 2021"
.SH NAME
wcstod, wcstof, wcstold, wstod, watof \- convert wide character string to
floating-point number
@@ -219,7 +219,8 @@ conversion could be performed, \fB0\fR is returned.
If the correct value is outside the range of representable values,
\fB\(+-HUGE_VAL\fR, \fB\(+-HUGE_VALF\fR, or \fB\(+-HUGE_VALL\fR is returned
(according to the sign of the value), a floating point overflow exception is
-raised, and \fBerrno\fR is set to \fBERANGE\fR.
+raised, and \fBerrno\fR is set to \fBERANGE\fR. \fBHUGE_VAL\fR,
+\fBHUGE_VALF\fR, and \fBHUGE_VALL\fR are described in \fBmath.h\fR(3HEAD).
.sp
.LP
If the correct value would cause an underflow, the correctly rounded result
@@ -272,5 +273,5 @@ MT-Level MT-Safe
.TE
.SH SEE ALSO
-\fBiswspace\fR(3C), \fBlocaleconv\fR(3C), \fBscanf\fR(3C), \fBsetlocale\fR(3C),
-\fBwcstol\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
+\fBiswspace\fR(3C), \fBlocaleconv\fR(3C), \fBmath.h\fR(3HEAD), \fBscanf\fR(3C),
+\fBsetlocale\fR(3C), \fBwcstol\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
diff --git a/usr/src/uts/common/syscall/open.c b/usr/src/uts/common/syscall/open.c
index 874e31869c..94dc02b284 100644
--- a/usr/src/uts/common/syscall/open.c
+++ b/usr/src/uts/common/syscall/open.c
@@ -24,10 +24,11 @@
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
-/* All Rights Reserved */
+/* All Rights Reserved */
/*
* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
+ * Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
*/
/*
* Portions of this source code were derived from Berkeley 4.3 BSD
@@ -116,11 +117,11 @@ copen(int startfd, char *fname, int filemode, int createmode)
if (filemode & FXATTRDIROPEN) {
if (auditing && startvp != NULL)
audit_setfsat_path(1);
- if (error = lookupnameat(fname, seg, FOLLOW,
- NULLVPP, &vp, startvp))
- return (set_errno(error));
+ error = lookupnameat(fname, seg, FOLLOW, NULLVPP, &vp, startvp);
if (startvp != NULL)
VN_RELE(startvp);
+ if (error != 0)
+ return (set_errno(error));
startvp = vp;
}