lib/include.h add checked_open()
fix comments