sigar/exp/utsname.c

16 lines
366 B
C
Raw Permalink Normal View History

2004-09-05 06:51:51 +08:00
#include <stdio.h>
#include <sys/utsname.h>
int main(int argc, char **argv) {
struct utsname name;
uname(&name);
printf("sysname....%s\n", name.sysname);
printf("nodename...%s\n", name.nodename);
printf("release....%s\n", name.release);
printf("version....%s\n", name.version);
printf("machine....%s\n", name.machine);
return 0;
}