9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] System call mania
@ 2008-03-22  3:01 Pietro Gagliardi
  2008-03-22  4:16 ` Iruata Souza
  0 siblings, 1 reply; 7+ messages in thread
From: Pietro Gagliardi @ 2008-03-22  3:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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?

Thanks.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] System call mania
  2008-03-22  3:01 [9fans] System call mania Pietro Gagliardi
@ 2008-03-22  4:16 ` Iruata Souza
  2008-03-22  4:33   ` Pietro Gagliardi
  0 siblings, 1 reply; 7+ messages in thread
From: Iruata Souza @ 2008-03-22  4:16 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 3/22/08, Pietro Gagliardi <pietro10@mac.com> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] System call mania
  2008-03-22  4:16 ` Iruata Souza
@ 2008-03-22  4:33   ` Pietro Gagliardi
  2008-03-22  4:41     ` Iruata Souza
  0 siblings, 1 reply; 7+ messages in thread
From: Pietro Gagliardi @ 2008-03-22  4:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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 <pietro10@mac.com> 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
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] System call mania
  2008-03-22  4:33   ` Pietro Gagliardi
@ 2008-03-22  4:41     ` Iruata Souza
  2008-03-22  4:44       ` Pietro Gagliardi
  0 siblings, 1 reply; 7+ messages in thread
From: Iruata Souza @ 2008-03-22  4:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 3/22/08, Pietro Gagliardi <pietro10@mac.com> wrote:
> 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!
>

doesn't the name system call suggests you something?

iru


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] System call mania
  2008-03-22  4:41     ` Iruata Souza
@ 2008-03-22  4:44       ` Pietro Gagliardi
  2008-03-22  5:32         ` ron minnich
  0 siblings, 1 reply; 7+ messages in thread
From: Pietro Gagliardi @ 2008-03-22  4:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

It suggests to me that these calls are the lowest level of
communication with the kernel. I once thought that all system calls
could be called by a program :-P

On Mar 22, 2008, at 12:41 AM, Iruata Souza wrote:

> On 3/22/08, Pietro Gagliardi <pietro10@mac.com> wrote:
>> 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!
>>
>
> doesn't the name system call suggests you something?
>
> iru
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] System call mania
  2008-03-22  4:44       ` Pietro Gagliardi
@ 2008-03-22  5:32         ` ron minnich
  2008-03-22 13:02           ` Pietro Gagliardi
  0 siblings, 1 reply; 7+ messages in thread
From: ron minnich @ 2008-03-22  5:32 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Mar 21, 2008 at 9:44 PM, Pietro Gagliardi <pietro10@mac.com> wrote:
> It suggests to me that these calls are the lowest level of
>  communication with the kernel. I once thought that all system calls
>  could be called by a program :-P
>

why do you think that they can't be?

ron


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] System call mania
  2008-03-22  5:32         ` ron minnich
@ 2008-03-22 13:02           ` Pietro Gagliardi
  0 siblings, 0 replies; 7+ messages in thread
From: Pietro Gagliardi @ 2008-03-22 13:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I was tired and I used the wrong words.

On Mar 22, 2008, at 1:32 AM, ron minnich wrote:

> On Fri, Mar 21, 2008 at 9:44 PM, Pietro Gagliardi
> <pietro10@mac.com> wrote:
>> It suggests to me that these calls are the lowest level of
>>  communication with the kernel. I once thought that all system calls
>>  could be called by a program :-P
>>
>
> why do you think that they can't be?
>
> ron
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-03-22 13:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-22  3:01 [9fans] System call mania Pietro Gagliardi
2008-03-22  4:16 ` Iruata Souza
2008-03-22  4:33   ` Pietro Gagliardi
2008-03-22  4:41     ` Iruata Souza
2008-03-22  4:44       ` Pietro Gagliardi
2008-03-22  5:32         ` ron minnich
2008-03-22 13:02           ` Pietro Gagliardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).