]> Nishi Git Mirror - mokou.git/commitdiff
hard-code signal
authorNishi <nishi@nishi.boats>
Sat, 7 Sep 2024 08:57:23 +0000 (08:57 +0000)
committerNishi <nishi@nishi.boats>
Sat, 7 Sep 2024 08:57:23 +0000 (08:57 +0000)
git-svn-id: file:///raid/svn-personal/mokou/trunk@6 35d6bad2-6c5c-c749-ada2-a2c82cb3bd79

Mokou/service.c
Platform/linux.mk [new file with mode: 0644]

index c3dd8438a0c704beca5675fa7d3d2cbfd1705d7a..1080f4b7c1fedaa632d43c296bb2d25c0370a203 100644 (file)
 
 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 (file)
index 0000000..855070c
--- /dev/null
@@ -0,0 +1,7 @@
+# $Id$
+
+CC = cc
+CFLAGS = -std=c99 -g -DPREFIX=\"$(PREFIX)\" -D_DEFAULT_SOURCE
+LDFLAGS =
+LIBS = -lpthread
+EXEC =