aboutsummaryrefslogtreecommitdiffstats
path: root/main/uclibc/uclibc-fork-hidden.diff
blob: 2a0543380e46c3de393c7599b57a5d9c7f7fd04c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
Index: uClibc-0.9.30.1/libc/misc/wordexp/wordexp.c
===================================================================
--- uClibc-0.9.30.1.orig/libc/misc/wordexp/wordexp.c	2009-08-03 16:13:20.000000000 +0300
+++ uClibc-0.9.30.1/libc/misc/wordexp/wordexp.c	2009-08-03 16:14:23.000000000 +0300
@@ -56,7 +56,7 @@
 libc_hidden_proto(atoi)
 libc_hidden_proto(fnmatch)
 libc_hidden_proto(pipe)
-libc_hidden_proto(fork)
+//libc_hidden_proto(fork)
 libc_hidden_proto(open)
 libc_hidden_proto(close)
 libc_hidden_proto(read)
Index: uClibc-0.9.30.1/libc/stdio/popen.c
===================================================================
--- uClibc-0.9.30.1.orig/libc/stdio/popen.c	2009-08-03 16:13:20.000000000 +0300
+++ uClibc-0.9.30.1/libc/stdio/popen.c	2009-08-03 16:14:23.000000000 +0300
@@ -42,7 +42,7 @@
 # define vfork fork
 # define VFORK_LOCK		((void) 0)
 # define VFORK_UNLOCK		((void) 0)
-libc_hidden_proto(fork)
+//libc_hidden_proto(fork)
 #endif
 
 #ifndef VFORK_LOCK
Index: uClibc-0.9.30.1/libc/stdlib/system.c
===================================================================
--- uClibc-0.9.30.1.orig/libc/stdlib/system.c	2009-08-03 16:13:20.000000000 +0300
+++ uClibc-0.9.30.1/libc/stdlib/system.c	2009-08-03 16:14:23.000000000 +0300
@@ -21,7 +21,7 @@
 #include <sys/syscall.h>
 #ifndef __NR_vfork
 # define vfork fork
-libc_hidden_proto(fork)
+//libc_hidden_proto(fork)
 #endif
 
 extern __typeof(system) __libc_system;
Index: uClibc-0.9.30.1/libc/stdlib/unix_grantpt.c
===================================================================
--- uClibc-0.9.30.1.orig/libc/stdlib/unix_grantpt.c	2009-08-03 16:13:21.000000000 +0300
+++ uClibc-0.9.30.1/libc/stdlib/unix_grantpt.c	2009-08-03 16:14:23.000000000 +0300
@@ -39,7 +39,7 @@
 libc_hidden_proto(chmod)
 libc_hidden_proto(chown)
 libc_hidden_proto(vfork)
-libc_hidden_proto(fork)
+//libc_hidden_proto(fork)
 libc_hidden_proto(stat)
 libc_hidden_proto(ptsname_r)
 libc_hidden_proto(execle)
Index: uClibc-0.9.30.1/libc/sysdeps/linux/common/fork.c
===================================================================
--- uClibc-0.9.30.1.orig/libc/sysdeps/linux/common/fork.c	2009-08-03 16:10:51.000000000 +0300
+++ uClibc-0.9.30.1/libc/sysdeps/linux/common/fork.c	2009-08-03 16:14:23.000000000 +0300
@@ -16,9 +16,9 @@
 extern __typeof(fork) __libc_fork;
 #define __NR___libc_fork __NR_fork
 _syscall0(pid_t, __libc_fork)
-libc_hidden_proto(fork)
+////libc_hidden_proto(fork)
 weak_alias(__libc_fork,fork)
-libc_hidden_weak(fork)
+//libc_hidden_weak(fork)
 #endif
 
 #elif defined __UCLIBC_HAS_STUBS__
@@ -28,7 +28,7 @@
 	__set_errno(ENOSYS);
 	return -1;
 }
-libc_hidden_proto(fork)
+////libc_hidden_proto(fork)
 weak_alias(__libc_fork,fork)
 libc_hidden_weak(fork)
 link_warning(fork, "fork: this function is not implemented on no-mmu systems")
Index: uClibc-0.9.30.1/libc/sysdeps/linux/common/vfork.c
===================================================================
--- uClibc-0.9.30.1.orig/libc/sysdeps/linux/common/vfork.c	2009-08-03 16:13:20.000000000 +0300
+++ uClibc-0.9.30.1/libc/sysdeps/linux/common/vfork.c	2009-08-03 16:14:23.000000000 +0300
@@ -12,7 +12,7 @@
 #ifdef __ARCH_USE_MMU__
 
 #ifdef __NR_fork
-libc_hidden_proto(fork)
+//libc_hidden_proto(fork)
 
 extern __typeof(vfork) __vfork attribute_hidden;
 pid_t __vfork(void)
Index: uClibc-0.9.30.1/libc/sysdeps/linux/cris/fork.c
===================================================================
--- uClibc-0.9.30.1.orig/libc/sysdeps/linux/cris/fork.c	2009-08-03 16:13:20.000000000 +0300
+++ uClibc-0.9.30.1/libc/sysdeps/linux/cris/fork.c	2009-08-03 16:14:23.000000000 +0300
@@ -14,6 +14,6 @@
 	   R0&-1==R0, and the child gets R0&0==0.  */
      /* i dunno what the blurb above is useful for. we just return. */
 __asm__("ret\n\tnop");
-libc_hidden_proto(fork)
+//libc_hidden_proto(fork)
 weak_alias(__libc_fork,fork)
 libc_hidden_weak(fork)
Index: uClibc-0.9.30.1/libc/unistd/daemon.c
===================================================================
--- uClibc-0.9.30.1.orig/libc/unistd/daemon.c	2009-08-03 16:13:21.000000000 +0300
+++ uClibc-0.9.30.1/libc/unistd/daemon.c	2009-08-03 16:14:23.000000000 +0300
@@ -54,7 +54,7 @@
 libc_hidden_proto(dup2)
 libc_hidden_proto(setsid)
 libc_hidden_proto(chdir)
-libc_hidden_proto(fork)
+//libc_hidden_proto(fork)
 
 int daemon( int nochdir, int noclose )
 {