From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 18:19:35 2008 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B376E106566B; Mon, 3 Mar 2008 18:19:35 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 7D5638FC1C; Mon, 3 Mar 2008 18:19:35 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1JWFG8-0008ix-FW; Mon, 03 Mar 2008 21:19:32 +0300 To: Roman Divacky References: <20080217162938.GA82845@freebsd.org> <20080303115420.6fm3xuto6c8kcssk@webmail.leidinger.net> <20080303150607.GB47887@freebsd.org> <20080303174101.e6xfqplzuo404wkw@webmail.leidinger.net> <20080303172659.GA65716@freebsd.org> From: Boris Samorodov Date: Mon, 03 Mar 2008 21:17:41 +0300 In-Reply-To: <20080303172659.GA65716@freebsd.org> (Roman Divacky's message of "Mon\, 3 Mar 2008 18\:26\:59 +0100") Message-ID: <53631274@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: emulation@freebsd.org, Alexander Leidinger Subject: Re: epoll patch for review X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 18:19:35 -0000 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 ' | $(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