From: Nishi Date: Sat, 7 Sep 2024 08:57:23 +0000 (+0000) Subject: hard-code signal X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9b30e779ce42d2a67df95f09944928fd27c38ddb;p=mokou.git hard-code signal git-svn-id: file:///raid/svn-personal/mokou/trunk@6 35d6bad2-6c5c-c749-ada2-a2c82cb3bd79 --- diff --git a/Mokou/service.c b/Mokou/service.c index c3dd843..1080f4b 100644 --- a/Mokou/service.c +++ b/Mokou/service.c @@ -17,6 +17,43 @@ struct mk_service** services = NULL; +#ifdef __linux__ +const char* sys_signame[] = { + "HUP", + "INT", + "QUIT", + "ILL", + "TRAP", + "ABRT", + "BUS", + "FPE", + "KILL", + "USR1", + "SEGV", + "USR2", + "PIPE", + "ALRM", + "TERM", + "STKFLT", + "CHLD", + "CONT", + "STOP", + "TSTP", + "TTIN", + "TTOU", + "URG", + "XCPU", + "XFSZ", + "VTALRM", + "PROF", + "WINCH", + "POLL", + "PWR", + "SYS", + "RTMIN" +}; +#endif + void mk_service_scan(void){ if(services != NULL){ int i; diff --git a/Platform/linux.mk b/Platform/linux.mk new file mode 100644 index 0000000..855070c --- /dev/null +++ b/Platform/linux.mk @@ -0,0 +1,7 @@ +# $Id$ + +CC = cc +CFLAGS = -std=c99 -g -DPREFIX=\"$(PREFIX)\" -D_DEFAULT_SOURCE +LDFLAGS = +LIBS = -lpthread +EXEC =