I am running my code on VxWorks PPC and incase of system call failures especially for socket send / recv functions, errno returns 0 always.
After some analysis I found that, errno returns 0 incase of all system call failures.
Is there any initialization which I should be doing for errno to return correct values?