As Tyler said, there are multiple warranties.
The house part is typically one year, though some makers have been inching up to somewhat longer warranties. Specific items may have lengthier warranties (i.e. the roof warranted against leaks for x years if proper maintenance has been done...which isn't much of a warranty, since nearly all leaks are due to improper or incomplete maintenance or to physical damage that would not be covered such as from tree limbs).
Chassis warranties are typically 3 years or 36,000 miles for full coverage (at least for Ford and Chevy), which certain items having longer longer coverage. Appliance warranties vary quite a bit in length.
I think generally speaking most or all the warranties are non-transferable. If buying a used unit from a dealer, they may give you a short (30 or 90 day) warranty. There are also companies that offer extended warranties, which are really better described as insurance plans, though IMHO usually they are a waste of money. It stands to reason that they would not offer optional warranties if they did not, on average, cost the buyer more than the issuer will pay out.