
English: from the Middle English personal name Hann + the hypocoristic suffix -cok which was commonly added to personal names (see Cocke ). Dutch: from Middle Dutch hanecoc ‘winkle periwinkle’ (a type of shellfish) probably a metonymic occupational name for someone who gathered and sold shellfish.
Source: Dictionary of American Family Names 2nd edition, 2022