public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] man3/getpt.3: Clarify getpt() is a GNU extension
@ 2026-01-06 10:48 Simon Essien
  0 siblings, 0 replies; only message in thread
From: Simon Essien @ 2026-01-06 10:48 UTC (permalink / raw)
  To: alx; +Cc: linux-man, debian, champbreed1

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 <debian@helgeth.de>
Signed-off-by: Simon Essien <champbreed1@gmail.com>
---
 man/man3/getpt.3 | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/man/man3/getpt.3 b/man/man3/getpt.3
index 49e024856..de39f87fa 100644
--- a/man/man3/getpt.3
+++ b/man/man3/getpt.3
@@ -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.
-- 
2.51.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-06 10:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-06 10:48 [PATCH] man3/getpt.3: Clarify getpt() is a GNU extension Simon Essien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox