Skip to contentSkip to conversation

gethostid/sethostid in wrong manual section

DISCUSSION Colin Watson 2 participants 2 messages Dec 22, 2008 – Jan 12, 2009 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/17551 reports (and I've confirmed) that gethostid/sethostid are in section 2 despite being implemented by glibc, not the kernel; they aren't just syscall stubs either. Should they be moved to section 3?

Thanks,

Signature · 5 lines
Colin Watson                                       [cjwatson-GeWIH/[email protected]]
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to a message not in the archive

Hi Colin,

Quoted 4 lines · Colin Watson

https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/17551 reports (and I've confirmed) that gethostid/sethostid are in section 2 despite being implemented by glibc, not the kernel; they aren't just syscall stubs either. Should they be moved to section 3?

I suspect this is a historical thing, since in the original BSD docs, these interfaces were documented in Section 2, although I see FreeBSD for example now has them in Section 3.

Anyway, I have relocated the page to section 3 as you suggest, and created some .so link files so that "man 2 [gs]ethostid" will continue to do the right thing.

(There were also a few other broken pieces in the page -- e.g., no return value or error description for sethostid() -- that I also fixed along the way.)

The changes will be in man-pages-3.16.

Cheers,

Michael

Signature · 9 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html