Conflict between <sys/sysproto.h> & <stdio.h> ... ?

Bruce M Simpson bms at spc.org
Tue Nov 18 03:38:04 PST 2003


On Tue, Nov 18, 2003 at 12:39:37AM -0800, lucy loo wrote:
> I am writing a kernel loadable module to reimplement some system calls. I have included <sys/sysproto.h>, <sys/systm.h>, etc. -- very standard header files for kld implmentation. I also want to do file i/o in this module, therefore I need to include <stdio.h>. But it obviously conflicts with those <sys/...>, and make won't pass. 

RTFM - particularly style(9), do not include userland headers in the kernel.

BMS


More information about the freebsd-hackers mailing list