Skip to contentSkip to conversation

man3/getpt.3: Clarify getpt() is a GNU extension

PATCH New Simon Essien 1 participant 1 message Jan 6 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 man3/getpt.3: Clarify getpt() is a GNU extension

Move the recommendation to use posix_openpt(3) to a new NOTES section and clarify that getpt() is glibc-specific. Update VERSIONS to show glibc availability.

---
 man/man3/getpt.3 | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)
man/man3/getpt.3 +6 -12
index 49e024856..de39f87fa 100644
@@ -58,17 +58,11 @@ T{
 T}	Thread safety	MT-Safe
 .TE
 .SH VERSIONS
-Use
-.BR posix_openpt (3)
-instead.
+Available since glibc 2.1.
 .SH STANDARDS
 GNU.
-.SH HISTORY
-glibc 2.1.
-.SH SEE ALSO
-.BR grantpt (3),
-.BR posix_openpt (3),
-.BR ptsname (3),
-.BR unlockpt (3),
-.BR ptmx (4),
-.BR pty (7)
+.SH NOTES
+.BR getpt ()
+is a glibc-specific extension; use
+.BR posix_openpt (3)
+instead in new programs.
Signature · 1 line
2.51.0