fd-set-nonblock.c revision 02c335c23bf5fa225a467c19f2c063fb0dc7b8c3
/* Copyright (c) 1999-2016 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;
}