[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: epoll patch for review
- To: Roman Divacky <rdivacky_(_at_)_freebsd_(_dot_)_org>
- Subject: Re: epoll patch for review
- From: Boris Samorodov <bsam_(_at_)_ipt_(_dot_)_ru>
- Date: Mon, 03 Mar 2008 21:17:41 +0300
- Cc: emulation_(_at_)_freebsd_(_dot_)_org, Alexander Leidinger <Alexander_(_at_)_Leidinger_(_dot_)_net>
On Mon, 3 Mar 2008 18:26:59 +0100 Roman Divacky wrote:
> > Oh... with fc4 or f7? What's the lib? Maybe we (bsam and/or me) can a
> > find it and add it as a port.
>
> check ltp-full-20061121/testcases/kernel/syscalls/epoll/README.1ST
> it needs some couroutine library etc.
I think that you misunderstood that README a little. The case is when
the file epoll.h is absent at the system. But when it presents (for
test-building we use a gentoo distro which has the file at
$gentoo/usr/include/sys/epoll.h) the test binary should be built
by default (from the corresponding Makefile):
-----
LIBC_HAS_EPOLL := $(shell echo '\#include <sys/epoll.h>' | $(CC) -E - &> /dev/null && echo yes)
ifeq ($(LIBC_HAS_EPOLL),yes)
CFLAGS += -DLTP_EPOLL_USE_SYS_LIBC
else
CFLAGS += -I. -DLTP_EPOLL_USE_LIB
LDLIBS += -lepoll
endif
-----
I read this code like "if there is a system epoll, then use it, else
use the lib which should be downloaded".
WBR
--
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
_______________________________________________
freebsd-emulation_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org