3 #include <sys/utsname.h>
8 /* Get the uname data */
10 if (uname (&buf) != 0) {
16 printf ("sysname: \"%s\"\n", buf.sysname);
17 printf ("nodename: \"%s\"\n", buf.nodename);
18 printf ("release: \"%s\"\n", buf.release);
19 printf ("version: \"%s\"\n", buf.version);
20 printf ("machine: \"%s\"\n", buf.machine);