The cup is a unit of volume in the US customary unit system with the symbol cup.
It is equal to 1/2 US customary pint, 1/4 US customary quart and 1/16 US customary gallon. it is also equal to 236.5882365 millilitres.
Used primarily for cooking - the cup was adopted and established as a recognised unit of measure as it could be used by almost anyone in any kitchen. Due to the slight variants in design and size, it is rarely used as an accurate measure for important or critical materials, however it does represent a specific amount and can be used across many recipes to indicate what is needed.
The barrel is a unit of volume used in the oil industry with the symbol bbl.
Oil is more commonly expressed in terms of cubic metres (m³) but in the US and in the economic world (mainly because such a large percentage of the world's oil is shipped to the US) as barrels.
The measurement of the barrel originated in the US at the first oil well in Pennsylvania. There were so many variants of barrel size (including those used for wine and other goods) that the distrust became so prevalent a central and standard barrel size was created. This was finally established in 1872 as 42 US gallons.