mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Charlie Gordon" <gnu@chqrlie.org>
To: <linux-kernel@vger.kernel.org>
Subject: PROBLEM: documentation error in man page for ptsname(3)
Date: Mon, 7 Apr 2008 09:45:56 +0200	[thread overview]
Message-ID: <000701c89883$6a12bdd0$3d02a8c0@D35PN52J> (raw)

The prototype for ptsname_r is incorrect.  It reads:

char *ptsname_r(int fd, char *buf, size_t buflen);

The actual prototype for this function in glibc stdlib.h is

extern int ptsname_r (int __fd, char *__buf, size_t __buflen);

This is very confusing as the test for an error is exactly the opposite ;-)

The manual page is dated 2004-12-17, but seems current as part of release 
2.79.  The bug is present in the online version at 
http://www.kernel.org/doc/man-pages/online/pages/man3/ptsname.3.html .

THX

-- 
Charles Gordon (chqrlie)


                 reply	other threads:[~2008-04-07  7:46 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='000701c89883$6a12bdd0$3d02a8c0@D35PN52J' \
    --to=gnu@chqrlie.org \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®