CE process watching WIP
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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); */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user