From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 16:23:48 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 169711065673 for ; Wed, 11 Mar 2009 16:23:48 +0000 (UTC) (envelope-from freebsd-questions@lists.goldenpath.org) Received: from randymail-a11.g.dreamhost.com (caiajhbdcaid.dreamhost.com [208.97.132.83]) by mx1.freebsd.org (Postfix) with ESMTP id 00A9D8FC12 for ; Wed, 11 Mar 2009 16:23:47 +0000 (UTC) (envelope-from freebsd-questions@lists.goldenpath.org) Received: from [127.0.0.1] (shekel.dreamhost.com [208.113.247.228]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by randymail-a11.g.dreamhost.com (Postfix) with ESMTP id 9ED6F109E89 for ; Wed, 11 Mar 2009 09:23:47 -0700 (PDT) Message-ID: <49B7E592.8040806@lists.goldenpath.org> Date: Wed, 11 Mar 2009 12:23:46 -0400 From: "T." User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: FreeBSD Questions References: <49B70F38.9010305@lists.goldenpath.org> In-Reply-To: <49B70F38.9010305@lists.goldenpath.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: SYSCALL_MODULE macro modified? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 16:23:48 -0000 T. wrote: > Found 7.0's sysent.h file modified at the commonly used SYSCALL_MODULE > macro, > wasn't sure how I should modify my code to accommodate the change so > changed the sysent.h (yikes!). > No biggy right? Removed the AUE_NULL. That's all that's been added. > But the argument was NULL, so what the hell else could I do? AUE_NULL > didn't work. > And how can you be requiring anything else where once there was NULL. > And when I said NULL, I meant NULL! Boggling! This is related to some > audit stuff? > Anyway... > > #define SYSCALL_MODULE(name, offset, new_sysent, evh, arg) \ > static struct syscall_module_data name##_syscall_mod = { \ > evh, arg, offset, new_sysent, { 0, NULL, AUE_NULL } \ > }; \ > \ > static moduledata_t name##_mod = { \ > #name, \ > syscall_module_handler, \ > &name##_syscall_mod \ > }; \ > DECLARE_MODULE(name, name##_mod, SI_SUB_SYSCALLS, SI_ORDER_MIDDLE) > _______________________________________________ So, if anyone else is interested / doesn't already know, if you encounter AUE_NULL errors compiling rather than go and removing AUE_NULL from the system source (which works too), you can just add #include That's where AUE_NULL is defined. You'd think they would have included that in the macro then, eh?