From owner-freebsd-emulation@freebsd.org Sat Sep 19 16:01:45 2015 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 106DD9CF6FF for ; Sat, 19 Sep 2015 16:01:45 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DF5CC17E5 for ; Sat, 19 Sep 2015 16:01:44 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mailman.ysv.freebsd.org (Postfix) id DEB2A9CF6FB; Sat, 19 Sep 2015 16:01:44 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE4A99CF6FA for ; Sat, 19 Sep 2015 16:01:44 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-qg0-x243.google.com (mail-qg0-x243.google.com [IPv6:2607:f8b0:400d:c04::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A023F17E3 for ; Sat, 19 Sep 2015 16:01:44 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by qgev79 with SMTP id v79so6342864qge.0 for ; Sat, 19 Sep 2015 09:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:subject:message-id:organization:mime-version :content-type:content-transfer-encoding; bh=ondFBi7cJgtdEwTPr2+3VuAGpDj8yaFwAO/JG6GuI84=; b=SLMq5EKeMihlP3FHHrIfWqiBD0gV5Ji1luURntgA35vyhz9FPmpuNQhbCMTCxQOMGv 6U2J4eIKFqORBLk4foOyRAjW1rV2eiO9Omnu9IrjPxXRv3TV93aKnM+yFtqOfxrYbFRk grAXVCJxgS+GljPhXS2hF3BgdGVa69w7pBMKM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:organization :mime-version:content-type:content-transfer-encoding; bh=ondFBi7cJgtdEwTPr2+3VuAGpDj8yaFwAO/JG6GuI84=; b=gOg+MCxeOlFg7eh9WDWkIVNzm+0YhwGsYpmTUBttjU9GyPt5LHuxtcOCZxPiWmLNaS WXkbCutK8p1vhoACfyXw+iQ9lFwlS1dAQ/iFLdtPKlTe7jfzrvpdiKmV2RAiWdOI5E0O HJQpKTNIcR9mVRubW6BYyWESGptU6bhK0GfUMz2OYvXf9Mw+DhPeaqHPEGIug1bivC2k 1Oq0R/wc0P0lwMFrE9OdFLYcTYQt9bN10eZVxLHcsWfvxY6aJkpdfE1+bDfEBgj1gJv6 GoPb+dmtPyP9BEfJzUgp9z0lO6roo8nu3Mxegxh96CQiBR8UKSR/meXXGpNSCsfnt7aK WzBQ== X-Gm-Message-State: ALoCoQmhbEewh5vRJIu0B++PNnCq2tw7Ef8sqy1merzHTpxM8/p/t/dRiUGNJ8lgWLD5lHm3aYBJ X-Received: by 10.140.150.150 with SMTP id 144mr13474808qhw.41.1442678502497; Sat, 19 Sep 2015 09:01:42 -0700 (PDT) Received: from Papi (177.207.121.218.dynamic.adsl.gvt.net.br. [177.207.121.218]) by smtp.gmail.com with ESMTPSA id p29sm6026659qkp.48.2015.09.19.09.01.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Sep 2015 09:01:42 -0700 (PDT) Date: Sat, 19 Sep 2015 13:06:25 -0300 From: Mario Lobo To: emulation@FreeBSD.org Subject: Linux epoll implementation Message-ID: <20150919130625.4d3897f8@Papi> Organization: BSD X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.20 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: Sat, 19 Sep 2015 16:01:45 -0000 Hi; I'm trying to compile this epoll implementation into the kernel following https://wiki.freebsd.org/linux-kernel using the patch provided. The patch applies fine but when compiling the kernel, it stops at this: /usr/src/sys/modules/linux/../../compat/linux/linux_epoll.c:66:10: error: implicit declaration of function 'kqueue' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return (kqueue(td, &k_args)); That is the only reference to kqueue on the patched code at /usr/src/sys/compat/linux/ This kqueue call is very different from the one provided in man kqueue: int kqueue(void); so I really ran out of options on finding out what this kqueue call really is about. Would anyone have any pointers on this? Thanks. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."