add getchar() system call.