1 #ifndef _MUSL_FDTRACK_H 2 #define _MUSL_FDTRACK_H 3 4 #include <sys/cdefs.h> 5 #include <stdbool.h> 6 #include <stdint.h> 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 enum fdtrack_type { 13 FDTRACK_EVENT_TYPE_CREATE, 14 }; 15 16 struct fdtrack_event { 17 uint32_t type; 18 }; 19 20 typedef void (*fdtrack_hook)(struct fdtrack_event*); 21 void set_fdtrack_enabled(bool newValue); 22 bool fdtrack_cas_hook(fdtrack_hook* expected, fdtrack_hook value); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 #endif