Add entry and head for list and stailq