#include #include struct utsname unameData; main() { printf ("Content-type:text/html\r\n\r\n"); printf (""); printf (""); printf ("CGI Program"); printf (""); printf ("

"); uname(&unameData); // Might check return value here (non-0 = failure) printf("System name: %s
\nNodename:%s
\nRelease:%s
\nVersion:%s
\nMachine:%s
\n", unameData.sysname, unameData.nodename, unameData.release,unameData.version,unameData.machine); printf ("

"); printf (""); }