Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8634 → Rev 8635

/contrib/kolibri-libc/source/shell_api/shell_get_pid.c
0,0 → 1,12
#include "shell.h"
#include <stdlib.h>
 
unsigned shell_get_pid()
{
unsigned pid;
__shell_init();
*__shell_shm = SHELL_PID;
SHELL_WAIT();
memcpy(&pid, __shell_shm+1, sizeof(unsigned));
return pid;
}