GO:0007530: sex determination
Any process that establishes and transmits the specification of sexual status of an individual organism.