Etymology
Today it means: A hat or cap worn turned up in front. Full definition →
A deverbal from cock up.
Etymology from Wiktionary, CC BY-SA 4.0.