From owner-freebsd-hackers Mon Jul 23 15:59:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from postfix.sekt7.org (209-6-248-16.c3-0.lex-ubr1.sbo-lex.ma.cable.rcn.com [209.6.248.16]) by hub.freebsd.org (Postfix) with ESMTP id 040E237B407 for ; Mon, 23 Jul 2001 15:59:12 -0700 (PDT) (envelope-from ems@open-root.org) Received: from smtp.sekt7.org (postfix.sekt7.org [169.69.6.38]) by postfix.sekt7.org (Postfix) with SMTP id A19663A1DE for ; Mon, 23 Jul 2001 22:59:10 +0000 (GMT) From: Evan Sarmiento To: freebsd-hackers@freebsd.org Subject: passing function ptrs to syscalls Message-Id: <20010723225910.A19663A1DE@postfix.sekt7.org> Date: Mon, 23 Jul 2001 22:59:10 +0000 (GMT) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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