A fix is available
APAR status
Closed as program error.
Error description
MACRO MAP_ANONYMOUS and MAP_ANON for mmap() are missing in mman.h.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: z/OS C/C++ users who use macro * * MAP_ANONYMOUS or MAP_ANON in mman.h. * **************************************************************** * PROBLEM DESCRIPTION: Definitions of macro MAP_ANONYMOUS * * and MAP_ANON were missed in mman.h. * **************************************************************** See the problem description.
Problem conclusion
The code has been changed to fix the problem. And z/OS C/C++ Runtime Library Reference is updated as following: z/OS C/C++ Runtime Library Reference > Chapter - Library functions > mmap() - Map pages of memory > Add two new macros MAP_ANONYMOUS and MAP_ANON after __MAP_64 in General description: MAP_ANONYMOUS The mapping is not backed by any file and the memory contents are initialized to zero. When MAP_ANONYMOUS is set, the fildes argument must be -1 and the off argument must be zero. MAP_ANONYMOUS can be used with any of the other Map_type options. MAP_ANON Synonym for MAP_ANONYMOUS. Add new parts in Usage notes: - When MAP_ANONYMOUS or MAP_ANON is specified, the fildes parameter must be -1. - When MAP_ANONYMOUS or MAP_ANON is specified, the off parameter must be 0. Append new description at the end of EINVAL description: When MAP_ANONYMOUS is specified, the fildes parameter must be -1. When MAP_ANONYMOUS is specified, the off parameter must be 0.
Temporary fix
Comments
APAR Information
APAR number
PH61713
Reported component name
LE C LIB FOR Z/
Reported component ID
568819805
Reported release
7E0
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2024-06-05
Closed date
2024-07-11
Last modified date
2024-08-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI97621
Modules/Macros
EDC4H04B
| SC14731460 |
Fix information
Fixed component name
LE C LIB FOR Z/
Fixed component ID
568819805
Applicable component levels
R7E0 PSY UI97621
UP24/07/24 P F407
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSTLTF","label":"z\/OS XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7E0","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Document Information
Modified date:
01 August 2024