Date: Mon, 23 Jul 2001 22:59:10 +0000 (GMT) From: Evan Sarmiento <ems@open-root.org> To: freebsd-hackers@freebsd.org Subject: passing function ptrs to syscalls Message-ID: <20010723225910.A19663A1DE@postfix.sekt7.org>
next in thread | raw e-mail | index | archive | help
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 ems@sekt7.org | www.sekt7.org/~ems/ ----------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010723225910.A19663A1DE>