On Saturday 09 July 2005 13:18, Blaisorblade wrote: > On Friday 08 July 2005 13:33, Oleg Girko wrote: > > On Thursday 07 July 2005 21:31, Blaisorblade wrote: > > > I guess that in NPTL headers, instead of using __errno_location() the > > > faster "__thread int errno;" is used; Oleg, can you verify this? [skipped] > > Compiling a test program with "-E" switch shows that preprocessor > > replaces "errno" with "(*__errno_location ())". > > Can you test on a UML file? Non urgent since my patch fixed it, but it > would still be useful. (do a make ARCH=um V=1 to take the right command > line, or even do make ARCH=um arch/um/<afile>.i and it will do everything > by itself). Some file should be using kernel_errno and that's ok, the ones > with _user.c (and the ones listed in USER_OBJS in their Makefile) should > get the above def.
Building "file.i" fails for some reason, so I've captured command line using "make ARCH=um V=1" and replaced "-c -o FILE.o" with "-E" to get preprocessor output. I've tested two files: "arch/um/kernel/process.c" (listed in USER_OBJS) and "arch/um/kernel/signal_user.c" (not listed in USER_OBJS). The result: "errno" is substituted with "(*__errno_location ())" in both files. -- Oleg Girko, http://www.infoserver.ru/~ol/ ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ User-mode-linux-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
