Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

errno is generally defined to be a macro like: (errno_location()), at least when you use the -pthread option with gcc.

The odd constructoin (the function returning an int which is dereferenced) allows the errno macro to work as an "lvalue", i.e. that you can still say "errno = 0" to clear its value.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: