O_CLOFORK
fd = open(rundir, O_RDONLY|O_DIRECTORY|O_NOFOLLOW|O_CLOEXEC|O_CLOFORK);
(O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC | O_CLOFORK | O_NOFOLLOW)
(O_APPEND | O_CLOEXEC | O_CLOFORK | O_DSYNC | O_RSYNC | O_SYNC)
if (SCARG(uap, flags) & ~(O_CLOEXEC | O_CLOFORK))
if (flags & O_CLOFORK)
if (SCARG(uap, flags) & ~(O_CLOEXEC | O_CLOFORK | FNONBLOCK))
| ((flags & O_CLOFORK) ? UF_FORKCLOSE : 0);
| ((oflags & O_CLOFORK) ? UF_FORKCLOSE : 0);
(oflags & (O_CLOEXEC | O_CLOFORK));
| ((oflags & O_CLOFORK) ? UF_FORKCLOSE : 0);
| ((flags & O_CLOFORK) ? UF_FORKCLOSE : 0);