entry: extract a header file for entry.c functions