12-07-2012 04:36 AM
I'm porting some linux-originated code to BB and I found out, that native SDK does not include "shadow.h" header.
Actually, the code I try to port uses getspnam function.
The documentation contains description of getspnam and other functions defined in shadow.h, e.g. here:
Also libc library binary contains getspnam.
I defined getspnam myself in C test program - it compiles, links and runs at Simulator.
Fails with "no permission" (no surprise), but calls getspnam, which is surely there.
BTW: cannnot do the same with C++ program - this does not link claiming " undefined reference to `getspnam(char*)'".
It looks a bit half-baked to me: Docs are wrong and function is not (or should be) available?
Or headers missing in SDK distribution?