CE process watching WIP

This commit is contained in:
2026-03-18 15:30:41 +01:00
parent 76b1533ad0
commit 77ab25bcee
18 changed files with 110 additions and 39 deletions

View File

@@ -1,3 +1,10 @@
include ../make/ufuncs.mk
$(eval $(call add_lib,libstring))
$(eval $(call add_lib,libprocess))
$(eval $(call add_lib,libaux))
$(eval $(call add_lib,libmalloc))
cflags += -DPRINTF_INCLUDE_CONFIG_H=1
include ../make/user.mk

View File

@@ -1,3 +1,20 @@
#include <mprintf.h>
#include <process_self.h>
#include <status.h>
#include <system.h>
void app_main (void) {}
#define COMMAND_MAX 32
void app_main (void) {
libprocess_self_init ();
char commandbuf[COMMAND_MAX];
commandbuf[0] = '\0';
mprintf ("HELLO!\n");
/* if (env_get (process_get_pgid (), "C", (void*)commandbuf, sizeof (commandbuf)) == ST_OK) { */
/* } */
/* mprintf ("C=%s\n", commandbuf); */
}