From owner-freebsd-questions Fri Jul 12 10:57:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA58537B400 for ; Fri, 12 Jul 2002 10:57:56 -0700 (PDT) Received: from web12303.mail.yahoo.com (web12303.mail.yahoo.com [216.136.173.101]) by mx1.FreeBSD.org (Postfix) with SMTP id 7ADD243E6A for ; Fri, 12 Jul 2002 10:57:56 -0700 (PDT) (envelope-from pavanbalaji@yahoo.com) Message-ID: <20020712175756.55088.qmail@web12303.mail.yahoo.com> Received: from [192.52.58.4] by web12303.mail.yahoo.com via HTTP; Fri, 12 Jul 2002 10:57:56 PDT Date: Fri, 12 Jul 2002 10:57:56 -0700 (PDT) From: Pavan Balaji Reply-To: balaji@cis.ohio-state.edu Subject: Problem adding new system call!! To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I was trying to add a system call to my kernel. I did the following steps: 1. Added my ".c" file in the list of files to be compiled at /usr/src/sys/conf/files 2. Added the system call entry to /usr/src/sys/kern/inet_sysent.c and /usr/src/sys/kern/syscall.master 3. Added the argument structure and prototype to /usr/src/sys/sys/sysproto.h 4. Added a user accessible header file to /usr/include/netinet/ It doesn't seem to work. The kernel compiles and loads without any problem, but the user application says that the header file definition is an invalid macro. I'm not following any manual, but just using my Linux experience with FreeBSD (It's not good enough I guess :-(). Any suggestions? Pavan Balaji, CIS Graduate Student, Ohio State University __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message