From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Pietro Gagliardi Date: Sat, 22 Mar 2008 00:33:48 -0400 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] System call mania Topicbox-Message-UUID: 7dd17514-ead3-11e9-9d60-3106f5b1d025 That confirmed one suspicion: the REAL calls are those who are simply named in /sys/src/libc/9syscall/sys.h, and that the USER-LEVEL calls are a big mess in libc. Thanks! On Mar 22, 2008, at 12:16 AM, Iruata Souza wrote: > On 3/22/08, Pietro Gagliardi wrote: >> Hello. I was recently looking in libc when I noticed a few things >> about system calls: >> >> 1) brk and sbrk are implemented atop brk_, which is not documented >> 2) the seek function seems to be a system call, but the alpha folder >> defines a function seek which calls _seek >> 3) Some items in that file have underscores, like BRK_ and _READ >> >> This leads me to the following question: what exactly are the system >> calls in Plan 9? >> > > grep -i syscall /sys/src/9/port > > iru >