nutools/lib/reptyr/reptyr.patch

97 lines
2.5 KiB
Diff
Raw Normal View History

2013-08-27 15:14:44 +04:00
# -*- coding: utf-8 mode: diff -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
cf https://github.com/nelhage/reptyr
Ce patch contient les modifications apportées pour transformer la distribution
de reptyr en script pour compileAngGo
--- ./attach.c.orig 2013-02-02 15:40:12.447986835 +0400
+++ ./attach.c 2013-02-02 15:42:47.124753835 +0400
@@ -37,8 +37,8 @@
#include <sys/time.h>
#include <sys/stat.h>
-#include "ptrace.h"
-#include "reptyr.h"
+//#include "ptrace.h"
+//#include "reptyr.h"
#define TASK_COMM_LENGTH 16
struct proc_stat {
--- ./arch/i386.h.orig 2013-02-02 15:40:16.596007403 +0400
+++ ./arch/i386.h 2013-02-02 15:44:10.805168832 +0400
@@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-#include "x86_common.h"
+//@include x86_common.h
static struct ptrace_personality arch_personality[1] = {
{
--- ./arch/amd64.h.orig 2013-02-02 15:40:16.572007302 +0400
+++ ./arch/amd64.h 2013-02-02 15:44:21.737222992 +0400
@@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-#include "x86_common.h"
+//@include x86_common.h
#define ARCH_HAVE_MULTIPLE_PERSONALITIES
@@ -58,7 +58,7 @@
};
struct syscall_numbers arch_syscall_numbers[2] = {
-#include "default-syscalls.h"
+//@include default-syscalls.h
{
/*
* These don't seem to be available in any convenient header. We could
--- ./ptrace.c.orig 2013-02-02 15:40:12.455986864 +0400
+++ ./ptrace.c 2013-02-02 15:45:10.401464274 +0400
@@ -34,7 +34,7 @@
#include <assert.h>
#include <stddef.h>
-#include "ptrace.h"
+//#include "ptrace.h"
/*
* RHEL 5's kernel supports these flags, but their libc doesn't ship a ptrace.h
@@ -79,11 +79,11 @@
static struct ptrace_personality *personality(struct ptrace_child *child);
#if defined(__amd64__)
-#include "arch/amd64.h"
+//@include arch/amd64.h
#elif defined(__i386__)
-#include "arch/i386.h"
+//@include arch/i386.h
#elif defined(__arm__)
-#include "arch/arm.h"
+//@include arch/arm.h
#else
#error Unsupported architecture.
#endif
@@ -94,7 +94,7 @@
}
struct syscall_numbers arch_syscall_numbers[] = {
-#include "arch/default-syscalls.h"
+//@include arch/default-syscalls.h
};
#endif
--- ./reptyr.c.orig 2013-02-02 15:40:12.463986914 +0400
+++ ./reptyr.c 2013-02-02 15:46:22.157820034 +0400
@@ -32,7 +32,7 @@
#include <termios.h>
#include <signal.h>
-#include "reptyr.h"
+//#include "reptyr.h"
#ifndef __linux__
#error reptyr is currently Linux-only.