12 #include <sys/sysinfo.h>
15 void strcpy_n(
char* __dest,
const char* __src,
size_t __n);
24 int OSError(
char *msg,
int number,
bool deadend);
Defines types used for the EyeBot 7.
Structure defining battery info.
Definition: types.h:176
unsigned char OSMachineID(void)
Inform the user with which ID the Eyebot is titled.
Definition: system.c:118
Structure defining the CPU info.
Definition: types.h:147
int OSInfoProc(INFO_PROC *infoProc)
Collects infos about processes.
Definition: system.c:200
char * OSVersion(void)
Returns string containing running RoBIOS version.
Definition: system.c:78
int OSError(char *msg, int number, bool deadend)
Print message and number to display then stop processor (deadend) or wait for key.
Definition: system.c:133
int OSMachineType(void)
Inform the user in which environment the program runs.
Definition: system.c:98
int OSInfoMisc(INFO_MISC *infoMisc)
Collects system’s miscellaneous infos – uptime, vbatt.
Definition: system.c:211
Structure defining the processor info.
Definition: types.h:168
int OSInfoMem(INFO_MEM *infoMem)
Collects infos about the memory.
Definition: system.c:182
int OSInfoCPU(INFO_CPU *infoCPU)
Collects infos about the CPU – name, speed, architecture and bogusMips.
Definition: system.c:144
int OSMachineSpeed(void)
Inform the user how fast the processor runs.
Definition: system.c:88
char * OSMachineName(void)
Inform the user with which name the Eyebot is titled.
Definition: system.c:107
Structure defining the memory info.
Definition: types.h:158
char * OSExecute(char *command)
Executes a system command and obtains the string returned after the command.
Definition: system.c:51