Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139430323
D42204.id128761.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
722 B
Referenced Files
None
Subscribers
None
D42204.id128761.diff
View Options
Index: lib/libc/stdlib/ptsname.3
===================================================================
--- lib/libc/stdlib/ptsname.3
+++ lib/libc/stdlib/ptsname.3
@@ -104,7 +104,20 @@
for the master device specified with
.Fa fildes .
.Sh RETURN VALUES
-.Rv -std grantpt ptsname_r unlockpt
+.Rv -std grantpt unlockpt
+.Pp
+The
+.Fn ptsname_r
+function returns the value 0 if successful;
+otherwise a nonzero value is returned and the global variable
+.Va errno
+is set to indicate the error.
+Note:
+.Fn ptsname_r
+was previously documented as returning -1 on error.
+In the future it will be changed to return an error number, for POSIX
+compatibility.
+Therefore, callers should not check for -1.
.Pp
The
.Fn ptsname
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 13, 12:19 AM (23 h, 1 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26906033
Default Alt Text
D42204.id128761.diff (722 B)
Attached To
Mode
D42204: ptsname.3: accommodate upcoming POSIX Issue 8 ptsname_r
Attached
Detach File
Event Timeline
Log In to Comment