GCC Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
cobol

Fix return values for CBL_GET_PROGRAM_INFO

Cobol library function CBL_GET_PROGRAM_INFO now adheres to its documented return values and buffer behavior.

The libgcobol library has corrected the CBL_GET_PROGRAM_INFO function to align with its documented return values and buffer handling. Previously, the function did not consistently honor the specified return codes or exhibit the expected behavior for return-buf and return-buf-len parameters. This update ensures greater adherence to the function’s specification.

In Details

The libgcobol implementation of CBL_GET_PROGRAM_INFO has been updated to correctly return status codes and manage output buffers as defined in its documentation. This addresses inconsistencies in handling return values and the return-buf/return-buf-len arguments, ensuring predictable behavior for programs interacting with this library function.

For Context
libgcobol
The GNU Cobol runtime library, providing essential functions for running Cobol programs compiled by GCC.
CBL_GET_PROGRAM_INFO
A specific function within the GNU Cobol runtime library used to retrieve information about the currently running program.
return values
The values a function or procedure returns to its caller, often indicating success, failure, or specific status information.
buffer
A region of memory used to temporarily store data during input or output operations, or when passing data between different parts of a program or system.
Filed Under: cobollibgcobolruntimebugfix