Date: Wed, 15 Apr 1998 10:12:03 +1000 (EST) From: John Birrell <jb@cimlogic.com.au> To: edavis@nas.nasa.gov (Eric A. Davis) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: how to add new system calls... Message-ID: <199804150012.KAA07660@cimlogic.com.au> In-Reply-To: <199804142351.QAA16873@shark.nas.nasa.gov> from "Eric A. Davis" at "Apr 14, 98 04:51:08 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804150012.KAA07660>