This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/14872] libc web page doesn't specify if PATH_MAX and others include nul terminator


http://sourceware.org/bugzilla/show_bug.cgi?id=14872

--- Comment #6 from Jon Grant <jg at jguk dot org> 2013-01-03 16:13:23 UTC ---
(In reply to comment #5)
> (In reply to comment #3)
> > The whole POSIX filename interface is byte oriented, so this should be obvious.
> 
> It's only obvious to people who work with this stuff all the time. And many
> people reading the documentation are not. 
> 
> Really, the manual should clarify in each case that the unit is bytes. This is
> especially problematic because various other parts of the manual refer to
> "characters" when discussing NAME_MAX, PATH_MAX, and perhaps some of the other
> limits. All of those cases (easily found with a grep through the texi files)
> should be fixed.

This is a good point. For me, coming from win32 where I have wopen() it left me
wondering.. So I support the idea of confirming the character unit is byte, as
it wasn't obvious to me, that's why I asked the question!

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]