|
|
Qnx system call to know serial number of host machine
|
|
07/21/2009 2:31 AM
post34153
|
Qnx system call to know serial number of host machine
Hi,
Following code is working in solaris
please tell me the way to archive following functionality in QNX
char buf[32];
if (sysinfo(SI_HW_SERIAL, buf, sizeof(buf)) < 0) {
error("sysinfo: %m");
return 0;
}
return (int) strtoul(buf, NULL, 16);
Thanks n Regards,
Deepak Jain
|
|
|
|
|