Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Qnx system call to know serial number of host machine: (2 Items)
   
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
RE: Qnx system call to know serial number of host machine  
To my knowledge there is no such thing.

-----Original Message-----
From: Deepak jain [mailto:community-noreply@qnx.com] 
Sent: Tuesday, July 21, 2009 2:31 AM
To: momentics-community
Subject: 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



_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post34153