15 #include <sys/utsname.h>
20 if (mprotect((
void *) address, UM_THREAD_SIZE,
22 panic(
"protecting stack failed, errno = %d",
errno);
52 #ifdef UML_CONFIG_UML_X86
53 # ifndef UML_CONFIG_64BIT
54 if (!
strcmp(host.machine,
"x86_64")) {
55 strcpy(machine_out,
"i686");
59 if (!
strcmp(host.machine,
"i686")) {
60 strcpy(machine_out,
"x86_64");
65 strcpy(machine_out, host.machine);
73 snprintf(buf, len,
"%s %s %s %s %s", host.sysname, host.nodename,
74 host.release, host.version, host.machine);
89 if (!sigemptyset(&sig) && !sigaddset(&sig,
SIGABRT))
93 if (kill(getpid(),
SIGABRT) < 0)