From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2d2de0c7a2cec61d339f6863c37f2cd2@mightycheese.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] Looking for namespace details From: "rob pike, esq." In-Reply-To: <3E45339D.7070008@bar.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sat, 8 Feb 2003 09:17:39 -0800 Topicbox-Message-UUID: 537481f6-eacb-11e9-9e20-41e7f4b1d025 > My question is -- where is the code for the kernel side of these calls? Some of the system calls are wrapped in libc first - for example, read() is a wrapper for pread() - but on average, system call foo is connected by a trap through a table defined in /sys/src/9/port/systab.h (generated automatically from /sys/src/libc/9syscall/sys.h) to a routine in /sys/src/9/port/sys*.c called sysfoo(). A few later system calls appear in files not beginning with "sys", a regrettable lapse. -rob