aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/ptsname.3
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2012-09-12 17:54:09 +0000
committerEd Maste <emaste@FreeBSD.org>2012-09-12 17:54:09 +0000
commit6cbb6bbb7761bc8545860d105b9e4aea1f74c33f (patch)
tree386a529a3fff37d9694452ff5de2f15c0569a4ed /lib/libc/stdlib/ptsname.3
parent7877ed7ce33ed9b977ac9b521f9a2f95b5d589bd (diff)
downloadsrc-6cbb6bbb7761bc8545860d105b9e4aea1f74c33f.tar.gz
src-6cbb6bbb7761bc8545860d105b9e4aea1f74c33f.zip
According to a clarification at http://austingroupbugs.net/view.php?id=503
ptsname may set errno, so avoid saving and restoring errno across the function. PR: standards/171572
Notes
Notes: svn path=/head/; revision=240412
Diffstat (limited to 'lib/libc/stdlib/ptsname.3')
-rw-r--r--lib/libc/stdlib/ptsname.33
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdlib/ptsname.3 b/lib/libc/stdlib/ptsname.3
index 48da3bd81c26..8e8ec07d1e53 100644
--- a/lib/libc/stdlib/ptsname.3
+++ b/lib/libc/stdlib/ptsname.3
@@ -102,7 +102,8 @@ of the slave device on success; otherwise a
pointer is returned.
.Sh ERRORS
The
-.Fn grantpt
+.Fn grantpt ,
+.Fn ptsname
and
.Fn unlockpt
functions may fail and set