* null terminating byte man pages
@ 2013-04-25 13:07 Jon Grant
[not found] ` <CAGc9Evdt3W-OtH3B5xyWPtuLkVMuob2rK2_QWhqV_+Ev0S67LA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jon Grant @ 2013-04-25 13:07 UTC (permalink / raw)
To: Michael Kerrisk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hello
readdir (3) man page says:
"the terminating null byte"
Could it be updated to follow "man strlen" page and say:
"the terminating null byte ('\0')"
Other pages only say "null byte", e.g. getdomainname
http://man7.org/linux/man-pages/man2/setdomainname.2.html
Should they all be changed to clarify?
others: gethostname, readlink, stat, argz_add, asprintf, catgets,
confstr, getcwd, getline,
getlogin, memchr, pthread_setname_np, strerror, strfmon, strftime,
sysconf, inotify,
wprintf - should also say ('\0') ?
Thank you for looking into this
Best regards, Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: null terminating byte man pages
[not found] ` <CAGc9Evdt3W-OtH3B5xyWPtuLkVMuob2rK2_QWhqV_+Ev0S67LA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-05-19 17:55 ` Michael Kerrisk
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk @ 2013-05-19 17:55 UTC (permalink / raw)
To: Jon Grant; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hi Jon,
On 04/25/13 15:07, Jon Grant wrote:
> Hello
>
> readdir (3) man page says:
> "the terminating null byte"
>
> Could it be updated to follow "man strlen" page and say:
>
> "the terminating null byte ('\0')"
>
> Other pages only say "null byte", e.g. getdomainname
> http://man7.org/linux/man-pages/man2/setdomainname.2.html
>
> Should they all be changed to clarify?
>
> others: gethostname, readlink, stat, argz_add, asprintf, catgets,
> confstr, getcwd, getline,
> getlogin, memchr, pthread_setname_np, strerror, strfmon, strftime,
> sysconf, inotify,
>
> wprintf - should also say ('\0') ?
So (1) there is some inconsistency in the pages with respect to this
point, but I'm not too worried about it and (2) C programmers should
know what a terminating null byte is. Therefore, I'm not really
inclined to fix this in every case, but I did add the detail to
these pages:
readdir.2
asprintf.3
catgets.3
getline.3
getlogin.3
pthread_setname_np.3
readdir.3
strerror.3
inotify.7
Cheers,
Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-19 17:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-25 13:07 null terminating byte man pages Jon Grant
[not found] ` <CAGc9Evdt3W-OtH3B5xyWPtuLkVMuob2rK2_QWhqV_+Ev0S67LA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-05-19 17:55 ` Michael Kerrisk
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).