Hi, every one: I'm working on some codes between userland and kernel space. But, I couldn't get the correct error number via global variable 'errno' because of its no-thread-safe property. Any suggestions? Many thanks David -- To the systems programmer, users and applications serve only to provide a test load. _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/