O_CLOEXEC_MAYBE
if ((fd = open(fname, O_RDONLY | O_CLOEXEC_MAYBE)) < 0) {
if ((ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC_MAYBE)) < 0) {
if ((fd = open(expandedname, O_RDONLY | O_CLOEXEC_MAYBE)) >= 0)