Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
macmac7
Posts: 2
Registered: ‎12-07-2012
My Device: BlackBerry 10
My Carrier: T-Mobile

getspnam and shadow.h?

Hi,

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:
http://developer.blackberry.com/native/beta/reference/com.qnx.doc.neutrino.lib_ref/topic/g/getspnam....

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?

Best regards,
Maciej

Please use plain text.