[Qemu-arm-eabi-devel] SF.net SVN: qemu-arm-eabi:[32] trunk/patches
Status: Beta
                
                Brought to you by:
                
                    laurov
                    
                
            | 
     
      
      
      From: <la...@us...> - 2008-10-03 23:37:39
      
     
   | 
Revision: 32
          http://qemu-arm-eabi.svn.sourceforge.net/qemu-arm-eabi/?rev=32&view=rev
Author:   laurov
Date:     2008-10-03 23:37:36 +0000 (Fri, 03 Oct 2008)
Log Message:
-----------
Remove 90_evil_dlclose.patch.
Modified Paths:
--------------
    trunk/patches/series
Removed Paths:
-------------
    trunk/patches/90_evil_dlclose.patch
Deleted: trunk/patches/90_evil_dlclose.patch
===================================================================
--- trunk/patches/90_evil_dlclose.patch	2008-10-03 19:17:14 UTC (rev 31)
+++ trunk/patches/90_evil_dlclose.patch	2008-10-03 23:37:36 UTC (rev 32)
@@ -1,80 +0,0 @@
-#DPATCHLEVEL=0
-Index: linux-user/main.c
-===================================================================
---- linux-user/main.c.orig	2008-08-11 15:20:16.000000000 -0300
-+++ linux-user/main.c	2008-08-11 15:35:26.000000000 -0300
-@@ -29,6 +29,8 @@
- /* For tb_lock */
- #include "exec-all.h"
- 
-+int flush_close;
-+
- #define DEBUG_LOGFILE "/tmp/qemu.log"
- 
- static const char *interp_prefix = CONFIG_QEMU_PREFIX;
-@@ -469,6 +471,11 @@
-             abort();
-         }
-         process_pending_signals(env);
-+
-+        if (flush_close) {
-+            tb_flush(env);
-+            flush_close = 0;
-+        }
-     }
- }
- #endif
-@@ -2211,6 +2218,8 @@
-     if (argc <= 1)
-         usage();
- 
-+    flush_close = 0;
-+
-     /* init debug */
-     cpu_set_log_filename(DEBUG_LOGFILE);
- 
-Index: linux-user/qemu.h
-===================================================================
---- linux-user/qemu.h.orig	2008-08-11 15:23:47.000000000 -0300
-+++ linux-user/qemu.h	2008-08-11 15:35:26.000000000 -0300
-@@ -37,6 +37,8 @@
- #include "target_signal.h"
- #include "gdbstub.h"
- 
-+extern int flush_close;
-+
- #if defined(USE_NPTL)
- #define THREAD __thread
- #else
-Index: linux-user/syscall.c
-===================================================================
---- linux-user/syscall.c.orig	2008-08-11 15:31:40.000000000 -0300
-+++ linux-user/syscall.c	2008-08-11 15:35:26.000000000 -0300
-@@ -3423,7 +3423,27 @@
-         break;
- #endif
-     case TARGET_NR_close:
-+    {
-+        struct stat buf;
-+
-+        ret = fstat(arg1, &buf);
-+
-+        if ((ret == 0) && (S_ISREG(buf.st_mode)) && (buf.st_mode & S_IRUSR)) {
-+            char str[EI_PAD];
-+            int origpos;
-+            origpos=lseek(arg1, 0, SEEK_CUR); /* get current position */
-+
-+            if (lseek(arg1, 0, SEEK_SET) != (off_t)-1)
-+                if (read(arg1, str, EI_PAD) > 0)
-+                   if (str[EI_MAG0] == ELFMAG0 && str[EI_MAG1] == ELFMAG1 &&
-+                       str[EI_MAG1] == ELFMAG1 && str[EI_MAG3] == ELFMAG3)
-+                       flush_close = 1;
-+
-+            lseek(arg1, origpos, SEEK_SET);
-+        }
-+
-         ret = get_errno(close(arg1));
-+    }
-         break;
-     case TARGET_NR_brk:
-         ret = do_brk(arg1);
Modified: trunk/patches/series
===================================================================
--- trunk/patches/series	2008-10-03 19:17:14 UTC (rev 31)
+++ trunk/patches/series	2008-10-03 23:37:36 UTC (rev 32)
@@ -18,6 +18,5 @@
 35_syscall_sockaddr.patch
 44_socklen_t_check.patch
 48_signal_terminate.patch
-90_evil_dlclose.patch -p0
 99_sbox_callhack.patch
 99_sbox_proc.patch
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |