From owner-freebsd-hackers Tue Oct 7 15:48:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA29291 for hackers-outgoing; Tue, 7 Oct 1997 15:48:21 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA29282 for ; Tue, 7 Oct 1997 15:48:13 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA03264; Wed, 8 Oct 1997 00:48:11 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id AAA11854; Wed, 8 Oct 1997 00:43:12 +0200 (MET DST) Message-ID: <19971008004312.FC62676@uriah.heep.sax.de> Date: Wed, 8 Oct 1997 00:43:12 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.ORG Cc: nordwick@graft.xcf.berkeley.edu (Jason Alan Nordwick) Subject: Re: where is write/read/... syscalls ? References: <199710072114.OAA01979@graft.xcf.berkeley.edu> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199710072114.OAA01979@graft.xcf.berkeley.edu>; from Jason Alan Nordwick on Oct 7, 1997 14:14:58 -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Jason Alan Nordwick wrote: > When I use the libc call write or read or any of the syscalls, where is > the code for them ? The libc stubs are being created by src/lib/libc/sys/Makefile.inc. > is that libkern ? is libkern all the kernel > entry points ? No, libkern is just the opposite: a collection of system library (``libc'' if you want it) functions that are being used inside the kernel. > then where is kernel code for the corresponding syscall ? Scattered throughout the kernel. See /sys/kern/syscalls.master, most of the function entry points are in /sys/kern/. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)