functionary (n.)
"one who has a certain function," 1791, from or patterned on French fonctionnaire, a word of the Revolution; from Old French function (see function).