PR/18906: roskens at elfin dot net: misc. select() to poll() updates.

Adapted to -current by myself, thanks for the patch!
This commit is contained in:
elad 2006-10-07 17:27:57 +00:00
parent 8d2d10aa05
commit cb3fc6416d

View File

@ -1,4 +1,4 @@
/* $NetBSD: loop-bsd.c,v 1.8 2006/05/25 00:27:56 christos Exp $ */
/* $NetBSD: loop-bsd.c,v 1.9 2006/10/07 17:27:57 elad Exp $ */
/*
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: loop-bsd.c,v 1.8 2006/05/25 00:27:56 christos Exp $");
__RCSID("$NetBSD: loop-bsd.c,v 1.9 2006/10/07 17:27:57 elad Exp $");
#endif
#include <errno.h>
@ -94,7 +94,7 @@ mopReadDL()
/*
* The list of all interfaces that are being listened to. loop()
* "selects" on the descriptors in this list.
* "polls" on the descriptors in this list.
*/
struct if_info *iflist;
@ -124,7 +124,7 @@ Loop()
if (buf == 0)
mopLogErr("malloc");
/*
* Find the highest numbered file descriptor for select().
* Find the highest numbered file descriptor for poll().
* Initialize the set of descriptors to listen to.
*/
for (ii = iflist, n = 0; ii; ii = ii->next, n++)