What is a door, valve, or other device, for stopping the passage of water through a dam, lock, pipe, etc called?

gate — A door, valve, or other device, for stopping the passage of water through a dam, lock, pipe, etc. (Webster's 1913.)

Sources