#ifndef SAFECLOSE_H #define SAFECLOSE_H #ifdef __cplusplus extern "C" { #endif void safeclose_lock(void), safeclose_unlock(void); int safeclose(int fd); #ifdef __cplusplus }; #endif #endif