The first function in the plugin must return a pointer to the plugin_table.
[AROS.git] / test / clib / uname.c
bloba943e36be41884e9d6d3727eb2a4cdb6f162ec4c
1 #include <stdio.h>
2 #include <sys/utsname.h>
3 #include "test.h"
5 int main()
7 struct utsname buf;
8 TEST((uname(&buf) != -1));
10 printf("Operating system name: %s\n", buf.sysname);
11 printf("Operating system release: %s\n", buf.release);
12 printf("Operating system version: %s\n", buf.version);
13 printf("Machine: %s\n", buf.machine);
15 cleanup();
16 return OK;
19 void cleanup()