Re: syscall to userland interface

2013-05-11 Thread Oliver Pinter
On 5/11/13, Alfred Perlstein wrote: > On 5/11/13 1:23 AM, Karl Dreger wrote: >> >> I am feeling rather stupid at the moment, but I can't find the assembler >> >> files that you are referring to. Do you mean that every syscall under >> >> sys/kern/*.c has a corresponding .S file in src/lib/libc/? >

Re: syscall to userland interface

2013-05-11 Thread Alfred Perlstein
On 5/11/13 1:23 AM, Karl Dreger wrote: I am feeling rather stupid at the moment, but I can't find the assembler files that you are referring to. Do you mean that every syscall under sys/kern/*.c has a corresponding .S file in src/lib/libc/? Nope, the .S files are under the object directory:

Re: syscall to userland interface

2013-05-11 Thread Karl Dreger
d.org" ; Alfred Perlstein Gesendet: 16:58 Samstag, 11.Mai 2013 Betreff: Re: syscall to userland interface On Sat, May 11, 2013 at 09:23:31AM +0100, Karl Dreger wrote: > What my question boils down to is this: when running fork and friends > > from userland they are invoked as: > &g

Re: syscall to userland interface

2013-05-11 Thread Mateusz Guzik
On Sat, May 11, 2013 at 09:23:31AM +0100, Karl Dreger wrote: > What my question boils down to is this: when running fork and friends > > from userland they are invoked as: > > fork();, open();, read();, close(); ... > > > but are defined as: > > sys_fork(), sys_open(), sys_read(), sys_close()

Re: syscall to userland interface

2013-05-11 Thread Karl Dreger
quot;freebsd-hackers@freebsd.org" Gesendet: 3:36 Samstag, 11.Mai 2013 Betreff: Re: syscall to userland interface On 5/10/13 12:31 PM, Karl Dreger wrote: > Hello, > I have been taking a look at a few syscalls in /usr/src/sys/kern/ and > always find that in their actuall c definition t

Re: syscall to userland interface

2013-05-10 Thread Alfred Perlstein
On 5/10/13 12:31 PM, Karl Dreger wrote: Hello, I have been taking a look at a few syscalls in /usr/src/sys/kern/ and always find that in their actuall c definition the function names are preprended by a sys_. Take for example the fork system call which is found in /usr/src/sys/kern/kern_fork.c i

syscall to userland interface

2013-05-10 Thread Karl Dreger
Hello, I have been taking a look at a few syscalls in /usr/src/sys/kern/ and always find that in their actuall c definition the function names are preprended by a sys_. Take for example the fork system call which is found in /usr/src/sys/kern/kern_fork.c int sys_fork(struct thread *td, struct fork