Date: Tue, 14 Apr 1998 16:51:08 -0700 From: "Eric A. Davis" <edavis@nas.nasa.gov> To: freebsd-hackers@FreeBSD.ORG Subject: how to add new system calls... Message-ID: <199804142351.QAA16873@shark.nas.nasa.gov>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804142351.QAA16873>
