*BSD News Article 97100


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.edu.au!munnari.OZ.AU!uunet!in2.uu.net!128.230.129.106!news.maxwell.syr.edu!ix.netcom.com!news.platinum.com!not-for-mail
From: Brian Clapper <clapper@platinum.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: udprelay on FreeBSD???
Date: 04 Jun 1997 14:16:44 -0400
Organization: PLATINUM technology, Inc
Lines: 24
Message-ID: <xkqk9kautbn.fsf@platinum.com>
References: <33945605.766D@super.zippo.com>
	<ye0k9kabjy9.fsf@aruba.informatik.uni-wuerzburg.de>
NNTP-Posting-Host: conch.ab.platinum.com
X-Newsreader: Gnus v5.3/Emacs 19.34
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42359

token@cip.informatik.uni-wuerzburg.de (Matthias Buelow) writes:

> 
> In article <33945605.766D@super.zippo.com>
> "Dabe K." <dabe@super.zippo.com> writes:
> 
>      Has anyone managed to get udprelay to compile on FreeBSD??  FreeBSD
>    does not have a poll.h file which udprelay expects.  Is there a way
>    around this??
> 
> FreeBSD does not have the SysV-ish poll(2) system call at all.
> Use select(2) (you might have to modify the program).

You can emulate poll() in terms of select(), so you don't have to modify
udprelay at all.  That's what I did while working for my former employer.
Our version of udprelay worked fine with the emulator routine.  The poll
emulator routine I wrote is still available here:

	ftp://ftp.telebase.com/pub/misc/poll4bsd.shar.gz

-- 
Brian Clapper, clapper@platinum.com
Most people wouldn't know music if it came up and bit them on the ass.
	-- Frank Zappa