forked from KolibriOS/kolibrios
c1e6562f35
- Added shell_ping - Added shell_get_pid - Fixed malloc in stdlib.h - Added check during SHELL init (uses shell_ping) - getc is used like fgetc git-svn-id: svn://kolibrios.org@8635 a494cfbc-eb01-0410-851d-a64ba20cac60
14 lines
220 B
C
14 lines
220 B
C
#include "shell.h"
|
|
#include <stdlib.h>
|
|
#include <ksys.h>
|
|
|
|
int shell_ping()
|
|
{
|
|
__shell_init();
|
|
*__shell_shm = SHELL_PING;
|
|
_ksys_delay(10);
|
|
if(*__shell_shm==SHELL_OK){
|
|
return 1;
|
|
}
|
|
return 0;
|
|
} |