blob: 1c595ef20ad709baba8015049a58c6fd4bbe64d1 [file] [log] [blame]
// RUN: %clang %s -o %t && %run %t
#include <assert.h>
#include <stdio.h>
#include <sys/utsname.h>
int main() {
struct utsname buf;
int err = uname(&buf);
assert(err >= 0);
printf("%s %s %s %s %s\n", buf.sysname, buf.nodename, buf.release,
buf.version, buf.machine);
}