Continuation of commit 42b5037c, apply changes to the remaining functions. Code for function `fflush` was not changed, because it is more special compared to the others.