lkml.org 
[lkml]   [2008]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectPROBLEM: documentation error in man page for ptsname(3)
Date
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)



\
 
 \ /
  Last update: 2008-04-07 09:49    [W:0.024 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site