cc -I/usr/pkg/include -Wall -O3 -fomit-frame-pointer -lpthread /usr/pkg/lib/liblwp.a test.c -o test
test.c: In function 'thread':
test.c:73: warning: no return statement in function returning non-void
test.c: In function 'main':
test.c:93: warning: passing argument 1 of 'LWP_CreateProcess' from incompatible pointer type
/tmp//ccNdWlST.o: In function `mutex_lock':
test.c:(.text+0x2e): undefined reference to `LWP_DispatchProcess'
/tmp//ccNdWlST.o: In function `main':
test.c:(.text+0x8b): undefined reference to `LWP_Init'
test.c:(.text+0xca): undefined reference to `LWP_DispatchProcess'
test.c:(.text+0xfd): undefined reference to `LWP_CreateProcess'
test.c:(.text+0x11b): undefined reference to `LWP_DispatchProcess'
test.c:(.text+0x128): undefined reference to `LWP_WaitProcess'
/tmp//ccNdWlST.o: In function `thread':
test.c:(.text+0x17e): undefined reference to `LWP_DispatchProcess'
test.c:(.text+0x1a8): undefined reference to `LWP_INTERNALSIGNAL'
test.c:(.text+0x1c5): undefined reference to `LWP_DispatchProcess'
/tmp//ccNdWlST.o: In function `mutex_unlock':
test.c:(.text+0x17): undefined reference to `LWP_DispatchProcess'
Давно читал, что их гибридное ядро обладает кучей плюшек, в том числе lightweit системой для передачи сообщений, что у них есть разная реализация сисколов (синхронная и асинхронная), и почему-то подумал, что у них должно быть быстрое IPC.
Да, light weight kernel threads у них есть. Но всё же не понятно, как оно всё работает.
ПыСы. 64 битное ядро не собралось, найти C библиотеки не может. Не знаю, где поменять. Когда я качал дистр, 64-битной сборки не было ещё, так что я как-то косячно судя по всему библиотеки поставил