Skip to Main content Skip to Navigation
Reports

Deferred cleanup and error handling in C

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 :
Reports
Complete list of metadatas

https://hal.inria.fr/hal-03090771
Contributor : Jens Gustedt <>
Submitted on : Wednesday, December 30, 2020 - 2:39:36 PM
Last modification on : Friday, January 1, 2021 - 1:06:09 PM

File

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

Licence


Distributed under a Creative Commons Attribution - NonCommercial - NoDerivatives 4.0 International License

Identifiers

  • HAL Id : hal-03090771, version 1

Citation

Jens Gustedt, Robert Seacord. Deferred cleanup and error handling in C. [Research Report] RR-9385, Inria Nancy - Grand Est. 2020, pp.19. ⟨hal-03090771⟩

Share

Metrics

Record views

88

Files downloads

391