Frederik, On Mon, Nov 24, 2008 at 4:41 PM, Frederik Schwarzer <[EMAIL PROTECTED]> wrote: > Package: manpages-dev > Version: 3.13-2 > Severity: normal > > man 2 gethostname says: > ---8<--- > #include <unistd.h> > > int gethostname(char *name, size_t len); > int sethostname(const char *name, size_t len); > --->8--- > However, gethostname is not defined there, it is just an external there.
I'm not sure what you are meaning here. That header file *declares* the function. What's the problem? > Thus using the unistd include does not work. Please clarify what you mean by "does not work". Cheers, Michael -- 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, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

