- Added new SC_PING api
- Renamed from SC_GET_PID to SC_PID 

git-svn-id: svn://kolibrios.org@8634 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2021-03-04 08:50:03 +00:00
parent 1a73ba1001
commit cae5f61bc5
3 changed files with 9 additions and 4 deletions

View File

@ -76,7 +76,7 @@ for (i = 0; i < 30; i++)
*buffer = SC_OK; *buffer = SC_OK;
break; break;
case SC_GET_PID: case SC_PID:
buf1k=malloc(1024); buf1k=malloc(1024);
kol_process_info(-1, buf1k); kol_process_info(-1, buf1k);
memcpy(buffer+1, buf1k+30, sizeof(unsigned)); memcpy(buffer+1, buf1k+30, sizeof(unsigned));
@ -84,6 +84,10 @@ for (i = 0; i < 30; i++)
free(buf1k); free(buf1k);
break; break;
case SC_PING:
*buffer = SC_OK;
break;
default: default:
#if LANG_ENG #if LANG_ENG
printf (" Error in console application.\n\r"); printf (" Error in console application.\n\r");

View File

@ -6,4 +6,5 @@
#define SC_GETC 4 #define SC_GETC 4
#define SC_GETS 5 #define SC_GETS 5
#define SC_CLS 6 #define SC_CLS 6
#define SC_GET_PID 7 #define SC_PID 7
#define SC_PING 8