Skip to Main content Skip to Navigation
Conference papers

C language mechanism for error handling and deferred cleanup

Jens Gustedt 1 Robert Seacord 2
1 CAMUS - Compilation pour les Architectures MUlti-coeurS
Inria Nancy - Grand Est, ICube - Laboratoire des sciences de l'ingénieur, de l'informatique et de l'imagerie
Abstract : This paper introduces the implementation of a C language mechanism for error handling and deferred cleanup adapted from similar features in the Go programming language. This mechanism improves the proximity, visibility, maintainability, robustness, and security of cleanup and error handling over existing language features. This feature is under consideration for inclusion in the C Standard. The library implementation of the features described by this paper is publicly available under an Open Source License at https://gustedt.gitlabpages.inria.fr/defer/.
Document type :
Conference papers
Complete list of metadatas

https://hal.inria.fr/hal-03059076
Contributor : Jens Gustedt <>
Submitted on : Saturday, December 12, 2020 - 10:50:33 AM
Last modification on : Thursday, December 17, 2020 - 6:03:20 PM

File

defer-implementation.pdf
Files produced by the author(s)

Identifiers

Citation

Jens Gustedt, Robert Seacord. C language mechanism for error handling and deferred cleanup. The 36th ACM/SIGAPP Symposium on Applied Computing (SAC'21), Mar 2021, virtuelle, South Korea. ⟨10.1145/3412841.3442116⟩. ⟨hal-03059076⟩

Share

Metrics

Record views

89

Files downloads

1295