]> Git Repo - uclibc-ng.git/commitdiff
ldso: merge duplicate dl-syscalls.h code to common header
authorMike Frysinger <[email protected]>
Wed, 5 Oct 2011 03:26:08 +0000 (23:26 -0400)
committerBernhard Reutner-Fischer <[email protected]>
Thu, 6 Oct 2011 20:34:36 +0000 (22:34 +0200)
Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: Bernhard Reutner-Fischer <[email protected]>
17 files changed:
ldso/include/dl-syscall.h
ldso/ldso/arm/dl-syscalls.h
ldso/ldso/avr32/dl-syscalls.h
ldso/ldso/bfin/dl-syscalls.h
ldso/ldso/c6x/dl-syscalls.h
ldso/ldso/cris/dl-syscalls.h
ldso/ldso/frv/dl-syscalls.h
ldso/ldso/i386/dl-syscalls.h
ldso/ldso/m68k/dl-syscalls.h
ldso/ldso/microblaze/dl-syscalls.h
ldso/ldso/mips/dl-syscalls.h
ldso/ldso/powerpc/dl-syscalls.h
ldso/ldso/sh/dl-syscalls.h
ldso/ldso/sh64/dl-syscalls.h
ldso/ldso/sparc/dl-syscalls.h
ldso/ldso/x86_64/dl-syscalls.h
ldso/ldso/xtensa/dl-syscalls.h

index da3ac7f6fa3b9fdb15c0546db57cc9cb8bdcd75b..7539c223108a0164fcd0bcfade25c8568cf28aae 100644 (file)
@@ -8,6 +8,13 @@
 #ifndef _LD_SYSCALL_H_
 #define _LD_SYSCALL_H_
 
+/* We can't use the real errno in ldso, since it has not yet
+ * been dynamicly linked in yet. */
+#include "sys/syscall.h"
+extern int _dl_errno;
+#undef __set_errno
+#define __set_errno(X) {(_dl_errno) = (X);}
+
 /* Pull in the arch specific syscall implementation */
 #include <dl-syscalls.h>
 /*  For MAP_ANONYMOUS -- differs between platforms */
index 1c0e6699e63a9fef06755d0da16260fabd2299bf..195461f8324b0c1068d1a8af1e097b83c6f1bd64 100644 (file)
@@ -1,9 +1,3 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
 /* _call_via_rX calls are used in thumb ldso because of calls via
  * function pointers, but ldso is not linked with anything which
  * provides them, so define them here (only required for thumb).
index 996bb87c687be0004880319a3dc7da932c7d2280..f40c4fd3171924e4e13da079f5e30aa0ad383b32 100644 (file)
@@ -1,6 +1 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
+/* stub for arch-specific syscall issues */
index f74cf1ad37abcda471efeff2b7b1024af83ba39a..a119c74144c35698388a2f9c043ee312f3055e6f 100644 (file)
@@ -18,12 +18,6 @@ License along with uClibc; see the file COPYING.LIB.  If not, write to
 the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
 USA.  */
 
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
 #include <sys/mman.h>
 
 /* The code below is extracted from libc/sysdeps/linux/frv/_mmap.c */
index 9ff3358b08af3e4c5d67d3d78d98dd9cd4773510..66d96abbd165449a3ce11251008dd856e1cc0e6f 100644 (file)
@@ -4,14 +4,6 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
-#include <sys/mman.h>
-
 #ifdef __NR_pread64
 #define __NR___syscall_pread __NR_pread64
 static __always_inline _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf,
index 996bb87c687be0004880319a3dc7da932c7d2280..f40c4fd3171924e4e13da079f5e30aa0ad383b32 100644 (file)
@@ -1,6 +1 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
+/* stub for arch-specific syscall issues */
index a4bff1d477aa3d8fe7d74cae41249c7191a110c7..13b887b7535be003da43684ccffeb4714b9ff381 100644 (file)
@@ -4,12 +4,6 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
 #include <sys/mman.h>
 
 /* The code below is extracted from libc/sysdeps/linux/frv/_mmap.c */
index 996bb87c687be0004880319a3dc7da932c7d2280..f40c4fd3171924e4e13da079f5e30aa0ad383b32 100644 (file)
@@ -1,6 +1 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
+/* stub for arch-specific syscall issues */
index 996bb87c687be0004880319a3dc7da932c7d2280..f40c4fd3171924e4e13da079f5e30aa0ad383b32 100644 (file)
@@ -1,6 +1 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
+/* stub for arch-specific syscall issues */
index 996bb87c687be0004880319a3dc7da932c7d2280..f40c4fd3171924e4e13da079f5e30aa0ad383b32 100644 (file)
@@ -1,6 +1 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
+/* stub for arch-specific syscall issues */
index 996bb87c687be0004880319a3dc7da932c7d2280..f40c4fd3171924e4e13da079f5e30aa0ad383b32 100644 (file)
@@ -1,6 +1 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
+/* stub for arch-specific syscall issues */
index 996bb87c687be0004880319a3dc7da932c7d2280..f40c4fd3171924e4e13da079f5e30aa0ad383b32 100644 (file)
@@ -1,6 +1 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
+/* stub for arch-specific syscall issues */
index 712852c4c2c8c9e3b817695cea80873fd1cdcf51..f9f13c7faa3112139e677c281ed69ce271af3942 100644 (file)
@@ -1,10 +1,3 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
-
 #if __GNUC_PREREQ (4, 1)
 #warning !!! gcc 4.1 and later have problems with __always_inline so redefined as inline
 # ifdef __always_inline
index 4fe50fac439109b3b7543292d9aa458f274b36d2..2ea4bb7d086673f106d12e0fdb94ba3cf796bb31 100644 (file)
@@ -1,10 +1,3 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
-
 #undef __syscall_return
 #define __syscall_return(type, res)                                    \
 do {                                                                   \
index 996bb87c687be0004880319a3dc7da932c7d2280..f40c4fd3171924e4e13da079f5e30aa0ad383b32 100644 (file)
@@ -1,6 +1 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
+/* stub for arch-specific syscall issues */
index 996bb87c687be0004880319a3dc7da932c7d2280..f40c4fd3171924e4e13da079f5e30aa0ad383b32 100644 (file)
@@ -1,6 +1 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
+/* stub for arch-specific syscall issues */
index 4b42a57e0456e064228e3bfa437e21443375ab8b..f40c4fd3171924e4e13da079f5e30aa0ad383b32 100644 (file)
@@ -1,7 +1 @@
-/* We can't use the real errno in ldso, since it has not yet
- * been dynamicly linked in yet. */
-#include "sys/syscall.h"
-extern int _dl_errno;
-#undef __set_errno
-#define __set_errno(X) {(_dl_errno) = (X);}
-
+/* stub for arch-specific syscall issues */
This page took 0.04123 seconds and 4 git commands to generate.