That's probably the wrong question to be asking.
Why do you want to know this?
--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
I want to get the value of SIGRTMIN (the first real-time signal).
The macro SIGRTMIN uses _sysconf which is not available in a Solaris
driver.
The macro _SIGRTMIN which is a constant value but the value is
different depending on the Solaris version.
/bea
I have found solutions to my two own questions:
Current O/S version in a Solaris driver:
------------------------------------------------------
#include <sys/utsname.h>
extern struct utsname utsname;
...
int my_func()
{
int os_release;
os_release = utsname.release;
....
}
Value of SIGRTMIN (the first real-time signal) independent of current
O/S version:
--------------------------------------------------------------------------------------------------------------------
#include <sys/sysconfig.h>
extern long sysconfig(int cmd);
...
int my_func()
{
long sigrtmin;
sigrtmin = sysconfig(_CONFIG_SIGRT_MIN); /* Note: don't use
_SC_SIGRT_MIN because we are in a driver */
....
}
/bea