Hello everyone,
I just realized I should rather correct this example from tutorial,
since linux/utsname.h has changed.
However, I still don't get why I can't compile this updated example,
since /usr/include/linux/utsname.h does include relevant structures:
struct new_utsname {
char sysname[65];
char nodename[65];
char release[65];
char version[65];
char machine[65];
char domainname[65];
};
% cat embed-C.stp
%{
#include <linux/utsname.h>
%}
function utsname:string (field:long)
%{
if (down_read_trylock (& uts_sem))
{
const char *f =
(THIS->field == 0 ? new_utsname.sysname :