diff options
Diffstat (limited to 'tests/core/test_uname.in')
-rw-r--r-- | tests/core/test_uname.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/core/test_uname.in b/tests/core/test_uname.in new file mode 100644 index 00000000..5ea40b06 --- /dev/null +++ b/tests/core/test_uname.in @@ -0,0 +1,16 @@ + + #include <stdio.h> + #include <sys/utsname.h> + + int main() { + struct utsname u; + printf("ret: %d\n", uname(&u)); + printf("sysname: %s\n", u.sysname); + printf("nodename: %s\n", u.nodename); + printf("release: %s\n", u.release); + printf("version: %s\n", u.version); + printf("machine: %s\n", u.machine); + printf("invalid: %d\n", uname(0)); + return 0; + } +
\ No newline at end of file |