Allegro 5 api
#include <allegro5/allegro.h> void al_set_errno(int errnum)
Set the error number for for the calling thread.