linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PROBLEM: documentation error in man page for ptsname(3)
@ 2008-04-07  7:45 Charlie Gordon
  0 siblings, 0 replies; only message in thread
From: Charlie Gordon @ 2008-04-07  7:45 UTC (permalink / raw)
  To: linux-kernel

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)


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

only message in thread, other threads:[~2008-04-07  7:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-07  7:45 PROBLEM: documentation error in man page for ptsname(3) Charlie Gordon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).