On 12/08/10 10:15, Stefan Hajnoczi wrote: > On Tue, Dec 07, 2010 at 04:02:03PM +0100, Jes Sorensen wrote: >> Anything to avoid qemu_set_fd_handler17() at some point. I think using >> __qemu_set_fd_handler() encourages people to modify that code rather >> than copy it. > > I agree that qemu_set_fd_handler3() could be named something more > meaningful. Unfortunately we can't use __qemu_set_fd_handler() because > the C language standard reserves identifiers that start with double > underscore for the standard library. The Linux kernel gets away with it > because the code is freestanding but that doesn't apply to QEMU.
Hmmm you sure that is actually a rule, rather than a convention? Either way, we can use 3 underscores, or leave the function static, in which case the C library names are a non issue. Cheers, Jes