Holonomic functions and their relation to linearly constrained languages