From owner-freebsd-questions Sun Feb 21 10:42: 0 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cs.tamu.edu (clavin.cs.tamu.edu [128.194.130.106]) by hub.freebsd.org (Postfix) with ESMTP id 619DC11095 for ; Sun, 21 Feb 1999 10:41:56 -0800 (PST) (envelope-from gurudatt@cs.tamu.edu) Received: from dilbert.cs.tamu.edu (IDENT:2146@dilbert [128.194.133.100]) by cs.tamu.edu (8.9.1/8.9.1) with ESMTP id MAA10449 for ; Sun, 21 Feb 1999 12:41:20 -0600 (CST) Received: from localhost by dilbert.cs.tamu.edu (8.9.1/8.9.1) with SMTP id MAA10583 for ; Sun, 21 Feb 1999 12:40:07 -0600 (CST) X-Authentication-Warning: dilbert.cs.tamu.edu: gurudatt owned process doing -bs Date: Sun, 21 Feb 1999 12:40:06 -0600 (CST) From: Gurudatt Shenoy X-Sender: gurudatt@dilbert To: freebsd-questions@freebsd.org Subject: Question: Adding a new system call Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I added a new system call (new_write) to the freebsd (2.2.7) kernel. The kernel compiled successfully but when I tried to use the call in a program, I got the following error: "Undefined symbol '_new_write' referenced from text segment" What am I missing? The steps I followed to add my system call were: 1. Declared a new entry in syscalls.master 326 STD 0 BSD { void new_write(void);} (325 is currently the last entry in syscalls.master) 2. Created a new file (called new_write.c) in sys/kern, containing the function definition for new_write Do I have to declare an extern function prototype in some header file too? I appreciate your feedback. Thanks, Guru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message