We are porting our C application from Solaris 8 to Solaris 10. I am getting an error when I run this code on Solaris 10. I am using the 32-bit gcc compiler.
nFDs = ulimit(UL_GDESLIM, 0);
n=select(nFDs, &set, NULL, NULL, NULL);
Mistake:
Error : GetKey_(): select(): Invalid argument
I understood why I got this error because it is nFDsmore than 1024. The following isselect.h
#ifdef _LP64
#define FD_SETSIZE 65536
#else
#define FD_SETSIZE 1024
Could you give me a pointer to how they work ulimit(UL_GDESLIM, 0)and select, and which heading do I need to fix?
source
share