(1):

(n.) A post to which a gate is hung; - called also swinging / hinging post.

(2):

(n.) A post against which a gate closes; - called also shutting post.