man3/getpt.3: Clarify getpt() is a GNU extension
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.
Reported-by Helge Kreutzmann <[email protected]>
Signed-off-by Simon Essien <[email protected]>
--- man/man3/getpt.3 | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-)
man/man3/getpt.3 +6 -12
@@ -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