Print this page
3833 err(3c): 'status' should be changed to 'eval'

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/err.3c
          +++ new/usr/src/man/man3c/err.3c
↓ open down ↓ 60 lines elided ↑ open up ↑
  61   61  the case of the \fBerr()\fR, \fBverr()\fR, \fBwarn()\fR, and \fBvwarn()\fR
  62   62  functions, the error message string affiliated with the current value of the
  63   63  global variable \fBerrno\fR is output next, preceded by a colon character and a
  64   64  space if \fIfmt\fR is not \fINULL\fR. In all cases, the output is followed by a
  65   65  newline character.  The \fBerrx()\fR, \fBverrx()\fR, \fBwarnx()\fR, and
  66   66  \fBvwarnx()\fR functions will not output this error message string.
  67   67  .sp
  68   68  .LP
  69   69  The \fBerr()\fR, \fBverr()\fR, \fBerrx()\fR, and \fBverrx()\fR functions do not
  70   70  return, but instead cause the program to terminate with the status value given
  71      -by the argument status.
       71 +by the argument \fIeval\fR.
  72   72  .SH EXAMPLES
  73   73  .LP
  74   74  \fBExample 1 \fRDisplay the current \fBerrno\fR information string and
  75   75  terminate with status indicating failure.
  76   76  .sp
  77   77  .in +2
  78   78  .nf
  79   79  if ((p = malloc(size)) == NULL)
  80   80      err(EXIT_FAILURE, NULL);
  81   81  if ((fd = open(file_name, O_RDONLY, 0)) == -1)
↓ open down ↓ 74 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX