[Title] rename
authorgiwoong.kim <giwoong.kim@samsung.com>
Tue, 13 Mar 2012 08:02:09 +0000 (17:02 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Tue, 13 Mar 2012 08:02:09 +0000 (17:02 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/Makefile.tizen
tizen/src/emulsignal.c [deleted file]
tizen/src/emulsignal.h [deleted file]
tizen/src/maru_signal.c [new file with mode: 0644]
tizen/src/maru_signal.h [new file with mode: 0644]

index aca8322c8a4cf11f4d74bc187cbc90e5331eb37d..c35573799077ef43df9c02a46f572e71ff93080d 100644 (file)
@@ -11,7 +11,7 @@ QEMU_CFLAGS += -L$(SRC_PATH)/tizen/distrib/ffmpeg/lib
 LIBS += -lavformat -lavcodec -lavutil -lm -lGL
 
 # maru loader
-obj-y += emulator.o emulsignal.o maru_sdl.o
+obj-y += emulator.o maru_signal.o maru_sdl.o
 
 # sdb
 obj-y += sdb.o
diff --git a/tizen/src/emulsignal.c b/tizen/src/emulsignal.c
deleted file mode 100644 (file)
index e5f0989..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * Emulator signal handler
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: 
- * DoHyung Hong <don.hong@samsung.com>
- * SeokYeon Hwang <syeon.hwang@samsung.com>
- * HyunJun Son <hj79.son@samsung.com>
- * SangJin Kim <sangjin3.kim@samsung.com>
- * MunKyu Im <munkyu.im@samsung.com>
- * KiTae Kim <kt920.kim@samsung.com>
- * JinHyung Jo <jinhyung.jo@samsung.com>
- * SungMin Ha <sungmin82.ha@samsung.com>
- * JiHye Kim <jihye1128.kim@samsung.com>
- * GiWoong Kim <giwoong.kim@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#include "emulsignal.h"
-#include "debug_ch.h"
-#ifndef _WIN32
-#include <sys/ipc.h>  
-#include <sys/shm.h> 
-#endif
-
-MULTI_DEBUG_CHANNEL(qemu, emulsignal);
-
-
-static sigset_t cur_sigset, old_sigset;
-
-int sig_block(void) 
-{
-#ifndef _WIN32
-    sigfillset (&cur_sigset);
-
-    if (sigprocmask (SIG_BLOCK, &cur_sigset, &old_sigset) < 0) {
-        ERR( "sigprocmask error \n");
-    }
-#endif
-    return 0;
-
-}
-
-int sig_unblock(void) 
-{
-#ifndef _WIN32
-    sigfillset (&cur_sigset);
-
-    if (sigprocmask (SIG_SETMASK, &old_sigset, NULL) < 0) {
-        ERR( "sigprocmask error \n");
-    }
-#endif
-    return 0;
-}
-
-void sig_handler (int signo)
-{
-    sigset_t sigset, oldset;
-    
-    TRACE("signo %d happens\n", signo);
-    switch (signo) {
-        case SIGINT:
-        case SIGQUIT:
-        case SIGTERM:
-            sigfillset (&sigset);
-
-            if (sigprocmask (SIG_BLOCK, &sigset, &oldset) < 0) {
-                ERR( "sigprocmask %d error \n", signo);
-                //exit_emulator();
-            }
-
-            if (sigprocmask (SIG_SETMASK, &oldset, NULL) < 0) {
-                ERR( "sigprocmask error \n");
-            }
-
-            //exit_emulator();
-            exit(0);
-            break;
-
-       default:
-            break;
-    }
-}
-
-int register_sig_handler(void)
-{
-#ifndef _WIN32
-    signal (SIGINT, sig_handler);
-    signal (SIGQUIT, sig_handler);
-    signal (SIGTERM, sig_handler);
-#endif
-    TRACE( "resist sig handler\n");
-
-    return 0;
-}
-
diff --git a/tizen/src/emulsignal.h b/tizen/src/emulsignal.h
deleted file mode 100644 (file)
index 879bfbc..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Emulator signal handler
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: 
- * DoHyung Hong <don.hong@samsung.com>
- * SeokYeon Hwang <syeon.hwang@samsung.com>
- * HyunJun Son <hj79.son@samsung.com>
- * SangJin Kim <sangjin3.kim@samsung.com>
- * MunKyu Im <munkyu.im@samsung.com>
- * KiTae Kim <kt920.kim@samsung.com>
- * JinHyung Jo <jinhyung.jo@samsung.com>
- * SungMin Ha <sungmin82.ha@samsung.com>
- * JiHye Kim <jihye1128.kim@samsung.com>
- * GiWoong Kim <giwoong.kim@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-
-#ifndef __EMULSIGNAL_H__
-#define __EMULSIGNAL_H__
-
-#include <signal.h>
-#include <unistd.h>
-#include <sys/types.h>
-#ifndef _WIN32
-#include <sys/wait.h>
-#endif
-
-
-int sig_block(void);
-int sig_unblock(void);
-void sig_handler (int signo);
-int register_sig_handler(void);
-
-#endif /* __EMULSIGNAL_H__ */
diff --git a/tizen/src/maru_signal.c b/tizen/src/maru_signal.c
new file mode 100644 (file)
index 0000000..bd472e2
--- /dev/null
@@ -0,0 +1,115 @@
+/*
+ * Emulator signal handler
+ *
+ * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: 
+ * DoHyung Hong <don.hong@samsung.com>
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * HyunJun Son <hj79.son@samsung.com>
+ * SangJin Kim <sangjin3.kim@samsung.com>
+ * MunKyu Im <munkyu.im@samsung.com>
+ * KiTae Kim <kt920.kim@samsung.com>
+ * JinHyung Jo <jinhyung.jo@samsung.com>
+ * SungMin Ha <sungmin82.ha@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#include "maru_signal.h"
+#include "debug_ch.h"
+#ifndef _WIN32
+#include <sys/ipc.h>  
+#include <sys/shm.h> 
+#endif
+
+MULTI_DEBUG_CHANNEL(qemu, emulsignal);
+
+
+static sigset_t cur_sigset, old_sigset;
+
+int sig_block(void) 
+{
+#ifndef _WIN32
+    sigfillset (&cur_sigset);
+
+    if (sigprocmask (SIG_BLOCK, &cur_sigset, &old_sigset) < 0) {
+        ERR( "sigprocmask error \n");
+    }
+#endif
+    return 0;
+
+}
+
+int sig_unblock(void) 
+{
+#ifndef _WIN32
+    sigfillset (&cur_sigset);
+
+    if (sigprocmask (SIG_SETMASK, &old_sigset, NULL) < 0) {
+        ERR( "sigprocmask error \n");
+    }
+#endif
+    return 0;
+}
+
+void sig_handler (int signo)
+{
+    sigset_t sigset, oldset;
+    
+    TRACE("signo %d happens\n", signo);
+    switch (signo) {
+        case SIGINT:
+        case SIGQUIT:
+        case SIGTERM:
+            sigfillset (&sigset);
+
+            if (sigprocmask (SIG_BLOCK, &sigset, &oldset) < 0) {
+                ERR( "sigprocmask %d error \n", signo);
+                //exit_emulator();
+            }
+
+            if (sigprocmask (SIG_SETMASK, &oldset, NULL) < 0) {
+                ERR( "sigprocmask error \n");
+            }
+
+            //exit_emulator();
+            exit(0);
+            break;
+
+       default:
+            break;
+    }
+}
+
+int register_sig_handler(void)
+{
+#ifndef _WIN32
+    signal (SIGINT, sig_handler);
+    signal (SIGQUIT, sig_handler);
+    signal (SIGTERM, sig_handler);
+#endif
+    TRACE( "resist sig handler\n");
+
+    return 0;
+}
+
diff --git a/tizen/src/maru_signal.h b/tizen/src/maru_signal.h
new file mode 100644 (file)
index 0000000..ec9cf57
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * Emulator signal handler
+ *
+ * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: 
+ * DoHyung Hong <don.hong@samsung.com>
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * HyunJun Son <hj79.son@samsung.com>
+ * SangJin Kim <sangjin3.kim@samsung.com>
+ * MunKyu Im <munkyu.im@samsung.com>
+ * KiTae Kim <kt920.kim@samsung.com>
+ * JinHyung Jo <jinhyung.jo@samsung.com>
+ * SungMin Ha <sungmin82.ha@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+
+#ifndef __MARU_SIGNAL_H__
+#define __MARU_SIGNAL_H__
+
+#include <signal.h>
+#include <unistd.h>
+#include <sys/types.h>
+#ifndef _WIN32
+#include <sys/wait.h>
+#endif
+
+
+int sig_block(void);
+int sig_unblock(void);
+void sig_handler (int signo);
+int register_sig_handler(void);
+
+#endif /* __MARU_SIGNAL_H__ */