Re: [PATCH kvm-unit-tests 4/8] powerpc: Introduce getchar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07.02.2018 20:03, Andrew Jones wrote:
> Move the unit test specific h_get_term_char() to powerpc common code
> and call it getchar(). Other architectures may want to implement
> getchar() too (ARM will in a coming patch), so put the prototype in
> libcflat.h

Using the libc name getchar() here sounds wrong. h_get_term_char()
behaves differently compared to the libc getchar(), e.g. it does not
block if there are no characters available.
I think you should either name this function differently, or implement a
behavior that is more close to the libc getchar() to avoid future confusion.

 Thomas



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux