1 |
|
/* |
2 |
< |
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
3 |
< |
* s_bsd_poll.c: POSIX poll() compatible network routines. |
2 |
> |
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
3 |
|
* |
4 |
< |
* Originally by Adrian Chadd <adrian@creative.net.au> |
6 |
< |
* Copyright (C) 2002 Hybrid Development Team |
4 |
> |
* Copyright (c) 2000-2014 ircd-hybrid development team |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
17 |
|
* along with this program; if not, write to the Free Software |
18 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
19 |
|
* USA |
20 |
< |
* |
21 |
< |
* $Id$ |
20 |
> |
*/ |
21 |
> |
|
22 |
> |
/*! \file s_bsd_poll.c |
23 |
> |
* \brief POSIX poll() compatible network routines. |
24 |
> |
* \version $Id$ |
25 |
|
*/ |
26 |
|
|
27 |
|
#include "stdinc.h" |
94 |
|
void |
95 |
|
comm_setselect(fde_t *F, unsigned int type, PF *handler, |
96 |
|
void *client_data, time_t timeout) |
97 |
< |
{ |
97 |
> |
{ |
98 |
|
int new_events; |
99 |
|
|
100 |
|
if ((type & COMM_SELECT_READ)) |
148 |
|
F->evcache = new_events; |
149 |
|
} |
150 |
|
} |
151 |
< |
|
151 |
> |
|
152 |
|
/* |
153 |
|
* comm_select |
154 |
|
* |