lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <000701c89883$6a12bdd0$3d02a8c0@D35PN52J>
Date:	Mon, 7 Apr 2008 09:45:56 +0200
From:	"Charlie Gordon" <gnu@...rlie.org>
To:	<linux-kernel@...r.kernel.org>
Subject: PROBLEM: documentation error in man page for ptsname(3)

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)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ