I believe FreeBSD 10 also supports open(O_CLOEXEC) but apart from that LGTM.