include for pollfd
remove unused functions and cur_