Landing: 91f59cb35a9e
Project / Subsystem
gcc / cobol
Date
2026-09-29
Author
Xavier Del Campo Romero
Commit
91f59cb35a9e76d9d15273778a3d2e43c91727c5
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- 91f59cb35a9e76d9d15273778a3d2e43c91727c5
- source_type
- github
- headline
- Cobol: Add OPTIONAL argument to posix-errno function
- tldr
- The Cobol posix-errno function now accepts an optional argument to set the errno value.
- author
- Xavier Del Campo Romero
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • error handling
- • library
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-29T00:00:00.000Z
The posix-errno function in libgcobol has been extended to include an optional argument. This allows applications to explicitly set the errno value. If a new value is provided, errno is updated, and the previous value is returned, offering more control over error handling.