On Sun, Apr 22, 2018 at 3:14 AM, Paul Irofti <p...@irofti.net> wrote:
> On Sun, Apr 22, 2018 at 12:23:09AM +0530, Neeraj Pal wrote:
>> Hello guys,
>>
>> I am facing some issue during adding system call on OpenBSD 6.3. I
>> have shown my pathways to add system call, please guys correct me if
>> somewhere I have forgotten something to add or build.
>>
>> 1) echo "331 { int sys_hello(void); }" >> /usr/src/sys/kern/syscalls.master
>>
>> 2) make init_sysent.c
>
> I don't know what this does, but you are supposed to run
> kern/makesyscalls.sh after modifying syscalls.master.

Oh, okay. But, "make init_sysent.c" will regenerate the init_sysent.c,
syscalls.c, syscallargs.h, and syscalls.h files, all of which depend
on syscalls.master.
And, I think all are same, I mean if you do "sh makesyscalls.sh
syscalls.conf syscalls.master" or "make syscalls" or "make
init_sysent.c", they all produce the same result.

Reply via email to