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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
New Contributor
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