[X-Unix] missing man pages

Stroller MacMonster at myrealbox.com
Sun Jan 4 15:51:40 PST 2004


On Jan 4, 2004, at 9:43 pm, Xavier Noria wrote:

> Although whatis perror reports perror(3), man perror does not find any 
> man page, and in fact there is none under /usr/share/man/man3. Do you 
> know what could be wrong?

On my Panthar system `man perror` brings up:

STRERROR(3)              BSD Library Functions Manual              
STRERROR(3)

NAME
      perror, strerror, strerror_r, sys_errlist, sys_nerr - system error 
mes-
      sages

LIBRARY
      Standard C Library (libc, -lc)

SYNOPSIS
      #include <stdio.h>

      void
      perror(const char *string);

      extern const char * const sys_errlist[];
      extern const int sys_nerr;

      #include <string.h>

      char *
      strerror(int errnum);

      int
      strerror_r(int errnum, char *strerrbuf, size_t buflen);

DESCRIPTION
...
      The perror() function finds the error message corresponding to the 
cur-
      rent value of the global variable errno (intro(2)) and writes it, 
fol-
      lowed by a newline, to the standard error file descriptor.  If the 
argu-
      ment string is non-NULL and does not point to the null character, 
this
      string is prepended to the message string and separated from it by 
a
      colon and space (``: ''); otherwise, only the error message string 
is
      printed.


Maybe you should try running `/usr/libexec/makewhatis` & trying again..?

Stroller.



More information about the X-Unix mailing list