From: Simon Essien <champbreed1@gmail.com>
To: alx@kernel.org
Cc: linux-man@vger.kernel.org, debian@helgeth.de, champbreed1@gmail.com
Subject: [PATCH] man3/getpt.3: Clarify getpt() is a GNU extension
Date: Tue, 6 Jan 2026 10:48:39 +0000 [thread overview]
Message-ID: <20260106104839.46777-1-champbreed1@gmail.com> (raw)
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
reply other threads:[~2026-01-06 10:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260106104839.46777-1-champbreed1@gmail.com \
--to=champbreed1@gmail.com \
--cc=alx@kernel.org \
--cc=debian@helgeth.de \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox