From owner-freebsd-hackers Tue Apr 14 17:13:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA26203 for freebsd-hackers-outgoing; Tue, 14 Apr 1998 17:13:31 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cimlogic.com.au (cimlogic.com.au [203.36.2.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA26087 for ; Wed, 15 Apr 1998 00:13:11 GMT (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.5/8.8.7) id KAA07660; Wed, 15 Apr 1998 10:12:16 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199804150012.KAA07660@cimlogic.com.au> Subject: Re: how to add new system calls... In-Reply-To: <199804142351.QAA16873@shark.nas.nasa.gov> from "Eric A. Davis" at "Apr 14, 98 04:51:08 pm" To: edavis@nas.nasa.gov (Eric A. Davis) Date: Wed, 15 Apr 1998 10:12:03 +1000 (EST) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Eric A. Davis wrote: > Without getting into any more detail of the above, my question is how do > I add system calls to libc. I added the necessary definitions in > syscalls.master, executed makesyscalls.sh to create the stubs, and then > re-built the kernel. What do I need to add to have the linker know > about these new system calls I created? After some digging, I'm assuming > that I need to modify /usr/src/lib/libc/sys/Makefile.inc. Then do a > (sigh) make world. ;-) The answer depends on whether or not you are running -current. For 2.2.x, you do need to edit /usr/src/lib/libc/sys/Makefile.inc. For -current, the syscalls will be automatically built into libc by declaring them in syscalls.master, executing makesyscalls.sh and then doing a make obj, depend, all and install from /usr/src/lib/libc. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message