Defect report from : Andrew Josey , The Open Group
(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)
@ page 210 line 7122 section closelog comment {tc1.setlogmask.ex}
Problem:
Defect code : 1. Error
(page and line numbers are for the ft [finaltext] document)
This is about the EXAMPLE, "Using setlogmask()"
The call is incorrect. The values for priority
are numbers in the range 0-7 and LOG_MASK(prio), that is,
1<<prio, converts the priority into a mask.
On the other hand, the facilities already are maskbits,
so that calling LOG_MASK on a facility is nonsense, and leads
to compiler error messages:
WARNING The indicated shift count is too large.
Action:
Remove the "| LOG_USER" part from the call in line 7122.
Remove the "or ... processes," from lines 7118-7119.
|