From b97c3b0249d90d99e610db7588cc89aa3e92a770 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 29 Mar 2015 04:26:42 +0000 Subject: [PATCH] uClibc: add another missing backport patch Signed-off-by: Felix Fietkau SVN-Revision: 45102 --- ...e-handy-macros-to-be-used-in-syscall.patch | 28 +++++++++++++++++++ ....c.patch => 021-add-posix_madvise.c.patch} | 0 ...tch => 022-libc-add-posix_fallocate.patch} | 0 ...-libc-add-fallocate-and-fallocate64.patch} | 0 4 files changed, 28 insertions(+) create mode 100644 toolchain/uClibc/patches-0.9.33.2/020-endian.h-add-some-handy-macros-to-be-used-in-syscall.patch rename toolchain/uClibc/patches-0.9.33.2/{020-add-posix_madvise.c.patch => 021-add-posix_madvise.c.patch} (100%) rename toolchain/uClibc/patches-0.9.33.2/{021-libc-add-posix_fallocate.patch => 022-libc-add-posix_fallocate.patch} (100%) rename toolchain/uClibc/patches-0.9.33.2/{022-libc-add-fallocate-and-fallocate64.patch => 023-libc-add-fallocate-and-fallocate64.patch} (100%) diff --git a/toolchain/uClibc/patches-0.9.33.2/020-endian.h-add-some-handy-macros-to-be-used-in-syscall.patch b/toolchain/uClibc/patches-0.9.33.2/020-endian.h-add-some-handy-macros-to-be-used-in-syscall.patch new file mode 100644 index 0000000000..720104195a --- /dev/null +++ b/toolchain/uClibc/patches-0.9.33.2/020-endian.h-add-some-handy-macros-to-be-used-in-syscall.patch @@ -0,0 +1,28 @@ +From: "Peter S. Mazinger" +Date: Thu, 21 Apr 2011 21:20:55 +0200 +Subject: [PATCH] endian.h: add some handy macros to be used in syscalls + +Signed-off-by: Peter S. Mazinger +Signed-off-by: Bernhard Reutner-Fischer +--- + +--- a/include/endian.h ++++ b/include/endian.h +@@ -55,6 +55,17 @@ + # define __LONG_LONG_PAIR(HI, LO) HI, LO + #endif + ++#ifdef _LIBC ++# ifndef __ASSEMBLER__ ++# include ++# define OFF_HI(offset) (offset >> 31) ++# define OFF_LO(offset) (offset) ++# define OFF64_HI(offset) (uint32_t)(offset >> 32) ++# define OFF64_LO(offset) (uint32_t)(offset & 0xffffffff) ++# define OFF_HI_LO(offset) __LONG_LONG_PAIR(OFF_HI(offset), OFF_LO(offset)) ++# define OFF64_HI_LO(offset) __LONG_LONG_PAIR(OFF64_HI(offset), OFF64_LO(offset)) ++# endif ++#endif + + #ifdef __USE_BSD + /* Conversion interfaces. */ diff --git a/toolchain/uClibc/patches-0.9.33.2/020-add-posix_madvise.c.patch b/toolchain/uClibc/patches-0.9.33.2/021-add-posix_madvise.c.patch similarity index 100% rename from toolchain/uClibc/patches-0.9.33.2/020-add-posix_madvise.c.patch rename to toolchain/uClibc/patches-0.9.33.2/021-add-posix_madvise.c.patch diff --git a/toolchain/uClibc/patches-0.9.33.2/021-libc-add-posix_fallocate.patch b/toolchain/uClibc/patches-0.9.33.2/022-libc-add-posix_fallocate.patch similarity index 100% rename from toolchain/uClibc/patches-0.9.33.2/021-libc-add-posix_fallocate.patch rename to toolchain/uClibc/patches-0.9.33.2/022-libc-add-posix_fallocate.patch diff --git a/toolchain/uClibc/patches-0.9.33.2/022-libc-add-fallocate-and-fallocate64.patch b/toolchain/uClibc/patches-0.9.33.2/023-libc-add-fallocate-and-fallocate64.patch similarity index 100% rename from toolchain/uClibc/patches-0.9.33.2/022-libc-add-fallocate-and-fallocate64.patch rename to toolchain/uClibc/patches-0.9.33.2/023-libc-add-fallocate-and-fallocate64.patch