Page MenuHomeFreeBSD

dup(2): document the handling of filedescriptor flags
ClosedPublic

Authored by kib on Sat, Mar 28, 8:53 AM.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Sat, Mar 28, 8:53 AM
lib/libc/gen/dup3.3
55

In fact it is unconditionally preserved, kern_dup() does

newfde->fde_flags = (oldfde->fde_flags & ~(UF_EXCLOSE | UF_FOCLOSE)) | fddup_to_fde_flags(flags);
lib/libsys/dup.2
85

The resolve-beneath flag is preserved.

kib marked 2 inline comments as done.

Flip the description.

This revision is now accepted and ready to land.Sat, Mar 28, 9:08 AM