From owner-freebsd-hackers Tue Apr 14 16:51:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA20260 for freebsd-hackers-outgoing; Tue, 14 Apr 1998 16:51:25 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from shark.nas.nasa.gov (shark.nas.nasa.gov [129.99.34.41]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA20182 for ; Tue, 14 Apr 1998 23:51:09 GMT (envelope-from edavis@shark.nas.nasa.gov) Received: from shark.nas.nasa.gov (edavis@localhost) by shark.nas.nasa.gov (8.8.7/NAS8.8.7) with ESMTP id QAA16873 for ; Tue, 14 Apr 1998 16:51:08 -0700 (PDT) Message-Id: <199804142351.QAA16873@shark.nas.nasa.gov> X-Mailer: exmh version 2.0.2 2/24/98 To: freebsd-hackers@FreeBSD.ORG Subject: how to add new system calls... Date: Tue, 14 Apr 1998 16:51:08 -0700 From: "Eric A. Davis" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am working on a project (for McKusick's Adv. Kernel class) that allows user level processes to monitor filesystem activity on a file by file basis. The application program expresses interest in files by supplying the pathname of a file and a set of events to be monitored. These events can be create file, delete file, size changed, attributes changed, etc. 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. ;-) - e -- Eric Allen Davis Network Engineer edavis@nas.nasa.gov NASA Ames Research Center Voice: (415)604-2543 NAS Systems Division Pager: (415)428-6931 http://www.nas.nasa.gov/~edavis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message