Test initialisation of MUIA_List_AdjustWidth and MUIA_List_AdjustHeight, and
[AROS.git] / arch / all-unix / bootstrap / support.c
blob24d1b3ed7b340a5b86e84501ffb5a8ef2a90e33c
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdio.h>
7 #include <sys/utsname.h>
9 #include "support.h"
11 char *DefaultConfig = ARCH "/AROSBootstrap.conf";
13 char *getosversion(const char *bsversion)
15 char *BootLoader_Name;
16 struct utsname sysinfo;
17 char *nameparts[6];
19 uname(&sysinfo);
20 nameparts[0] = (char *)bsversion;
21 nameparts[1] = "/";
22 nameparts[2] = sysinfo.sysname;
23 nameparts[3] = sysinfo.machine;
24 nameparts[4] = sysinfo.release;
25 nameparts[5] = sysinfo.version;
26 BootLoader_Name = join_string(6, nameparts);
28 return BootLoader_Name;
31 char *namepart(char *name)
33 while (*name)
34 name++;
36 while (name[-1] != '/')
37 name--;
39 return name;