Question

I am trying to change the kernel of the freebsd and I need to use the library list.h which is in the directory: /usr/src/lib/libc/include/isc. There are two lines in this file which make errors:

#include <assert.h>
#include <isc/assertion.h>

I could find the file assert.h and put it in the directory but I couldn't find assertion.h file on the net. Is there any link for downloading this library?

Was it helpful?

Solution

You can't use /usr/src/lib/libc/include/isc in the kernel. This is part of the user space libc, same goes for assert.h.

You can use the sys/queue.h file if you need linked lists, see e.g. here

For assertions in the kernel, use the KASSERT() macro.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top