Created attachment 73168 [details] linux: add FIOCLEX and FIONCLEX ioctls Add support for the FIOCLEX and FIONCLEX ioctls. The attached patch is based off rev 12871, the current HEAD.
Created attachment 75146 [details] darwin: add FIOCLEX and FIONCLEX ioctls
Added a second patch that adds FIOCLEX/FIONCLEX detection support for OS X. Can someone please merge this?
Linux part committed as r13462 but the Darwin part is outside the scope of my competence I'm afraid.