Details

[Home]

Issue of the Standard # S0245

Brief

Wrong name of macro in the descriptions of compress() and compress2() functions

Detailed Description

The description of compress2() function says that ‘level’ shall be a value between 0 and 9, or the value ‘Z_DEFAULT_COMPRESSION’.
However, description of error ‘Z_STREAM_ERROR’ in the section ‘Errors’ says, that this error occurs when ‘level’ is not ‘Z_DEFAULT_LEVEL’ or is not between 0 and 9.
‘Z_DEFAULT_COMPRESSION’ is defined in 14.3.1. zlib.h, but ‘Z_DEFAULT_LEVEL’ is not defined anywhere.
Seems like ‘Z_DEFAULT_LEVEL’ should be changed to ‘Z_DEFAULT_COMPRESSION’ in the description of the error ‘Z_STREAM_ERROR’.
The same is for the phrase "The compress() function is equivalent to compress2() with a level of Z_DEFAULT_LEVEL." in ‘Description’ section. This phrase also appears in the description of compress() function.

Problem location(s) in the standard

Linux Standard Base Core Specification 3.1, Chapter 14. Utility Libraries, 14.4. Interface Definitions for libz, description of function compress, description of function compress2.

Accepted

LSB Bugzilla, 1379

Status

Fixed in LSB 3.2

[Home]