Subversion Repositories Kolibri OS

Rev

Rev 8629 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8629 Rev 8632
Line 1... Line 1...
1
#include 
1
#include 
2
#include 
2
#include 
3
#include 
3
#include 
-
 
4
#include "shell.h"
Line 4... Line 5...
4
 
5
 
5
char __shell_shm_name[32]; 
6
char __shell_shm_name[32]; 
6
char*__shell_shm=NULL;
7
char*__shell_shm=NULL;
Line 19... Line 20...
19
    PID = proc_info->pid;
20
    PID = proc_info->pid;
20
    free(proc_info);
21
    free(proc_info);
Line 21... Line 22...
21
 
22
 
22
    itoa(PID, __shell_shm_name);
23
    itoa(PID, __shell_shm_name);
23
    strcat(__shell_shm_name, "-SHELL");
24
    strcat(__shell_shm_name, "-SHELL");
24
    return _ksys_shm_open(__shell_shm_name,  KSYS_SHM_OPEN_ALWAYS | KSYS_SHM_WRITE, 1024*16, &__shell_shm);
25
    return _ksys_shm_open(__shell_shm_name,  KSYS_SHM_OPEN_ALWAYS | KSYS_SHM_WRITE, SHELL_SHM_MAX, &__shell_shm);
Line 25... Line 26...
25
}
26
}
26
 
27
 
27
int __shell_init()
28
int __shell_init()