Hello,
I'm writing a system call which requires a function pointer as an argument,
In syscalls.master, it is specified as such:
366 STD BSD { int prfw_inject_fp(int sl, int synum, pid_t pi
d, int (*fp)() ); }
However, when I try compiling the kernel, sysproto complains
In file included from ../../kern/imgact_shell.c:31:
../../sys/sysproto.h:1038: unterminated macro call
../../sys/sysproto.h:1449: warning: preprocessing directive not recognized within
macro arg
../../sys/sysproto.h:1449: warning: preprocessing directive not recognized within
macro arg
../../sys/sysproto.h:1449: warning: preprocessing directive not recognized within
macro arg
../../sys/sysproto.h:1449: warning: preprocessing directive not recognized within
macro arg
../../sys/sysproto.h:9: unterminated `#if' conditional
In file included from ../../kern/imgact_shell.c:31:
../../sys/sysproto.h:1038: syntax error before `)'
../../sys/sysproto.h:1275: undefined or invalid # directive
../../sys/sysproto.h:1444: undefined or invalid # directive
../../sys/sysproto.h:1448: undefined or invalid # directive
../../sys/sysproto.h:1449: syntax error before `)'
What definition should I use?
Thanks,
Evan
--
-----------------------------------
Evan Sarmiento | www.open-root.org
[EMAIL PROTECTED] | www.sekt7.org/~ems/
-----------------------------------
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message