Adding console I/O via the `SHELL`. Demonstration of [http_tcp_demo.c](https://git.kolibrios.org/KolibriOS/kolibrios/src/branch/main/programs/develop/ktcc/libc.obj/samples/http_tcp_demo.c): <video src="attachments/847d7d19-3d67-480d-80c8-6d678af61a43" title="Запись экрана от 2026-03-07 13-55-50.mp4" controls></video> - [x] output - [x] multithread - [x] add mutex - [x] multithread tests Reviewed-on: #354 Reviewed-by: Mikhail Frolov <mixa.frolov2003@gmail.com> Reviewed-by: Kiril Lipatov <lipatov.kiril@gmail.com> Co-authored-by: Egor00f <y.yarin@inbox.ru>
13 lines
226 B
C
13 lines
226 B
C
#include <shell_api.h>
|
|
#include <sys/ksys.h>
|
|
|
|
void shell_exit()
|
|
{
|
|
if (__shell_is_init == __SHELL_INIT_OK)
|
|
{
|
|
*__shell_shm = SHELL_EXIT;
|
|
__SHELL_WAIT();
|
|
_ksys_shm_close(__shell_shm_name);
|
|
}
|
|
}
|