AcceptFlags

Flags that can be used with the accept4(2) operation.

Values

ValueMeaning
NONE0

Same as accept()

NONBLOCK0x800

Set the O_NONBLOCK file status flag on the new open file description. Using this flag saves extra calls to fcntl(2) to achieve the same result.

CLOEXEC0x80000

Set the close-on-exec (FD_CLOEXEC) flag on the new file descriptor. See the description of the O_CLOEXEC flag in open(2) for reasons why this may be useful.

Meta