fd-set-nonblock.c revision b5ab29780f74cf88212a547ebbe3b6bc0cb867c5
/* Copyright (c) 1999-2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "fd-set-nonblock.h"
#include <fcntl.h>
{
int flags;
if (flags < 0)
if (nonblock)
flags |= O_NONBLOCK;
else
flags &= ~O_NONBLOCK;
}