diff options
132 files changed, 3997 insertions, 470 deletions
diff --git a/.gitignore b/.gitignore index fc81d7882..55f82fdd7 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,7 @@ /tests/adk.exp /tests/adk.exp.in.tmp /prereq.mk -/toolchain_build_*/ +/toolchain_*/ /.ADK_HAVE_DOT_CONFIG /.tmpconfig.h /.prereq_done @@ -33,17 +33,17 @@ config ADK_CHOOSE_TARGET_SYSTEM source "target/config/Config.in" menu "Runtime configuration" -depends on !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_KERNEL && !ADK_CHOOSE_TARGET_SYSTEM +depends on !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_SYSTEM source "target/config/Config.in.runtime" endmenu menu "Package collection" -depends on !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_KERNEL && !ADK_CHOOSE_TARGET_SYSTEM +depends on !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_SYSTEM source "target/packages/Config.in" endmenu menu "Package selection" -depends on !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_KERNEL && !ADK_CHOOSE_TARGET_SYSTEM +depends on !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_SYSTEM config ADK_LEAVE_ETC_ALONE boolean "do not install anything into /etc" @@ -89,9 +89,6 @@ source "package/Config.in.auto.global" source "package/Config.in.auto" endmenu -config ADK_USE_KERNEL_MINICONFIG - boolean - choice prompt "Kernel Version" depends on ADK_TOOLCHAIN_ONLY @@ -104,7 +101,7 @@ config ADK_KERNEL_VERSION_TOOLCHAIN endchoice menu "Kernel configuration" -depends on !ADK_TOOLCHAIN_ONLY && !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_KERNEL && !ADK_CHOOSE_TARGET_SYSTEM && ADK_TARGET_KERNEL_CUSTOMISING +depends on !ADK_TOOLCHAIN_ONLY && !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_SYSTEM && ADK_TARGET_KERNEL_CUSTOMISING choice prompt "Kernel Version" @@ -1,14 +1,11 @@ -- tzdata split + update +- check gold for mozilla compile - getty + serial rework - add daemon() function to functions.sh - add printing of OK/FAIL (optional verbose bootup) - fixup rework libgcc --export-symbols - libgcc static? -- remove 32 bit kernel for 64 bit targets - static toolchain support - toolchain in /usr , check gcj -- rework startup, maybe use init.c, start gettys after bootup ready -- more output for initscripts on bootup - try Preset Loops per Jiffy for faster bootup via lpj= - port uuterm - hash-style=gnu for non-mips and non-musl diff --git a/mk/build.mk b/mk/build.mk index 821548428..ff9abd229 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -170,6 +170,9 @@ endif ${STAGING_TARGET_DIR} ${STAGING_TARGET_DIR}/etc ${STAGING_HOST_DIR}: mkdir -p ${STAGING_TARGET_DIR}/{bin,etc,lib,usr/bin,usr/include,usr/lib/pkgconfig} \ ${STAGING_HOST_DIR}/{bin,lib,usr/bin,usr/lib,usr/include} + for i in lib64 lib32 libx32;do \ + cd ${STAGING_TARGET_DIR}/; ln -sf lib $$i; \ + done ${STAGING_TARGET_DIR}/etc/ipkg.conf: ${STAGING_TARGET_DIR}/etc ifeq ($(ADK_TARGET_PACKAGE_IPKG),y) @@ -261,7 +264,7 @@ cleandir: @$(MAKE) -C $(CONFIG) clean $(MAKE_TRACE) rm -rf $(BUILD_DIR_PFX) $(FW_DIR_PFX) $(TARGET_DIR_PFX) \ ${TOPDIR}/package/pkglist.d ${TOPDIR}/package/pkgconfigs.d - rm -rf $(TOOLCHAIN_BUILD_DIR_PFX) $(STAGING_HOST_DIR_PFX) $(TOOLS_BUILD_DIR) + rm -rf $(TOOLCHAIN_DIR_PFX) $(STAGING_HOST_DIR_PFX) $(TOOLS_BUILD_DIR) rm -rf $(STAGING_TARGET_DIR_PFX) $(STAGING_PKG_DIR_PFX) rm -f .menu .tmpconfig.h .rebuild* ${TOPDIR}/package/Depends.mk ${TOPDIR}/prereq.mk @@ -269,16 +272,16 @@ cleantoolchain: @$(TRACE) cleantoolchain @rm -rf $(BUILD_DIR_PFX) $(TARGET_DIR_PFX) \ ${TOPDIR}/package/pkglist.d ${TOPDIR}/package/pkgconfigs.d - @rm -rf $(TOOLCHAIN_BUILD_DIR_PFX) $(STAGING_HOST_DIR_PFX) $(TOOLS_BUILD_DIR) + @rm -rf $(TOOLCHAIN_DIR_PFX) $(STAGING_HOST_DIR_PFX) $(TOOLS_BUILD_DIR) @rm -rf $(STAGING_TARGET_DIR_PFX) $(STAGING_PKG_DIR_PFX) @rm -f .menu .tmpconfig.h .rebuild* ${TOPDIR}/package/Depends.mk distclean: @$(TRACE) distclean @$(MAKE) -C $(CONFIG) clean $(MAKE_TRACE) - @rm -rf $(BUILD_DIR_PFX) $(FW_DIR_PFX) $(TARGET_DIR_PFX) $(DISTDIR) \ + @rm -rf $(BUILD_DIR_PFX) $(FW_DIR_PFX) $(TARGET_DIR_PFX) $(DL_DIR) \ ${TOPDIR}/package/pkglist.d ${TOPDIR}/package/pkgconfigs.d - @rm -rf $(TOOLCHAIN_BUILD_DIR_PFX) $(STAGING_HOST_DIR_PFX) $(TOOLS_BUILD_DIR) + @rm -rf $(TOOLCHAIN_DIR_PFX) $(STAGING_HOST_DIR_PFX) $(TOOLS_BUILD_DIR) @rm -rf $(STAGING_TARGET_DIR_PFX) $(STAGING_PKG_DIR_PFX) @rm -f .adkinit .config* .defconfig .tmpconfig.h all.config ${TOPDIR}/prereq.mk \ .menu ${TOPDIR}/package/Depends.mk .ADK_HAVE_DOT_CONFIG .rebuild.* @@ -449,9 +452,9 @@ _mconfig2: ${CONFIG}/conf modconfig .menu distclean: @$(MAKE) -C $(CONFIG) clean - @rm -rf $(BUILD_DIR_PFX) $(FW_DIR_PFX) $(TARGET_DIR_PFX) $(DISTDIR) \ + @rm -rf $(BUILD_DIR_PFX) $(FW_DIR_PFX) $(TARGET_DIR_PFX) $(DL_DIR) \ ${TOPDIR}/package/pkglist.d ${TOPDIR}/package/pkgconfigs.d - @rm -rf $(TOOLCHAIN_BUILD_DIR_PFX) $(STAGING_TARGET_DIR_PFX) $(TOOLS_BUILD_DIR) + @rm -rf $(TOOLCHAIN_DIR_PFX) $(STAGING_TARGET_DIR_PFX) $(TOOLS_BUILD_DIR) @rm -rf $(STAGING_HOST_DIR_PFX) $(STAGING_TARGET_DIR_PFX) $(STAGING_PKG_DIR_PFX) @rm -f .adkinit .config* .defconfig .tmpconfig.h all.config ${TOPDIR}/prereq.mk \ .menu .rebuild.* ${TOPDIR}/package/Depends.mk .ADK_HAVE_DOT_CONFIG @@ -479,7 +482,7 @@ bulktoolchain: if [ $$arch = "armhf" ];then arch=arm; else arch=$$arch;fi; \ tabi=$$(grep ^ADK_TARGET_ABI= .config|cut -d \" -f 2);\ if [ -z $$tabi ];then abi="";else abi=_$$tabi;fi; \ - tar -cvJf ${TOPDIR}/firmware/toolchain_$${arch}_$${libc}$${abi}.tar.xz host_* target_$${arch}_$${libc}$${abi}; \ + tar -cvJf ${TOPDIR}/firmware/toolchain_$${arch}_$${libc}$${abi}.tar.xz toolchain_${GNU_HOST_NAME} target_$${arch}_$${libc}$${abi}; \ $(GMAKE) cleantoolchain; \ rm .config; \ ) 2>&1 | tee $(TOPDIR)/firmware/toolchain_build.log; \ @@ -496,20 +499,21 @@ test-framework: fi; \ for libc in $$libc;do \ ( \ + mkdir -p $(TOPDIR)/firmware/; \ for arch in arm armhf microblaze microblazeel mips mipsel mips64 mips64el ppc ppc64 sh4 sh4eb sparc sparc64 i686 x86_64;do \ tarch=$$(echo $$arch|sed -e "s#el##" -e "s#eb##" -e "s#mips64.*#mips#" -e "s#i686#x86#" -e "s#sh4#sh#" -e "s#hf##"); \ echo === building qemu-$$arch for $$libc with $$tarch on $$(date); \ $(GMAKE) prereq && \ - $(GMAKE) ARCH=$$tarch SYSTEM=qemu-$$arch LIBC=$$libc FS=archive COLLECTION=test defconfig; \ + $(GMAKE) ARCH=$$tarch SYSTEM=qemu-$$arch LIBC=$$libc FS=initramfsarchive COLLECTION=test defconfig; \ $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit; exit 1;fi; \ tabi=$$(grep ^ADK_TARGET_ABI= .config|cut -d \" -f 2);\ if [ -z $$tabi ];then abi="";else abi=_$$tabi;fi; \ if [ $$arch = "armhf" ];then qarch=arm; else qarch=$$arch;fi; \ - if [ -d root ];then rm -rf root;fi; \ cp -a root_qemu_$${qarch}_$${libc}$${abi} root; \ mkdir -p $(TOPDIR)/firmware/qemu/$$arch; \ tar cJvf $(TOPDIR)/firmware/qemu/$$arch/root.tar.xz root; \ - cp $(TOPDIR)/firmware/qemu_$${qarch}_$${libc}$${abi}/qemu-$${qarch}-archive-kernel \ + if [ -d root ];then rm -rf root;fi; \ + cp $(TOPDIR)/firmware/qemu_$${qarch}_$${libc}$${abi}/qemu-$${qarch}-initramfsarchive-kernel \ $(TOPDIR)/firmware/qemu/$$arch/kernel; \ rm .config; \ done; \ diff --git a/mk/image.mk b/mk/image.mk index bbe9d47ac..ff95c5cb0 100644 --- a/mk/image.mk +++ b/mk/image.mk @@ -224,8 +224,8 @@ ifeq ($(ADK_KERNEL_COMP_BZIP2),y) echo "CONFIG_INITRAMFS_COMPRESSION_BZIP2=y" >> ${LINUX_DIR}/.config endif @-rm $(LINUX_DIR)/usr/initramfs_data.cpio* 2>/dev/null - $(MAKE) -C $(LINUX_DIR) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \ - ARCH=$(ARCH) CC="$(TARGET_CC)" -j${ADK_MAKE_JOBS} $(ADK_TARGET_KERNEL) $(MAKE_TRACE) + env $(KERNEL_MAKE_ENV) $(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKE_OPTS) \ + -j${ADK_MAKE_JOBS} $(ADK_TARGET_KERNEL) $(MAKE_TRACE) ${FW_DIR}/${ROOTFSISO}: ${TARGET_DIR} kernel-package mkdir -p ${TARGET_DIR}/boot/syslinux diff --git a/mk/vars.mk b/mk/vars.mk index dc030f0ca..699f3eda4 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -20,13 +20,14 @@ endif TOOLS_BUILD_DIR= $(BASE_DIR)/tools_build SCRIPT_DIR:= $(BASE_DIR)/scripts STAGING_HOST_DIR:= ${BASE_DIR}/host_${GNU_HOST_NAME} +TOOLCHAIN_DIR:= ${BASE_DIR}/toolchain_${GNU_HOST_NAME} # dirs for cleandir FW_DIR_PFX:= $(BASE_DIR)/firmware BUILD_DIR_PFX:= $(BASE_DIR)/build_* STAGING_PKG_DIR_PFX:= ${BASE_DIR}/pkg_* STAGING_TARGET_DIR_PFX:=${BASE_DIR}/target_* -TOOLCHAIN_BUILD_DIR_PFX=$(BASE_DIR)/toolchain_build_* +TOOLCHAIN_DIR_PFX= $(BASE_DIR)/toolchain_* STAGING_HOST_DIR_PFX:= ${BASE_DIR}/host_* TARGET_DIR_PFX:= $(BASE_DIR)/root_* @@ -36,7 +37,7 @@ FW_DIR:= $(BASE_DIR)/firmware/${ADK_TARGET_SYSTEM}_${CPU_ARCH}_${ADK_TARGET_LIB BUILD_DIR:= ${BASE_DIR}/build_${ADK_TARGET_SYSTEM}_${CPU_ARCH}_${ADK_TARGET_LIBC} STAGING_TARGET_DIR:= ${BASE_DIR}/target_${CPU_ARCH}_${ADK_TARGET_LIBC} STAGING_PKG_DIR:= ${BASE_DIR}/pkg_${ADK_TARGET_SYSTEM}_${CPU_ARCH}_${ADK_TARGET_LIBC} -STAGING_HOST2TARGET:= ../target_${CPU_ARCH}_${ADK_TARGET_LIBC} +STAGING_HOST2TARGET:= ../../target_${CPU_ARCH}_${ADK_TARGET_LIBC} TOOLCHAIN_BUILD_DIR= $(BASE_DIR)/toolchain_build_${CPU_ARCH}_${ADK_TARGET_LIBC} else TARGET_DIR:= $(BASE_DIR)/root_${ADK_TARGET_SYSTEM}_${CPU_ARCH}_${ADK_TARGET_LIBC}_${ADK_TARGET_ABI} @@ -44,7 +45,7 @@ FW_DIR:= $(BASE_DIR)/firmware/${ADK_TARGET_SYSTEM}_${CPU_ARCH}_${ADK_TARGET_LIB BUILD_DIR:= ${BASE_DIR}/build_${ADK_TARGET_SYSTEM}_${CPU_ARCH}_${ADK_TARGET_LIBC}_${ADK_TARGET_ABI} STAGING_TARGET_DIR:= ${BASE_DIR}/target_${CPU_ARCH}_${ADK_TARGET_LIBC}_${ADK_TARGET_ABI} STAGING_PKG_DIR:= ${BASE_DIR}/pkg_${ADK_TARGET_SYSTEM}_${CPU_ARCH}_${ADK_TARGET_LIBC}_${ADK_TARGET_ABI} -STAGING_HOST2TARGET:= ../target_${CPU_ARCH}_${ADK_TARGET_LIBC}_${ADK_TARGET_ABI} +STAGING_HOST2TARGET:= ../../target_${CPU_ARCH}_${ADK_TARGET_LIBC}_${ADK_TARGET_ABI} TOOLCHAIN_BUILD_DIR= $(BASE_DIR)/toolchain_build_${CPU_ARCH}_${ADK_TARGET_LIBC}_${ADK_TARGET_ABI} endif @@ -52,9 +53,9 @@ PACKAGE_DIR:= $(FW_DIR)/packages SCRIPT_TARGET_DIR:= ${STAGING_TARGET_DIR}/scripts # PATH variables -TARGET_PATH= ${SCRIPT_DIR}:${STAGING_TARGET_DIR}/scripts:${STAGING_HOST_DIR}/bin:${STAGING_HOST_DIR}/usr/bin:${_PATH} -HOST_PATH= ${SCRIPT_DIR}:${STAGING_HOST_DIR}/bin:${STAGING_HOST_DIR}/usr/bin:${_PATH} -AUTOTOOL_PATH= ${STAGING_HOST_DIR}/bin:${STAGING_HOST_DIR}/usr/bin:${STAGING_TARGET_DIR}/scripts:${_PATH} +TARGET_PATH= ${SCRIPT_DIR}:${STAGING_TARGET_DIR}/scripts:${TOOLCHAIN_DIR}/usr/bin:${STAGING_HOST_DIR}/usr/bin:${_PATH} +HOST_PATH= ${SCRIPT_DIR}:${TOOLCHAIN_DIR}/bin:${STAGING_HOST_DIR}/usr/bin:${_PATH} +AUTOTOOL_PATH= ${TOOLCHAIN_DIR}/usr/bin:${STAGING_HOST_DIR}/usr/bin:${STAGING_TARGET_DIR}/scripts:${_PATH} ifeq ($(ADK_DISABLE_HONOUR_CFLAGS),) GCC_CHECK:= GCC_HONOUR_COPTS=2 @@ -63,9 +64,11 @@ GCC_CHECK:= endif GNU_TARGET_NAME:= $(CPU_ARCH)-$(ADK_VENDOR)-linux-$(ADK_TARGET_SUFFIX) -TARGET_CROSS:= $(STAGING_HOST_DIR)/bin/$(GNU_TARGET_NAME)- +TARGET_CROSS:= $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)- TARGET_COMPILER_PREFIX?=${TARGET_CROSS} -CONFIGURE_TRIPLE:= --build=${GNU_HOST_NAME} --host=${GNU_TARGET_NAME} --target=${GNU_TARGET_NAME} +CONFIGURE_TRIPLE:= --build=${GNU_HOST_NAME} \ + --host=${GNU_TARGET_NAME} \ + --target=${GNU_TARGET_NAME} ifneq ($(strip ${ADK_USE_CCACHE}),) TARGET_COMPILER_PREFIX=ccache ${TARGET_CROSS} diff --git a/package/boost/Makefile b/package/boost/Makefile index a2a92df00..ab7b73097 100644 --- a/package/boost/Makefile +++ b/package/boost/Makefile @@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk PKG_NAME:= boost PKG_VERSION:= 1.55.0 -PKG_RELEASE:= 4 +PKG_RELEASE:= 5 PKG_MD5SUM:= 93780777cfbf999a600f62883bd54b17 PKG_DESCR:= boost C++ library PKG_SECTION:= libs @@ -105,7 +105,7 @@ BOOST_ARCH:= $(ARCH) endif # some variables for build -GPP_PATH:= ${STAGING_HOST_DIR}/bin/${GNU_TARGET_NAME}-g++ +GPP_PATH:= ${TOOLCHAIN_DIR}/usr/bin/${GNU_TARGET_NAME}-g++ GPP_VERSION:= "`${GPP_PATH} -v 2>&1 | tail -1 | awk '{print $$3}'`" BJAM_PATH:= "`find ${WRKBUILD} -type f -name "bjam$(EXEEXT)"`" PYTHON_PATH:= ${STAGING_HOST_DIR}/usr/bin/python diff --git a/package/cryptodev-linux/Makefile b/package/cryptodev-linux/Makefile index ecb827b09..64b27a8da 100644 --- a/package/cryptodev-linux/Makefile +++ b/package/cryptodev-linux/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= cryptodev-linux PKG_VERSION:= 1.6 -PKG_RELEASE:= 2 +PKG_RELEASE:= 3 PKG_MD5SUM:= eade38998313c25fd7934719cdf8a2ea PKG_DESCR:= cryptodev-linux kernel module PKG_SECTION:= crypto @@ -26,7 +26,7 @@ INSTALL_STYLE:= manual do-build: ${MAKE} -C "${WRKBUILD}"/tests check ${MAKE} -C "${WRKBUILD}" version.h - GCC_HONOUR_COPTS=0 LDFLAGS="" ${MAKE} ${KERNEL_MAKE_OPTS} \ + GCC_HONOUR_COPTS=0 LDFLAGS="" ${MAKE} -C ${LINUX_DIR} ${KERNEL_MAKE_OPTS} \ M="${WRKBUILD}" modules ${INSTALL_DIR} ${WRKINST}/usr/include/crypto ${INSTALL_DATA} ${WRKBUILD}/crypto/cryptodev.h \ diff --git a/package/curl/Makefile b/package/curl/Makefile index f2fb4d573..7a03fcd9e 100644 --- a/package/curl/Makefile +++ b/package/curl/Makefile @@ -24,7 +24,7 @@ PKGSS_LIBCURL:= zlib PKG_FLAVOURS_CURL:= WITH_IPV6 PKGFD_WITH_IPV6:= enable IPv6 support -PKG_CHOICES_LIBCURL:= WITHOUT_SSL WITH_OPENSSL WITH_GNUTLS +PKG_CHOICES_LIBCURL:= WITH_GNUTLS WITH_OPENSSL WITHOUT_SSL PKGCD_WITHOUT_SSL:= use no SSL PKGCD_WITH_OPENSSL:= use OpenSSL for crypto PKGCS_WITH_OPENSSL:= libopenssl ca-certificates libgmp diff --git a/package/dovecot/Makefile b/package/dovecot/Makefile index 369264c6d..624d47672 100644 --- a/package/dovecot/Makefile +++ b/package/dovecot/Makefile @@ -12,7 +12,7 @@ PKG_SECTION:= mail PKG_URL:= http://www.dovecot.org/ PKG_SITES:= http://www.dovecot.org/releases/2.0/ -PKG_CHOICES_DOVECOT:= WITH_OPENSSL WITH_GNUTLS +PKG_CHOICES_DOVECOT:= WITH_GNUTLS WITH_OPENSSL PKGCD_WITH_OPENSSL:= use OpenSSL for crypto PKGCS_WITH_OPENSSL:= libopenssl PKGCB_WITH_OPENSSL:= openssl diff --git a/package/glibc/Makefile b/package/glibc/Makefile index 17c49f3af..9fa4cf7bb 100644 --- a/package/glibc/Makefile +++ b/package/glibc/Makefile @@ -32,7 +32,7 @@ INSTALL_STYLE:= manual do-install: ${INSTALL_DIR} ${IDIR_GLIBC}/$(ADK_TARGET_LIBC_PATH) $(CP) $(STAGING_TARGET_DIR)/lib/ld*.so* $(IDIR_GLIBC)/$(ADK_TARGET_LIBC_PATH) - for file in libc libcrypt libdl libm libnsl libresolv libutil libnss_compat libnss_dns libnss_files; do \ + for file in libc libcrypt libdl libm libnsl libresolv libutil libnss_dns libnss_files; do \ $(CP) $(STAGING_TARGET_DIR)/lib/$$file.so* $(IDIR_GLIBC)/$(ADK_TARGET_LIBC_PATH); \ $(CP) $(STAGING_TARGET_DIR)/lib/$$file-$(PKG_VERSION).so $(IDIR_GLIBC)/$(ADK_TARGET_LIBC_PATH); \ done diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile index 0b8d3aa7a..99ca40234 100644 --- a/package/hostapd/Makefile +++ b/package/hostapd/Makefile @@ -16,7 +16,7 @@ PKG_SITES:= http://hostap.epitest.fi/releases/ PKG_MULTI:= 1 PKG_SUBPKGS:= HOSTAPD HOSTAPD_UTILS -PKG_CHOICES_HOSTAPD:= WITH_OPENSSL WITH_GNUTLS +PKG_CHOICES_HOSTAPD:= WITH_GNUTLS WITH_OPENSSL PKGCD_WITH_OPENSSL:= use OpenSSL for crypto PKGCS_WITH_OPENSSL:= libopenssl PKGCB_WITH_OPENSSL:= openssl diff --git a/package/kexec-tools/Makefile b/package/kexec-tools/Makefile index 157d9db03..3ebdc2f6b 100644 --- a/package/kexec-tools/Makefile +++ b/package/kexec-tools/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= kexec-tools PKG_VERSION:= 2.0.5 -PKG_RELEASE:= 1 +PKG_RELEASE:= 3 PKG_MD5SUM:= da5887e30eec16895e9d98ef072dc257 PKG_DESCR:= kexec tools PKG_SECTION:= misc diff --git a/package/kexec-tools/patches/patch-kexec_kexec_c b/package/kexec-tools/patches/patch-kexec_kexec_c index 68dc2bee9..8ce2ac370 100644 --- a/package/kexec-tools/patches/patch-kexec_kexec_c +++ b/package/kexec-tools/patches/patch-kexec_kexec_c @@ -1,6 +1,6 @@ ---- kexec-tools-2.0.2.orig/kexec/kexec.c 2010-07-29 06:19:59.000000000 +0200 -+++ kexec-tools-2.0.2/kexec/kexec.c 2011-09-05 18:50:27.679232756 +0200 -@@ -796,17 +796,14 @@ int k_unload (unsigned long kexec_flags) +--- kexec-tools-2.0.5.orig/kexec/kexec.c 2013-12-13 01:52:47.000000000 +0100 ++++ kexec-tools-2.0.5/kexec/kexec.c 2014-03-18 14:46:58.000000000 +0100 +@@ -807,17 +807,14 @@ static int k_unload (unsigned long kexec static int my_shutdown(void) { char *args[] = { diff --git a/package/kexec-tools/patches/patch-vmcore-dmesg_vmcore-dmesg_c b/package/kexec-tools/patches/patch-vmcore-dmesg_vmcore-dmesg_c new file mode 100644 index 000000000..5f6484789 --- /dev/null +++ b/package/kexec-tools/patches/patch-vmcore-dmesg_vmcore-dmesg_c @@ -0,0 +1,41 @@ +--- kexec-tools-2.0.5.orig/vmcore-dmesg/vmcore-dmesg.c 2014-01-15 00:51:14.000000000 +0100 ++++ kexec-tools-2.0.5/vmcore-dmesg/vmcore-dmesg.c 2014-03-18 15:00:45.000000000 +0100 +@@ -26,14 +26,14 @@ static Elf64_Ehdr ehdr; + static Elf64_Phdr *phdr; + + static char osrelease[4096]; +-static loff_t log_buf_vaddr; +-static loff_t log_end_vaddr; +-static loff_t log_buf_len_vaddr; +-static loff_t logged_chars_vaddr; ++static off_t log_buf_vaddr; ++static off_t log_end_vaddr; ++static off_t log_buf_len_vaddr; ++static off_t logged_chars_vaddr; + + /* record format logs */ +-static loff_t log_first_idx_vaddr; +-static loff_t log_next_idx_vaddr; ++static off_t log_first_idx_vaddr; ++static off_t log_next_idx_vaddr; + + /* struct log size */ + static uint64_t log_sz; +@@ -266,7 +266,7 @@ static void scan_vmcoreinfo(char *start, + const char *str; + const char *name; + size_t len; +- loff_t *vaddr; ++ off_t *vaddr; + } symbol[] = { + SYMBOL(log_buf), + SYMBOL(log_end), +@@ -344,7 +344,7 @@ static void scan_vmcoreinfo(char *start, + } + } + +-static void scan_notes(int fd, loff_t start, loff_t lsize) ++static void scan_notes(int fd, off_t start, off_t lsize) + { + char *buf, *last, *note, *next; + size_t size; diff --git a/package/libpng/Makefile b/package/libpng/Makefile index ea4c3a1f8..3f16ecf3f 100644 --- a/package/libpng/Makefile +++ b/package/libpng/Makefile @@ -4,10 +4,10 @@ include ${TOPDIR}/rules.mk PKG_NAME:= libpng -PKG_VERSION:= 1.6.8 +PKG_VERSION:= 1.6.10 PKG_RELEASE:= 1 -PKG_MD5SUM:= 29b7065906e2551508a0d7eacd19174e -PKG_DESCR:= A library for reading/writing PNG images +PKG_MD5SUM:= b0f0c38a02dc92f70f0053a40abc7e0b +PKG_DESCR:= library for reading/writing PNG images PKG_SECTION:= libs PKG_DEPENDS:= zlib PKG_BUILDDEP:= zlib @@ -23,8 +23,6 @@ include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,LIBPNG,libpng,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) -TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS)) - libpng-install: ${INSTALL_DIR} ${IDIR_LIBPNG}/usr/lib ${CP} ${WRKINST}/usr/lib/libpng*.so* ${IDIR_LIBPNG}/usr/lib diff --git a/package/mksh/Makefile b/package/mksh/Makefile index a38b97733..63d391e18 100644 --- a/package/mksh/Makefile +++ b/package/mksh/Makefile @@ -27,6 +27,7 @@ TARGET_LDFLAGS+= -static endif TARGET_CPPFLAGS+= -DMKSH_SMALL=1 +TARGET_LDFLAGS+= -static-libgcc CONFIG_STYLE:= manual BUILD_STYLE:= manual INSTALL_STYLE:= manual diff --git a/package/pcrepp/Makefile b/package/pcrepp/Makefile index e96d04e38..5d662f20f 100644 --- a/package/pcrepp/Makefile +++ b/package/pcrepp/Makefile @@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk PKG_NAME:= pcrepp PKG_VERSION:= 0.9.5 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_MD5SUM:= 1fe6ea8e23ece01fde2ce5fb4746acc2 PKG_DESCR:= Cpp Wrapper classes for PCRE PKG_SECTION:= libs diff --git a/package/pcrepp/patches/patch-configure b/package/pcrepp/patches/patch-configure index 0ee82218e..da7ab7b3e 100644 --- a/package/pcrepp/patches/patch-configure +++ b/package/pcrepp/patches/patch-configure @@ -1,5 +1,23 @@ --- pcre++-0.9.5.orig/configure 2004-08-25 01:38:03.000000000 +0200 -+++ pcre++-0.9.5/configure 2011-08-05 07:30:53.000000000 +0200 ++++ pcre++-0.9.5/configure 2014-03-17 20:07:03.000000000 +0100 +@@ -3844,7 +3844,7 @@ irix5* | irix6* | nonstopux*) + ;; + + # This must be Linux ELF. +-linux-gnu*) ++linux-*) + case $host_cpu in + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) + lt_cv_deplibs_check_method=pass_all ;; +@@ -6598,7 +6598,7 @@ linux-gnuoldld* | linux-gnuaout* | linux + ;; + + # This must be Linux ELF. +-linux-gnu*) ++linux-*) + version_type=linux + need_lib_prefix=no + need_version=no @@ -8612,7 +8612,7 @@ if test "x$with_pcre_include" = "x"; the CPPFLAGS="$CPPFLAGS -I/include" ;; diff --git a/package/ppp/Makefile b/package/ppp/Makefile index 08d545c79..2c3c17bc3 100644 --- a/package/ppp/Makefile +++ b/package/ppp/Makefile @@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk PKG_NAME:= ppp PKG_VERSION:= 2.4.5 -PKG_RELEASE:= 6 +PKG_RELEASE:= 7 PKG_MD5SUM:= 4621bc56167b6953ec4071043fe0ec57 PKG_DESCR:= Point-to-Point Protocol software PKG_SECTION:= ppp @@ -15,8 +15,6 @@ PKG_URL:= http://ppp.samba.org/ PKG_SITES:= ftp://ftp.samba.org/pub/ppp/ PKG_MULTI:= 1 -PKG_LIBC_DEPENDS:= uclibc glibc - PKG_SUBPKGS:= PPP PPP_MOD_PPPOA PPP_MOD_PPPOE PPP_MOD_RADIUS PKG_SUBPKGS+= PPP_MOD_CHAT PPP_MOD_PPPDUMP PPP_MOD_PPPSTATS PPP_MOD_PPPUMTS PKGSS_PPP_MOD_PPPOE:= kmod-pppoe diff --git a/package/ppp/patches/patch-chat_chat_c b/package/ppp/patches/patch-chat_chat_c new file mode 100644 index 000000000..2718fbd8d --- /dev/null +++ b/package/ppp/patches/patch-chat_chat_c @@ -0,0 +1,74 @@ +--- ppp-2.4.5.orig/chat/chat.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/chat/chat.c 2014-03-17 16:13:08.000000000 +0100 +@@ -209,39 +209,39 @@ int clear_report_next = 0; + + int say_next = 0, hup_next = 0; + +-void *dup_mem __P((void *b, size_t c)); +-void *copy_of __P((char *s)); +-char *grow __P((char *s, char **p, size_t len)); +-void usage __P((void)); +-void msgf __P((const char *fmt, ...)); +-void fatal __P((int code, const char *fmt, ...)); +-SIGTYPE sigalrm __P((int signo)); +-SIGTYPE sigint __P((int signo)); +-SIGTYPE sigterm __P((int signo)); +-SIGTYPE sighup __P((int signo)); +-void unalarm __P((void)); +-void init __P((void)); +-void set_tty_parameters __P((void)); +-void echo_stderr __P((int)); +-void break_sequence __P((void)); +-void terminate __P((int status)); +-void do_file __P((char *chat_file)); +-int get_string __P((register char *string)); +-int put_string __P((register char *s)); +-int write_char __P((int c)); +-int put_char __P((int c)); +-int get_char __P((void)); +-void chat_send __P((register char *s)); +-char *character __P((int c)); +-void chat_expect __P((register char *s)); +-char *clean __P((register char *s, int sending)); +-void break_sequence __P((void)); +-void terminate __P((int status)); +-void pack_array __P((char **array, int end)); +-char *expect_strtok __P((char *, char *)); +-int vfmtmsg __P((char *, int, const char *, va_list)); /* vsprintf++ */ ++void *dup_mem (void *b, size_t c); ++void *copy_of (char *s); ++char *grow (char *s, char **p, size_t len); ++void usage (void); ++void msgf (const char *fmt, ...); ++void fatal (int code, const char *fmt, ...); ++SIGTYPE sigalrm (int signo); ++SIGTYPE sigint (int signo); ++SIGTYPE sigterm (int signo); ++SIGTYPE sighup (int signo); ++void unalarm (void); ++void init (void); ++void set_tty_parameters (void); ++void echo_stderr (int); ++void break_sequence (void); ++void terminate (int status); ++void do_file (char *chat_file); ++int get_string (register char *string); ++int put_string (register char *s); ++int write_char (int c); ++int put_char (int c); ++int get_char (void); ++void chat_send (register char *s); ++char *character (int c); ++void chat_expect (register char *s); ++char *clean (register char *s, int sending); ++void break_sequence (void); ++void terminate (int status); ++void pack_array (char **array, int end); ++char *expect_strtok (char *, char *); ++int vfmtmsg (char *, int, const char *, va_list); /* vsprintf++ */ + +-int main __P((int, char *[])); ++int main (int, char *[]); + + void *dup_mem(b, c) + void *b; diff --git a/package/ppp/patches/patch-include_net_if_ppp_h b/package/ppp/patches/patch-include_net_if_ppp_h new file mode 100644 index 000000000..6741e64c8 --- /dev/null +++ b/package/ppp/patches/patch-include_net_if_ppp_h @@ -0,0 +1,12 @@ +--- ppp-2.4.5.orig/include/net/if_ppp.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/include/net/if_ppp.h 2014-03-17 16:13:06.000000000 +0100 +@@ -150,7 +150,7 @@ struct ifpppcstatsreq { + #endif + + #if (defined(_KERNEL) || defined(KERNEL)) && !defined(NeXT) +-void pppattach __P((void)); +-void pppintr __P((void)); ++void pppattach (void); ++void pppintr (void); + #endif + #endif /* _IF_PPP_H_ */ diff --git a/package/ppp/patches/patch-include_net_ppp-comp_h b/package/ppp/patches/patch-include_net_ppp-comp_h new file mode 100644 index 000000000..42e9562b5 --- /dev/null +++ b/package/ppp/patches/patch-include_net_ppp-comp_h @@ -0,0 +1,56 @@ +--- ppp-2.4.5.orig/include/net/ppp-comp.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/include/net/ppp-comp.h 2014-03-17 16:13:07.000000000 +0100 +@@ -59,36 +59,36 @@ struct compressor { + int compress_proto; /* CCP compression protocol number */ + + /* Allocate space for a compressor (transmit side) */ +- void *(*comp_alloc) __P((u_char *options, int opt_len)); ++ void *(*comp_alloc) (u_char *options, int opt_len); + /* Free space used by a compressor */ +- void (*comp_free) __P((void *state)); ++ void (*comp_free) (void *state); + /* Initialize a compressor */ +- int (*comp_init) __P((void *state, u_char *options, int opt_len, +- int unit, int hdrlen, int debug)); ++ int (*comp_init) (void *state, u_char *options, int opt_len, ++ int unit, int hdrlen, int debug); + /* Reset a compressor */ +- void (*comp_reset) __P((void *state)); ++ void (*comp_reset) (void *state); + /* Compress a packet */ +- int (*compress) __P((void *state, PACKETPTR *mret, +- PACKETPTR mp, int orig_len, int max_len)); ++ int (*compress) (void *state, PACKETPTR *mret, ++ PACKETPTR mp, int orig_len, int max_len); + /* Return compression statistics */ +- void (*comp_stat) __P((void *state, struct compstat *stats)); ++ void (*comp_stat) (void *state, struct compstat *stats); + + /* Allocate space for a decompressor (receive side) */ +- void *(*decomp_alloc) __P((u_char *options, int opt_len)); ++ void *(*decomp_alloc) (u_char *options, int opt_len); + /* Free space used by a decompressor */ +- void (*decomp_free) __P((void *state)); ++ void (*decomp_free) (void *state); + /* Initialize a decompressor */ +- int (*decomp_init) __P((void *state, u_char *options, int opt_len, +- int unit, int hdrlen, int mru, int debug)); ++ int (*decomp_init) (void *state, u_char *options, int opt_len, ++ int unit, int hdrlen, int mru, int debug); + /* Reset a decompressor */ +- void (*decomp_reset) __P((void *state)); ++ void (*decomp_reset) (void *state); + /* Decompress a packet. */ +- int (*decompress) __P((void *state, PACKETPTR mp, +- PACKETPTR *dmpp)); ++ int (*decompress) (void *state, PACKETPTR mp, ++ PACKETPTR *dmpp); + /* Update state for an incompressible packet received */ +- void (*incomp) __P((void *state, PACKETPTR mp)); ++ void (*incomp) (void *state, PACKETPTR mp); + /* Return decompression statistics */ +- void (*decomp_stat) __P((void *state, struct compstat *stats)); ++ void (*decomp_stat) (void *state, struct compstat *stats); + }; + #endif /* PACKETPTR */ + diff --git a/package/ppp/patches/patch-include_net_ppp_defs_h b/package/ppp/patches/patch-include_net_ppp_defs_h new file mode 100644 index 000000000..1945c78d7 --- /dev/null +++ b/package/ppp/patches/patch-include_net_ppp_defs_h @@ -0,0 +1,11 @@ +--- ppp-2.4.5.orig/include/net/ppp_defs.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/include/net/ppp_defs.h 2014-03-17 16:32:53.000000000 +0100 +@@ -38,6 +38,8 @@ + #ifndef _PPP_DEFS_H_ + #define _PPP_DEFS_H_ + ++#include <sys/time.h> ++ + /* + * The basic PPP frame. + */ diff --git a/package/ppp/patches/patch-include_net_slcompress_h b/package/ppp/patches/patch-include_net_slcompress_h new file mode 100644 index 000000000..69d57d909 --- /dev/null +++ b/package/ppp/patches/patch-include_net_slcompress_h @@ -0,0 +1,22 @@ +--- ppp-2.4.5.orig/include/net/slcompress.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/include/net/slcompress.h 2014-03-17 16:13:06.000000000 +0100 +@@ -137,12 +137,12 @@ struct slcompress { + /* flag values */ + #define SLF_TOSS 1 /* tossing rcvd frames because of input err */ + +-void sl_compress_init __P((struct slcompress *)); +-void sl_compress_setup __P((struct slcompress *, int)); +-u_int sl_compress_tcp __P((struct mbuf *, +- struct ip *, struct slcompress *, int)); +-int sl_uncompress_tcp __P((u_char **, int, u_int, struct slcompress *)); +-int sl_uncompress_tcp_core __P((u_char *, int, int, u_int, +- struct slcompress *, u_char **, u_int *)); ++void sl_compress_init (struct slcompress *); ++void sl_compress_setup (struct slcompress *, int); ++u_int sl_compress_tcp (struct mbuf *, ++ struct ip *, struct slcompress *, int); ++int sl_uncompress_tcp (u_char **, int, u_int, struct slcompress *); ++int sl_uncompress_tcp_core (u_char *, int, int, u_int, ++ struct slcompress *, u_char **, u_int *); + + #endif /* _SLCOMPRESS_H_ */ diff --git a/package/ppp/patches/patch-include_net_vjcompress_h b/package/ppp/patches/patch-include_net_vjcompress_h new file mode 100644 index 000000000..cc267c8ea --- /dev/null +++ b/package/ppp/patches/patch-include_net_vjcompress_h @@ -0,0 +1,26 @@ +--- ppp-2.4.5.orig/include/net/vjcompress.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/include/net/vjcompress.h 2014-03-17 16:13:06.000000000 +0100 +@@ -130,15 +130,15 @@ struct vjcompress { + /* flag values */ + #define VJF_TOSS 1 /* tossing rcvd frames because of input err */ + +-extern void vj_compress_init __P((struct vjcompress *comp, int max_state)); +-extern u_int vj_compress_tcp __P((struct ip *ip, u_int mlen, ++extern void vj_compress_init (struct vjcompress *comp, int max_state); ++extern u_int vj_compress_tcp (struct ip *ip, u_int mlen, + struct vjcompress *comp, int compress_cid_flag, +- u_char **vjhdrp)); +-extern void vj_uncompress_err __P((struct vjcompress *comp)); +-extern int vj_uncompress_uncomp __P((u_char *buf, int buflen, +- struct vjcompress *comp)); +-extern int vj_uncompress_tcp __P((u_char *buf, int buflen, int total_len, ++ u_char **vjhdrp); ++extern void vj_uncompress_err (struct vjcompress *comp); ++extern int vj_uncompress_uncomp (u_char *buf, int buflen, ++ struct vjcompress *comp); ++extern int vj_uncompress_tcp (u_char *buf, int buflen, int total_len, + struct vjcompress *comp, u_char **hdrp, +- u_int *hlenp)); ++ u_int *hlenp); + + #endif /* _VJCOMPRESS_H_ */ diff --git a/package/ppp/patches/patch-modules_bsd-comp_c b/package/ppp/patches/patch-modules_bsd-comp_c new file mode 100644 index 000000000..4bba327c7 --- /dev/null +++ b/package/ppp/patches/patch-modules_bsd-comp_c @@ -0,0 +1,35 @@ +--- ppp-2.4.5.orig/modules/bsd-comp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/modules/bsd-comp.c 2014-03-17 16:13:07.000000000 +0100 +@@ -148,19 +148,19 @@ struct bsd_db { + #define BSD_OVHD 2 /* BSD compress overhead/packet */ + #define BSD_INIT_BITS BSD_MIN_BITS + +-static void *bsd_comp_alloc __P((u_char *options, int opt_len)); +-static void *bsd_decomp_alloc __P((u_char *options, int opt_len)); +-static void bsd_free __P((void *state)); +-static int bsd_comp_init __P((void *state, u_char *options, int opt_len, +- int unit, int hdrlen, int debug)); +-static int bsd_decomp_init __P((void *state, u_char *options, int opt_len, +- int unit, int hdrlen, int mru, int debug)); +-static int bsd_compress __P((void *state, mblk_t **mret, +- mblk_t *mp, int slen, int maxolen)); +-static void bsd_incomp __P((void *state, mblk_t *dmsg)); +-static int bsd_decompress __P((void *state, mblk_t *cmp, mblk_t **dmpp)); +-static void bsd_reset __P((void *state)); +-static void bsd_comp_stats __P((void *state, struct compstat *stats)); ++static void *bsd_comp_alloc (u_char *options, int opt_len); ++static void *bsd_decomp_alloc (u_char *options, int opt_len); ++static void bsd_free (void *state); ++static int bsd_comp_init (void *state, u_char *options, int opt_len, ++ int unit, int hdrlen, int debug); ++static int bsd_decomp_init (void *state, u_char *options, int opt_len, ++ int unit, int hdrlen, int mru, int debug); ++static int bsd_compress (void *state, mblk_t **mret, ++ mblk_t *mp, int slen, int maxolen); ++static void bsd_incomp (void *state, mblk_t *dmsg); ++static int bsd_decompress (void *state, mblk_t *cmp, mblk_t **dmpp); ++static void bsd_reset (void *state); ++static void bsd_comp_stats (void *state, struct compstat *stats); + + /* + * Procedures exported to ppp_comp.c. diff --git a/package/ppp/patches/patch-modules_deflate_c b/package/ppp/patches/patch-modules_deflate_c new file mode 100644 index 000000000..53cd6fc0e --- /dev/null +++ b/package/ppp/patches/patch-modules_deflate_c @@ -0,0 +1,47 @@ +--- ppp-2.4.5.orig/modules/deflate.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/modules/deflate.c 2014-03-17 16:13:07.000000000 +0100 +@@ -80,25 +80,25 @@ struct deflate_state { + + #define DEFLATE_OVHD 2 /* Deflate overhead/packet */ + +-static void *z_alloc __P((void *, u_int items, u_int size)); +-static void *z_alloc_init __P((void *, u_int items, u_int size)); +-static void z_free __P((void *, void *ptr)); +-static void *z_comp_alloc __P((u_char *options, int opt_len)); +-static void *z_decomp_alloc __P((u_char *options, int opt_len)); +-static void z_comp_free __P((void *state)); +-static void z_decomp_free __P((void *state)); +-static int z_comp_init __P((void *state, u_char *options, int opt_len, +- int unit, int hdrlen, int debug)); +-static int z_decomp_init __P((void *state, u_char *options, int opt_len, +- int unit, int hdrlen, int mru, int debug)); +-static int z_compress __P((void *state, mblk_t **mret, +- mblk_t *mp, int slen, int maxolen)); +-static void z_incomp __P((void *state, mblk_t *dmsg)); +-static int z_decompress __P((void *state, mblk_t *cmp, +- mblk_t **dmpp)); +-static void z_comp_reset __P((void *state)); +-static void z_decomp_reset __P((void *state)); +-static void z_comp_stats __P((void *state, struct compstat *stats)); ++static void *z_alloc (void *, u_int items, u_int size); ++static void *z_alloc_init (void *, u_int items, u_int size); ++static void z_free (void *, void *ptr); ++static void *z_comp_alloc (u_char *options, int opt_len); ++static void *z_decomp_alloc (u_char *options, int opt_len); ++static void z_comp_free (void *state); ++static void z_decomp_free (void *state); ++static int z_comp_init (void *state, u_char *options, int opt_len, ++ int unit, int hdrlen, int debug); ++static int z_decomp_init (void *state, u_char *options, int opt_len, ++ int unit, int hdrlen, int mru, int debug); ++static int z_compress (void *state, mblk_t **mret, ++ mblk_t *mp, int slen, int maxolen); ++static void z_incomp (void *state, mblk_t *dmsg); ++static int z_decompress (void *state, mblk_t *cmp, ++ mblk_t **dmpp); ++static void z_comp_reset (void *state); ++static void z_decomp_reset (void *state); ++static void z_comp_stats (void *state, struct compstat *stats); + + /* + * Procedures exported to ppp_comp.c. diff --git a/package/ppp/patches/patch-modules_if_ppp_c b/package/ppp/patches/patch-modules_if_ppp_c new file mode 100644 index 000000000..67561642a --- /dev/null +++ b/package/ppp/patches/patch-modules_if_ppp_c @@ -0,0 +1,43 @@ +--- ppp-2.4.5.orig/modules/if_ppp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/modules/if_ppp.c 2014-03-17 16:13:07.000000000 +0100 +@@ -80,10 +80,10 @@ + + #define ifr_mtu ifr_metric + +-static int if_ppp_open __P((queue_t *, int, int, int)); +-static int if_ppp_close __P((queue_t *, int)); +-static int if_ppp_wput __P((queue_t *, mblk_t *)); +-static int if_ppp_rput __P((queue_t *, mblk_t *)); ++static int if_ppp_open (queue_t *, int, int, int); ++static int if_ppp_close (queue_t *, int); ++static int if_ppp_wput (queue_t *, mblk_t *); ++static int if_ppp_rput (queue_t *, mblk_t *); + + #define PPP_IF_ID 0x8021 + static struct module_info minfo = { +@@ -117,11 +117,11 @@ static int ppp_nalloc; /* Number of ele + static struct ifnet **ifs; /* Array of pointers to interface structs */ + static if_ppp_t **states; /* Array of pointers to state structs */ + +-static int if_ppp_output __P((struct ifnet *, struct mbuf *, +- struct sockaddr *)); +-static int if_ppp_ioctl __P((struct ifnet *, u_int, caddr_t)); +-static struct mbuf *make_mbufs __P((mblk_t *, int)); +-static mblk_t *make_message __P((struct mbuf *, int)); ++static int if_ppp_output (struct ifnet *, struct mbuf *, ++ struct sockaddr *); ++static int if_ppp_ioctl (struct ifnet *, u_int, caddr_t); ++static struct mbuf *make_mbufs (mblk_t *, int); ++static mblk_t *make_message (struct mbuf *, int); + + #ifdef SNIT_SUPPORT + /* Fake ether header for SNIT */ +@@ -129,7 +129,7 @@ static struct ether_header snit_ehdr = { + #endif + + #ifndef __osf__ +-static void ppp_if_detach __P((struct ifnet *)); ++static void ppp_if_detach (struct ifnet *); + + /* + * Detach all the interfaces before unloading. diff --git a/package/ppp/patches/patch-modules_ppp_ahdlc_c b/package/ppp/patches/patch-modules_ppp_ahdlc_c new file mode 100644 index 000000000..93ad5795a --- /dev/null +++ b/package/ppp/patches/patch-modules_ppp_ahdlc_c @@ -0,0 +1,19 @@ +--- ppp-2.4.5.orig/modules/ppp_ahdlc.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/modules/ppp_ahdlc.c 2014-03-17 16:13:07.000000000 +0100 +@@ -107,11 +107,11 @@ typedef unsigned int uintpoin + + MOD_OPEN_DECL(ahdlc_open); + MOD_CLOSE_DECL(ahdlc_close); +-static int ahdlc_wput __P((queue_t *, mblk_t *)); +-static int ahdlc_rput __P((queue_t *, mblk_t *)); +-static void ahdlc_encode __P((queue_t *, mblk_t *)); +-static void ahdlc_decode __P((queue_t *, mblk_t *)); +-static int msg_byte __P((mblk_t *, unsigned int)); ++static int ahdlc_wput (queue_t *, mblk_t *); ++static int ahdlc_rput (queue_t *, mblk_t *); ++static void ahdlc_encode (queue_t *, mblk_t *); ++static void ahdlc_decode (queue_t *, mblk_t *); ++static int msg_byte (mblk_t *, unsigned int); + + #if defined(SOL2) + /* diff --git a/package/ppp/patches/patch-modules_ppp_c b/package/ppp/patches/patch-modules_ppp_c new file mode 100644 index 000000000..f8c569cad --- /dev/null +++ b/package/ppp/patches/patch-modules_ppp_c @@ -0,0 +1,76 @@ +--- ppp-2.4.5.orig/modules/ppp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/modules/ppp.c 2014-03-17 16:13:07.000000000 +0100 +@@ -254,43 +254,43 @@ static upperstr_t *minor_devs = NULL; + static upperstr_t *ppas = NULL; + + #ifdef SVR4 +-static int pppopen __P((queue_t *, dev_t *, int, int, cred_t *)); +-static int pppclose __P((queue_t *, int, cred_t *)); ++static int pppopen (queue_t *, dev_t *, int, int, cred_t *); ++static int pppclose (queue_t *, int, cred_t *); + #else +-static int pppopen __P((queue_t *, int, int, int)); +-static int pppclose __P((queue_t *, int)); ++static int pppopen (queue_t *, int, int, int); ++static int pppclose (queue_t *, int); + #endif /* SVR4 */ +-static int pppurput __P((queue_t *, mblk_t *)); +-static int pppuwput __P((queue_t *, mblk_t *)); +-static int pppursrv __P((queue_t *)); +-static int pppuwsrv __P((queue_t *)); +-static int ppplrput __P((queue_t *, mblk_t *)); +-static int ppplwput __P((queue_t *, mblk_t *)); +-static int ppplrsrv __P((queue_t *)); +-static int ppplwsrv __P((queue_t *)); ++static int pppurput (queue_t *, mblk_t *); ++static int pppuwput (queue_t *, mblk_t *); ++static int pppursrv (queue_t *); ++static int pppuwsrv (queue_t *); ++static int ppplrput (queue_t *, mblk_t *); ++static int ppplwput (queue_t *, mblk_t *); ++static int ppplrsrv (queue_t *); ++static int ppplwsrv (queue_t *); + #ifndef NO_DLPI +-static void dlpi_request __P((queue_t *, mblk_t *, upperstr_t *)); +-static void dlpi_error __P((queue_t *, upperstr_t *, int, int, int)); +-static void dlpi_ok __P((queue_t *, int)); ++static void dlpi_request (queue_t *, mblk_t *, upperstr_t *); ++static void dlpi_error (queue_t *, upperstr_t *, int, int, int); ++static void dlpi_ok (queue_t *, int); + #endif +-static int send_data __P((mblk_t *, upperstr_t *)); +-static void new_ppa __P((queue_t *, mblk_t *)); +-static void attach_ppa __P((queue_t *, mblk_t *)); +-static void detach_ppa __P((queue_t *, mblk_t *)); +-static void detach_lower __P((queue_t *, mblk_t *)); +-static void debug_dump __P((queue_t *, mblk_t *)); +-static upperstr_t *find_dest __P((upperstr_t *, int)); ++static int send_data (mblk_t *, upperstr_t *); ++static void new_ppa (queue_t *, mblk_t *); ++static void attach_ppa (queue_t *, mblk_t *); ++static void detach_ppa (queue_t *, mblk_t *); ++static void detach_lower (queue_t *, mblk_t *); ++static void debug_dump (queue_t *, mblk_t *); ++static upperstr_t *find_dest (upperstr_t *, int); + #if defined(SOL2) +-static upperstr_t *find_promisc __P((upperstr_t *, int)); +-static mblk_t *prepend_ether __P((upperstr_t *, mblk_t *, int)); +-static mblk_t *prepend_udind __P((upperstr_t *, mblk_t *, int)); +-static void promisc_sendup __P((upperstr_t *, mblk_t *, int, int)); ++static upperstr_t *find_promisc (upperstr_t *, int); ++static mblk_t *prepend_ether (upperstr_t *, mblk_t *, int); ++static mblk_t *prepend_udind (upperstr_t *, mblk_t *, int); ++static void promisc_sendup (upperstr_t *, mblk_t *, int, int); + #endif /* defined(SOL2) */ +-static int putctl2 __P((queue_t *, int, int, int)); +-static int putctl4 __P((queue_t *, int, int, int)); +-static int pass_packet __P((upperstr_t *ppa, mblk_t *mp, int outbound)); ++static int putctl2 (queue_t *, int, int, int); ++static int putctl4 (queue_t *, int, int, int); ++static int pass_packet (upperstr_t *ppa, mblk_t *mp, int outbound); + #ifdef FILTER_PACKETS +-static int ip_hard_filter __P((upperstr_t *ppa, mblk_t *mp, int outbound)); ++static int ip_hard_filter (upperstr_t *ppa, mblk_t *mp, int outbound); + #endif /* FILTER_PACKETS */ + + #define PPP_ID 0xb1a6 diff --git a/package/ppp/patches/patch-modules_ppp_comp_c b/package/ppp/patches/patch-modules_ppp_comp_c new file mode 100644 index 000000000..944d0d80f --- /dev/null +++ b/package/ppp/patches/patch-modules_ppp_comp_c @@ -0,0 +1,30 @@ +--- ppp-2.4.5.orig/modules/ppp_comp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/modules/ppp_comp.c 2014-03-17 16:13:07.000000000 +0100 +@@ -74,12 +74,12 @@ + + MOD_OPEN_DECL(ppp_comp_open); + MOD_CLOSE_DECL(ppp_comp_close); +-static int ppp_comp_rput __P((queue_t *, mblk_t *)); +-static int ppp_comp_rsrv __P((queue_t *)); +-static int ppp_comp_wput __P((queue_t *, mblk_t *)); +-static int ppp_comp_wsrv __P((queue_t *)); +-static void ppp_comp_ccp __P((queue_t *, mblk_t *, int)); +-static int msg_byte __P((mblk_t *, unsigned int)); ++static int ppp_comp_rput (queue_t *, mblk_t *); ++static int ppp_comp_rsrv (queue_t *); ++static int ppp_comp_wput (queue_t *, mblk_t *); ++static int ppp_comp_wsrv (queue_t *); ++static void ppp_comp_ccp (queue_t *, mblk_t *, int); ++static int msg_byte (mblk_t *, unsigned int); + + /* Extract byte i of message mp. */ + #define MSG_BYTE(mp, i) ((i) < (mp)->b_wptr - (mp)->b_rptr? (mp)->b_rptr[i]: \ +@@ -118,7 +118,7 @@ int ppp_comp_count; /* number of module + + #ifdef __osf__ + +-static void ppp_comp_alloc __P((comp_state_t *)); ++static void ppp_comp_alloc (comp_state_t *); + typedef struct memreq { + unsigned char comp_opts[20]; + int cmd; diff --git a/package/ppp/patches/patch-modules_ppp_mod_h b/package/ppp/patches/patch-modules_ppp_mod_h new file mode 100644 index 000000000..29f6624e2 --- /dev/null +++ b/package/ppp/patches/patch-modules_ppp_mod_h @@ -0,0 +1,28 @@ +--- ppp-2.4.5.orig/modules/ppp_mod.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/modules/ppp_mod.h 2014-03-17 16:13:07.000000000 +0100 +@@ -143,10 +143,10 @@ typedef int minor_t; + */ + #ifdef SVR4 + #define MOD_OPEN_DECL(name) \ +-static int name __P((queue_t *, dev_t *, int, int, cred_t *)) ++static int name (queue_t *, dev_t *, int, int, cred_t *) + + #define MOD_CLOSE_DECL(name) \ +-static int name __P((queue_t *, int, cred_t *)) ++static int name (queue_t *, int, cred_t *) + + #define MOD_OPEN(name) \ + static int name(q, devp, flag, sflag, credp) \ +@@ -168,10 +168,10 @@ static int name(q, flag, credp) \ + + #else /* not SVR4 */ + #define MOD_OPEN_DECL(name) \ +-static int name __P((queue_t *, int, int, int)) ++static int name (queue_t *, int, int, int) + + #define MOD_CLOSE_DECL(name) \ +-static int name __P((queue_t *, int)) ++static int name (queue_t *, int) + + #define MOD_OPEN(name) \ + static int name(q, dev, flag, sflag) \ diff --git a/package/ppp/patches/patch-pppd_auth_c b/package/ppp/patches/patch-pppd_auth_c new file mode 100644 index 000000000..e15fbc458 --- /dev/null +++ b/package/ppp/patches/patch-pppd_auth_c @@ -0,0 +1,116 @@ +--- ppp-2.4.5.orig/pppd/auth.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/auth.c 2014-03-17 16:13:14.000000000 +0100 +@@ -161,38 +161,38 @@ static int passwd_from_file; + static bool default_auth; + + /* Hook to enable a plugin to control the idle time limit */ +-int (*idle_time_hook) __P((struct ppp_idle *)) = NULL; ++int (*idle_time_hook) (struct ppp_idle *) = NULL; + + /* Hook for a plugin to say whether we can possibly authenticate any peer */ +-int (*pap_check_hook) __P((void)) = NULL; ++int (*pap_check_hook) (void) = NULL; + + /* Hook for a plugin to check the PAP user and password */ +-int (*pap_auth_hook) __P((char *user, char *passwd, char **msgp, ++int (*pap_auth_hook) (char *user, char *passwd, char **msgp, + struct wordlist **paddrs, +- struct wordlist **popts)) = NULL; ++ struct wordlist **popts) = NULL; + + /* Hook for a plugin to know about the PAP user logout */ +-void (*pap_logout_hook) __P((void)) = NULL; ++void (*pap_logout_hook) (void) = NULL; + + /* Hook for a plugin to get the PAP password for authenticating us */ +-int (*pap_passwd_hook) __P((char *user, char *passwd)) = NULL; ++int (*pap_passwd_hook) (char *user, char *passwd) = NULL; + + /* Hook for a plugin to say if we can possibly authenticate a peer using CHAP */ +-int (*chap_check_hook) __P((void)) = NULL; ++int (*chap_check_hook) (void) = NULL; + + /* Hook for a plugin to get the CHAP password for authenticating us */ +-int (*chap_passwd_hook) __P((char *user, char *passwd)) = NULL; ++int (*chap_passwd_hook) (char *user, char *passwd) = NULL; + + /* Hook for a plugin to say whether it is OK if the peer + refuses to authenticate. */ +-int (*null_auth_hook) __P((struct wordlist **paddrs, +- struct wordlist **popts)) = NULL; ++int (*null_auth_hook) (struct wordlist **paddrs, ++ struct wordlist **popts) = NULL; + +-int (*allowed_address_hook) __P((u_int32_t addr)) = NULL; ++int (*allowed_address_hook) (u_int32_t addr) = NULL; + + #ifdef HAVE_MULTILINK + /* Hook for plugin to hear when an interface joins a multilink bundle */ +-void (*multilink_join_hook) __P((void)) = NULL; ++void (*multilink_join_hook) (void) = NULL; + #endif + + /* A notifier for when the peer has authenticated itself, +@@ -241,37 +241,37 @@ char remote_name[MAXNAMELEN]; /* Peer's + + static char *uafname; /* name of most recent +ua file */ + +-extern char *crypt __P((const char *, const char *)); ++extern char *crypt (const char *, const char *); + + /* Prototypes for procedures local to this file. */ + +-static void network_phase __P((int)); +-static void check_idle __P((void *)); +-static void connect_time_expired __P((void *)); +-static int null_login __P((int)); +-static int get_pap_passwd __P((char *)); +-static int have_pap_secret __P((int *)); +-static int have_chap_secret __P((char *, char *, int, int *)); +-static int have_srp_secret __P((char *client, char *server, int need_ip, +- int *lacks_ipp)); +-static int ip_addr_check __P((u_int32_t, struct permitted_ip *)); +-static int scan_authfile __P((FILE *, char *, char *, char *, ++static void network_phase (int); ++static void check_idle (void *); ++static void connect_time_expired (void *); ++static int null_login (int); ++static int get_pap_passwd (char *); ++static int have_pap_secret (int *); ++static int have_chap_secret (char *, char *, int, int *); ++static int have_srp_secret (char *client, char *server, int need_ip, ++ int *lacks_ipp); ++static int ip_addr_check (u_int32_t, struct permitted_ip *); ++static int scan_authfile (FILE *, char *, char *, char *, + struct wordlist **, struct wordlist **, +- char *, int)); +-static void free_wordlist __P((struct wordlist *)); +-static void auth_script __P((char *)); +-static void auth_script_done __P((void *)); +-static void set_allowed_addrs __P((int, struct wordlist *, struct wordlist *)); +-static int some_ip_ok __P((struct wordlist *)); +-static int setupapfile __P((char **)); +-static int privgroup __P((char **)); +-static int set_noauth_addr __P((char **)); +-static int set_permitted_number __P((char **)); +-static void check_access __P((FILE *, char *)); +-static int wordlist_count __P((struct wordlist *)); ++ char *, int); ++static void free_wordlist (struct wordlist *); ++static void auth_script (char *); ++static void auth_script_done (void *); ++static void set_allowed_addrs (int, struct wordlist *, struct wordlist *); ++static int some_ip_ok (struct wordlist *); ++static int setupapfile (char **); ++static int privgroup (char **); ++static int set_noauth_addr (char **); ++static int set_permitted_number (char **); ++static void check_access (FILE *, char *); ++static int wordlist_count (struct wordlist *); + + #ifdef MAXOCTETS +-static void check_maxoctets __P((void *)); ++static void check_maxoctets (void *); + #endif + + /* diff --git a/package/ppp/patches/patch-pppd_cbcp_c b/package/ppp/patches/patch-pppd_cbcp_c new file mode 100644 index 000000000..dfbfb44ab --- /dev/null +++ b/package/ppp/patches/patch-pppd_cbcp_c @@ -0,0 +1,59 @@ +--- ppp-2.4.5.orig/pppd/cbcp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/cbcp.c 2014-03-17 16:13:14.000000000 +0100 +@@ -50,7 +50,7 @@ static const char rcsid[] = RCSID; + /* + * Options. + */ +-static int setcbcp __P((char **)); ++static int setcbcp (char **); + + static option_t cbcp_option_list[] = { + { "callback", o_special, (void *)setcbcp, +@@ -61,14 +61,14 @@ static option_t cbcp_option_list[] = { + /* + * Protocol entry points. + */ +-static void cbcp_init __P((int unit)); +-static void cbcp_open __P((int unit)); +-static void cbcp_lowerup __P((int unit)); +-static void cbcp_input __P((int unit, u_char *pkt, int len)); +-static void cbcp_protrej __P((int unit)); +-static int cbcp_printpkt __P((u_char *pkt, int len, ++static void cbcp_init (int unit); ++static void cbcp_open (int unit); ++static void cbcp_lowerup (int unit); ++static void cbcp_input (int unit, u_char *pkt, int len); ++static void cbcp_protrej (int unit); ++static int cbcp_printpkt (u_char *pkt, int len, + void (*printer) __P((void *, char *, ...)), +- void *arg)); ++ void *arg); + + struct protent cbcp_protent = { + PPP_CBCP, +@@ -94,11 +94,11 @@ cbcp_state cbcp[NUM_PPP]; + + /* internal prototypes */ + +-static void cbcp_recvreq __P((cbcp_state *us, u_char *pckt, int len)); +-static void cbcp_resp __P((cbcp_state *us)); +-static void cbcp_up __P((cbcp_state *us)); +-static void cbcp_recvack __P((cbcp_state *us, u_char *pckt, int len)); +-static void cbcp_send __P((cbcp_state *us, int code, u_char *buf, int len)); ++static void cbcp_recvreq (cbcp_state *us, u_char *pckt, int len); ++static void cbcp_resp (cbcp_state *us); ++static void cbcp_up (cbcp_state *us); ++static void cbcp_recvack (cbcp_state *us, u_char *pckt, int len); ++static void cbcp_send (cbcp_state *us, int code, u_char *buf, int len); + + /* option processing */ + static int +@@ -227,7 +227,7 @@ static int + cbcp_printpkt(p, plen, printer, arg) + u_char *p; + int plen; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + int code, opt, id, len, olen, delay; diff --git a/package/ppp/patches/patch-pppd_ccp_c b/package/ppp/patches/patch-pppd_ccp_c new file mode 100644 index 000000000..41db56039 --- /dev/null +++ b/package/ppp/patches/patch-pppd_ccp_c @@ -0,0 +1,81 @@ +--- ppp-2.4.5.orig/pppd/ccp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/ccp.c 2014-03-17 16:13:13.000000000 +0100 +@@ -57,8 +57,8 @@ static const char rcsid[] = RCSID; + /* + * Command-line options. + */ +-static int setbsdcomp __P((char **)); +-static int setdeflate __P((char **)); ++static int setbsdcomp (char **); ++static int setdeflate (char **); + static char bsd_value[8]; + static char deflate_value[8]; + +@@ -164,17 +164,17 @@ static option_t ccp_option_list[] = { + /* + * Protocol entry points from main code. + */ +-static void ccp_init __P((int unit)); +-static void ccp_open __P((int unit)); +-static void ccp_close __P((int unit, char *)); +-static void ccp_lowerup __P((int unit)); +-static void ccp_lowerdown __P((int)); +-static void ccp_input __P((int unit, u_char *pkt, int len)); +-static void ccp_protrej __P((int unit)); +-static int ccp_printpkt __P((u_char *pkt, int len, ++static void ccp_init (int unit); ++static void ccp_open (int unit); ++static void ccp_close (int unit, char *); ++static void ccp_lowerup (int unit); ++static void ccp_lowerdown (int); ++static void ccp_input (int unit, u_char *pkt, int len); ++static void ccp_protrej (int unit); ++static int ccp_printpkt (u_char *pkt, int len, + void (*printer) __P((void *, char *, ...)), +- void *arg)); +-static void ccp_datainput __P((int unit, u_char *pkt, int len)); ++ void *arg); ++static void ccp_datainput (int unit, u_char *pkt, int len); + + struct protent ccp_protent = { + PPP_CCP, +@@ -205,18 +205,18 @@ ccp_options ccp_hisoptions[NUM_PPP]; /* + /* + * Callbacks for fsm code. + */ +-static void ccp_resetci __P((fsm *)); +-static int ccp_cilen __P((fsm *)); +-static void ccp_addci __P((fsm *, u_char *, int *)); +-static int ccp_ackci __P((fsm *, u_char *, int)); +-static int ccp_nakci __P((fsm *, u_char *, int, int)); +-static int ccp_rejci __P((fsm *, u_char *, int)); +-static int ccp_reqci __P((fsm *, u_char *, int *, int)); +-static void ccp_up __P((fsm *)); +-static void ccp_down __P((fsm *)); +-static int ccp_extcode __P((fsm *, int, int, u_char *, int)); +-static void ccp_rack_timeout __P((void *)); +-static char *method_name __P((ccp_options *, ccp_options *)); ++static void ccp_resetci (fsm *); ++static int ccp_cilen (fsm *); ++static void ccp_addci (fsm *, u_char *, int *); ++static int ccp_ackci (fsm *, u_char *, int); ++static int ccp_nakci (fsm *, u_char *, int, int); ++static int ccp_rejci (fsm *, u_char *, int); ++static int ccp_reqci (fsm *, u_char *, int *, int); ++static void ccp_up (fsm *); ++static void ccp_down (fsm *); ++static int ccp_extcode (fsm *, int, int, u_char *, int); ++static void ccp_rack_timeout (void *); ++static char *method_name (ccp_options *, ccp_options *); + + static fsm_callbacks ccp_callbacks = { + ccp_resetci, +@@ -1489,7 +1489,7 @@ static int + ccp_printpkt(p, plen, printer, arg) + u_char *p; + int plen; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + u_char *p0, *optend; diff --git a/package/ppp/patches/patch-pppd_chap-new_c b/package/ppp/patches/patch-pppd_chap-new_c new file mode 100644 index 000000000..fec9acbed --- /dev/null +++ b/package/ppp/patches/patch-pppd_chap-new_c @@ -0,0 +1,20 @@ +--- ppp-2.4.5.orig/pppd/chap-new.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/chap-new.c 2014-03-17 16:13:14.000000000 +0100 +@@ -129,7 +129,7 @@ static void chap_handle_status(struct ch + static void chap_protrej(int unit); + static void chap_input(int unit, unsigned char *pkt, int pktlen); + static int chap_print_pkt(unsigned char *p, int plen, +- void (*printer) __P((void *, char *, ...)), void *arg); ++ void (*printer) (void *, char *, ...), void *arg); + + /* List of digest types that we know about */ + static struct chap_digest_type *chap_digests; +@@ -584,7 +584,7 @@ static char *chap_code_names[] = { + + static int + chap_print_pkt(unsigned char *p, int plen, +- void (*printer) __P((void *, char *, ...)), void *arg) ++ void (*printer) (void *, char *, ...), void *arg) + { + int code, id, len; + int clen, nlen; diff --git a/package/ppp/patches/patch-pppd_chap_ms_c b/package/ppp/patches/patch-pppd_chap_ms_c new file mode 100644 index 000000000..f04abf740 --- /dev/null +++ b/package/ppp/patches/patch-pppd_chap_ms_c @@ -0,0 +1,36 @@ +--- ppp-2.4.5.orig/pppd/chap_ms.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/chap_ms.c 2014-03-17 16:13:15.000000000 +0100 +@@ -97,22 +97,22 @@ + static const char rcsid[] = RCSID; + + +-static void ascii2unicode __P((char[], int, u_char[])); +-static void NTPasswordHash __P((u_char *, int, u_char[MD4_SIGNATURE_SIZE])); +-static void ChallengeResponse __P((u_char *, u_char *, u_char[24])); +-static void ChapMS_NT __P((u_char *, char *, int, u_char[24])); +-static void ChapMS2_NT __P((u_char *, u_char[16], char *, char *, int, +- u_char[24])); ++static void ascii2unicode (char[], int, u_char[]); ++static void NTPasswordHash (u_char *, int, u_char[MD4_SIGNATURE_SIZE]); ++static void ChallengeResponse (u_char *, u_char *, u_char[24]); ++static void ChapMS_NT (u_char *, char *, int, u_char[24]); ++static void ChapMS2_NT (u_char *, u_char[16], char *, char *, int, ++ u_char[24]); + static void GenerateAuthenticatorResponsePlain +- __P((char*, int, u_char[24], u_char[16], u_char *, +- char *, u_char[41])); ++ (char*, int, u_char[24], u_char[16], u_char *, ++ char *, u_char[41]); + #ifdef MSLANMAN +-static void ChapMS_LANMan __P((u_char *, char *, int, u_char *)); ++static void ChapMS_LANMan (u_char *, char *, int, u_char *); + #endif + + #ifdef MPPE +-static void Set_Start_Key __P((u_char *, char *, int)); +-static void SetMasterKeys __P((char *, int, u_char[24], int)); ++static void Set_Start_Key (u_char *, char *, int); ++static void SetMasterKeys (char *, int, u_char[24], int); + #endif + + #ifdef MSLANMAN diff --git a/package/ppp/patches/patch-pppd_chap_ms_h b/package/ppp/patches/patch-pppd_chap_ms_h new file mode 100644 index 000000000..8156d3d95 --- /dev/null +++ b/package/ppp/patches/patch-pppd_chap_ms_h @@ -0,0 +1,24 @@ +--- ppp-2.4.5.orig/pppd/chap_ms.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/chap_ms.h 2014-03-17 16:13:14.000000000 +0100 +@@ -87,16 +87,16 @@ extern void set_mppe_enc_types(int, int) + #define MS_CHAP2_AUTHENTICATEE 0 + #define MS_CHAP2_AUTHENTICATOR 1 + +-void ChapMS __P((u_char *, char *, int, u_char *)); +-void ChapMS2 __P((u_char *, u_char *, char *, char *, int, +- u_char *, u_char[MS_AUTH_RESPONSE_LENGTH+1], int)); ++void ChapMS (u_char *, char *, int, u_char *); ++void ChapMS2 (u_char *, u_char *, char *, char *, int, ++ u_char *, u_char[MS_AUTH_RESPONSE_LENGTH+1], int); + #ifdef MPPE +-void mppe_set_keys __P((u_char *, u_char[MD4_SIGNATURE_SIZE])); ++void mppe_set_keys (u_char *, u_char[MD4_SIGNATURE_SIZE]); + void mppe_set_keys2(u_char PasswordHashHash[MD4_SIGNATURE_SIZE], + u_char NTResponse[24], int IsServer); + #endif + +-void ChallengeHash __P((u_char[16], u_char *, char *, u_char[8])); ++void ChallengeHash (u_char[16], u_char *, char *, u_char[8]); + + void GenerateAuthenticatorResponse(u_char PasswordHashHash[MD4_SIGNATURE_SIZE], + u_char NTResponse[24], u_char PeerChallenge[16], diff --git a/package/ppp/patches/patch-pppd_demand_c b/package/ppp/patches/patch-pppd_demand_c new file mode 100644 index 000000000..42cf70670 --- /dev/null +++ b/package/ppp/patches/patch-pppd_demand_c @@ -0,0 +1,11 @@ +--- ppp-2.4.5.orig/pppd/demand.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/demand.c 2014-03-17 16:13:13.000000000 +0100 +@@ -70,7 +70,7 @@ struct packet { + struct packet *pend_q; + struct packet *pend_qtail; + +-static int active_packet __P((unsigned char *, int)); ++static int active_packet (unsigned char *, int); + + /* + * demand_conf - configure the interface for doing dial-on-demand. diff --git a/package/ppp/patches/patch-pppd_eap_c b/package/ppp/patches/patch-pppd_eap_c new file mode 100644 index 000000000..2a73f162f --- /dev/null +++ b/package/ppp/patches/patch-pppd_eap_c @@ -0,0 +1,41 @@ +--- ppp-2.4.5.orig/pppd/eap.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/eap.c 2014-03-17 16:13:15.000000000 +0100 +@@ -111,13 +111,13 @@ static option_t eap_option_list[] = { + /* + * Protocol entry points. + */ +-static void eap_init __P((int unit)); +-static void eap_input __P((int unit, u_char *inp, int inlen)); +-static void eap_protrej __P((int unit)); +-static void eap_lowerup __P((int unit)); +-static void eap_lowerdown __P((int unit)); +-static int eap_printpkt __P((u_char *inp, int inlen, +- void (*)(void *arg, char *fmt, ...), void *arg)); ++static void eap_init (int unit); ++static void eap_input (int unit, u_char *inp, int inlen); ++static void eap_protrej (int unit); ++static void eap_lowerup (int unit); ++static void eap_lowerdown (int unit); ++static int eap_printpkt (u_char *inp, int inlen, ++ void (*)(void *arg, char *fmt, ...), void *arg); + + struct protent eap_protent = { + PPP_EAP, /* protocol number */ +@@ -178,7 +178,7 @@ static const u_char wkmodulus[] = { + }; + + /* Local forward declarations. */ +-static void eap_server_timeout __P((void *arg)); ++static void eap_server_timeout (void *arg); + + /* + * Convert EAP state code to printable string for debug. +@@ -2144,7 +2144,7 @@ static int + eap_printpkt(inp, inlen, printer, arg) + u_char *inp; + int inlen; +-void (*printer) __P((void *, char *, ...)); ++void (*printer) (void *, char *, ...); + void *arg; + { + int code, id, len, rtype, vallen; diff --git a/package/ppp/patches/patch-pppd_eap_h b/package/ppp/patches/patch-pppd_eap_h new file mode 100644 index 000000000..8df5ca09c --- /dev/null +++ b/package/ppp/patches/patch-pppd_eap_h @@ -0,0 +1,13 @@ +--- ppp-2.4.5.orig/pppd/eap.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/eap.h 2014-03-17 16:13:13.000000000 +0100 +@@ -145,8 +145,8 @@ typedef struct eap_state { + + extern eap_state eap_states[]; + +-void eap_authwithpeer __P((int unit, char *localname)); +-void eap_authpeer __P((int unit, char *localname)); ++void eap_authwithpeer (int unit, char *localname); ++void eap_authpeer (int unit, char *localname); + + extern struct protent eap_protent; + diff --git a/package/ppp/patches/patch-pppd_ecp_c b/package/ppp/patches/patch-pppd_ecp_c new file mode 100644 index 000000000..42ed12934 --- /dev/null +++ b/package/ppp/patches/patch-pppd_ecp_c @@ -0,0 +1,42 @@ +--- ppp-2.4.5.orig/pppd/ecp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/ecp.c 2014-03-17 16:13:14.000000000 +0100 +@@ -79,20 +79,20 @@ static option_t ecp_option_list[] = { + /* + * Protocol entry points from main code. + */ +-static void ecp_init __P((int unit)); ++static void ecp_init (int unit); + /* +-static void ecp_open __P((int unit)); +-static void ecp_close __P((int unit, char *)); +-static void ecp_lowerup __P((int unit)); +-static void ecp_lowerdown __P((int)); +-static void ecp_input __P((int unit, u_char *pkt, int len)); +-static void ecp_protrej __P((int unit)); ++static void ecp_open (int unit); ++static void ecp_close (int unit, char *); ++static void ecp_lowerup (int unit); ++static void ecp_lowerdown (int); ++static void ecp_input (int unit, u_char *pkt, int len); ++static void ecp_protrej (int unit); + */ +-static int ecp_printpkt __P((u_char *pkt, int len, ++static int ecp_printpkt (u_char *pkt, int len, + void (*printer) __P((void *, char *, ...)), +- void *arg)); ++ void *arg); + /* +-static void ecp_datainput __P((int unit, u_char *pkt, int len)); ++static void ecp_datainput (int unit, u_char *pkt, int len); + */ + + struct protent ecp_protent = { +@@ -165,7 +165,7 @@ static int + ecp_printpkt(p, plen, printer, arg) + u_char *p; + int plen; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + return 0; diff --git a/package/ppp/patches/patch-pppd_eui64_h b/package/ppp/patches/patch-pppd_eui64_h new file mode 100644 index 000000000..ce593874b --- /dev/null +++ b/package/ppp/patches/patch-pppd_eui64_h @@ -0,0 +1,11 @@ +--- ppp-2.4.5.orig/pppd/eui64.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/eui64.h 2014-03-17 16:13:14.000000000 +0100 +@@ -108,7 +108,7 @@ typedef union + } while (0) + #define eui64_setlo32(e, l) eui64_set32(e, l) + +-char *eui64_ntoa __P((eui64_t)); /* Returns ascii representation of id */ ++char *eui64_ntoa (eui64_t); /* Returns ascii representation of id */ + + #endif /* __EUI64_H__ */ + diff --git a/package/ppp/patches/patch-pppd_fsm_c b/package/ppp/patches/patch-pppd_fsm_c new file mode 100644 index 000000000..098d101ee --- /dev/null +++ b/package/ppp/patches/patch-pppd_fsm_c @@ -0,0 +1,25 @@ +--- ppp-2.4.5.orig/pppd/fsm.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/fsm.c 2014-03-17 16:13:14.000000000 +0100 +@@ -57,14 +57,14 @@ + + static const char rcsid[] = RCSID; + +-static void fsm_timeout __P((void *)); +-static void fsm_rconfreq __P((fsm *, int, u_char *, int)); +-static void fsm_rconfack __P((fsm *, int, u_char *, int)); +-static void fsm_rconfnakrej __P((fsm *, int, int, u_char *, int)); +-static void fsm_rtermreq __P((fsm *, int, u_char *, int)); +-static void fsm_rtermack __P((fsm *)); +-static void fsm_rcoderej __P((fsm *, u_char *, int)); +-static void fsm_sconfreq __P((fsm *, int)); ++static void fsm_timeout (void *); ++static void fsm_rconfreq (fsm *, int, u_char *, int); ++static void fsm_rconfack (fsm *, int, u_char *, int); ++static void fsm_rconfnakrej (fsm *, int, int, u_char *, int); ++static void fsm_rtermreq (fsm *, int, u_char *, int); ++static void fsm_rtermack (fsm *); ++static void fsm_rcoderej (fsm *, u_char *, int); ++static void fsm_sconfreq (fsm *, int); + + #define PROTO_NAME(f) ((f)->callbacks->proto_name) + diff --git a/package/ppp/patches/patch-pppd_fsm_h b/package/ppp/patches/patch-pppd_fsm_h new file mode 100644 index 000000000..a0705c0c6 --- /dev/null +++ b/package/ppp/patches/patch-pppd_fsm_h @@ -0,0 +1,73 @@ +--- ppp-2.4.5.orig/pppd/fsm.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/fsm.h 2014-03-17 16:13:14.000000000 +0100 +@@ -86,33 +86,33 @@ typedef struct fsm { + + typedef struct fsm_callbacks { + void (*resetci) /* Reset our Configuration Information */ +- __P((fsm *)); ++ (fsm *); + int (*cilen) /* Length of our Configuration Information */ +- __P((fsm *)); ++ (fsm *); + void (*addci) /* Add our Configuration Information */ +- __P((fsm *, u_char *, int *)); ++ (fsm *, u_char *, int *); + int (*ackci) /* ACK our Configuration Information */ +- __P((fsm *, u_char *, int)); ++ (fsm *, u_char *, int); + int (*nakci) /* NAK our Configuration Information */ +- __P((fsm *, u_char *, int, int)); ++ (fsm *, u_char *, int, int); + int (*rejci) /* Reject our Configuration Information */ +- __P((fsm *, u_char *, int)); ++ (fsm *, u_char *, int); + int (*reqci) /* Request peer's Configuration Information */ +- __P((fsm *, u_char *, int *, int)); ++ (fsm *, u_char *, int *, int); + void (*up) /* Called when fsm reaches OPENED state */ +- __P((fsm *)); ++ (fsm *); + void (*down) /* Called when fsm leaves OPENED state */ +- __P((fsm *)); ++ (fsm *); + void (*starting) /* Called when we want the lower layer */ +- __P((fsm *)); ++ (fsm *); + void (*finished) /* Called when we don't want the lower layer */ +- __P((fsm *)); ++ (fsm *); + void (*protreject) /* Called when Protocol-Reject received */ +- __P((int)); ++ (int); + void (*retransmit) /* Retransmission is necessary */ +- __P((fsm *)); ++ (fsm *); + int (*extcode) /* Called when unknown code received */ +- __P((fsm *, int, int, u_char *, int)); ++ (fsm *, int, int, u_char *, int); + char *proto_name; /* String name for protocol (for messages) */ + } fsm_callbacks; + +@@ -152,14 +152,14 @@ typedef struct fsm_callbacks { + /* + * Prototypes + */ +-void fsm_init __P((fsm *)); +-void fsm_lowerup __P((fsm *)); +-void fsm_lowerdown __P((fsm *)); +-void fsm_open __P((fsm *)); +-void fsm_close __P((fsm *, char *)); +-void fsm_input __P((fsm *, u_char *, int)); +-void fsm_protreject __P((fsm *)); +-void fsm_sdata __P((fsm *, int, int, u_char *, int)); ++void fsm_init (fsm *); ++void fsm_lowerup (fsm *); ++void fsm_lowerdown (fsm *); ++void fsm_open (fsm *); ++void fsm_close (fsm *, char *); ++void fsm_input (fsm *, u_char *, int); ++void fsm_protreject (fsm *); ++void fsm_sdata (fsm *, int, int, u_char *, int); + + + /* diff --git a/package/ppp/patches/patch-pppd_ipcp_c b/package/ppp/patches/patch-pppd_ipcp_c new file mode 100644 index 000000000..e0b610948 --- /dev/null +++ b/package/ppp/patches/patch-pppd_ipcp_c @@ -0,0 +1,129 @@ +--- ppp-2.4.5.orig/pppd/ipcp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/ipcp.c 2014-03-17 16:13:13.000000000 +0100 +@@ -75,13 +75,13 @@ bool disable_defaultip = 0; /* Don't use + bool noremoteip = 0; /* Let him have no IP address */ + + /* Hook for a plugin to know when IP protocol has come up */ +-void (*ip_up_hook) __P((void)) = NULL; ++void (*ip_up_hook) (void) = NULL; + + /* Hook for a plugin to know when IP protocol has come down */ +-void (*ip_down_hook) __P((void)) = NULL; ++void (*ip_down_hook) (void) = NULL; + + /* Hook for a plugin to choose the remote IP address */ +-void (*ip_choose_hook) __P((u_int32_t *)) = NULL; ++void (*ip_choose_hook) (u_int32_t *) = NULL; + + /* Notifiers for when IPCP goes up and down */ + struct notifier *ip_up_notifier = NULL; +@@ -100,16 +100,16 @@ static char netmask_str[20]; /* string + /* + * Callbacks for fsm code. (CI = Configuration Information) + */ +-static void ipcp_resetci __P((fsm *)); /* Reset our CI */ +-static int ipcp_cilen __P((fsm *)); /* Return length of our CI */ +-static void ipcp_addci __P((fsm *, u_char *, int *)); /* Add our CI */ +-static int ipcp_ackci __P((fsm *, u_char *, int)); /* Peer ack'd our CI */ +-static int ipcp_nakci __P((fsm *, u_char *, int, int));/* Peer nak'd our CI */ +-static int ipcp_rejci __P((fsm *, u_char *, int)); /* Peer rej'd our CI */ +-static int ipcp_reqci __P((fsm *, u_char *, int *, int)); /* Rcv CI */ +-static void ipcp_up __P((fsm *)); /* We're UP */ +-static void ipcp_down __P((fsm *)); /* We're DOWN */ +-static void ipcp_finished __P((fsm *)); /* Don't need lower layer */ ++static void ipcp_resetci (fsm *); /* Reset our CI */ ++static int ipcp_cilen (fsm *); /* Return length of our CI */ ++static void ipcp_addci (fsm *, u_char *, int *); /* Add our CI */ ++static int ipcp_ackci (fsm *, u_char *, int); /* Peer ack'd our CI */ ++static int ipcp_nakci (fsm *, u_char *, int, int);/* Peer nak'd our CI */ ++static int ipcp_rejci (fsm *, u_char *, int); /* Peer rej'd our CI */ ++static int ipcp_reqci (fsm *, u_char *, int *, int); /* Rcv CI */ ++static void ipcp_up (fsm *); /* We're UP */ ++static void ipcp_down (fsm *); /* We're DOWN */ ++static void ipcp_finished (fsm *); /* Don't need lower layer */ + + fsm ipcp_fsm[NUM_PPP]; /* IPCP fsm structure */ + +@@ -134,12 +134,12 @@ static fsm_callbacks ipcp_callbacks = { + /* + * Command-line options. + */ +-static int setvjslots __P((char **)); +-static int setdnsaddr __P((char **)); +-static int setwinsaddr __P((char **)); +-static int setnetmask __P((char **)); +-int setipaddr __P((char *, char **, int)); +-static void printipaddr __P((option_t *, void (*)(void *, char *,...),void *)); ++static int setvjslots (char **); ++static int setdnsaddr (char **); ++static int setwinsaddr (char **); ++static int setnetmask (char **); ++int setipaddr (char *, char **, int); ++static void printipaddr (option_t *, void (*)(void *, char *,...),void *); + + static option_t ipcp_option_list[] = { + { "noip", o_bool, &ipcp_protent.enabled_flag, +@@ -237,19 +237,19 @@ static option_t ipcp_option_list[] = { + /* + * Protocol entry points from main code. + */ +-static void ipcp_init __P((int)); +-static void ipcp_open __P((int)); +-static void ipcp_close __P((int, char *)); +-static void ipcp_lowerup __P((int)); +-static void ipcp_lowerdown __P((int)); +-static void ipcp_input __P((int, u_char *, int)); +-static void ipcp_protrej __P((int)); +-static int ipcp_printpkt __P((u_char *, int, +- void (*) __P((void *, char *, ...)), void *)); +-static void ip_check_options __P((void)); +-static int ip_demand_conf __P((int)); +-static int ip_active_pkt __P((u_char *, int)); +-static void create_resolv __P((u_int32_t, u_int32_t)); ++static void ipcp_init (int); ++static void ipcp_open (int); ++static void ipcp_close (int, char *); ++static void ipcp_lowerup (int); ++static void ipcp_lowerdown (int); ++static void ipcp_input (int, u_char *, int); ++static void ipcp_protrej (int); ++static int ipcp_printpkt (u_char *, int, ++ void (*) __P((void *, char *, ...)), void *); ++static void ip_check_options (void); ++static int ip_demand_conf (int); ++static int ip_active_pkt (u_char *, int); ++static void create_resolv (u_int32_t, u_int32_t); + + struct protent ipcp_protent = { + PPP_IPCP, +@@ -271,9 +271,9 @@ struct protent ipcp_protent = { + ip_active_pkt + }; + +-static void ipcp_clear_addrs __P((int, u_int32_t, u_int32_t)); +-static void ipcp_script __P((char *, int)); /* Run an up/down script */ +-static void ipcp_script_done __P((void *)); ++static void ipcp_clear_addrs (int, u_int32_t, u_int32_t); ++static void ipcp_script (char *, int); /* Run an up/down script */ ++static void ipcp_script_done (void *); + + /* + * Lengths of configuration options. +@@ -482,7 +482,7 @@ setipaddr(arg, argv, doit) + static void + printipaddr(opt, printer, arg) + option_t *opt; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + ipcp_options *wo = &ipcp_wantoptions[0]; +@@ -2126,7 +2126,7 @@ static int + ipcp_printpkt(p, plen, printer, arg) + u_char *p; + int plen; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + int code, id, len, olen; diff --git a/package/ppp/patches/patch-pppd_ipcp_h b/package/ppp/patches/patch-pppd_ipcp_h new file mode 100644 index 000000000..76656d181 --- /dev/null +++ b/package/ppp/patches/patch-pppd_ipcp_h @@ -0,0 +1,10 @@ +--- ppp-2.4.5.orig/pppd/ipcp.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/ipcp.h 2014-03-17 16:13:16.000000000 +0100 +@@ -91,6 +91,6 @@ extern ipcp_options ipcp_gotoptions[]; + extern ipcp_options ipcp_allowoptions[]; + extern ipcp_options ipcp_hisoptions[]; + +-char *ip_ntoa __P((u_int32_t)); ++char *ip_ntoa (u_int32_t); + + extern struct protent ipcp_protent; diff --git a/package/ppp/patches/patch-pppd_ipv6cp_c b/package/ppp/patches/patch-pppd_ipv6cp_c index 1d4123776..0d63be37b 100644 --- a/package/ppp/patches/patch-pppd_ipv6cp_c +++ b/package/ppp/patches/patch-pppd_ipv6cp_c @@ -1,5 +1,5 @@ ---- ppp-2.4.4.orig/pppd/ipv6cp.c 2005-08-26 01:59:34.000000000 +0200 -+++ ppp-2.4.4/pppd/ipv6cp.c 2009-12-18 09:06:00.333449663 +0100 +--- ppp-2.4.5.orig/pppd/ipv6cp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/ipv6cp.c 2014-03-17 16:13:14.000000000 +0100 @@ -151,6 +151,7 @@ */ @@ -8,3 +8,105 @@ #include <string.h> #include <unistd.h> #include <netdb.h> +@@ -182,16 +183,16 @@ static int ipv6cp_is_up; + /* + * Callbacks for fsm code. (CI = Configuration Information) + */ +-static void ipv6cp_resetci __P((fsm *)); /* Reset our CI */ +-static int ipv6cp_cilen __P((fsm *)); /* Return length of our CI */ +-static void ipv6cp_addci __P((fsm *, u_char *, int *)); /* Add our CI */ +-static int ipv6cp_ackci __P((fsm *, u_char *, int)); /* Peer ack'd our CI */ +-static int ipv6cp_nakci __P((fsm *, u_char *, int, int));/* Peer nak'd our CI */ +-static int ipv6cp_rejci __P((fsm *, u_char *, int)); /* Peer rej'd our CI */ +-static int ipv6cp_reqci __P((fsm *, u_char *, int *, int)); /* Rcv CI */ +-static void ipv6cp_up __P((fsm *)); /* We're UP */ +-static void ipv6cp_down __P((fsm *)); /* We're DOWN */ +-static void ipv6cp_finished __P((fsm *)); /* Don't need lower layer */ ++static void ipv6cp_resetci (fsm *); /* Reset our CI */ ++static int ipv6cp_cilen (fsm *); /* Return length of our CI */ ++static void ipv6cp_addci (fsm *, u_char *, int *); /* Add our CI */ ++static int ipv6cp_ackci (fsm *, u_char *, int); /* Peer ack'd our CI */ ++static int ipv6cp_nakci (fsm *, u_char *, int, int);/* Peer nak'd our CI */ ++static int ipv6cp_rejci (fsm *, u_char *, int); /* Peer rej'd our CI */ ++static int ipv6cp_reqci (fsm *, u_char *, int *, int); /* Rcv CI */ ++static void ipv6cp_up (fsm *); /* We're UP */ ++static void ipv6cp_down (fsm *); /* We're DOWN */ ++static void ipv6cp_finished (fsm *); /* Don't need lower layer */ + + fsm ipv6cp_fsm[NUM_PPP]; /* IPV6CP fsm structure */ + +@@ -216,9 +217,9 @@ static fsm_callbacks ipv6cp_callbacks = + /* + * Command-line options. + */ +-static int setifaceid __P((char **arg)); +-static void printifaceid __P((option_t *, +- void (*)(void *, char *, ...), void *)); ++static int setifaceid (char **arg); ++static void printifaceid (option_t *, ++ void (*)(void *, char *, ...), void *); + + static option_t ipv6cp_option_list[] = { + { "ipv6", o_special, (void *)setifaceid, +@@ -259,18 +260,18 @@ static option_t ipv6cp_option_list[] = { + /* + * Protocol entry points from main code. + */ +-static void ipv6cp_init __P((int)); +-static void ipv6cp_open __P((int)); +-static void ipv6cp_close __P((int, char *)); +-static void ipv6cp_lowerup __P((int)); +-static void ipv6cp_lowerdown __P((int)); +-static void ipv6cp_input __P((int, u_char *, int)); +-static void ipv6cp_protrej __P((int)); +-static int ipv6cp_printpkt __P((u_char *, int, +- void (*) __P((void *, char *, ...)), void *)); +-static void ipv6_check_options __P((void)); +-static int ipv6_demand_conf __P((int)); +-static int ipv6_active_pkt __P((u_char *, int)); ++static void ipv6cp_init (int); ++static void ipv6cp_open (int); ++static void ipv6cp_close (int, char *); ++static void ipv6cp_lowerup (int); ++static void ipv6cp_lowerdown (int); ++static void ipv6cp_input (int, u_char *, int); ++static void ipv6cp_protrej (int); ++static int ipv6cp_printpkt (u_char *, int, ++ void (*) __P((void *, char *, ...)), void *); ++static void ipv6_check_options (void); ++static int ipv6_demand_conf (int); ++static int ipv6_active_pkt (u_char *, int); + + struct protent ipv6cp_protent = { + PPP_IPV6CP, +@@ -292,9 +293,9 @@ struct protent ipv6cp_protent = { + ipv6_active_pkt + }; + +-static void ipv6cp_clear_addrs __P((int, eui64_t, eui64_t)); +-static void ipv6cp_script __P((char *)); +-static void ipv6cp_script_done __P((void *)); ++static void ipv6cp_clear_addrs (int, eui64_t, eui64_t); ++static void ipv6cp_script (char *); ++static void ipv6cp_script_done (void *); + + /* + * Lengths of configuration options. +@@ -380,7 +381,7 @@ char *llv6_ntoa(eui64_t ifaceid); + static void + printifaceid(opt, printer, arg) + option_t *opt; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + ipv6cp_options *wo = &ipv6cp_wantoptions[0]; +@@ -1435,7 +1436,7 @@ static int + ipv6cp_printpkt(p, plen, printer, arg) + u_char *p; + int plen; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + int code, id, len, olen; diff --git a/package/ppp/patches/patch-pppd_ipxcp_c b/package/ppp/patches/patch-pppd_ipxcp_c new file mode 100644 index 000000000..cf75a4c5b --- /dev/null +++ b/package/ppp/patches/patch-pppd_ipxcp_c @@ -0,0 +1,98 @@ +--- ppp-2.4.5.orig/pppd/ipxcp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/ipxcp.c 2014-03-17 16:13:13.000000000 +0100 +@@ -78,17 +78,17 @@ ipxcp_options ipxcp_hisoptions[NUM_PPP]; + /* + * Callbacks for fsm code. (CI = Configuration Information) + */ +-static void ipxcp_resetci __P((fsm *)); /* Reset our CI */ +-static int ipxcp_cilen __P((fsm *)); /* Return length of our CI */ +-static void ipxcp_addci __P((fsm *, u_char *, int *)); /* Add our CI */ +-static int ipxcp_ackci __P((fsm *, u_char *, int)); /* Peer ack'd our CI */ +-static int ipxcp_nakci __P((fsm *, u_char *, int, int));/* Peer nak'd our CI */ +-static int ipxcp_rejci __P((fsm *, u_char *, int)); /* Peer rej'd our CI */ +-static int ipxcp_reqci __P((fsm *, u_char *, int *, int)); /* Rcv CI */ +-static void ipxcp_up __P((fsm *)); /* We're UP */ +-static void ipxcp_down __P((fsm *)); /* We're DOWN */ +-static void ipxcp_finished __P((fsm *)); /* Don't need lower layer */ +-static void ipxcp_script __P((fsm *, char *)); /* Run an up/down script */ ++static void ipxcp_resetci (fsm *); /* Reset our CI */ ++static int ipxcp_cilen (fsm *); /* Return length of our CI */ ++static void ipxcp_addci (fsm *, u_char *, int *); /* Add our CI */ ++static int ipxcp_ackci (fsm *, u_char *, int); /* Peer ack'd our CI */ ++static int ipxcp_nakci (fsm *, u_char *, int, int);/* Peer nak'd our CI */ ++static int ipxcp_rejci (fsm *, u_char *, int); /* Peer rej'd our CI */ ++static int ipxcp_reqci (fsm *, u_char *, int *, int); /* Rcv CI */ ++static void ipxcp_up (fsm *); /* We're UP */ ++static void ipxcp_down (fsm *); /* We're DOWN */ ++static void ipxcp_finished (fsm *); /* Don't need lower layer */ ++static void ipxcp_script (fsm *, char *); /* Run an up/down script */ + + fsm ipxcp_fsm[NUM_PPP]; /* IPXCP fsm structure */ + +@@ -113,10 +113,10 @@ static fsm_callbacks ipxcp_callbacks = { + /* + * Command-line options. + */ +-static int setipxnode __P((char **)); +-static void printipxnode __P((option_t *, +- void (*)(void *, char *, ...), void *)); +-static int setipxname __P((char **)); ++static int setipxnode (char **); ++static void printipxnode (option_t *, ++ void (*)(void *, char *, ...), void *); ++static int setipxname (char **); + + static option_t ipxcp_option_list[] = { + { "ipx", o_bool, &ipxcp_protent.enabled_flag, +@@ -170,15 +170,15 @@ static option_t ipxcp_option_list[] = { + * Protocol entry points. + */ + +-static void ipxcp_init __P((int)); +-static void ipxcp_open __P((int)); +-static void ipxcp_close __P((int, char *)); +-static void ipxcp_lowerup __P((int)); +-static void ipxcp_lowerdown __P((int)); +-static void ipxcp_input __P((int, u_char *, int)); +-static void ipxcp_protrej __P((int)); +-static int ipxcp_printpkt __P((u_char *, int, +- void (*) __P((void *, char *, ...)), void *)); ++static void ipxcp_init (int); ++static void ipxcp_open (int); ++static void ipxcp_close (int, char *); ++static void ipxcp_lowerup (int); ++static void ipxcp_lowerdown (int); ++static void ipxcp_input (int, u_char *, int); ++static void ipxcp_protrej (int); ++static int ipxcp_printpkt (u_char *, int, ++ void (*) __P((void *, char *, ...)), void *); + + struct protent ipxcp_protent = { + PPP_IPXCP, +@@ -217,7 +217,7 @@ struct protent ipxcp_protent = { + + static int ipxcp_is_up; + +-static char *ipx_ntoa __P((u_int32_t)); ++static char *ipx_ntoa (u_int32_t); + + /* Used in printing the node number */ + #define NODE(base) base[0], base[1], base[2], base[3], base[4], base[5] +@@ -323,7 +323,7 @@ setipxnode(argv) + static void + printipxnode(opt, printer, arg) + option_t *opt; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + unsigned char *p; +@@ -1473,7 +1473,7 @@ static int + ipxcp_printpkt(p, plen, printer, arg) + u_char *p; + int plen; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + int code, id, len, olen; diff --git a/package/ppp/patches/patch-pppd_lcp_c b/package/ppp/patches/patch-pppd_lcp_c new file mode 100644 index 000000000..5d8971b94 --- /dev/null +++ b/package/ppp/patches/patch-pppd_lcp_c @@ -0,0 +1,115 @@ +--- ppp-2.4.5.orig/pppd/lcp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/lcp.c 2014-03-17 16:13:13.000000000 +0100 +@@ -66,7 +66,7 @@ static const char rcsid[] = RCSID; + /* steal a bit in fsm flags word */ + #define DELAYED_UP 0x100 + +-static void lcp_delayed_up __P((void *)); ++static void lcp_delayed_up (void *); + + /* + * LCP-related command-line options. +@@ -76,12 +76,12 @@ int lcp_echo_fails = 0; /* Tolerance to + bool lax_recv = 0; /* accept control chars in asyncmap */ + bool noendpoint = 0; /* don't send/accept endpoint discriminator */ + +-static int noopt __P((char **)); ++static int noopt (char **); + + #ifdef HAVE_MULTILINK +-static int setendpoint __P((char **)); +-static void printendpoint __P((option_t *, void (*)(void *, char *, ...), +- void *)); ++static int setendpoint (char **); ++static void printendpoint (option_t *, void (*)(void *, char *, ...), ++ void *); + #endif /* HAVE_MULTILINK */ + + static option_t lcp_option_list[] = { +@@ -202,31 +202,31 @@ static u_char nak_buffer[PPP_MRU]; /* wh + /* + * Callbacks for fsm code. (CI = Configuration Information) + */ +-static void lcp_resetci __P((fsm *)); /* Reset our CI */ +-static int lcp_cilen __P((fsm *)); /* Return length of our CI */ +-static void lcp_addci __P((fsm *, u_char *, int *)); /* Add our CI to pkt */ +-static int lcp_ackci __P((fsm *, u_char *, int)); /* Peer ack'd our CI */ +-static int lcp_nakci __P((fsm *, u_char *, int, int)); /* Peer nak'd our CI */ +-static int lcp_rejci __P((fsm *, u_char *, int)); /* Peer rej'd our CI */ +-static int lcp_reqci __P((fsm *, u_char *, int *, int)); /* Rcv peer CI */ +-static void lcp_up __P((fsm *)); /* We're UP */ +-static void lcp_down __P((fsm *)); /* We're DOWN */ +-static void lcp_starting __P((fsm *)); /* We need lower layer up */ +-static void lcp_finished __P((fsm *)); /* We need lower layer down */ +-static int lcp_extcode __P((fsm *, int, int, u_char *, int)); +-static void lcp_rprotrej __P((fsm *, u_char *, int)); ++static void lcp_resetci (fsm *); /* Reset our CI */ ++static int lcp_cilen (fsm *); /* Return length of our CI */ ++static void lcp_addci (fsm *, u_char *, int *); /* Add our CI to pkt */ ++static int lcp_ackci (fsm *, u_char *, int); /* Peer ack'd our CI */ ++static int lcp_nakci (fsm *, u_char *, int, int); /* Peer nak'd our CI */ ++static int lcp_rejci (fsm *, u_char *, int); /* Peer rej'd our CI */ ++static int lcp_reqci (fsm *, u_char *, int *, int); /* Rcv peer CI */ ++static void lcp_up (fsm *); /* We're UP */ ++static void lcp_down (fsm *); /* We're DOWN */ ++static void lcp_starting (fsm *); /* We need lower layer up */ ++static void lcp_finished (fsm *); /* We need lower layer down */ ++static int lcp_extcode (fsm *, int, int, u_char *, int); ++static void lcp_rprotrej (fsm *, u_char *, int); + + /* + * routines to send LCP echos to peer + */ + +-static void lcp_echo_lowerup __P((int)); +-static void lcp_echo_lowerdown __P((int)); +-static void LcpEchoTimeout __P((void *)); +-static void lcp_received_echo_reply __P((fsm *, int, u_char *, int)); +-static void LcpSendEchoRequest __P((fsm *)); +-static void LcpLinkFailure __P((fsm *)); +-static void LcpEchoCheck __P((fsm *)); ++static void lcp_echo_lowerup (int); ++static void lcp_echo_lowerdown (int); ++static void LcpEchoTimeout (void *); ++static void lcp_received_echo_reply (fsm *, int, u_char *, int); ++static void LcpSendEchoRequest (fsm *); ++static void LcpLinkFailure (fsm *); ++static void LcpEchoCheck (fsm *); + + static fsm_callbacks lcp_callbacks = { /* LCP callback routines */ + lcp_resetci, /* Reset our Configuration Information */ +@@ -251,11 +251,11 @@ static fsm_callbacks lcp_callbacks = { / + * Some of these are called directly. + */ + +-static void lcp_init __P((int)); +-static void lcp_input __P((int, u_char *, int)); +-static void lcp_protrej __P((int)); +-static int lcp_printpkt __P((u_char *, int, +- void (*) __P((void *, char *, ...)), void *)); ++static void lcp_init (int); ++static void lcp_input (int, u_char *, int); ++static void lcp_protrej (int); ++static int lcp_printpkt (u_char *, int, ++ void (*) __P((void *, char *, ...)), void *); + + struct protent lcp_protent = { + PPP_LCP, +@@ -322,7 +322,7 @@ setendpoint(argv) + static void + printendpoint(opt, printer, arg) + option_t *opt; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + printer(arg, "%s", epdisc_to_str(&lcp_wantoptions[0].endpoint)); +@@ -1985,7 +1985,7 @@ static int + lcp_printpkt(p, plen, printer, arg) + u_char *p; + int plen; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + int code, id, len, olen, i; diff --git a/package/ppp/patches/patch-pppd_lcp_h b/package/ppp/patches/patch-pppd_lcp_h new file mode 100644 index 000000000..379df37a5 --- /dev/null +++ b/package/ppp/patches/patch-pppd_lcp_h @@ -0,0 +1,19 @@ +--- ppp-2.4.5.orig/pppd/lcp.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/lcp.h 2014-03-17 16:13:16.000000000 +0100 +@@ -122,11 +122,11 @@ extern lcp_options lcp_hisoptions[]; + #define MINMRU 128 /* No MRUs below this */ + #define MAXMRU 16384 /* Normally limit MRU to this */ + +-void lcp_open __P((int)); +-void lcp_close __P((int, char *)); +-void lcp_lowerup __P((int)); +-void lcp_lowerdown __P((int)); +-void lcp_sprotrej __P((int, u_char *, int)); /* send protocol reject */ ++void lcp_open (int); ++void lcp_close (int, char *); ++void lcp_lowerup (int); ++void lcp_lowerdown (int); ++void lcp_sprotrej (int, u_char *, int); /* send protocol reject */ + + extern struct protent lcp_protent; + diff --git a/package/ppp/patches/patch-pppd_magic_c b/package/ppp/patches/patch-pppd_magic_c new file mode 100644 index 000000000..073619eac --- /dev/null +++ b/package/ppp/patches/patch-pppd_magic_c @@ -0,0 +1,13 @@ +--- ppp-2.4.5.orig/pppd/magic.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/magic.c 2014-03-17 16:13:14.000000000 +0100 +@@ -53,8 +53,8 @@ + + static const char rcsid[] = RCSID; + +-extern long mrand48 __P((void)); +-extern void srand48 __P((long)); ++extern long mrand48 (void); ++extern void srand48 (long); + + /* + * magic_init - Initialize the magic number generator. diff --git a/package/ppp/patches/patch-pppd_magic_h b/package/ppp/patches/patch-pppd_magic_h new file mode 100644 index 000000000..af4ea88df --- /dev/null +++ b/package/ppp/patches/patch-pppd_magic_h @@ -0,0 +1,14 @@ +--- ppp-2.4.5.orig/pppd/magic.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/magic.h 2014-03-17 16:13:14.000000000 +0100 +@@ -42,8 +42,8 @@ + * $Id: magic.h,v 1.5 2003/06/11 23:56:26 paulus Exp $ + */ + +-void magic_init __P((void)); /* Initialize the magic number generator */ +-u_int32_t magic __P((void)); /* Returns the next magic number */ ++void magic_init (void); /* Initialize the magic number generator */ ++u_int32_t magic (void); /* Returns the next magic number */ + + /* Fill buffer with random bytes */ +-void random_bytes __P((unsigned char *buf, int len)); ++void random_bytes (unsigned char *buf, int len); diff --git a/package/ppp/patches/patch-pppd_main_c b/package/ppp/patches/patch-pppd_main_c index 630420deb..adc00acd1 100644 --- a/package/ppp/patches/patch-pppd_main_c +++ b/package/ppp/patches/patch-pppd_main_c @@ -1,5 +1,5 @@ --- ppp-2.4.5.orig/pppd/main.c 2009-11-16 23:26:07.000000000 +0100 -+++ ppp-2.4.5/pppd/main.c 2011-01-16 15:51:05.000000000 +0100 ++++ ppp-2.4.5/pppd/main.c 2014-03-17 16:13:13.000000000 +0100 @@ -90,6 +90,7 @@ #include <sys/socket.h> #include <netinet/in.h> @@ -8,14 +8,97 @@ #include "pppd.h" #include "magic.h" -@@ -228,6 +229,7 @@ static struct subprocess *children; +@@ -159,10 +160,10 @@ TDB_CONTEXT *pppdb; /* database for sto + + char db_key[32]; + +-int (*holdoff_hook) __P((void)) = NULL; +-int (*new_phase_hook) __P((int)) = NULL; +-void (*snoop_recv_hook) __P((unsigned char *p, int len)) = NULL; +-void (*snoop_send_hook) __P((unsigned char *p, int len)) = NULL; ++int (*holdoff_hook) (void) = NULL; ++int (*new_phase_hook) (int) = NULL; ++void (*snoop_recv_hook) (unsigned char *p, int len) = NULL; ++void (*snoop_send_hook) (unsigned char *p, int len) = NULL; + + static int conn_running; /* we have a [dis]connector running */ + static int fd_loop; /* fd for getting demand-dial packets */ +@@ -218,7 +219,7 @@ bool bundle_terminating; + struct subprocess { + pid_t pid; + char *prog; +- void (*done) __P((void *)); ++ void (*done) (void *); + void *arg; + int killable; + struct subprocess *next; +@@ -228,38 +229,39 @@ static struct subprocess *children; /* Prototypes for procedures local to this file. */ +-static void setup_signals __P((void)); +-static void create_pidfile __P((int pid)); +-static void create_linkpidfile __P((int pid)); +-static void cleanup __P((void)); +-static void get_input __P((void)); +-static void calltimeout __P((void)); +-static struct timeval *timeleft __P((struct timeval *)); +-static void kill_my_pg __P((int)); +-static void hup __P((int)); +-static void term __P((int)); +-static void chld __P((int)); +-static void toggle_debug __P((int)); +-static void open_ccp __P((int)); +-static void bad_signal __P((int)); +-static void holdoff_end __P((void *)); +-static void forget_child __P((int pid, int status)); +-static int reap_kids __P((void)); +-static void childwait_end __P((void *)); +static void check_time(void); - static void setup_signals __P((void)); - static void create_pidfile __P((int pid)); - static void create_linkpidfile __P((int pid)); ++static void setup_signals (void); ++static void create_pidfile (int pid); ++static void create_linkpidfile (int pid); ++static void cleanup (void); ++static void get_input (void); ++static void calltimeout (void); ++static struct timeval *timeleft (struct timeval *); ++static void kill_my_pg (int); ++static void hup (int); ++static void term (int); ++static void chld (int); ++static void toggle_debug (int); ++static void open_ccp (int); ++static void bad_signal (int); ++static void holdoff_end (void *); ++static void forget_child (int pid, int status); ++static int reap_kids (void); ++static void childwait_end (void *); + + #ifdef USE_TDB +-static void update_db_entry __P((void)); +-static void add_db_key __P((const char *)); +-static void delete_db_key __P((const char *)); +-static void cleanup_db __P((void)); ++static void update_db_entry (void); ++static void add_db_key (const char *); ++static void delete_db_key (const char *); ++static void cleanup_db (void); + #endif + +-static void handle_events __P((void)); +-void print_link_stats __P((void)); ++static void handle_events (void); ++void print_link_stats (void); + +-extern char *ttyname __P((int)); +-extern char *getlogin __P((void)); +-int main __P((int, char *[])); ++extern char *ttyname (int); ++extern char *getlogin (void); ++int main (int, char *[]); + + #ifdef ultrix + #undef O_NONBLOCK @@ -530,6 +532,7 @@ main(argc, argv) info("Starting link"); } @@ -24,7 +107,14 @@ gettimeofday(&start_time, NULL); script_unsetenv("CONNECT_TIME"); script_unsetenv("BYTES_SENT"); -@@ -1263,6 +1266,36 @@ struct callout { +@@ -1257,19 +1260,49 @@ update_link_stats(u) + struct callout { + struct timeval c_time; /* time at which to call routine */ + void *c_arg; /* argument to routine */ +- void (*c_func) __P((void *)); /* routine */ ++ void (*c_func) (void *); /* routine */ + struct callout *c_next; + }; static struct callout *callout = NULL; /* Callout list */ static struct timeval timenow; /* Current time */ @@ -61,6 +151,23 @@ /* * timeout - Schedule a timeout. + */ + void + timeout(func, arg, secs, usecs) +- void (*func) __P((void *)); ++ void (*func) (void *); + void *arg; + int secs, usecs; + { +@@ -1308,7 +1341,7 @@ timeout(func, arg, secs, usecs) + */ + void + untimeout(func, arg) +- void (*func) __P((void *)); ++ void (*func) (void *); + void *arg; + { + struct callout **copp, *freep; @@ -1333,6 +1366,8 @@ calltimeout() { struct callout *p; @@ -79,3 +186,21 @@ gettimeofday(&timenow, NULL); tvp->tv_sec = callout->c_time.tv_sec - timenow.tv_sec; +@@ -1692,7 +1729,7 @@ run_program(prog, args, must_exist, done + char *prog; + char **args; + int must_exist; +- void (*done) __P((void *)); ++ void (*done) (void *); + void *arg; + int wait; + { +@@ -1767,7 +1804,7 @@ void + record_child(pid, prog, done, arg, killable) + int pid; + char *prog; +- void (*done) __P((void *)); ++ void (*done) (void *); + void *arg; + int killable; + { diff --git a/package/ppp/patches/patch-pppd_md4_h b/package/ppp/patches/patch-pppd_md4_h new file mode 100644 index 000000000..95eb0bb46 --- /dev/null +++ b/package/ppp/patches/patch-pppd_md4_h @@ -0,0 +1,36 @@ +--- ppp-2.4.5.orig/pppd/md4.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/md4.h 2014-03-17 16:13:13.000000000 +0100 +@@ -29,7 +29,7 @@ typedef struct { + ** Initialize the MD4_CTX prepatory to doing a message digest + ** computation. + */ +-extern void MD4Init __P((MD4_CTX *MD)); ++extern void MD4Init (MD4_CTX *MD); + + /* MD4Update(MD,X,count) + ** Input: X -- a pointer to an array of unsigned characters. +@@ -43,7 +43,7 @@ extern void MD4Init __P((MD4_CTX *MD)); + ** every MD computation should end with one call to MD4Update with a + ** count less than 512. Zero is OK for a count. + */ +-extern void MD4Update __P((MD4_CTX *MD, unsigned char *X, unsigned int count)); ++extern void MD4Update (MD4_CTX *MD, unsigned char *X, unsigned int count); + + /* MD4Print(MD) + ** Prints message digest buffer MD as 32 hexadecimal digits. +@@ -51,13 +51,13 @@ extern void MD4Update __P((MD4_CTX *MD, + ** of buffer[3]. + ** Each byte is printed with high-order hexadecimal digit first. + */ +-extern void MD4Print __P((MD4_CTX *)); ++extern void MD4Print (MD4_CTX *); + + /* MD4Final(buf, MD) + ** Returns message digest from MD and terminates the message + ** digest computation. + */ +-extern void MD4Final __P((unsigned char *, MD4_CTX *)); ++extern void MD4Final (unsigned char *, MD4_CTX *); + + /* + ** End of md4.h diff --git a/package/ppp/patches/patch-pppd_multilink_c b/package/ppp/patches/patch-pppd_multilink_c new file mode 100644 index 000000000..511a80cae --- /dev/null +++ b/package/ppp/patches/patch-pppd_multilink_c @@ -0,0 +1,22 @@ +--- ppp-2.4.5.orig/pppd/multilink.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/multilink.c 2014-03-17 16:13:15.000000000 +0100 +@@ -50,13 +50,13 @@ bool multilink_master; /* we own the mu + extern TDB_CONTEXT *pppdb; + extern char db_key[]; + +-static void make_bundle_links __P((int append)); +-static void remove_bundle_link __P((void)); +-static void iterate_bundle_links __P((void (*func) __P((char *)))); ++static void make_bundle_links (int append); ++static void remove_bundle_link (void); ++static void iterate_bundle_links (void (*func) __P((char *))); + +-static int get_default_epdisc __P((struct epdisc *)); +-static int parse_num __P((char *str, const char *key, int *valp)); +-static int owns_unit __P((TDB_DATA pid, int unit)); ++static int get_default_epdisc (struct epdisc *); ++static int parse_num (char *str, const char *key, int *valp); ++static int owns_unit (TDB_DATA pid, int unit); + + #define set_ip_epdisc(ep, addr) do { \ + ep->length = 4; \ diff --git a/package/ppp/patches/patch-pppd_options_c b/package/ppp/patches/patch-pppd_options_c new file mode 100644 index 000000000..d23d1291d --- /dev/null +++ b/package/ppp/patches/patch-pppd_options_c @@ -0,0 +1,155 @@ +--- ppp-2.4.5.orig/pppd/options.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/options.c 2014-03-17 16:13:14.000000000 +0100 +@@ -76,7 +76,7 @@ + #include "pathnames.h" + + #if defined(ultrix) || defined(NeXT) +-char *strdup __P((char *)); ++char *strdup (char *); + #endif + + static const char rcsid[] = RCSID; +@@ -147,30 +147,30 @@ static char logfile_name[MAXPATHLEN]; /* + /* + * Prototypes + */ +-static int setdomain __P((char **)); +-static int readfile __P((char **)); +-static int callfile __P((char **)); +-static int showversion __P((char **)); +-static int showhelp __P((char **)); +-static void usage __P((void)); +-static int setlogfile __P((char **)); ++static int setdomain (char **); ++static int readfile (char **); ++static int callfile (char **); ++static int showversion (char **); ++static int showhelp (char **); ++static void usage (void); ++static int setlogfile (char **); + #ifdef PLUGIN +-static int loadplugin __P((char **)); ++static int loadplugin (char **); + #endif + + #ifdef PPP_FILTER +-static int setpassfilter __P((char **)); +-static int setactivefilter __P((char **)); ++static int setpassfilter (char **); ++static int setactivefilter (char **); + #endif + + #ifdef MAXOCTETS +-static int setmodir __P((char **)); ++static int setmodir (char **); + #endif + +-static option_t *find_option __P((const char *name)); +-static int process_option __P((option_t *, char *, char **)); +-static int n_arguments __P((option_t *)); +-static int number_option __P((char *, u_int32_t *, int)); ++static option_t *find_option (const char *name); ++static int process_option (option_t *, char *, char **); ++static int n_arguments (option_t *); ++static int number_option (char *, u_int32_t *, int); + + /* + * Structure to store extra lists of options. +@@ -577,13 +577,13 @@ match_option(name, opt, dowild) + option_t *opt; + int dowild; + { +- int (*match) __P((char *, char **, int)); ++ int (*match) (char *, char **, int); + + if (dowild != (opt->type == o_wild)) + return 0; + if (!dowild) + return strcmp(name, opt->name) == 0; +- match = (int (*) __P((char *, char **, int))) opt->addr; ++ match = (int (*) (char *, char **, int)) opt->addr; + return (*match)(name, NULL, 0); + } + +@@ -635,8 +635,8 @@ process_option(opt, cmd, argv) + u_int32_t v; + int iv, a; + char *sv; +- int (*parser) __P((char **)); +- int (*wildp) __P((char *, char **, int)); ++ int (*parser) (char **); ++ int (*wildp) (char *, char **, int); + char *optopt = (opt->type == o_wild)? "": " option"; + int prio = option_priority; + option_t *mainopt = opt; +@@ -767,7 +767,7 @@ process_option(opt, cmd, argv) + + case o_special_noarg: + case o_special: +- parser = (int (*) __P((char **))) opt->addr; ++ parser = (int (*) (char **)) opt->addr; + if (!(*parser)(argv)) + return 0; + if (opt->flags & OPT_A2LIST) { +@@ -790,7 +790,7 @@ process_option(opt, cmd, argv) + break; + + case o_wild: +- wildp = (int (*) __P((char *, char **, int))) opt->addr; ++ wildp = (int (*) (char *, char **, int)) opt->addr; + if (!(*wildp)(cmd, argv, 1)) + return 0; + break; +@@ -881,7 +881,7 @@ check_options() + static void + print_option(opt, mainopt, printer, arg) + option_t *opt, *mainopt; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + int i, v; +@@ -944,12 +944,12 @@ print_option(opt, mainopt, printer, arg) + printer(arg, " "); + } + if (opt->flags & OPT_A2PRINTER) { +- void (*oprt) __P((option_t *, ++ void (*oprt) (option_t *, + void ((*)__P((void *, char *, ...))), +- void *)); +- oprt = (void (*) __P((option_t *, ++ void *); ++ oprt = (void (*) (option_t *, + void ((*)__P((void *, char *, ...))), +- void *)))opt->addr2; ++ void *))opt->addr2; + (*oprt)(opt, printer, arg); + } else if (opt->flags & OPT_A2STRVAL) { + p = (char *) opt->addr2; +@@ -986,7 +986,7 @@ print_option(opt, mainopt, printer, arg) + static void + print_option_list(opt, printer, arg) + option_t *opt; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + while (opt->name != NULL) { +@@ -1004,7 +1004,7 @@ print_option_list(opt, printer, arg) + */ + void + print_options(printer, arg) +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + struct option_list *list; +@@ -1576,7 +1576,7 @@ loadplugin(argv) + char *arg = *argv; + void *handle; + const char *err; +- void (*init) __P((void)); ++ void (*init) (void); + char *path = arg; + const char *vers; + diff --git a/package/ppp/patches/patch-pppd_plugins_radius_radiusclient_h b/package/ppp/patches/patch-pppd_plugins_radius_radiusclient_h new file mode 100644 index 000000000..6c6d1582c --- /dev/null +++ b/package/ppp/patches/patch-pppd_plugins_radius_radiusclient_h @@ -0,0 +1,121 @@ +--- ppp-2.4.5.orig/pppd/plugins/radius/radiusclient.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/plugins/radius/radiusclient.h 2014-03-17 16:13:11.000000000 +0100 +@@ -382,74 +382,74 @@ typedef struct env + + /* avpair.c */ + +-VALUE_PAIR *rc_avpair_add __P((VALUE_PAIR **, int, void *, int, int)); +-int rc_avpair_assign __P((VALUE_PAIR *, void *, int)); +-VALUE_PAIR *rc_avpair_new __P((int, void *, int, int)); +-VALUE_PAIR *rc_avpair_gen __P((AUTH_HDR *)); +-VALUE_PAIR *rc_avpair_get __P((VALUE_PAIR *, UINT4)); +-VALUE_PAIR *rc_avpair_copy __P((VALUE_PAIR *)); +-void rc_avpair_insert __P((VALUE_PAIR **, VALUE_PAIR *, VALUE_PAIR *)); +-void rc_avpair_free __P((VALUE_PAIR *)); +-int rc_avpair_parse __P((char *, VALUE_PAIR **)); +-int rc_avpair_tostr __P((VALUE_PAIR *, char *, int, char *, int)); +-VALUE_PAIR *rc_avpair_readin __P((FILE *)); ++VALUE_PAIR *rc_avpair_add (VALUE_PAIR **, int, void *, int, int); ++int rc_avpair_assign (VALUE_PAIR *, void *, int); ++VALUE_PAIR *rc_avpair_new (int, void *, int, int); ++VALUE_PAIR *rc_avpair_gen (AUTH_HDR *); ++VALUE_PAIR *rc_avpair_get (VALUE_PAIR *, UINT4); ++VALUE_PAIR *rc_avpair_copy (VALUE_PAIR *); ++void rc_avpair_insert (VALUE_PAIR **, VALUE_PAIR *, VALUE_PAIR *); ++void rc_avpair_free (VALUE_PAIR *); ++int rc_avpair_parse (char *, VALUE_PAIR **); ++int rc_avpair_tostr (VALUE_PAIR *, char *, int, char *, int); ++VALUE_PAIR *rc_avpair_readin (FILE *); + + /* buildreq.c */ + +-void rc_buildreq __P((SEND_DATA *, int, char *, unsigned short, int, int)); +-unsigned char rc_get_seqnbr __P((void)); +-int rc_auth __P((UINT4, VALUE_PAIR *, VALUE_PAIR **, char *, REQUEST_INFO *)); +-int rc_auth_using_server __P((SERVER *, UINT4, VALUE_PAIR *, VALUE_PAIR **, +- char *, REQUEST_INFO *)); +-int rc_auth_proxy __P((VALUE_PAIR *, VALUE_PAIR **, char *)); +-int rc_acct __P((UINT4, VALUE_PAIR *)); +-int rc_acct_using_server __P((SERVER *, UINT4, VALUE_PAIR *)); +-int rc_acct_proxy __P((VALUE_PAIR *)); +-int rc_check __P((char *, unsigned short, char *)); ++void rc_buildreq (SEND_DATA *, int, char *, unsigned short, int, int); ++unsigned char rc_get_seqnbr (void); ++int rc_auth (UINT4, VALUE_PAIR *, VALUE_PAIR **, char *, REQUEST_INFO *); ++int rc_auth_using_server (SERVER *, UINT4, VALUE_PAIR *, VALUE_PAIR **, ++ char *, REQUEST_INFO *); ++int rc_auth_proxy (VALUE_PAIR *, VALUE_PAIR **, char *); ++int rc_acct (UINT4, VALUE_PAIR *); ++int rc_acct_using_server (SERVER *, UINT4, VALUE_PAIR *); ++int rc_acct_proxy (VALUE_PAIR *); ++int rc_check (char *, unsigned short, char *); + + /* clientid.c */ + +-int rc_read_mapfile __P((char *)); +-UINT4 rc_map2id __P((char *)); ++int rc_read_mapfile (char *); ++UINT4 rc_map2id (char *); + + /* config.c */ + +-int rc_read_config __P((char *)); +-char *rc_conf_str __P((char *)); +-int rc_conf_int __P((char *)); +-SERVER *rc_conf_srv __P((char *)); +-int rc_find_server __P((char *, UINT4 *, char *)); ++int rc_read_config (char *); ++char *rc_conf_str (char *); ++int rc_conf_int (char *); ++SERVER *rc_conf_srv (char *); ++int rc_find_server (char *, UINT4 *, char *); + + /* dict.c */ + +-int rc_read_dictionary __P((char *)); +-DICT_ATTR *rc_dict_getattr __P((int, int)); +-DICT_ATTR *rc_dict_findattr __P((char *)); +-DICT_VALUE *rc_dict_findval __P((char *)); +-DICT_VALUE * rc_dict_getval __P((UINT4, char *)); +-VENDOR_DICT * rc_dict_findvendor __P((char *)); +-VENDOR_DICT * rc_dict_getvendor __P((int)); ++int rc_read_dictionary (char *); ++DICT_ATTR *rc_dict_getattr (int, int); ++DICT_ATTR *rc_dict_findattr (char *); ++DICT_VALUE *rc_dict_findval (char *); ++DICT_VALUE * rc_dict_getval (UINT4, char *); ++VENDOR_DICT * rc_dict_findvendor (char *); ++VENDOR_DICT * rc_dict_getvendor (int); + + /* ip_util.c */ + +-UINT4 rc_get_ipaddr __P((char *)); +-int rc_good_ipaddr __P((char *)); +-const char *rc_ip_hostname __P((UINT4)); +-UINT4 rc_own_ipaddress __P((void)); ++UINT4 rc_get_ipaddr (char *); ++int rc_good_ipaddr (char *); ++const char *rc_ip_hostname (UINT4); ++UINT4 rc_own_ipaddress (void); + + + /* sendserver.c */ + +-int rc_send_server __P((SEND_DATA *, char *, REQUEST_INFO *)); ++int rc_send_server (SEND_DATA *, char *, REQUEST_INFO *); + + /* util.c */ + +-void rc_str2tm __P((char *, struct tm *)); +-char *rc_mksid __P((void)); +-void rc_mdelay __P((int)); ++void rc_str2tm (char *, struct tm *); ++char *rc_mksid (void); ++void rc_mdelay (int); + + /* md5.c */ + +-void rc_md5_calc __P((unsigned char *, unsigned char *, unsigned int)); ++void rc_md5_calc (unsigned char *, unsigned char *, unsigned int); + + #endif /* RADIUSCLIENT_H */ diff --git a/package/ppp/patches/patch-pppd_plugins_rp-pppoe_if_c b/package/ppp/patches/patch-pppd_plugins_rp-pppoe_if_c new file mode 100644 index 000000000..462b24613 --- /dev/null +++ b/package/ppp/patches/patch-pppd_plugins_rp-pppoe_if_c @@ -0,0 +1,13 @@ +--- ppp-2.4.5.orig/pppd/plugins/rp-pppoe/if.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/plugins/rp-pppoe/if.c 2014-03-17 16:32:55.000000000 +0100 +@@ -30,10 +30,6 @@ static char const RCSID[] = + #include <linux/if_packet.h> + #endif + +-#ifdef HAVE_NET_ETHERNET_H +-#include <net/ethernet.h> +-#endif +- + #ifdef HAVE_ASM_TYPES_H + #include <asm/types.h> + #endif diff --git a/package/ppp/patches/patch-pppd_plugins_rp-pppoe_plugin_c b/package/ppp/patches/patch-pppd_plugins_rp-pppoe_plugin_c new file mode 100644 index 000000000..9a2b922b2 --- /dev/null +++ b/package/ppp/patches/patch-pppd_plugins_rp-pppoe_plugin_c @@ -0,0 +1,10 @@ +--- ppp-2.4.5.orig/pppd/plugins/rp-pppoe/plugin.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/plugins/rp-pppoe/plugin.c 2014-03-17 16:32:55.000000000 +0100 +@@ -46,7 +46,6 @@ static char const RCSID[] = + #include <unistd.h> + #include <fcntl.h> + #include <signal.h> +-#include <net/ethernet.h> + #include <net/if_arp.h> + #include <linux/ppp_defs.h> + #include <linux/if_ppp.h> diff --git a/package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe-discovery_c b/package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe-discovery_c new file mode 100644 index 000000000..6b79ad968 --- /dev/null +++ b/package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe-discovery_c @@ -0,0 +1,22 @@ +--- ppp-2.4.5.orig/pppd/plugins/rp-pppoe/pppoe-discovery.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/plugins/rp-pppoe/pppoe-discovery.c 2014-03-17 16:32:55.000000000 +0100 +@@ -27,10 +27,6 @@ + #include <linux/if_packet.h> + #endif + +-#ifdef HAVE_NET_ETHERNET_H +-#include <net/ethernet.h> +-#endif +- + #ifdef HAVE_ASM_TYPES_H + #include <asm/types.h> + #endif +@@ -55,6 +51,8 @@ void die(int status) + exit(status); + } + ++#define error(x...) fprintf(stderr, x) ++ + /* Initialize frame types to RFC 2516 values. Some broken peers apparently + use different frame types... sigh... */ + diff --git a/package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe_h b/package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe_h new file mode 100644 index 000000000..9597ff314 --- /dev/null +++ b/package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe_h @@ -0,0 +1,29 @@ +--- ppp-2.4.5.orig/pppd/plugins/rp-pppoe/pppoe.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/plugins/rp-pppoe/pppoe.h 2014-03-17 16:32:55.000000000 +0100 +@@ -40,7 +40,6 @@ + #endif + + #ifdef HAVE_SYS_CDEFS_H +-#include <sys/cdefs.h> + #endif + + #ifdef HAVE_SYS_SOCKET_H +@@ -86,18 +85,6 @@ typedef unsigned long UINT32_t; + + #include <netinet/in.h> + +-#ifdef HAVE_NETINET_IF_ETHER_H +-#include <sys/types.h> +- +-#ifdef HAVE_SYS_SOCKET_H +-#include <sys/socket.h> +-#endif +-#ifndef HAVE_SYS_DLPI_H +-#include <netinet/if_ether.h> +-#endif +-#endif +- +- + + /* Ethernet frame types according to RFC 2516 */ + #define ETH_PPPOE_DISCOVERY 0x8863 diff --git a/package/ppp/patches/patch-pppd_pppcrypt_h b/package/ppp/patches/patch-pppd_pppcrypt_h new file mode 100644 index 000000000..53cac9746 --- /dev/null +++ b/package/ppp/patches/patch-pppd_pppcrypt_h @@ -0,0 +1,14 @@ +--- ppp-2.4.5.orig/pppd/pppcrypt.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/pppcrypt.h 2014-03-17 16:13:13.000000000 +0100 +@@ -41,8 +41,8 @@ + #include <des.h> + #endif + +-extern bool DesSetkey __P((u_char *)); +-extern bool DesEncrypt __P((u_char *, u_char *)); +-extern bool DesDecrypt __P((u_char *, u_char *)); ++extern bool DesSetkey (u_char *); ++extern bool DesEncrypt (u_char *, u_char *); ++extern bool DesDecrypt (u_char *, u_char *); + + #endif /* PPPCRYPT_H */ diff --git a/package/ppp/patches/patch-pppd_pppd_h b/package/ppp/patches/patch-pppd_pppd_h new file mode 100644 index 000000000..85e81b675 --- /dev/null +++ b/package/ppp/patches/patch-pppd_pppd_h @@ -0,0 +1,532 @@ +--- ppp-2.4.5.orig/pppd/pppd.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/pppd.h 2014-03-17 16:13:14.000000000 +0100 +@@ -198,7 +198,7 @@ struct epdisc { + #define EPD_MAGIC 4 + #define EPD_PHONENUM 5 + +-typedef void (*notify_func) __P((void *, int)); ++typedef void (*notify_func) (void *, int); + + struct notifier { + struct notifier *next; +@@ -392,35 +392,35 @@ extern int option_priority; /* priority + struct protent { + u_short protocol; /* PPP protocol number */ + /* Initialization procedure */ +- void (*init) __P((int unit)); ++ void (*init) (int unit); + /* Process a received packet */ +- void (*input) __P((int unit, u_char *pkt, int len)); ++ void (*input) (int unit, u_char *pkt, int len); + /* Process a received protocol-reject */ +- void (*protrej) __P((int unit)); ++ void (*protrej) (int unit); + /* Lower layer has come up */ +- void (*lowerup) __P((int unit)); ++ void (*lowerup) (int unit); + /* Lower layer has gone down */ +- void (*lowerdown) __P((int unit)); ++ void (*lowerdown) (int unit); + /* Open the protocol */ +- void (*open) __P((int unit)); ++ void (*open) (int unit); + /* Close the protocol */ +- void (*close) __P((int unit, char *reason)); ++ void (*close) (int unit, char *reason); + /* Print a packet in readable form */ +- int (*printpkt) __P((u_char *pkt, int len, ++ int (*printpkt) (u_char *pkt, int len, + void (*printer) __P((void *, char *, ...)), +- void *arg)); ++ void *arg); + /* Process a received data packet */ +- void (*datainput) __P((int unit, u_char *pkt, int len)); ++ void (*datainput) (int unit, u_char *pkt, int len); + bool enabled_flag; /* 0 iff protocol is disabled */ + char *name; /* Text name of protocol */ + char *data_name; /* Text name of corresponding data protocol */ + option_t *options; /* List of command-line options */ + /* Check requested options, assign defaults */ +- void (*check_options) __P((void)); ++ void (*check_options) (void); + /* Configure interface for demand-dial */ +- int (*demand_conf) __P((int unit)); ++ int (*demand_conf) (int unit); + /* Say whether to bring up link for this pkt */ +- int (*active_pkt) __P((u_char *pkt, int len)); ++ int (*active_pkt) (u_char *pkt, int len); + }; + + /* Table of pointers to supported protocols */ +@@ -437,25 +437,25 @@ struct channel { + /* set of options for this channel */ + option_t *options; + /* find and process a per-channel options file */ +- void (*process_extra_options) __P((void)); ++ void (*process_extra_options) (void); + /* check all the options that have been given */ +- void (*check_options) __P((void)); ++ void (*check_options) (void); + /* get the channel ready to do PPP, return a file descriptor */ +- int (*connect) __P((void)); ++ int (*connect) (void); + /* we're finished with the channel */ +- void (*disconnect) __P((void)); ++ void (*disconnect) (void); + /* put the channel into PPP `mode' */ +- int (*establish_ppp) __P((int)); ++ int (*establish_ppp) (int); + /* take the channel out of PPP `mode', restore loopback if demand */ +- void (*disestablish_ppp) __P((int)); ++ void (*disestablish_ppp) (int); + /* set the transmit-side PPP parameters of the channel */ +- void (*send_config) __P((int, u_int32_t, int, int)); ++ void (*send_config) (int, u_int32_t, int, int); + /* set the receive-side PPP parameters of the channel */ +- void (*recv_config) __P((int, u_int32_t, int, int)); ++ void (*recv_config) (int, u_int32_t, int, int); + /* cleanup on error or normal exit */ +- void (*cleanup) __P((void)); ++ void (*cleanup) (void); + /* close the device, called in children after fork */ +- void (*close) __P((void)); ++ void (*close) (void); + }; + + extern struct channel *the_channel; +@@ -465,117 +465,117 @@ extern struct channel *the_channel; + */ + + /* Procedures exported from main.c. */ +-void set_ifunit __P((int)); /* set stuff that depends on ifunit */ +-void detach __P((void)); /* Detach from controlling tty */ +-void die __P((int)); /* Cleanup and exit */ +-void quit __P((void)); /* like die(1) */ +-void novm __P((char *)); /* Say we ran out of memory, and die */ +-void timeout __P((void (*func)(void *), void *arg, int s, int us)); ++void set_ifunit (int); /* set stuff that depends on ifunit */ ++void detach (void); /* Detach from controlling tty */ ++void die (int); /* Cleanup and exit */ ++void quit (void); /* like die(1) */ ++void novm (char *); /* Say we ran out of memory, and die */ ++void timeout (void (*func)(void *), void *arg, int s, int us); + /* Call func(arg) after s.us seconds */ +-void untimeout __P((void (*func)(void *), void *arg)); ++void untimeout (void (*func)(void *), void *arg); + /* Cancel call to func(arg) */ +-void record_child __P((int, char *, void (*) (void *), void *, int)); +-pid_t safe_fork __P((int, int, int)); /* Fork & close stuff in child */ +-int device_script __P((char *cmd, int in, int out, int dont_wait)); ++void record_child (int, char *, void (*) (void *), void *, int); ++pid_t safe_fork (int, int, int); /* Fork & close stuff in child */ ++int device_script (char *cmd, int in, int out, int dont_wait); + /* Run `cmd' with given stdin and stdout */ +-pid_t run_program __P((char *prog, char **args, int must_exist, +- void (*done)(void *), void *arg, int wait)); ++pid_t run_program (char *prog, char **args, int must_exist, ++ void (*done)(void *), void *arg, int wait); + /* Run program prog with args in child */ +-void reopen_log __P((void)); /* (re)open the connection to syslog */ +-void print_link_stats __P((void)); /* Print stats, if available */ +-void reset_link_stats __P((int)); /* Reset (init) stats when link goes up */ +-void update_link_stats __P((int)); /* Get stats at link termination */ +-void script_setenv __P((char *, char *, int)); /* set script env var */ +-void script_unsetenv __P((char *)); /* unset script env var */ +-void new_phase __P((int)); /* signal start of new phase */ +-void add_notifier __P((struct notifier **, notify_func, void *)); +-void remove_notifier __P((struct notifier **, notify_func, void *)); +-void notify __P((struct notifier *, int)); +-int ppp_send_config __P((int, int, u_int32_t, int, int)); +-int ppp_recv_config __P((int, int, u_int32_t, int, int)); +-const char *protocol_name __P((int)); +-void remove_pidfiles __P((void)); +-void lock_db __P((void)); +-void unlock_db __P((void)); ++void reopen_log (void); /* (re)open the connection to syslog */ ++void print_link_stats (void); /* Print stats, if available */ ++void reset_link_stats (int); /* Reset (init) stats when link goes up */ ++void update_link_stats (int); /* Get stats at link termination */ ++void script_setenv (char *, char *, int); /* set script env var */ ++void script_unsetenv (char *); /* unset script env var */ ++void new_phase (int); /* signal start of new phase */ ++void add_notifier (struct notifier **, notify_func, void *); ++void remove_notifier (struct notifier **, notify_func, void *); ++void notify (struct notifier *, int); ++int ppp_send_config (int, int, u_int32_t, int, int); ++int ppp_recv_config (int, int, u_int32_t, int, int); ++const char *protocol_name (int); ++void remove_pidfiles (void); ++void lock_db (void); ++void unlock_db (void); + + /* Procedures exported from tty.c. */ +-void tty_init __P((void)); ++void tty_init (void); + + /* Procedures exported from utils.c. */ +-void log_packet __P((u_char *, int, char *, int)); ++void log_packet (u_char *, int, char *, int); + /* Format a packet and log it with syslog */ +-void print_string __P((char *, int, void (*) (void *, char *, ...), +- void *)); /* Format a string for output */ +-int slprintf __P((char *, int, char *, ...)); /* sprintf++ */ +-int vslprintf __P((char *, int, char *, va_list)); /* vsprintf++ */ +-size_t strlcpy __P((char *, const char *, size_t)); /* safe strcpy */ +-size_t strlcat __P((char *, const char *, size_t)); /* safe strncpy */ +-void dbglog __P((char *, ...)); /* log a debug message */ +-void info __P((char *, ...)); /* log an informational message */ +-void notice __P((char *, ...)); /* log a notice-level message */ +-void warn __P((char *, ...)); /* log a warning message */ +-void error __P((char *, ...)); /* log an error message */ +-void fatal __P((char *, ...)); /* log an error message and die(1) */ +-void init_pr_log __P((const char *, int)); /* initialize for using pr_log */ +-void pr_log __P((void *, char *, ...)); /* printer fn, output to syslog */ +-void end_pr_log __P((void)); /* finish up after using pr_log */ +-void dump_packet __P((const char *, u_char *, int)); ++void print_string (char *, int, void (*) (void *, char *, ...), ++ void *); /* Format a string for output */ ++int slprintf (char *, int, char *, ...); /* sprintf++ */ ++int vslprintf (char *, int, char *, va_list); /* vsprintf++ */ ++size_t strlcpy (char *, const char *, size_t); /* safe strcpy */ ++size_t strlcat (char *, const char *, size_t); /* safe strncpy */ ++void dbglog (char *, ...); /* log a debug message */ ++void info (char *, ...); /* log an informational message */ ++void notice (char *, ...); /* log a notice-level message */ ++void warn (char *, ...); /* log a warning message */ ++void error (char *, ...); /* log an error message */ ++void fatal (char *, ...); /* log an error message and die(1) */ ++void init_pr_log (const char *, int); /* initialize for using pr_log */ ++void pr_log (void *, char *, ...); /* printer fn, output to syslog */ ++void end_pr_log (void); /* finish up after using pr_log */ ++void dump_packet (const char *, u_char *, int); + /* dump packet to debug log if interesting */ +-ssize_t complete_read __P((int, void *, size_t)); ++ssize_t complete_read (int, void *, size_t); + /* read a complete buffer */ + + /* Procedures exported from auth.c */ +-void link_required __P((int)); /* we are starting to use the link */ +-void start_link __P((int)); /* bring the link up now */ +-void link_terminated __P((int)); /* we are finished with the link */ +-void link_down __P((int)); /* the LCP layer has left the Opened state */ +-void upper_layers_down __P((int));/* take all NCPs down */ +-void link_established __P((int)); /* the link is up; authenticate now */ +-void start_networks __P((int)); /* start all the network control protos */ +-void continue_networks __P((int)); /* start network [ip, etc] control protos */ +-void np_up __P((int, int)); /* a network protocol has come up */ +-void np_down __P((int, int)); /* a network protocol has gone down */ +-void np_finished __P((int, int)); /* a network protocol no longer needs link */ +-void auth_peer_fail __P((int, int)); ++void link_required (int); /* we are starting to use the link */ ++void start_link (int); /* bring the link up now */ ++void link_terminated (int); /* we are finished with the link */ ++void link_down (int); /* the LCP layer has left the Opened state */ ++void upper_layers_down (int);/* take all NCPs down */ ++void link_established (int); /* the link is up; authenticate now */ ++void start_networks (int); /* start all the network control protos */ ++void continue_networks (int); /* start network [ip, etc] control protos */ ++void np_up (int, int); /* a network protocol has come up */ ++void np_down (int, int); /* a network protocol has gone down */ ++void np_finished (int, int); /* a network protocol no longer needs link */ ++void auth_peer_fail (int, int); + /* peer failed to authenticate itself */ +-void auth_peer_success __P((int, int, int, char *, int)); ++void auth_peer_success (int, int, int, char *, int); + /* peer successfully authenticated itself */ +-void auth_withpeer_fail __P((int, int)); ++void auth_withpeer_fail (int, int); + /* we failed to authenticate ourselves */ +-void auth_withpeer_success __P((int, int, int)); ++void auth_withpeer_success (int, int, int); + /* we successfully authenticated ourselves */ +-void auth_check_options __P((void)); ++void auth_check_options (void); + /* check authentication options supplied */ +-void auth_reset __P((int)); /* check what secrets we have */ +-int check_passwd __P((int, char *, int, char *, int, char **)); ++void auth_reset (int); /* check what secrets we have */ ++int check_passwd (int, char *, int, char *, int, char **); + /* Check peer-supplied username/password */ +-int get_secret __P((int, char *, char *, char *, int *, int)); ++int get_secret (int, char *, char *, char *, int *, int); + /* get "secret" for chap */ +-int get_srp_secret __P((int unit, char *client, char *server, char *secret, +- int am_server)); +-int auth_ip_addr __P((int, u_int32_t)); ++int get_srp_secret (int unit, char *client, char *server, char *secret, ++ int am_server); ++int auth_ip_addr (int, u_int32_t); + /* check if IP address is authorized */ +-int auth_number __P((void)); /* check if remote number is authorized */ +-int bad_ip_adrs __P((u_int32_t)); ++int auth_number (void); /* check if remote number is authorized */ ++int bad_ip_adrs (u_int32_t); + /* check if IP address is unreasonable */ + + /* Procedures exported from demand.c */ +-void demand_conf __P((void)); /* config interface(s) for demand-dial */ +-void demand_block __P((void)); /* set all NPs to queue up packets */ +-void demand_unblock __P((void)); /* set all NPs to pass packets */ +-void demand_discard __P((void)); /* set all NPs to discard packets */ +-void demand_rexmit __P((int)); /* retransmit saved frames for an NP */ +-int loop_chars __P((unsigned char *, int)); /* process chars from loopback */ +-int loop_frame __P((unsigned char *, int)); /* should we bring link up? */ ++void demand_conf (void); /* config interface(s) for demand-dial */ ++void demand_block (void); /* set all NPs to queue up packets */ ++void demand_unblock (void); /* set all NPs to pass packets */ ++void demand_discard (void); /* set all NPs to discard packets */ ++void demand_rexmit (int); /* retransmit saved frames for an NP */ ++int loop_chars (unsigned char *, int); /* process chars from loopback */ ++int loop_frame (unsigned char *, int); /* should we bring link up? */ + + /* Procedures exported from multilink.c */ + #ifdef HAVE_MULTILINK +-void mp_check_options __P((void)); /* Check multilink-related options */ +-int mp_join_bundle __P((void)); /* join our link to an appropriate bundle */ +-void mp_exit_bundle __P((void)); /* have disconnected our link from bundle */ +-void mp_bundle_terminated __P((void)); +-char *epdisc_to_str __P((struct epdisc *)); /* string from endpoint discrim. */ +-int str_to_epdisc __P((struct epdisc *, char *)); /* endpt disc. from str */ ++void mp_check_options (void); /* Check multilink-related options */ ++int mp_join_bundle (void); /* join our link to an appropriate bundle */ ++void mp_exit_bundle (void); /* have disconnected our link from bundle */ ++void mp_bundle_terminated (void); ++char *epdisc_to_str (struct epdisc *); /* string from endpoint discrim. */ ++int str_to_epdisc (struct epdisc *, char *); /* endpt disc. from str */ + #else + #define mp_bundle_terminated() /* nothing */ + #define mp_exit_bundle() /* nothing */ +@@ -584,142 +584,142 @@ int str_to_epdisc __P((struct epdisc *, + #endif + + /* Procedures exported from sys-*.c */ +-void sys_init __P((void)); /* Do system-dependent initialization */ +-void sys_cleanup __P((void)); /* Restore system state before exiting */ +-int sys_check_options __P((void)); /* Check options specified */ +-void sys_close __P((void)); /* Clean up in a child before execing */ +-int ppp_available __P((void)); /* Test whether ppp kernel support exists */ +-int get_pty __P((int *, int *, char *, int)); /* Get pty master/slave */ +-int open_ppp_loopback __P((void)); /* Open loopback for demand-dialling */ +-int tty_establish_ppp __P((int)); /* Turn serial port into a ppp interface */ +-void tty_disestablish_ppp __P((int)); /* Restore port to normal operation */ +-void generic_disestablish_ppp __P((int dev_fd)); /* Restore device setting */ +-int generic_establish_ppp __P((int dev_fd)); /* Make a ppp interface */ +-void make_new_bundle __P((int, int, int, int)); /* Create new bundle */ +-int bundle_attach __P((int)); /* Attach link to existing bundle */ +-void cfg_bundle __P((int, int, int, int)); /* Configure existing bundle */ +-void destroy_bundle __P((void)); /* Tell driver to destroy bundle */ +-void clean_check __P((void)); /* Check if line was 8-bit clean */ +-void set_up_tty __P((int, int)); /* Set up port's speed, parameters, etc. */ +-void restore_tty __P((int)); /* Restore port's original parameters */ +-void setdtr __P((int, int)); /* Raise or lower port's DTR line */ +-void output __P((int, u_char *, int)); /* Output a PPP packet */ +-void wait_input __P((struct timeval *)); ++void sys_init (void); /* Do system-dependent initialization */ ++void sys_cleanup (void); /* Restore system state before exiting */ ++int sys_check_options (void); /* Check options specified */ ++void sys_close (void); /* Clean up in a child before execing */ ++int ppp_available (void); /* Test whether ppp kernel support exists */ ++int get_pty (int *, int *, char *, int); /* Get pty master/slave */ ++int open_ppp_loopback (void); /* Open loopback for demand-dialling */ ++int tty_establish_ppp (int); /* Turn serial port into a ppp interface */ ++void tty_disestablish_ppp (int); /* Restore port to normal operation */ ++void generic_disestablish_ppp (int dev_fd); /* Restore device setting */ ++int generic_establish_ppp (int dev_fd); /* Make a ppp interface */ ++void make_new_bundle (int, int, int, int); /* Create new bundle */ ++int bundle_attach (int); /* Attach link to existing bundle */ ++void cfg_bundle (int, int, int, int); /* Configure existing bundle */ ++void destroy_bundle (void); /* Tell driver to destroy bundle */ ++void clean_check (void); /* Check if line was 8-bit clean */ ++void set_up_tty (int, int); /* Set up port's speed, parameters, etc. */ ++void restore_tty (int); /* Restore port's original parameters */ ++void setdtr (int, int); /* Raise or lower port's DTR line */ ++void output (int, u_char *, int); /* Output a PPP packet */ ++void wait_input (struct timeval *); + /* Wait for input, with timeout */ +-void add_fd __P((int)); /* Add fd to set to wait for */ +-void remove_fd __P((int)); /* Remove fd from set to wait for */ +-int read_packet __P((u_char *)); /* Read PPP packet */ +-int get_loop_output __P((void)); /* Read pkts from loopback */ +-void tty_send_config __P((int, u_int32_t, int, int)); ++void add_fd (int); /* Add fd to set to wait for */ ++void remove_fd (int); /* Remove fd from set to wait for */ ++int read_packet (u_char *); /* Read PPP packet */ ++int get_loop_output (void); /* Read pkts from loopback */ ++void tty_send_config (int, u_int32_t, int, int); + /* Configure i/f transmit parameters */ +-void tty_set_xaccm __P((ext_accm)); ++void tty_set_xaccm (ext_accm); + /* Set extended transmit ACCM */ +-void tty_recv_config __P((int, u_int32_t, int, int)); ++void tty_recv_config (int, u_int32_t, int, int); + /* Configure i/f receive parameters */ +-int ccp_test __P((int, u_char *, int, int)); ++int ccp_test (int, u_char *, int, int); + /* Test support for compression scheme */ +-void ccp_flags_set __P((int, int, int)); ++void ccp_flags_set (int, int, int); + /* Set kernel CCP state */ +-int ccp_fatal_error __P((int)); /* Test for fatal decomp error in kernel */ +-int get_idle_time __P((int, struct ppp_idle *)); ++int ccp_fatal_error (int); /* Test for fatal decomp error in kernel */ ++int get_idle_time (int, struct ppp_idle *); + /* Find out how long link has been idle */ +-int get_ppp_stats __P((int, struct pppd_stats *)); ++int get_ppp_stats (int, struct pppd_stats *); + /* Return link statistics */ +-void netif_set_mtu __P((int, int)); /* Set PPP interface MTU */ +-int netif_get_mtu __P((int)); /* Get PPP interface MTU */ +-int sifvjcomp __P((int, int, int, int)); ++void netif_set_mtu (int, int); /* Set PPP interface MTU */ ++int netif_get_mtu (int); /* Get PPP interface MTU */ ++int sifvjcomp (int, int, int, int); + /* Configure VJ TCP header compression */ +-int sifup __P((int)); /* Configure i/f up for one protocol */ +-int sifnpmode __P((int u, int proto, enum NPmode mode)); ++int sifup (int); /* Configure i/f up for one protocol */ ++int sifnpmode (int u, int proto, enum NPmode mode); + /* Set mode for handling packets for proto */ +-int sifdown __P((int)); /* Configure i/f down for one protocol */ +-int sifaddr __P((int, u_int32_t, u_int32_t, u_int32_t)); ++int sifdown (int); /* Configure i/f down for one protocol */ ++int sifaddr (int, u_int32_t, u_int32_t, u_int32_t); + /* Configure IPv4 addresses for i/f */ +-int cifaddr __P((int, u_int32_t, u_int32_t)); ++int cifaddr (int, u_int32_t, u_int32_t); + /* Reset i/f IP addresses */ + #ifdef INET6 +-int sif6addr __P((int, eui64_t, eui64_t)); ++int sif6addr (int, eui64_t, eui64_t); + /* Configure IPv6 addresses for i/f */ +-int cif6addr __P((int, eui64_t, eui64_t)); ++int cif6addr (int, eui64_t, eui64_t); + /* Remove an IPv6 address from i/f */ + #endif +-int sifdefaultroute __P((int, u_int32_t, u_int32_t)); ++int sifdefaultroute (int, u_int32_t, u_int32_t); + /* Create default route through i/f */ +-int cifdefaultroute __P((int, u_int32_t, u_int32_t)); ++int cifdefaultroute (int, u_int32_t, u_int32_t); + /* Delete default route through i/f */ +-int sifproxyarp __P((int, u_int32_t)); ++int sifproxyarp (int, u_int32_t); + /* Add proxy ARP entry for peer */ +-int cifproxyarp __P((int, u_int32_t)); ++int cifproxyarp (int, u_int32_t); + /* Delete proxy ARP entry for peer */ +-u_int32_t GetMask __P((u_int32_t)); /* Get appropriate netmask for address */ +-int lock __P((char *)); /* Create lock file for device */ +-int relock __P((int)); /* Rewrite lock file with new pid */ +-void unlock __P((void)); /* Delete previously-created lock file */ +-void logwtmp __P((const char *, const char *, const char *)); ++u_int32_t GetMask (u_int32_t); /* Get appropriate netmask for address */ ++int lock (char *); /* Create lock file for device */ ++int relock (int); /* Rewrite lock file with new pid */ ++void unlock (void); /* Delete previously-created lock file */ ++void logwtmp (const char *, const char *, const char *); + /* Write entry to wtmp file */ +-int get_host_seed __P((void)); /* Get host-dependent random number seed */ +-int have_route_to __P((u_int32_t)); /* Check if route to addr exists */ ++int get_host_seed (void); /* Get host-dependent random number seed */ ++int have_route_to (u_int32_t); /* Check if route to addr exists */ + #ifdef PPP_FILTER +-int set_filters __P((struct bpf_program *pass, struct bpf_program *active)); ++int set_filters (struct bpf_program *pass, struct bpf_program *active); + /* Set filter programs in kernel */ + #endif + #ifdef IPX_CHANGE +-int sipxfaddr __P((int, unsigned long, unsigned char *)); +-int cipxfaddr __P((int)); ++int sipxfaddr (int, unsigned long, unsigned char *); ++int cipxfaddr (int); + #endif +-int get_if_hwaddr __P((u_char *addr, char *name)); +-char *get_first_ethernet __P((void)); ++int get_if_hwaddr (u_char *addr, char *name); ++char *get_first_ethernet (void); + + /* Procedures exported from options.c */ +-int setipaddr __P((char *, char **, int)); /* Set local/remote ip addresses */ +-int parse_args __P((int argc, char **argv)); ++int setipaddr (char *, char **, int); /* Set local/remote ip addresses */ ++int parse_args (int argc, char **argv); + /* Parse options from arguments given */ +-int options_from_file __P((char *filename, int must_exist, int check_prot, +- int privileged)); ++int options_from_file (char *filename, int must_exist, int check_prot, ++ int privileged); + /* Parse options from an options file */ +-int options_from_user __P((void)); /* Parse options from user's .ppprc */ +-int options_for_tty __P((void)); /* Parse options from /etc/ppp/options.tty */ +-int options_from_list __P((struct wordlist *, int privileged)); ++int options_from_user (void); /* Parse options from user's .ppprc */ ++int options_for_tty (void); /* Parse options from /etc/ppp/options.tty */ ++int options_from_list (struct wordlist *, int privileged); + /* Parse options from a wordlist */ +-int getword __P((FILE *f, char *word, int *newlinep, char *filename)); ++int getword (FILE *f, char *word, int *newlinep, char *filename); + /* Read a word from a file */ +-void option_error __P((char *fmt, ...)); ++void option_error (char *fmt, ...); + /* Print an error message about an option */ +-int int_option __P((char *, int *)); ++int int_option (char *, int *); + /* Simplified number_option for decimal ints */ +-void add_options __P((option_t *)); /* Add extra options */ +-void check_options __P((void)); /* check values after all options parsed */ +-int override_value __P((const char *, int, const char *)); ++void add_options (option_t *); /* Add extra options */ ++void check_options (void); /* check values after all options parsed */ ++int override_value (const char *, int, const char *); + /* override value if permitted by priority */ +-void print_options __P((void (*) __P((void *, char *, ...)), void *)); ++void print_options (void (*) __P((void *, char *, ...)), void *); + /* print out values of all options */ + +-int parse_dotted_ip __P((char *, u_int32_t *)); ++int parse_dotted_ip (char *, u_int32_t *); + + /* + * Hooks to enable plugins to change various things. + */ +-extern int (*new_phase_hook) __P((int)); +-extern int (*idle_time_hook) __P((struct ppp_idle *)); +-extern int (*holdoff_hook) __P((void)); +-extern int (*pap_check_hook) __P((void)); +-extern int (*pap_auth_hook) __P((char *user, char *passwd, char **msgp, ++extern int (*new_phase_hook) (int); ++extern int (*idle_time_hook) (struct ppp_idle *); ++extern int (*holdoff_hook) (void); ++extern int (*pap_check_hook) (void); ++extern int (*pap_auth_hook) (char *user, char *passwd, char **msgp, + struct wordlist **paddrs, +- struct wordlist **popts)); +-extern void (*pap_logout_hook) __P((void)); +-extern int (*pap_passwd_hook) __P((char *user, char *passwd)); +-extern int (*allowed_address_hook) __P((u_int32_t addr)); +-extern void (*ip_up_hook) __P((void)); +-extern void (*ip_down_hook) __P((void)); +-extern void (*ip_choose_hook) __P((u_int32_t *)); ++ struct wordlist **popts); ++extern void (*pap_logout_hook) (void); ++extern int (*pap_passwd_hook) (char *user, char *passwd); ++extern int (*allowed_address_hook) (u_int32_t addr); ++extern void (*ip_up_hook) (void); ++extern void (*ip_down_hook) (void); ++extern void (*ip_choose_hook) (u_int32_t *); + +-extern int (*chap_check_hook) __P((void)); +-extern int (*chap_passwd_hook) __P((char *user, char *passwd)); +-extern void (*multilink_join_hook) __P((void)); ++extern int (*chap_check_hook) (void); ++extern int (*chap_passwd_hook) (char *user, char *passwd); ++extern void (*multilink_join_hook) (void); + + /* Let a plugin snoop sent and received packets. Useful for L2TP */ +-extern void (*snoop_recv_hook) __P((unsigned char *p, int len)); +-extern void (*snoop_send_hook) __P((unsigned char *p, int len)); ++extern void (*snoop_recv_hook) (unsigned char *p, int len); ++extern void (*snoop_send_hook) (unsigned char *p, int len); + + /* + * Inline versions of get/put char/short/long. diff --git a/package/ppp/patches/patch-pppd_sys-linux_c b/package/ppp/patches/patch-pppd_sys-linux_c new file mode 100644 index 000000000..d64c41f9e --- /dev/null +++ b/package/ppp/patches/patch-pppd_sys-linux_c @@ -0,0 +1,22 @@ +--- ppp-2.4.5.orig/pppd/sys-linux.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/sys-linux.c 2014-03-17 16:32:55.000000000 +0100 +@@ -102,19 +102,11 @@ + #define MAX_ADDR_LEN 7 + #endif + +-#if __GLIBC__ >= 2 + #include <asm/types.h> /* glibc 2 conflicts with linux/types.h */ + #include <net/if.h> + #include <net/if_arp.h> + #include <net/route.h> + #include <netinet/if_ether.h> +-#else +-#include <linux/types.h> +-#include <linux/if.h> +-#include <linux/if_arp.h> +-#include <linux/route.h> +-#include <linux/if_ether.h> +-#endif + #include <netinet/in.h> + #include <arpa/inet.h> + diff --git a/package/ppp/patches/patch-pppd_sys-solaris_c b/package/ppp/patches/patch-pppd_sys-solaris_c new file mode 100644 index 000000000..66ee69cb8 --- /dev/null +++ b/package/ppp/patches/patch-pppd_sys-solaris_c @@ -0,0 +1,27 @@ +--- ppp-2.4.5.orig/pppd/sys-solaris.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/sys-solaris.c 2014-03-17 16:13:13.000000000 +0100 +@@ -241,15 +241,15 @@ static u_int32_t default_route_gateway; + static u_int32_t proxy_arp_addr; /* Addr for proxy arp entry added */ + + /* Prototypes for procedures local to this file. */ +-static int translate_speed __P((int)); +-static int baud_rate_of __P((int)); +-static int get_ether_addr __P((u_int32_t, struct sockaddr *)); +-static int get_hw_addr __P((char *, u_int32_t, struct sockaddr *)); +-static int get_hw_addr_dlpi __P((char *, struct sockaddr *)); +-static int dlpi_attach __P((int, int)); +-static int dlpi_info_req __P((int)); +-static int dlpi_get_reply __P((int, union DL_primitives *, int, int)); +-static int strioctl __P((int, int, void *, int, int)); ++static int translate_speed (int); ++static int baud_rate_of (int); ++static int get_ether_addr (u_int32_t, struct sockaddr *); ++static int get_hw_addr (char *, u_int32_t, struct sockaddr *); ++static int get_hw_addr_dlpi (char *, struct sockaddr *); ++static int dlpi_attach (int, int); ++static int dlpi_info_req (int); ++static int dlpi_get_reply (int, union DL_primitives *, int, int); ++static int strioctl (int, int, void *, int, int); + + #ifdef SOL2 + /* diff --git a/package/ppp/patches/patch-pppd_tty_c b/package/ppp/patches/patch-pppd_tty_c new file mode 100644 index 000000000..3588e439a --- /dev/null +++ b/package/ppp/patches/patch-pppd_tty_c @@ -0,0 +1,61 @@ +--- ppp-2.4.5.orig/pppd/tty.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/tty.c 2014-03-17 16:13:14.000000000 +0100 +@@ -98,28 +98,28 @@ + #include "fsm.h" + #include "lcp.h" + +-void tty_process_extra_options __P((void)); +-void tty_check_options __P((void)); +-int connect_tty __P((void)); +-void disconnect_tty __P((void)); +-void tty_close_fds __P((void)); +-void cleanup_tty __P((void)); +-void tty_do_send_config __P((int, u_int32_t, int, int)); ++void tty_process_extra_options (void); ++void tty_check_options (void); ++int connect_tty (void); ++void disconnect_tty (void); ++void tty_close_fds (void); ++void cleanup_tty (void); ++void tty_do_send_config (int, u_int32_t, int, int); + +-static int setdevname __P((char *, char **, int)); +-static int setspeed __P((char *, char **, int)); +-static int setxonxoff __P((char **)); +-static int setescape __P((char **)); +-static void printescape __P((option_t *, void (*)(void *, char *,...),void *)); +-static void finish_tty __P((void)); +-static int start_charshunt __P((int, int)); +-static void stop_charshunt __P((void *, int)); +-static void charshunt_done __P((void *)); +-static void charshunt __P((int, int, char *)); +-static int record_write __P((FILE *, int code, u_char *buf, int nb, +- struct timeval *)); +-static int open_socket __P((char *)); +-static void maybe_relock __P((void *, int)); ++static int setdevname (char *, char **, int); ++static int setspeed (char *, char **, int); ++static int setxonxoff (char **); ++static int setescape (char **); ++static void printescape (option_t *, void (*)(void *, char *,...),void *); ++static void finish_tty (void); ++static int start_charshunt (int, int); ++static void stop_charshunt (void *, int); ++static void charshunt_done (void *); ++static void charshunt (int, int, char *); ++static int record_write (FILE *, int code, u_char *buf, int nb, ++ struct timeval *); ++static int open_socket (char *); ++static void maybe_relock (void *, int); + + static int pty_master; /* fd for master side of pty */ + static int pty_slave; /* fd for slave side of pty */ +@@ -374,7 +374,7 @@ setescape(argv) + static void + printescape(opt, printer, arg) + option_t *opt; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + int n; diff --git a/package/ppp/patches/patch-pppd_upap_c b/package/ppp/patches/patch-pppd_upap_c new file mode 100644 index 000000000..cd6ca9d73 --- /dev/null +++ b/package/ppp/patches/patch-pppd_upap_c @@ -0,0 +1,53 @@ +--- ppp-2.4.5.orig/pppd/upap.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/upap.c 2014-03-17 16:13:13.000000000 +0100 +@@ -78,13 +78,13 @@ static option_t pap_option_list[] = { + /* + * Protocol entry points. + */ +-static void upap_init __P((int)); +-static void upap_lowerup __P((int)); +-static void upap_lowerdown __P((int)); +-static void upap_input __P((int, u_char *, int)); +-static void upap_protrej __P((int)); +-static int upap_printpkt __P((u_char *, int, +- void (*) __P((void *, char *, ...)), void *)); ++static void upap_init (int); ++static void upap_lowerup (int); ++static void upap_lowerdown (int); ++static void upap_input (int, u_char *, int); ++static void upap_protrej (int); ++static int upap_printpkt (u_char *, int, ++ void (*) __P((void *, char *, ...)), void *); + + struct protent pap_protent = { + PPP_PAP, +@@ -108,13 +108,13 @@ struct protent pap_protent = { + + upap_state upap[NUM_PPP]; /* UPAP state; one for each unit */ + +-static void upap_timeout __P((void *)); +-static void upap_reqtimeout __P((void *)); +-static void upap_rauthreq __P((upap_state *, u_char *, int, int)); +-static void upap_rauthack __P((upap_state *, u_char *, int, int)); +-static void upap_rauthnak __P((upap_state *, u_char *, int, int)); +-static void upap_sauthreq __P((upap_state *)); +-static void upap_sresp __P((upap_state *, int, int, char *, int)); ++static void upap_timeout (void *); ++static void upap_reqtimeout (void *); ++static void upap_rauthreq (upap_state *, u_char *, int, int); ++static void upap_rauthack (upap_state *, u_char *, int, int); ++static void upap_rauthnak (upap_state *, u_char *, int, int); ++static void upap_sauthreq (upap_state *); ++static void upap_sresp (upap_state *, int, int, char *, int); + + + /* +@@ -612,7 +612,7 @@ static int + upap_printpkt(p, plen, printer, arg) + u_char *p; + int plen; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + int code, id, len; diff --git a/package/ppp/patches/patch-pppd_upap_h b/package/ppp/patches/patch-pppd_upap_h new file mode 100644 index 000000000..1af1f5b21 --- /dev/null +++ b/package/ppp/patches/patch-pppd_upap_h @@ -0,0 +1,12 @@ +--- ppp-2.4.5.orig/pppd/upap.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/upap.h 2014-03-17 16:13:13.000000000 +0100 +@@ -104,7 +104,7 @@ typedef struct upap_state { + + extern upap_state upap[]; + +-void upap_authwithpeer __P((int, char *, char *)); +-void upap_authpeer __P((int)); ++void upap_authwithpeer (int, char *, char *); ++void upap_authpeer (int); + + extern struct protent pap_protent; diff --git a/package/ppp/patches/patch-pppd_utils_c b/package/ppp/patches/patch-pppd_utils_c new file mode 100644 index 000000000..46304e640 --- /dev/null +++ b/package/ppp/patches/patch-pppd_utils_c @@ -0,0 +1,37 @@ +--- ppp-2.4.5.orig/pppd/utils.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/utils.c 2014-03-17 16:13:14.000000000 +0100 +@@ -65,11 +65,11 @@ static const char rcsid[] = RCSID; + extern char *strerror(); + #endif + +-static void logit __P((int, char *, va_list)); +-static void log_write __P((int, char *)); +-static void vslp_printer __P((void *, char *, ...)); +-static void format_packet __P((u_char *, int, void (*) (void *, char *, ...), +- void *)); ++static void logit (int, char *, va_list); ++static void log_write (int, char *); ++static void vslp_printer (void *, char *, ...); ++static void format_packet (u_char *, int, void (*) (void *, char *, ...), ++ void *); + + struct buffer_info { + char *ptr; +@@ -475,7 +475,7 @@ static void + format_packet(p, len, printer, arg) + u_char *p; + int len; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + int i, n; +@@ -613,7 +613,7 @@ void + print_string(p, len, printer, arg) + char *p; + int len; +- void (*printer) __P((void *, char *, ...)); ++ void (*printer) (void *, char *, ...); + void *arg; + { + int c; diff --git a/package/ppp/patches/patch-pppdump_bsd-comp_c b/package/ppp/patches/patch-pppdump_bsd-comp_c new file mode 100644 index 000000000..16060c7da --- /dev/null +++ b/package/ppp/patches/patch-pppdump_bsd-comp_c @@ -0,0 +1,27 @@ +--- ppp-2.4.5.orig/pppdump/bsd-comp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppdump/bsd-comp.c 2014-03-17 16:13:08.000000000 +0100 +@@ -124,15 +124,15 @@ struct bsd_db { + #define BSD_OVHD 2 /* BSD compress overhead/packet */ + #define BSD_INIT_BITS BSD_MIN_BITS + +-static void *bsd_decomp_alloc __P((u_char *options, int opt_len)); +-static void bsd_free __P((void *state)); +-static int bsd_decomp_init __P((void *state, u_char *options, int opt_len, +- int unit, int hdrlen, int mru, int debug)); +-static void bsd_incomp __P((void *state, u_char *dmsg, int len)); +-static int bsd_decompress __P((void *state, u_char *cmp, int inlen, +- u_char *dmp, int *outlen)); +-static void bsd_reset __P((void *state)); +-static void bsd_comp_stats __P((void *state, struct compstat *stats)); ++static void *bsd_decomp_alloc (u_char *options, int opt_len); ++static void bsd_free (void *state); ++static int bsd_decomp_init (void *state, u_char *options, int opt_len, ++ int unit, int hdrlen, int mru, int debug); ++static void bsd_incomp (void *state, u_char *dmsg, int len); ++static int bsd_decompress (void *state, u_char *cmp, int inlen, ++ u_char *dmp, int *outlen); ++static void bsd_reset (void *state); ++static void bsd_comp_stats (void *state, struct compstat *stats); + + /* + * Exported procedures. diff --git a/package/ppp/patches/patch-pppdump_deflate_c b/package/ppp/patches/patch-pppdump_deflate_c new file mode 100644 index 000000000..ff44ea30c --- /dev/null +++ b/package/ppp/patches/patch-pppdump_deflate_c @@ -0,0 +1,31 @@ +--- ppp-2.4.5.orig/pppdump/deflate.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppdump/deflate.c 2014-03-17 16:13:08.000000000 +0100 +@@ -65,17 +65,17 @@ struct deflate_state { + + #define DEFLATE_OVHD 2 /* Deflate overhead/packet */ + +-static void *z_alloc __P((void *, u_int items, u_int size)); +-static void z_free __P((void *, void *ptr, u_int nb)); +-static void *z_decomp_alloc __P((u_char *options, int opt_len)); +-static void z_decomp_free __P((void *state)); +-static int z_decomp_init __P((void *state, u_char *options, int opt_len, +- int unit, int hdrlen, int mru, int debug)); +-static void z_incomp __P((void *state, u_char *dmsg, int len)); +-static int z_decompress __P((void *state, u_char *cmp, int inlen, +- u_char *dmp, int *outlenp)); +-static void z_decomp_reset __P((void *state)); +-static void z_comp_stats __P((void *state, struct compstat *stats)); ++static void *z_alloc (void *, u_int items, u_int size); ++static void z_free (void *, void *ptr, u_int nb); ++static void *z_decomp_alloc (u_char *options, int opt_len); ++static void z_decomp_free (void *state); ++static int z_decomp_init (void *state, u_char *options, int opt_len, ++ int unit, int hdrlen, int mru, int debug); ++static void z_incomp (void *state, u_char *dmsg, int len); ++static int z_decompress (void *state, u_char *cmp, int inlen, ++ u_char *dmp, int *outlenp); ++static void z_decomp_reset (void *state); ++static void z_comp_stats (void *state, struct compstat *stats); + + /* + * Procedures exported to if_ppp.c. diff --git a/package/ppp/patches/patch-pppdump_ppp-comp_h b/package/ppp/patches/patch-pppdump_ppp-comp_h new file mode 100644 index 000000000..ce9da513c --- /dev/null +++ b/package/ppp/patches/patch-pppdump_ppp-comp_h @@ -0,0 +1,33 @@ +--- ppp-2.4.5.orig/pppdump/ppp-comp.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppdump/ppp-comp.h 2014-03-17 16:13:08.000000000 +0100 +@@ -58,21 +58,21 @@ struct compressor { + int compress_proto; /* CCP compression protocol number */ + + /* Allocate space for a decompressor (receive side) */ +- void *(*decomp_alloc) __P((u_char *options, int opt_len)); ++ void *(*decomp_alloc) (u_char *options, int opt_len); + /* Free space used by a decompressor */ +- void (*decomp_free) __P((void *state)); ++ void (*decomp_free) (void *state); + /* Initialize a decompressor */ +- int (*decomp_init) __P((void *state, u_char *options, int opt_len, +- int unit, int hdrlen, int mru, int debug)); ++ int (*decomp_init) (void *state, u_char *options, int opt_len, ++ int unit, int hdrlen, int mru, int debug); + /* Reset a decompressor */ +- void (*decomp_reset) __P((void *state)); ++ void (*decomp_reset) (void *state); + /* Decompress a packet. */ +- int (*decompress) __P((void *state, u_char *mp, int inlen, +- u_char *dmp, int *outlen)); ++ int (*decompress) (void *state, u_char *mp, int inlen, ++ u_char *dmp, int *outlen); + /* Update state for an incompressible packet received */ +- void (*incomp) __P((void *state, u_char *mp, int len)); ++ void (*incomp) (void *state, u_char *mp, int len); + /* Return decompression statistics */ +- void (*decomp_stat) __P((void *state, struct compstat *stats)); ++ void (*decomp_stat) (void *state, struct compstat *stats); + }; + + /* diff --git a/package/ppp/patches/patch-pppstats_pppstats_c b/package/ppp/patches/patch-pppstats_pppstats_c new file mode 100644 index 000000000..5718ab77d --- /dev/null +++ b/package/ppp/patches/patch-pppstats_pppstats_c @@ -0,0 +1,22 @@ +--- ppp-2.4.5.orig/pppstats/pppstats.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppstats/pppstats.c 2014-03-17 16:13:07.000000000 +0100 +@@ -107,13 +107,13 @@ extern char *optarg; + #define PPP_DRV_NAME "ppp" + #endif /* !defined(PPP_DRV_NAME) */ + +-static void usage __P((void)); +-static void catchalarm __P((int)); +-static void get_ppp_stats __P((struct ppp_stats *)); +-static void get_ppp_cstats __P((struct ppp_comp_stats *)); +-static void intpr __P((void)); ++static void usage (void); ++static void catchalarm (int); ++static void get_ppp_stats (struct ppp_stats *); ++static void get_ppp_cstats (struct ppp_comp_stats *); ++static void intpr (void); + +-int main __P((int, char *argv[])); ++int main (int, char *argv[]); + + static void + usage() diff --git a/package/ppp/patches/patch-solaris_ppp_ahdlc_c b/package/ppp/patches/patch-solaris_ppp_ahdlc_c new file mode 100644 index 000000000..eca303a29 --- /dev/null +++ b/package/ppp/patches/patch-solaris_ppp_ahdlc_c @@ -0,0 +1,19 @@ +--- ppp-2.4.5.orig/solaris/ppp_ahdlc.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/solaris/ppp_ahdlc.c 2014-03-17 16:13:16.000000000 +0100 +@@ -109,11 +109,11 @@ typedef unsigned int uintpoin + + MOD_OPEN_DECL(ahdlc_open); + MOD_CLOSE_DECL(ahdlc_close); +-static int ahdlc_wput __P((queue_t *, mblk_t *)); +-static int ahdlc_rput __P((queue_t *, mblk_t *)); +-static void ahdlc_encode __P((queue_t *, mblk_t *)); +-static void ahdlc_decode __P((queue_t *, mblk_t *)); +-static int msg_byte __P((mblk_t *, unsigned int)); ++static int ahdlc_wput (queue_t *, mblk_t *); ++static int ahdlc_rput (queue_t *, mblk_t *); ++static void ahdlc_encode (queue_t *, mblk_t *); ++static void ahdlc_decode (queue_t *, mblk_t *); ++static int msg_byte (mblk_t *, unsigned int); + + #if defined(SOL2) + /* diff --git a/package/ppp/patches/patch-solaris_ppp_c b/package/ppp/patches/patch-solaris_ppp_c new file mode 100644 index 000000000..33e12e5aa --- /dev/null +++ b/package/ppp/patches/patch-solaris_ppp_c @@ -0,0 +1,78 @@ +--- ppp-2.4.5.orig/solaris/ppp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/solaris/ppp.c 2014-03-17 16:13:16.000000000 +0100 +@@ -254,45 +254,45 @@ static upperstr_t *minor_devs = NULL; + static upperstr_t *ppas = NULL; + + #ifdef SVR4 +-static int pppopen __P((queue_t *, dev_t *, int, int, cred_t *)); +-static int pppclose __P((queue_t *, int, cred_t *)); ++static int pppopen (queue_t *, dev_t *, int, int, cred_t *); ++static int pppclose (queue_t *, int, cred_t *); + #else +-static int pppopen __P((queue_t *, int, int, int)); +-static int pppclose __P((queue_t *, int)); ++static int pppopen (queue_t *, int, int, int); ++static int pppclose (queue_t *, int); + #endif /* SVR4 */ +-static int pppurput __P((queue_t *, mblk_t *)); +-static int pppuwput __P((queue_t *, mblk_t *)); +-static int pppursrv __P((queue_t *)); +-static int pppuwsrv __P((queue_t *)); +-static int ppplrput __P((queue_t *, mblk_t *)); +-static int ppplwput __P((queue_t *, mblk_t *)); +-static int ppplrsrv __P((queue_t *)); +-static int ppplwsrv __P((queue_t *)); ++static int pppurput (queue_t *, mblk_t *); ++static int pppuwput (queue_t *, mblk_t *); ++static int pppursrv (queue_t *); ++static int pppuwsrv (queue_t *); ++static int ppplrput (queue_t *, mblk_t *); ++static int ppplwput (queue_t *, mblk_t *); ++static int ppplrsrv (queue_t *); ++static int ppplwsrv (queue_t *); + #ifndef NO_DLPI +-static void dlpi_request __P((queue_t *, mblk_t *, upperstr_t *)); +-static void dlpi_error __P((queue_t *, upperstr_t *, int, int, int)); +-static void dlpi_ok __P((queue_t *, int)); ++static void dlpi_request (queue_t *, mblk_t *, upperstr_t *); ++static void dlpi_error (queue_t *, upperstr_t *, int, int, int); ++static void dlpi_ok (queue_t *, int); + #endif +-static int send_data __P((mblk_t *, upperstr_t *)); +-static void new_ppa __P((queue_t *, mblk_t *)); +-static void attach_ppa __P((queue_t *, mblk_t *)); ++static int send_data (mblk_t *, upperstr_t *); ++static void new_ppa (queue_t *, mblk_t *); ++static void attach_ppa (queue_t *, mblk_t *); + #ifndef NO_DLPI +-static void detach_ppa __P((queue_t *, mblk_t *)); ++static void detach_ppa (queue_t *, mblk_t *); + #endif +-static void detach_lower __P((queue_t *, mblk_t *)); +-static void debug_dump __P((queue_t *, mblk_t *)); +-static upperstr_t *find_dest __P((upperstr_t *, int)); ++static void detach_lower (queue_t *, mblk_t *); ++static void debug_dump (queue_t *, mblk_t *); ++static upperstr_t *find_dest (upperstr_t *, int); + #if defined(SOL2) +-static upperstr_t *find_promisc __P((upperstr_t *, int)); +-static mblk_t *prepend_ether __P((upperstr_t *, mblk_t *, int)); +-static mblk_t *prepend_udind __P((upperstr_t *, mblk_t *, int)); +-static void promisc_sendup __P((upperstr_t *, mblk_t *, int, int)); ++static upperstr_t *find_promisc (upperstr_t *, int); ++static mblk_t *prepend_ether (upperstr_t *, mblk_t *, int); ++static mblk_t *prepend_udind (upperstr_t *, mblk_t *, int); ++static void promisc_sendup (upperstr_t *, mblk_t *, int, int); + #endif /* defined(SOL2) */ +-static int putctl2 __P((queue_t *, int, int, int)); +-static int putctl4 __P((queue_t *, int, int, int)); +-static int pass_packet __P((upperstr_t *ppa, mblk_t *mp, int outbound)); ++static int putctl2 (queue_t *, int, int, int); ++static int putctl4 (queue_t *, int, int, int); ++static int pass_packet (upperstr_t *ppa, mblk_t *mp, int outbound); + #ifdef FILTER_PACKETS +-static int ip_hard_filter __P((upperstr_t *ppa, mblk_t *mp, int outbound)); ++static int ip_hard_filter (upperstr_t *ppa, mblk_t *mp, int outbound); + #endif /* FILTER_PACKETS */ + + #define PPP_ID 0xb1a6 diff --git a/package/ppp/patches/patch-solaris_ppp_comp_c b/package/ppp/patches/patch-solaris_ppp_comp_c new file mode 100644 index 000000000..22673953c --- /dev/null +++ b/package/ppp/patches/patch-solaris_ppp_comp_c @@ -0,0 +1,30 @@ +--- ppp-2.4.5.orig/solaris/ppp_comp.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/solaris/ppp_comp.c 2014-03-17 16:13:16.000000000 +0100 +@@ -74,12 +74,12 @@ + + MOD_OPEN_DECL(ppp_comp_open); + MOD_CLOSE_DECL(ppp_comp_close); +-static int ppp_comp_rput __P((queue_t *, mblk_t *)); +-static int ppp_comp_rsrv __P((queue_t *)); +-static int ppp_comp_wput __P((queue_t *, mblk_t *)); +-static int ppp_comp_wsrv __P((queue_t *)); +-static void ppp_comp_ccp __P((queue_t *, mblk_t *, int)); +-static int msg_byte __P((mblk_t *, unsigned int)); ++static int ppp_comp_rput (queue_t *, mblk_t *); ++static int ppp_comp_rsrv (queue_t *); ++static int ppp_comp_wput (queue_t *, mblk_t *); ++static int ppp_comp_wsrv (queue_t *); ++static void ppp_comp_ccp (queue_t *, mblk_t *, int); ++static int msg_byte (mblk_t *, unsigned int); + + /* Extract byte i of message mp. */ + #define MSG_BYTE(mp, i) ((i) < (mp)->b_wptr - (mp)->b_rptr? (mp)->b_rptr[i]: \ +@@ -118,7 +118,7 @@ int ppp_comp_count; /* number of module + + #ifdef __osf__ + +-static void ppp_comp_alloc __P((comp_state_t *)); ++static void ppp_comp_alloc (comp_state_t *); + typedef struct memreq { + unsigned char comp_opts[20]; + int cmd; diff --git a/package/ppp/patches/patch-solaris_ppp_mod_c b/package/ppp/patches/patch-solaris_ppp_mod_c new file mode 100644 index 000000000..1d3f48fde --- /dev/null +++ b/package/ppp/patches/patch-solaris_ppp_mod_c @@ -0,0 +1,17 @@ +--- ppp-2.4.5.orig/solaris/ppp_mod.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/solaris/ppp_mod.c 2014-03-17 16:13:16.000000000 +0100 +@@ -53,10 +53,10 @@ + #define __P(x) () + #endif + +-static int ppp_identify __P((dev_info_t *)); +-static int ppp_attach __P((dev_info_t *, ddi_attach_cmd_t)); +-static int ppp_detach __P((dev_info_t *, ddi_detach_cmd_t)); +-static int ppp_devinfo __P((dev_info_t *, ddi_info_cmd_t, void *, void **)); ++static int ppp_identify (dev_info_t *); ++static int ppp_attach (dev_info_t *, ddi_attach_cmd_t); ++static int ppp_detach (dev_info_t *, ddi_detach_cmd_t); ++static int ppp_devinfo (dev_info_t *, ddi_info_cmd_t, void *, void **); + + extern struct streamtab pppinfo; + extern krwlock_t ppp_lower_lock; diff --git a/package/ppp/patches/patch-solaris_ppp_mod_h b/package/ppp/patches/patch-solaris_ppp_mod_h new file mode 100644 index 000000000..dfb70ff62 --- /dev/null +++ b/package/ppp/patches/patch-solaris_ppp_mod_h @@ -0,0 +1,28 @@ +--- ppp-2.4.5.orig/solaris/ppp_mod.h 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/solaris/ppp_mod.h 2014-03-17 16:13:16.000000000 +0100 +@@ -143,10 +143,10 @@ typedef int minor_t; + */ + #ifdef SVR4 + #define MOD_OPEN_DECL(name) \ +-static int name __P((queue_t *, dev_t *, int, int, cred_t *)) ++static int name (queue_t *, dev_t *, int, int, cred_t *) + + #define MOD_CLOSE_DECL(name) \ +-static int name __P((queue_t *, int, cred_t *)) ++static int name (queue_t *, int, cred_t *) + + #define MOD_OPEN(name) \ + static int name(q, devp, flag, sflag, credp) \ +@@ -168,10 +168,10 @@ static int name(q, flag, credp) \ + + #else /* not SVR4 */ + #define MOD_OPEN_DECL(name) \ +-static int name __P((queue_t *, int, int, int)) ++static int name (queue_t *, int, int, int) + + #define MOD_CLOSE_DECL(name) \ +-static int name __P((queue_t *, int)) ++static int name (queue_t *, int) + + #define MOD_OPEN(name) \ + static int name(q, dev, flag, sflag) \ diff --git a/package/sane-backends/Makefile b/package/sane-backends/Makefile index 4bad787ef..570febc37 100644 --- a/package/sane-backends/Makefile +++ b/package/sane-backends/Makefile @@ -5,12 +5,12 @@ include ${TOPDIR}/rules.mk PKG_NAME:= sane-backends PKG_VERSION:= 1.0.22 -PKG_RELEASE:= 1 +PKG_RELEASE:= 3 PKG_MD5SUM:= fadf56a60f4776bfb24491f66b617cf5 PKG_DESCR:= Scanner access now easy PKG_SECTION:= misc PKG_DEPENDS:= libpthread -PKG_BUILDDEP:= libpthread libusb +PKG_BUILDDEP:= libpthread libusb libusb-compat PKG_URL:= http://www.sane-project.org/ PKG_SITES:= ftp://ftp2.sane-project.org/pub/sane/${PKG_NAME}-${PKG_VERSION}/ PKG_MULTI:= 1 @@ -165,6 +165,7 @@ $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX1220U,umax1220u)) $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX_PP,umax_pp)) $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX,umax)) +TARGET_CFLAGS+= -D_GNU_SOURCE CONFIGURE_ENV+= ac_cv_func_ioperm=no have_libv4l1=no CONFIGURE_ARGS+= --disable-translations \ --without-gphoto2 \ diff --git a/package/sane-backends/patches/patch-backend_canon630u-common_c b/package/sane-backends/patches/patch-backend_canon630u-common_c new file mode 100644 index 000000000..d9acb4bf1 --- /dev/null +++ b/package/sane-backends/patches/patch-backend_canon630u-common_c @@ -0,0 +1,12 @@ +--- sane-backends-1.0.22.orig/backend/canon630u-common.c 2010-12-02 00:49:58.000000000 +0100 ++++ sane-backends-1.0.22/backend/canon630u-common.c 2014-03-18 08:33:31.000000000 +0100 +@@ -58,9 +58,7 @@ + #include <unistd.h> /* usleep */ + #include <time.h> + #include <math.h> /* exp() */ +-#ifdef HAVE_OS2_H + #include <sys/types.h> /* mode_t */ +-#endif + #include <sys/stat.h> + #include "lm9830.h" + diff --git a/package/sane-backends/patches/patch-backend_epson2-commands_c b/package/sane-backends/patches/patch-backend_epson2-commands_c new file mode 100644 index 000000000..3b2c46841 --- /dev/null +++ b/package/sane-backends/patches/patch-backend_epson2-commands_c @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/backend/epson2-commands.c 2010-12-02 00:49:58.000000000 +0100 ++++ sane-backends-1.0.22/backend/epson2-commands.c 2014-03-18 08:34:27.000000000 +0100 +@@ -19,6 +19,7 @@ + + #include "sane/config.h" + ++#include <sys/types.h> + #include <byteorder.h> + #include <math.h> + diff --git a/package/sane-backends/patches/patch-backend_genesys_c b/package/sane-backends/patches/patch-backend_genesys_c new file mode 100644 index 000000000..fc0398856 --- /dev/null +++ b/package/sane-backends/patches/patch-backend_genesys_c @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/backend/genesys.c 2011-02-14 00:10:18.000000000 +0100 ++++ sane-backends-1.0.22/backend/genesys.c 2014-03-18 08:36:00.000000000 +0100 +@@ -65,6 +65,7 @@ + #include <errno.h> + #include <string.h> + #include <stdlib.h> ++#include <sys/types.h> + #include <unistd.h> + #include <math.h> + diff --git a/package/sane-backends/patches/patch-backend_genesys_h b/package/sane-backends/patches/patch-backend_genesys_h new file mode 100644 index 000000000..efc830be1 --- /dev/null +++ b/package/sane-backends/patches/patch-backend_genesys_h @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/backend/genesys.h 2011-01-16 02:01:28.000000000 +0100 ++++ sane-backends-1.0.22/backend/genesys.h 2014-03-18 08:36:42.000000000 +0100 +@@ -52,6 +52,7 @@ + */ + #undef UNIT_TESTING + ++#include <sys/types.h> + #include "genesys_low.h" + + #define FREE_IFNOT_NULL(x) if(x!=NULL) { free(x); x=NULL;} diff --git a/package/sane-backends/patches/patch-backend_genesys_low_c b/package/sane-backends/patches/patch-backend_genesys_low_c new file mode 100644 index 000000000..430ab3791 --- /dev/null +++ b/package/sane-backends/patches/patch-backend_genesys_low_c @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/backend/genesys_low.c 2011-02-14 00:10:18.000000000 +0100 ++++ sane-backends-1.0.22/backend/genesys_low.c 2014-03-18 08:37:27.000000000 +0100 +@@ -46,6 +46,7 @@ + #include <errno.h> + #include <string.h> + #include <stdlib.h> ++#include <sys/types.h> + #include <unistd.h> + #include <math.h> + diff --git a/package/sane-backends/patches/patch-backend_hp3900_rts8822_c b/package/sane-backends/patches/patch-backend_hp3900_rts8822_c new file mode 100644 index 000000000..59b9b5a9b --- /dev/null +++ b/package/sane-backends/patches/patch-backend_hp3900_rts8822_c @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/backend/hp3900_rts8822.c 2010-12-02 00:49:58.000000000 +0100 ++++ sane-backends-1.0.22/backend/hp3900_rts8822.c 2014-03-18 08:38:21.000000000 +0100 +@@ -64,6 +64,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> /* bzero() */ ++#include <sys/types.h> + #include <time.h> /* clock() */ + #include <math.h> /* truncf() */ + #include <ctype.h> /* tolower() */ diff --git a/package/sane-backends/patches/patch-backend_hp5400_sanei_c b/package/sane-backends/patches/patch-backend_hp5400_sanei_c new file mode 100644 index 000000000..7f340d607 --- /dev/null +++ b/package/sane-backends/patches/patch-backend_hp5400_sanei_c @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/backend/hp5400_sanei.c 2010-12-02 00:49:58.000000000 +0100 ++++ sane-backends-1.0.22/backend/hp5400_sanei.c 2014-03-18 08:39:35.000000000 +0100 +@@ -56,6 +56,7 @@ + #include "hp5400_xfer.h" + #include "hp5400_debug.h" + #include <stdio.h> ++#include <sys/types.h> + #include "../include/sane/sanei_usb.h" + + #define CMD_INITBULK1 0x0087 /* send 0x14 */ diff --git a/package/sane-backends/patches/patch-backend_hp5590_low_c b/package/sane-backends/patches/patch-backend_hp5590_low_c new file mode 100644 index 000000000..7812886dc --- /dev/null +++ b/package/sane-backends/patches/patch-backend_hp5590_low_c @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/backend/hp5590_low.c 2010-12-02 00:49:58.000000000 +0100 ++++ sane-backends-1.0.22/backend/hp5590_low.c 2014-03-18 08:38:55.000000000 +0100 +@@ -46,6 +46,7 @@ + + #include <stdio.h> + #include <string.h> ++#include <sys/types.h> + #include <errno.h> + #ifdef HAVE_NETINET_IN_H + # include <netinet/in.h> diff --git a/package/sane-backends/patches/patch-backend_kvs20xx_opt_c b/package/sane-backends/patches/patch-backend_kvs20xx_opt_c new file mode 100644 index 000000000..253699d14 --- /dev/null +++ b/package/sane-backends/patches/patch-backend_kvs20xx_opt_c @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/backend/kvs20xx_opt.c 2010-12-02 00:49:58.000000000 +0100 ++++ sane-backends-1.0.22/backend/kvs20xx_opt.c 2014-03-18 08:41:24.000000000 +0100 +@@ -8,6 +8,7 @@ + + #include "../include/sane/config.h" + ++#include <sys/types.h> + #include <string.h> + + #define DEBUG_DECLARE_ONLY diff --git a/package/sane-backends/patches/patch-backend_rts88xx_lib_c b/package/sane-backends/patches/patch-backend_rts88xx_lib_c new file mode 100644 index 000000000..060f0a10e --- /dev/null +++ b/package/sane-backends/patches/patch-backend_rts88xx_lib_c @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/backend/rts88xx_lib.c 2010-12-02 00:49:58.000000000 +0100 ++++ sane-backends-1.0.22/backend/rts88xx_lib.c 2014-03-18 08:42:41.000000000 +0100 +@@ -54,6 +54,7 @@ + + #include <stdio.h> + #include <sys/time.h> ++#include <sys/types.h> + + #include "../include/_stdint.h" + diff --git a/package/sane-backends/patches/patch-backend_xerox_mfp_c b/package/sane-backends/patches/patch-backend_xerox_mfp_c new file mode 100644 index 000000000..d58262197 --- /dev/null +++ b/package/sane-backends/patches/patch-backend_xerox_mfp_c @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/backend/xerox_mfp.c 2010-12-02 00:49:58.000000000 +0100 ++++ sane-backends-1.0.22/backend/xerox_mfp.c 2014-03-18 08:44:56.000000000 +0100 +@@ -22,6 +22,7 @@ + #include <math.h> + #include <unistd.h> + #include <sys/time.h> ++#include <sys/types.h> + #include "../include/sane/sane.h" + #include "../include/sane/sanei.h" + #include "../include/sane/saneopts.h" diff --git a/package/sane-backends/patches/patch-include_sane_sanei_tcp_h b/package/sane-backends/patches/patch-include_sane_sanei_tcp_h new file mode 100644 index 000000000..4ba390003 --- /dev/null +++ b/package/sane-backends/patches/patch-include_sane_sanei_tcp_h @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/include/sane/sanei_tcp.h 2010-12-02 00:49:58.000000000 +0100 ++++ sane-backends-1.0.22/include/sane/sanei_tcp.h 2014-03-18 08:31:07.000000000 +0100 +@@ -20,6 +20,7 @@ + + #include <sane/sane.h> + ++#include <sys/types.h> + #include <netinet/in.h> + #include <netdb.h> + diff --git a/package/sane-backends/patches/patch-include_sane_sanei_udp_h b/package/sane-backends/patches/patch-include_sane_sanei_udp_h new file mode 100644 index 000000000..3d70edada --- /dev/null +++ b/package/sane-backends/patches/patch-include_sane_sanei_udp_h @@ -0,0 +1,10 @@ +--- sane-backends-1.0.22.orig/include/sane/sanei_udp.h 2010-12-02 00:49:58.000000000 +0100 ++++ sane-backends-1.0.22/include/sane/sanei_udp.h 2014-03-18 08:31:40.000000000 +0100 +@@ -20,6 +20,7 @@ + + #include <sane/sane.h> + ++#include <sys/types.h> + #include <netinet/in.h> + #include <netdb.h> + diff --git a/package/strongswan/Makefile b/package/strongswan/Makefile index b60c6e6d7..314e30635 100644 --- a/package/strongswan/Makefile +++ b/package/strongswan/Makefile @@ -20,7 +20,7 @@ PKG_SITES:= http://download.strongswan.org/ PKG_LIBC_DEPENDS:= uclibc glibc -PKG_CHOICES_STRONGSWAN:=WITH_GMP WITH_OPENSSL WITH_GNUTLS +PKG_CHOICES_STRONGSWAN:=WITH_GNUTLS WITH_OPENSSL WITH_GMP PKGCD_WITH_GMP:= use GMP for crypto PKGCS_WITH_GMP:= libgmp PKGCB_WITH_GMP:= gmp diff --git a/package/tntnet/Makefile b/package/tntnet/Makefile index 109f13963..e8e674fcc 100644 --- a/package/tntnet/Makefile +++ b/package/tntnet/Makefile @@ -17,7 +17,7 @@ PKG_NEED_CXX:= 1 PKG_ARCH_DEPENDS:= !arm !m68k -PKG_CHOICES_TNTNET:= WITHOUT_SSL WITH_OPENSSL WITH_GNUTLS +PKG_CHOICES_TNTNET:= WITH_GNUTLS WITH_OPENSSL WITHOUT_SSL PKGCD_WITHOUT_SSL:= use no SSL PKGCD_WITH_OPENSSL:= use OpenSSL for crypto PKGCS_WITH_OPENSSL:= libopenssl diff --git a/package/tzdata/Makefile b/package/tzdata/Makefile index dc038027f..8fd111b3d 100644 --- a/package/tzdata/Makefile +++ b/package/tzdata/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= tzdata PKG_VERSION:= 2013d -PKG_RELEASE:= 2 +PKG_RELEASE:= 3 PKG_MD5SUM:= 65b6818162230fc02f86f293376c73df 4616a9560270f180eeb9a08540636890 PKG_DESCR:= Timezone data (/usr/share/zoneinfo) PKG_SECTION:= utils @@ -39,8 +39,12 @@ ALL_TARGET:= ALL INSTALL_TARGET:= INSTALL tzdata-install: - $(INSTALL_DIR) $(IDIR_TZDATA)/usr/share $(IDIR_TZDATA)/etc - $(CP) $(WRKINST)/usr/share/zoneinfo $(IDIR_TZDATA)/usr/share + $(INSTALL_DIR) $(IDIR_TZDATA)/usr/share/zoneinfo $(IDIR_TZDATA)/etc + cd ${WRKINST} && for f in UTC ${ADK_RUNTIME_TIMEZONE}; do \ + test -s usr/share/zoneinfo/"$$f" || continue; \ + echo usr/share/zoneinfo/"$$f" | \ + ${STAGING_HOST_DIR}/usr/bin/cpio -pdu ${IDIR_TZDATA}/; \ + done tz=; cd $(IDIR_TZDATA)/usr/share/zoneinfo || exit 1; \ for f in UTC ${ADK_RUNTIME_TIMEZONE}; do \ test -s "$$f" || continue; \ diff --git a/package/wget/Makefile b/package/wget/Makefile index 9c412c3ea..516576a86 100644 --- a/package/wget/Makefile +++ b/package/wget/Makefile @@ -13,7 +13,7 @@ PKG_BUILDDEP:= autotool PKG_URL:= http://www.gnu.org/software/wget/ PKG_SITES:= ${MASTER_SITE_GNU:=wget/} -PKG_CHOICES_WGET:= WITHOUT_SSL WITH_OPENSSL WITH_GNUTLS +PKG_CHOICES_WGET:= WITH_GNUTLS WITH_OPENSSL WITHOUT_SSL PKGCD_WITHOUT_SSL:= use no SSL PKGCD_WITH_OPENSSL:= use OpenSSL for crypto PKGCS_WITH_OPENSSL:= libopenssl ca-certificates libgmp diff --git a/package/wpa_supplicant/Makefile b/package/wpa_supplicant/Makefile index e1545e64c..38895bb24 100644 --- a/package/wpa_supplicant/Makefile +++ b/package/wpa_supplicant/Makefile @@ -18,7 +18,7 @@ PKG_DFLT_WPA_SUPPLICANT:= y if ADK_TARGET_SYSTEM_IBM_X40 WRKSRC= ${WRKDIST}/${PKG_NAME} -PKG_CHOICES_WPA_SUPPLICANT:= WITH_OPENSSL WITH_GNUTLS WITH_INTERNAL +PKG_CHOICES_WPA_SUPPLICANT:= WITH_GNUTLS WITH_OPENSSL WITH_INTERNAL PKGCD_WITH_OPENSSL:= use OpenSSL for crypto PKGCS_WITH_OPENSSL:= libopenssl PKGCB_WITH_OPENSSL:= openssl diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index 46a4586da..66aba0e9b 100644 --- a/scripts/rstrip.sh +++ b/scripts/rstrip.sh @@ -54,6 +54,9 @@ find $TARGETS -type f -a -exec file {} \; | \ S='kernel module' ;; *ELF*shared\ object*,\ not\ stripped*) S='shared object' ;; + *current\ ar\ archive*) + S='static library' + T="$T -S" ;; *) continue ;; esac diff --git a/target/arm/Makefile b/target/arm/Makefile index a652003eb..a2bd23a8b 100644 --- a/target/arm/Makefile +++ b/target/arm/Makefile @@ -71,10 +71,10 @@ ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM)$(ADK_TARGET_SYSTEM_QEMU_ARMHF),y) endif endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif ifeq ($(ADK_TARGET_FS),initramfs) imageinstall: $(FW_DIR)/$(INITRAMFS) diff --git a/target/arm/kernel/qemu-arm-versatilepb b/target/arm/kernel/qemu-arm-versatilepb index f208772d0..29a82ccf6 100644 --- a/target/arm/kernel/qemu-arm-versatilepb +++ b/target/arm/kernel/qemu-arm-versatilepb @@ -1,3 +1,4 @@ +CONFIG_ARM=y CONFIG_ARM_PATCH_PHYS_VIRT=y CONFIG_ARCH_VERSATILE=y CONFIG_ARCH_VERSATILE_PB=y diff --git a/target/arm/sys-available/toolchain-arm b/target/arm/sys-available/toolchain-arm index c6bb00b43..23febc50e 100644 --- a/target/arm/sys-available/toolchain-arm +++ b/target/arm/sys-available/toolchain-arm @@ -7,5 +7,6 @@ config ADK_TARGET_SYSTEM_TOOLCHAIN_ARM select ADK_eabi select ADK_TOOLCHAIN select ADK_TARGET_PACKAGE_TGZ + select ADK_CPU_CORTEX_A9 help - ARM toolchain (soft float). + ARM toolchain (soft float) for Cortex A9. diff --git a/target/arm/sys-available/toolchain-armhf b/target/arm/sys-available/toolchain-armhf index 89383f44f..bf671481c 100644 --- a/target/arm/sys-available/toolchain-armhf +++ b/target/arm/sys-available/toolchain-armhf @@ -7,6 +7,7 @@ config ADK_TARGET_SYSTEM_TOOLCHAIN_ARMHF select ADK_toolchain_armhf select ADK_TOOLCHAIN select ADK_TARGET_PACKAGE_TGZ + select ADK_CPU_CORTEX_A9 help - ARM toolchain (hard float). + ARM toolchain (hard float) for Cortex A9. diff --git a/target/config/Config.in b/target/config/Config.in index 79f067bf3..38004d7e3 100644 --- a/target/config/Config.in +++ b/target/config/Config.in @@ -73,7 +73,7 @@ source "target/config/Config.in.system" config ADK_LINUX_MIPS64 boolean - default y if ADK_LINUX_MIPS && ADK_TARGET_KERNEL64 + default y if ADK_LINUX_MIPS && ADK_LINUX_64 choice prompt "Toolchain options" @@ -86,21 +86,6 @@ config ADK_TOOLCHAIN_ARCHIVE endchoice -choice -prompt "Target Kernel" -depends on ADK_TARGET_SYSTEM_LEMOTE_YEELONG \ - || ADK_TARGET_SYSTEM_QEMU_MIPS64 \ - || ADK_TARGET_SYSTEM_QEMU_MIPS64EL \ - || ADK_LINUX_X86_64 - -config ADK_TARGET_KERNEL64 - boolean "64 Bit Kernel" - -config ADK_TARGET_KERNEL32 - boolean "32 Bit Kernel" - -endchoice - config ADK_32 boolean @@ -143,7 +128,7 @@ config ADK_TARGET_MIPS_ABI choice prompt "Target ABI" -depends on ADK_TARGET_KERNEL64 && ADK_LINUX_MIPS && !ADK_TOOLCHAIN +depends on ADK_LINUX_64 && ADK_LINUX_MIPS && !ADK_TOOLCHAIN config ADK_TARGET_ABI_N32 boolean "N32 ABI (new)" @@ -161,7 +146,7 @@ endchoice choice prompt "Target ABI" -depends on ADK_TARGET_KERNEL64 && ADK_LINUX_X86_64 && !ADK_TOOLCHAIN +depends on ADK_LINUX_64 && ADK_LINUX_X86_64 && !ADK_TOOLCHAIN config ADK_TARGET_ABI_64 boolean "64 Bit ABI" @@ -224,7 +209,6 @@ depends on ADK_TARGET_SYSTEM_QEMU_MICROBLAZE || ADK_TARGET_SYSTEM_QEMU_MICROBLAZ config ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605 boolean "Xilinx ml605" - select ADK_TARGET_WITH_MTD config ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800 boolean "Xilinx Spartan S3ADSP1800" @@ -267,7 +251,7 @@ config ADK_TARGET_QEMU_WITH_BLOCK boolean "enabled" select ADK_KERNEL_SCSI_SYM53C8XX_2 if ADK_TARGET_QEMU_ARM_MODEL_VERSATILEPB select ADK_KERNEL_MTD_M25P80 if ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605 - select ADK_KERNEL_ATA_PIIX if ADK_LINUX_MIPS || ADK_TARGET_SYSTEM_QEMU_I686 + select ADK_KERNEL_ATA_PIIX if ADK_LINUX_MIPS || ADK_TARGET_SYSTEM_QEMU_I686 || ADK_TARGET_SYSTEM_QEMU_X86_64 select ADK_KERNEL_PATA_MACIO if ADK_TARGET_SYSTEM_QEMU_PPC select ADK_KERNEL_SCSI_IBMVSCSI if ADK_TARGET_SYSTEM_QEMU_PPC64 select ADK_KERNEL_SCSI_SUNESP if ADK_TARGET_SYSTEM_QEMU_SPARC @@ -338,23 +322,7 @@ config ADK_LINUX_ARM_WITH_THUMB endchoice - -choice -prompt "Broadcom BCM47xx Model" -depends on ADK_TARGET_SYSTEM_BROADCOM_BCM47XX - -config ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54G - boolean "Linksys WRT54g" - -config ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54GS - boolean "Linksys WRT54gs" - -config ADK_TARGET_BROADCOM_MODEL_ASUS_WL500GP - boolean "Asus WL500gP" - -endchoice - -# hardware features +# hardware features, do not use for qemu config ADK_TARGET_WITH_USB boolean @@ -658,15 +626,11 @@ config ADK_glibc config ADK_musl boolean -config ADK_libc - boolean - config ADK_TARGET_LIBC string default "uclibc" if ADK_uclibc default "glibc" if ADK_glibc default "musl" if ADK_musl - default "libc" if ADK_libc source "target/linux/config/Config.in.kernel" @@ -722,12 +686,6 @@ config ADK_TARGET_LIB_MUSL help http://musl-libc.org -config ADK_TARGET_LIB_LIBC - prompt "Native C library" - boolean - select ADK_libc - depends on ADK_LINUX_NATIVE - endchoice config ADK_TARGET_SUFFIX @@ -737,30 +695,29 @@ config ADK_TARGET_SUFFIX default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_n64 default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_n32 default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_o32 - default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_32 && ADK_TARGET_KERNEL64 - default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_x32 && ADK_TARGET_KERNEL64 + default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_32 && ADK_LINUX_64 + default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_x32 && ADK_LINUX_64 default "gnu" if ADK_TARGET_LIB_GLIBC default "uclibcgnueabihf" if ADK_TARGET_LIB_UCLIBC && ADK_eabihf default "uclibcgnueabi" if ADK_TARGET_LIB_UCLIBC && ADK_eabi default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC && ADK_n64 default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC && ADK_n32 default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC && ADK_o32 - default "uclibc32" if ADK_TARGET_LIB_UCLIBC && ADK_32 && ADK_TARGET_KERNEL64 - default "uclibcx32" if ADK_TARGET_LIB_UCLIBC && ADK_x32 && ADK_TARGET_KERNEL64 + default "uclibc32" if ADK_TARGET_LIB_UCLIBC && ADK_32 && ADK_LINUX_64 + default "uclibcx32" if ADK_TARGET_LIB_UCLIBC && ADK_x32 && ADK_LINUX_64 default "uclibc" if ADK_TARGET_LIB_UCLIBC default "muslgnueabihf" if ADK_TARGET_LIB_MUSL && ADK_eabihf default "muslgnueabi" if ADK_TARGET_LIB_MUSL && ADK_eabi default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_n64 default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_n32 default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_o32 - default "musl32" if ADK_TARGET_LIB_MUSL && ADK_32 && ADK_TARGET_KERNEL64 - default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_x32 && ADK_TARGET_KERNEL64 + default "musl32" if ADK_TARGET_LIB_MUSL && ADK_32 && ADK_LINUX_64 + default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_x32 && ADK_LINUX_64 default "musl" if ADK_TARGET_LIB_MUSL choice prompt "Target firmware type" depends on !ADK_CHOOSE_TARGET_SYSTEM && !ADK_CHOOSE_TARGET_ARCH && !ADK_TOOLCHAIN -default ADK_TARGET_ROOTFS_INITRAMFSARCHIVE if ADK_PKG_TEST default ADK_TARGET_ROOTFS_ARCHIVE config ADK_TARGET_ROOTFS_INITRAMFS diff --git a/target/linux/config/Config.in.debug b/target/linux/config/Config.in.debug index 23c0bd8d2..019c439d8 100644 --- a/target/linux/config/Config.in.debug +++ b/target/linux/config/Config.in.debug @@ -30,7 +30,7 @@ config ADK_KERNEL_EARLY_PRINTK default n config ADK_KERNEL_PRINTK - prompt "Enable printk to save space and quieten bootup" + prompt "printk support (disable to save space and quieten bootup)" boolean select ADK_KERNEL_EARLY_PRINTK default y @@ -39,7 +39,7 @@ config ADK_KERNEL_PRINTK Disable printk to save space and quieten bootup. config ADK_KERNEL_PRINTK_TIME - prompt "Enable timing information for printk" + prompt "timing information for printk" boolean depends on ADK_KERNEL_PRINTK default n diff --git a/target/linux/config/Config.in.kernel b/target/linux/config/Config.in.kernel index 221a373df..650bc8729 100644 --- a/target/linux/config/Config.in.kernel +++ b/target/linux/config/Config.in.kernel @@ -98,7 +98,7 @@ config ADK_KERNEL_PCI config ADK_KERNEL_64BIT boolean - default y if ADK_TARGET_KERNEL64 + default y if ADK_LINUX_64 config ADK_KERNEL_CPU_MIPS64 boolean @@ -106,6 +106,9 @@ config ADK_KERNEL_CPU_MIPS64 config ADK_KERNEL_CPU_MIPS64_R1 boolean +config ADK_KERNEL_CPU_MIPS64_R2 + boolean + config ADK_KERNEL_PREEMPT boolean diff --git a/target/m68k/Makefile b/target/m68k/Makefile index d68393b84..0e7324c25 100644 --- a/target/m68k/Makefile +++ b/target/m68k/Makefile @@ -16,10 +16,10 @@ imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif ifeq ($(ADK_TARGET_FS),initramfs) imageinstall: $(FW_DIR)/$(INITRAMFS) diff --git a/target/microblaze/Makefile b/target/microblaze/Makefile index c60545e56..5ab2345e7 100644 --- a/target/microblaze/Makefile +++ b/target/microblaze/Makefile @@ -62,8 +62,8 @@ imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif diff --git a/target/mips/Makefile b/target/mips/Makefile index 9fd479d5d..436b570e3 100644 --- a/target/mips/Makefile +++ b/target/mips/Makefile @@ -113,10 +113,10 @@ ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y) endif endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif ifeq ($(ADK_TARGET_FS),initramfs) imageinstall: $(FW_DIR)/$(INITRAMFS) diff --git a/target/mips/kernel/qemu-mips64 b/target/mips/kernel/qemu-mips64 index d4ef42c15..5ceba460c 100644 --- a/target/mips/kernel/qemu-mips64 +++ b/target/mips/kernel/qemu-mips64 @@ -2,7 +2,6 @@ CONFIG_MIPS=y CONFIG_MIPS_MALTA=y CONFIG_CPU_BIG_ENDIAN=y CONFIG_CPU_MIPS64_R1=y -CONFIG_64BIT=y CONFIG_PAGE_SIZE_4KB=y CONFIG_PCI=y CONFIG_PCI_DOMAINS=y diff --git a/target/mips/kernel/qemu-mips64el b/target/mips/kernel/qemu-mips64el index 684b187be..383b7f160 100644 --- a/target/mips/kernel/qemu-mips64el +++ b/target/mips/kernel/qemu-mips64el @@ -2,7 +2,6 @@ CONFIG_MIPS=y CONFIG_MIPS_MALTA=y CONFIG_CPU_LITTLE_ENDIAN=y CONFIG_CPU_MIPS64_R1=y -CONFIG_64BIT=y CONFIG_PAGE_SIZE_4KB=y CONFIG_PCI=y CONFIG_PCI_DOMAINS=y diff --git a/target/ppc/Makefile b/target/ppc/Makefile index ceb31e5f5..aae63f1c0 100644 --- a/target/ppc/Makefile +++ b/target/ppc/Makefile @@ -23,10 +23,10 @@ ifeq ($(ADK_HARDWARE_QEMU),y) endif endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif ifeq ($(ADK_TARGET_FS),initramfs) imageinstall: $(FW_DIR)/$(INITRAMFS) diff --git a/target/ppc64/Makefile b/target/ppc64/Makefile index 0ad0843c0..6ee949a09 100644 --- a/target/ppc64/Makefile +++ b/target/ppc64/Makefile @@ -23,10 +23,10 @@ ifeq ($(ADK_HARDWARE_QEMU),y) endif endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif ifeq ($(ADK_TARGET_FS),initramfs) imageinstall: $(FW_DIR)/$(INITRAMFS) diff --git a/target/ppc64/kernel/qemu-ppc64 b/target/ppc64/kernel/qemu-ppc64 index 0eb40bd77..ebf952146 100644 --- a/target/ppc64/kernel/qemu-ppc64 +++ b/target/ppc64/kernel/qemu-ppc64 @@ -8,7 +8,6 @@ CONFIG_PPC_FPU=y CONFIG_PPC_STD_MMU=y CONFIG_PPC_STD_MMU_64=y CONFIG_PPC_DOORBELL=y -CONFIG_64BIT=y CONFIG_PPC_OF=y CONFIG_PPC_UDBG_16550=y CONFIG_PPC_PSERIES=y diff --git a/target/sh/Makefile b/target/sh/Makefile index 160ed6b74..0d5706eb3 100644 --- a/target/sh/Makefile +++ b/target/sh/Makefile @@ -23,10 +23,10 @@ ifneq ($(ADK_HARDWARE_QEMU),) endif endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif ifeq ($(ADK_TARGET_FS),initramfs) imageinstall: $(FW_DIR)/$(INITRAMFS) diff --git a/target/sparc/Makefile b/target/sparc/Makefile index abe521e66..1e15ee7f0 100644 --- a/target/sparc/Makefile +++ b/target/sparc/Makefile @@ -22,10 +22,10 @@ ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC),y) endif endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif ifeq ($(ADK_TARGET_FS),initramfs) imageinstall: $(FW_DIR)/$(INITRAMFS) diff --git a/target/sparc64/Makefile b/target/sparc64/Makefile index 0d3dc560b..882189284 100644 --- a/target/sparc64/Makefile +++ b/target/sparc64/Makefile @@ -33,10 +33,10 @@ ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC64),y) endif endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif ifeq ($(ADK_TARGET_FS),initramfs) imageinstall: $(FW_DIR)/$(INITRAMFS) diff --git a/target/sparc64/kernel/qemu-sparc64 b/target/sparc64/kernel/qemu-sparc64 index a2b048860..e3cd03068 100644 --- a/target/sparc64/kernel/qemu-sparc64 +++ b/target/sparc64/kernel/qemu-sparc64 @@ -1,6 +1,5 @@ CONFIG_SPARC=y CONFIG_SPARC64=y -CONFIG_64BIT=y CONFIG_PCI=y CONFIG_PCI_SYSCALL=y CONFIG_PCI_DOMAINS=y diff --git a/target/x86/Makefile b/target/x86/Makefile index 489d4dd1d..15d980d7c 100644 --- a/target/x86/Makefile +++ b/target/x86/Makefile @@ -14,7 +14,6 @@ imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" @echo "To install everything to CompactFlash use scripts/genext2.sh" endif - ifeq ($(ADK_TARGET_FS),cf) imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" @@ -43,10 +42,10 @@ ifeq ($(ADK_HARDWARE_VBOX),y) endif endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif ifeq ($(ADK_TARGET_FS),usb) imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) diff --git a/target/x86_64/Makefile b/target/x86_64/Makefile index 7087c9ca1..c94c3a1a6 100644 --- a/target/x86_64/Makefile +++ b/target/x86_64/Makefile @@ -21,10 +21,10 @@ ifeq ($(ADK_TARGET_SYSTEM_QEMU_X86_64),y) endif endif ifeq ($(ADK_TARGET_FS),initramfsarchive) -imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) +imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL) @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' - @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" endif ifeq ($(ADK_TARGET_FS),usb) imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) diff --git a/target/x86_64/kernel/qemu-x86_64 b/target/x86_64/kernel/qemu-x86_64 index e0183cc39..baad58c81 100644 --- a/target/x86_64/kernel/qemu-x86_64 +++ b/target/x86_64/kernel/qemu-x86_64 @@ -1,5 +1,4 @@ CONFIG_X86=y -CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_GENERIC_CPU=y CONFIG_PROCESSOR_SELECT=y diff --git a/toolchain/Makefile b/toolchain/Makefile index db5f65fd5..c70ea9820 100644 --- a/toolchain/Makefile +++ b/toolchain/Makefile @@ -53,17 +53,11 @@ else $(LIBC)-fixup: gcc-install endif -$(STAGING_HOST_DIR): - @mkdir -p $(STAGING_HOST_DIR)/lib - @mkdir -p $(STAGING_HOST_DIR)/include - @mkdir -p $(STAGING_HOST_DIR)/$(GNU_TARGET_NAME) - @ln -sf ../lib $(STAGING_HOST_DIR)/$(GNU_TARGET_NAME)/lib - %-download: $(TRACE) toolchain/$(patsubst %-download,%,$@)/download $(MAKE) -C $(patsubst %-download,%,$@) fetch -%-prepare: $(STAGING_HOST_DIR) +%-prepare: $(TRACE) toolchain/$(patsubst %-prepare,%,$@)/prepare @if test x"$(patsubst %-prepare,%,$@)" = x"$(LIBC)"; then \ $(MAKE) -C $(patsubst %-prepare,%,$@) prepare \ diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile index fc256c578..6a01f1c9a 100644 --- a/toolchain/binutils/Makefile +++ b/toolchain/binutils/Makefile @@ -34,7 +34,7 @@ $(WRKBUILD)/.headers: $(WRKBUILD)/.configured: (cd $(WRKBUILD); \ $(WRKBUILD)/configure \ - --prefix=$(STAGING_HOST_DIR) \ + --prefix=$(TOOLCHAIN_DIR)/usr \ --target=$(GNU_TARGET_NAME) \ --with-sysroot=$(STAGING_TARGET_DIR) \ --disable-dependency-tracking \ diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 475c90662..98e150f7a 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -8,14 +8,14 @@ TARGET_CFLAGS:= $(filter-out -fstack-protector,$(TARGET_CFLAGS)) include Makefile.inc -GCC_CONFOPTS:= --prefix=$(STAGING_HOST_DIR) \ +GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \ --with-bugurl="http://www.openadk.org/" \ --build=$(GNU_HOST_NAME) \ --host=$(GNU_HOST_NAME) \ --target=$(GNU_TARGET_NAME) \ - --with-gmp=$(STAGING_HOST_DIR) \ - --with-mpfr=$(STAGING_HOST_DIR) \ - --with-libelf=$(STAGING_HOST_DIR) \ + --with-gmp=$(STAGING_HOST_DIR)/usr \ + --with-mpfr=$(STAGING_HOST_DIR)/usr \ + --with-libelf=$(STAGING_HOST_DIR)/usr \ --disable-__cxa_atexit \ --with-gnu-ld \ --with-gnu-as \ @@ -120,15 +120,17 @@ GCC_BUILD_DIR_FINAL:= $(WRKBUILD)-final $(GCC_BUILD_DIR_MINIMAL)/.configured: mkdir -p $(GCC_BUILD_DIR_MINIMAL) # these symlinks are very important, do not remove - rm -rf $(STAGING_HOST_DIR)/$(GNU_TARGET_NAME)/sys-include - ln -sf ${STAGING_TARGET_DIR}/usr/include $(STAGING_HOST_DIR)/$(GNU_TARGET_NAME)/sys-include - rm -rf ${STAGING_HOST_DIR}/$(GNU_TARGET_NAME)/lib - ln -sf ${STAGING_TARGET_DIR}/lib $(STAGING_HOST_DIR)/$(GNU_TARGET_NAME)/lib + rm -rf $(TOOLCHAIN_DIR)/$(GNU_TARGET_NAME)/sys-include + ln -sf ${STAGING_TARGET_DIR}/usr/include \ + $(TOOLCHAIN_DIR)/usr/$(GNU_TARGET_NAME)/sys-include + rm -rf ${TOOLCHAIN_DIR}/usr/$(GNU_TARGET_NAME)/lib + ln -sf ${STAGING_TARGET_DIR}/lib $(TOOLCHAIN_DIR)/usr/$(GNU_TARGET_NAME)/lib ifeq ($(ADK_LINUX_SH),y) (cd ${STAGING_TARGET_DIR}/ && ln -sf . m4 && ln -sf . m4-nofpu) endif - sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' $(WRKBUILD)/gcc/configure - cd $(GCC_BUILD_DIR_MINIMAL); PATH='$(TARGET_PATH)' \ + $(SED) '/k prot/agcc_cv_libc_provides_ssp=yes' $(WRKBUILD)/gcc/configure + cd $(GCC_BUILD_DIR_MINIMAL); \ + PATH='$(TARGET_PATH)' \ CFLAGS="-O0 -g0" \ CXXFLAGS="-O0 -g0" \ $(WRKBUILD)/configure \ @@ -151,7 +153,8 @@ $(WRKBUILD)/.headers: $(GCC_BUILD_DIR_MINIMAL)/.compiled $(GCC_BUILD_DIR_INITIAL)/.configured: mkdir -p $(GCC_BUILD_DIR_INITIAL) - cd $(GCC_BUILD_DIR_INITIAL); PATH='$(TARGET_PATH)' \ + cd $(GCC_BUILD_DIR_INITIAL); \ + PATH='$(TARGET_PATH)' \ CFLAGS="-O0 -g0" \ CXXFLAGS="-O0 -g0" \ $(WRKBUILD)/configure \ @@ -174,7 +177,8 @@ $(WRKBUILD)/.configured: $(GCC_BUILD_DIR_INITIAL)/.compiled $(GCC_BUILD_DIR_FINAL)/.configured: mkdir -p $(GCC_BUILD_DIR_FINAL) - cd $(GCC_BUILD_DIR_FINAL); PATH='$(TARGET_PATH)' \ + cd $(GCC_BUILD_DIR_FINAL); \ + PATH='$(TARGET_PATH)' \ $(WRKBUILD)/configure \ ${GCC_CONFOPTS} \ ${GCC_FINAL_CONFOPTS} \ @@ -192,19 +196,12 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled PATH='$(TARGET_PATH)' $(MAKE) -C $(GCC_BUILD_DIR_FINAL) install # remove duplicate tools, convert hardlinks to symlinks set -e; \ - cd $(STAGING_HOST_DIR)/$(GNU_TARGET_NAME)/bin; \ + cd $(TOOLCHAIN_DIR)/usr/$(GNU_TARGET_NAME)/bin; \ for app in ar as c++ g++ gcc ld ld.bfd nm objcopy objdump ranlib strip; do \ ln -sf ../../bin/$(GNU_TARGET_NAME)-$${app} $${app}; \ done; - (cd $(STAGING_HOST_DIR)/bin && \ + (cd $(TOOLCHAIN_DIR)/usr/bin && \ ln -sf $(GNU_TARGET_NAME)-gcc $(GNU_TARGET_NAME)-gcc-${PKG_VERSION}) - # setup symlink, so that gcc/g++ find cc1plus - (cd $(STAGING_HOST_DIR)/$(GNU_TARGET_NAME)/ && \ - ln -sf ../libexec .) - # setup symlink, so that gcc/g++ find stddef.h - (cd $(STAGING_HOST_DIR)/$(GNU_TARGET_NAME)/lib/ && \ - ln -sf ../../host_${CPU_ARCH}_${ADK_TARGET_LIBC}_${ADK_TARGET_SUFFIX}/lib/gcc .) - # fix linking g++ apps with libtool @-test -d $(STAGING_TARGET_DIR)/lib32 && \ cd $(STAGING_TARGET_DIR)/lib32 && \ ln -sf libstdc++.so.6.0.18 libstdc++.so && \ @@ -218,7 +215,7 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled ln -sf libstdc++.so.6.0.18 libstdc++.so && \ ln -sf libstdc++.so.6.0.18 libstdc++.so.6 # cleanup unneeded docs - rm -rf $(STAGING_HOST_DIR)/share + rm -rf $(TOOLCHAIN_DIR)/usr/share touch $@ include ${TOPDIR}/mk/toolchain.mk diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile index 4af17c3d7..996f9dd87 100644 --- a/toolchain/glibc/Makefile +++ b/toolchain/glibc/Makefile @@ -76,7 +76,7 @@ $(WRKBUILD)/.fixup: ifeq ($(ADK_TOOLCHAIN),y) # strip target libs and host tools for toolchain builds PATH="$(TARGET_PATH)" debug='0' prefix='${TARGET_CROSS}' ${BASH} ${SCRIPT_DIR}/rstrip.sh $(STAGING_TARGET_DIR) - debug='0' prefix=' ' ${BASH} ${SCRIPT_DIR}/rstrip.sh $(STAGING_HOST_DIR)/bin $(STAGING_HOST_DIR)/$(GNU_TARGET_NAME)/ + debug='0' prefix=' ' ${BASH} ${SCRIPT_DIR}/rstrip.sh $(TOOLCHAIN_DIR)/usr endif touch $@ diff --git a/toolchain/gmp/Makefile b/toolchain/gmp/Makefile index 692216b97..3e6e6c626 100644 --- a/toolchain/gmp/Makefile +++ b/toolchain/gmp/Makefile @@ -15,9 +15,10 @@ $(WRKBUILD)/.configured: ifneq ($(OStype),Darwin) (cd $(WRKBUILD); cp configfsf.guess config.guess) endif - (cd $(WRKBUILD); PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" \ + (cd $(WRKBUILD); \ + PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" \ ./configure \ - --prefix=$(STAGING_HOST_DIR) \ + --prefix=$(STAGING_HOST_DIR)/usr \ --with-pic \ --disable-shared \ --enable-static \ diff --git a/toolchain/libelf/Makefile b/toolchain/libelf/Makefile index c243cdd00..90bf4cb8d 100644 --- a/toolchain/libelf/Makefile +++ b/toolchain/libelf/Makefile @@ -14,7 +14,7 @@ $(WRKBUILD)/.headers: $(WRKBUILD)/.configured: (cd $(WRKBUILD); \ $(WRKBUILD)/configure \ - --prefix=$(STAGING_HOST_DIR) \ + --prefix=$(STAGING_HOST_DIR)/usr \ --disable-nls \ --disable-shared \ --enable-static \ diff --git a/toolchain/mpc/Makefile b/toolchain/mpc/Makefile index 81f5b151d..40e7f615e 100644 --- a/toolchain/mpc/Makefile +++ b/toolchain/mpc/Makefile @@ -14,8 +14,8 @@ $(WRKBUILD)/.headers: $(WRKBUILD)/.configured: (cd $(WRKBUILD); \ $(WRKBUILD)/configure \ - --prefix=$(STAGING_HOST_DIR) \ - --with-gmp=$(STAGING_HOST_DIR) \ + --prefix=$(STAGING_HOST_DIR)/usr \ + --with-gmp=$(STAGING_HOST_DIR)/usr \ --disable-shared \ --enable-static \ ); diff --git a/toolchain/mpfr/Makefile b/toolchain/mpfr/Makefile index 019d14d77..954040b85 100644 --- a/toolchain/mpfr/Makefile +++ b/toolchain/mpfr/Makefile @@ -15,7 +15,7 @@ $(WRKBUILD)/.headers: $(WRKBUILD)/.configured: (cd $(WRKBUILD); \ $(WRKBUILD)/configure \ - --prefix=$(STAGING_HOST_DIR) \ + --prefix=$(STAGING_HOST_DIR)/usr \ --with-gmp-build=$(GMP_BUILD_DIR) \ --disable-shared \ --enable-static \ diff --git a/toolchain/musl/patches/musl-git-20140310.patch b/toolchain/musl/patches/musl-git-20140318.patch index 29b58b843..6b4a797f2 100644 --- a/toolchain/musl/patches/musl-git-20140310.patch +++ b/toolchain/musl/patches/musl-git-20140318.patch @@ -1,6 +1,26 @@ +diff -Nur musl-0.9.15/arch/arm/bits/sem.h musl-git/arch/arm/bits/sem.h +--- musl-0.9.15/arch/arm/bits/sem.h 1970-01-01 01:00:00.000000000 +0100 ++++ musl-git/arch/arm/bits/sem.h 2014-03-17 16:49:44.000000000 +0100 +@@ -0,0 +1,16 @@ ++struct semid_ds { ++ struct ipc_perm sem_perm; ++ time_t sem_otime; ++ time_t __unused1; ++ time_t sem_ctime; ++ time_t __unused2; ++#if __BYTE_ORDER == __LITTLE_ENDIAN ++ unsigned short sem_nsems; ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++#else ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++ unsigned short sem_nsems; ++#endif ++ time_t __unused3; ++ time_t __unused4; ++}; diff -Nur musl-0.9.15/arch/arm/bits/shm.h musl-git/arch/arm/bits/shm.h --- musl-0.9.15/arch/arm/bits/shm.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/arm/bits/shm.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/arm/bits/shm.h 2014-03-17 16:49:44.000000000 +0100 @@ -16,3 +16,14 @@ unsigned long __pad1; unsigned long __pad2; @@ -18,7 +38,7 @@ diff -Nur musl-0.9.15/arch/arm/bits/shm.h musl-git/arch/arm/bits/shm.h + diff -Nur musl-0.9.15/arch/arm/bits/termios.h musl-git/arch/arm/bits/termios.h --- musl-0.9.15/arch/arm/bits/termios.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/arm/bits/termios.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/arm/bits/termios.h 2014-03-17 16:49:44.000000000 +0100 @@ -42,6 +42,7 @@ #define IXANY 0004000 #define IXOFF 0010000 @@ -74,7 +94,7 @@ diff -Nur musl-0.9.15/arch/arm/bits/termios.h musl-git/arch/arm/bits/termios.h +#endif diff -Nur musl-0.9.15/arch/arm/syscall_arch.h musl-git/arch/arm/syscall_arch.h --- musl-0.9.15/arch/arm/syscall_arch.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/arm/syscall_arch.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/arm/syscall_arch.h 2014-03-17 16:49:44.000000000 +0100 @@ -3,6 +3,8 @@ ((union { long long ll; long l[2]; }){ .ll = x }).l[1] #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) @@ -84,9 +104,29 @@ diff -Nur musl-0.9.15/arch/arm/syscall_arch.h musl-git/arch/arm/syscall_arch.h #ifndef __clang__ #define __asm_syscall(...) do { \ +diff -Nur musl-0.9.15/arch/i386/bits/sem.h musl-git/arch/i386/bits/sem.h +--- musl-0.9.15/arch/i386/bits/sem.h 1970-01-01 01:00:00.000000000 +0100 ++++ musl-git/arch/i386/bits/sem.h 2014-03-17 16:49:44.000000000 +0100 +@@ -0,0 +1,16 @@ ++struct semid_ds { ++ struct ipc_perm sem_perm; ++ time_t sem_otime; ++ time_t __unused1; ++ time_t sem_ctime; ++ time_t __unused2; ++#if __BYTE_ORDER == __LITTLE_ENDIAN ++ unsigned short sem_nsems; ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++#else ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++ unsigned short sem_nsems; ++#endif ++ time_t __unused3; ++ time_t __unused4; ++}; diff -Nur musl-0.9.15/arch/i386/bits/shm.h musl-git/arch/i386/bits/shm.h --- musl-0.9.15/arch/i386/bits/shm.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/i386/bits/shm.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/i386/bits/shm.h 2014-03-17 16:49:44.000000000 +0100 @@ -16,3 +16,14 @@ unsigned long __pad1; unsigned long __pad2; @@ -104,7 +144,7 @@ diff -Nur musl-0.9.15/arch/i386/bits/shm.h musl-git/arch/i386/bits/shm.h + diff -Nur musl-0.9.15/arch/i386/bits/termios.h musl-git/arch/i386/bits/termios.h --- musl-0.9.15/arch/i386/bits/termios.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/i386/bits/termios.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/i386/bits/termios.h 2014-03-17 16:49:44.000000000 +0100 @@ -42,6 +42,7 @@ #define IXANY 0004000 #define IXOFF 0010000 @@ -158,9 +198,29 @@ diff -Nur musl-0.9.15/arch/i386/bits/termios.h musl-git/arch/i386/bits/termios.h +#define EXTPROC 0200000 +#define XTABS 0014000 +#endif +diff -Nur musl-0.9.15/arch/microblaze/bits/sem.h musl-git/arch/microblaze/bits/sem.h +--- musl-0.9.15/arch/microblaze/bits/sem.h 1970-01-01 01:00:00.000000000 +0100 ++++ musl-git/arch/microblaze/bits/sem.h 2014-03-17 16:49:44.000000000 +0100 +@@ -0,0 +1,16 @@ ++struct semid_ds { ++ struct ipc_perm sem_perm; ++ time_t sem_otime; ++ time_t __unused1; ++ time_t sem_ctime; ++ time_t __unused2; ++#if __BYTE_ORDER == __LITTLE_ENDIAN ++ unsigned short sem_nsems; ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++#else ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++ unsigned short sem_nsems; ++#endif ++ time_t __unused3; ++ time_t __unused4; ++}; diff -Nur musl-0.9.15/arch/microblaze/bits/shm.h musl-git/arch/microblaze/bits/shm.h --- musl-0.9.15/arch/microblaze/bits/shm.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/microblaze/bits/shm.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/microblaze/bits/shm.h 2014-03-17 16:49:44.000000000 +0100 @@ -16,3 +16,14 @@ unsigned long __pad1; unsigned long __pad2; @@ -178,7 +238,7 @@ diff -Nur musl-0.9.15/arch/microblaze/bits/shm.h musl-git/arch/microblaze/bits/s + diff -Nur musl-0.9.15/arch/microblaze/bits/termios.h musl-git/arch/microblaze/bits/termios.h --- musl-0.9.15/arch/microblaze/bits/termios.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/microblaze/bits/termios.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/microblaze/bits/termios.h 2014-03-17 16:49:44.000000000 +0100 @@ -42,6 +42,7 @@ #define IXANY 0004000 #define IXOFF 0010000 @@ -234,7 +294,7 @@ diff -Nur musl-0.9.15/arch/microblaze/bits/termios.h musl-git/arch/microblaze/bi +#endif diff -Nur musl-0.9.15/arch/microblaze/syscall_arch.h musl-git/arch/microblaze/syscall_arch.h --- musl-0.9.15/arch/microblaze/syscall_arch.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/microblaze/syscall_arch.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/microblaze/syscall_arch.h 2014-03-17 16:49:44.000000000 +0100 @@ -3,6 +3,8 @@ ((union { long long ll; long l[2]; }){ .ll = x }).l[1] #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) @@ -246,7 +306,7 @@ diff -Nur musl-0.9.15/arch/microblaze/syscall_arch.h musl-git/arch/microblaze/sy static __inline long __syscall0(long n) diff -Nur musl-0.9.15/arch/mips/bits/fenv.h musl-git/arch/mips/bits/fenv.h --- musl-0.9.15/arch/mips/bits/fenv.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/mips/bits/fenv.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/mips/bits/fenv.h 2014-03-17 16:49:44.000000000 +0100 @@ -1,3 +1,7 @@ +#ifdef __mips_soft_float +#define FE_ALL_EXCEPT 0 @@ -263,9 +323,27 @@ diff -Nur musl-0.9.15/arch/mips/bits/fenv.h musl-git/arch/mips/bits/fenv.h typedef unsigned short fexcept_t; +diff -Nur musl-0.9.15/arch/mips/bits/sem.h musl-git/arch/mips/bits/sem.h +--- musl-0.9.15/arch/mips/bits/sem.h 1970-01-01 01:00:00.000000000 +0100 ++++ musl-git/arch/mips/bits/sem.h 2014-03-17 16:49:44.000000000 +0100 +@@ -0,0 +1,14 @@ ++struct semid_ds { ++ struct ipc_perm sem_perm; ++ time_t sem_otime; ++ time_t sem_ctime; ++#if __BYTE_ORDER == __LITTLE_ENDIAN ++ unsigned short sem_nsems; ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++#else ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++ unsigned short sem_nsems; ++#endif ++ time_t __unused3; ++ time_t __unused4; ++}; diff -Nur musl-0.9.15/arch/mips/bits/shm.h musl-git/arch/mips/bits/shm.h --- musl-0.9.15/arch/mips/bits/shm.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/mips/bits/shm.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/mips/bits/shm.h 2014-03-17 16:49:44.000000000 +0100 @@ -13,3 +13,14 @@ unsigned long __pad1; unsigned long __pad2; @@ -281,9 +359,24 @@ diff -Nur musl-0.9.15/arch/mips/bits/shm.h musl-git/arch/mips/bits/shm.h + unsigned long __swap_attempts, __swap_successes; +}; + +diff -Nur musl-0.9.15/arch/mips/bits/statfs.h musl-git/arch/mips/bits/statfs.h +--- musl-0.9.15/arch/mips/bits/statfs.h 2014-01-03 21:12:17.000000000 +0100 ++++ musl-git/arch/mips/bits/statfs.h 2014-03-17 16:49:44.000000000 +0100 +@@ -1,7 +1,8 @@ + struct statfs { +- unsigned long f_type, f_bsize; +- fsblkcnt_t f_blocks, f_bfree, f_bavail; ++ unsigned long f_type, f_bsize, f_frsize; ++ fsblkcnt_t f_blocks, f_bfree; + fsfilcnt_t f_files, f_ffree; ++ fsblkcnt_t f_bavail; + fsid_t f_fsid; +- unsigned long f_namelen, f_frsize, f_flags, f_spare[4]; ++ unsigned long f_namelen, f_flags, f_spare[5]; + }; diff -Nur musl-0.9.15/arch/mips/bits/termios.h musl-git/arch/mips/bits/termios.h --- musl-0.9.15/arch/mips/bits/termios.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/mips/bits/termios.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/mips/bits/termios.h 2014-03-17 16:49:44.000000000 +0100 @@ -77,9 +77,6 @@ #define VT0 0000000 #define VT1 0040000 @@ -334,7 +427,7 @@ diff -Nur musl-0.9.15/arch/mips/bits/termios.h musl-git/arch/mips/bits/termios.h +#endif diff -Nur musl-0.9.15/arch/mips/reloc.h musl-git/arch/mips/reloc.h --- musl-0.9.15/arch/mips/reloc.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/mips/reloc.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/mips/reloc.h 2014-03-17 16:49:44.000000000 +0100 @@ -8,7 +8,13 @@ #define ENDIAN_SUFFIX "" #endif @@ -352,7 +445,7 @@ diff -Nur musl-0.9.15/arch/mips/reloc.h musl-git/arch/mips/reloc.h #define IS_PLT(x) 1 diff -Nur musl-0.9.15/arch/mips/syscall_arch.h musl-git/arch/mips/syscall_arch.h --- musl-0.9.15/arch/mips/syscall_arch.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/mips/syscall_arch.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/mips/syscall_arch.h 2014-03-17 16:49:44.000000000 +0100 @@ -3,6 +3,8 @@ ((union { long long ll; long l[2]; }){ .ll = x }).l[1] #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) @@ -362,10 +455,76 @@ diff -Nur musl-0.9.15/arch/mips/syscall_arch.h musl-git/arch/mips/syscall_arch.h #ifndef __clang__ #define __asm_syscall(...) do { \ +diff -Nur musl-0.9.15/arch/powerpc/bits/ipc.h musl-git/arch/powerpc/bits/ipc.h +--- musl-0.9.15/arch/powerpc/bits/ipc.h 2014-01-03 21:12:17.000000000 +0100 ++++ musl-git/arch/powerpc/bits/ipc.h 2014-03-17 16:49:44.000000000 +0100 +@@ -7,8 +7,9 @@ + gid_t cgid; + mode_t mode; + int __ipc_perm_seq; +- long __pad1; +- long __pad2; ++ int __pad1; ++ long long __pad2; ++ long long __pad3; + }; + + #define IPC_64 0x100 +diff -Nur musl-0.9.15/arch/powerpc/bits/msg.h musl-git/arch/powerpc/bits/msg.h +--- musl-0.9.15/arch/powerpc/bits/msg.h 2014-01-03 21:12:17.000000000 +0100 ++++ musl-git/arch/powerpc/bits/msg.h 2014-03-17 16:49:44.000000000 +0100 +@@ -1,12 +1,12 @@ + struct msqid_ds + { + struct ipc_perm msg_perm; +- time_t msg_stime; + int __unused1; +- time_t msg_rtime; ++ time_t msg_stime; + int __unused2; +- time_t msg_ctime; ++ time_t msg_rtime; + int __unused3; ++ time_t msg_ctime; + unsigned long msg_cbytes; + msgqnum_t msg_qnum; + msglen_t msg_qbytes; +diff -Nur musl-0.9.15/arch/powerpc/bits/sem.h musl-git/arch/powerpc/bits/sem.h +--- musl-0.9.15/arch/powerpc/bits/sem.h 1970-01-01 01:00:00.000000000 +0100 ++++ musl-git/arch/powerpc/bits/sem.h 2014-03-17 16:49:44.000000000 +0100 +@@ -0,0 +1,10 @@ ++struct semid_ds { ++ struct ipc_perm sem_perm; ++ int __unused1; ++ time_t sem_otime; ++ int __unused2; ++ time_t sem_ctime; ++ unsigned short __sem_nsems_pad, sem_nsems; ++ long __unused3; ++ long __unused4; ++}; diff -Nur musl-0.9.15/arch/powerpc/bits/shm.h musl-git/arch/powerpc/bits/shm.h --- musl-0.9.15/arch/powerpc/bits/shm.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/powerpc/bits/shm.h 2014-03-10 16:52:06.000000000 +0100 -@@ -16,3 +16,14 @@ ++++ musl-git/arch/powerpc/bits/shm.h 2014-03-17 16:49:44.000000000 +0100 +@@ -3,16 +3,28 @@ + struct shmid_ds + { + struct ipc_perm shm_perm; +- size_t shm_segsz; +- time_t shm_atime; + int __unused1; +- time_t shm_dtime; ++ time_t shm_atime; + int __unused2; +- time_t shm_ctime; ++ time_t shm_dtime; + int __unused3; ++ time_t shm_ctime; ++ int __unused4; ++ size_t shm_segsz; + pid_t shm_cpid; + pid_t shm_lpid; + unsigned long shm_nattch; unsigned long __pad1; unsigned long __pad2; }; @@ -380,9 +539,29 @@ diff -Nur musl-0.9.15/arch/powerpc/bits/shm.h musl-git/arch/powerpc/bits/shm.h + unsigned long __swap_attempts, __swap_successes; +}; + +diff -Nur musl-0.9.15/arch/powerpc/bits/socket.h musl-git/arch/powerpc/bits/socket.h +--- musl-0.9.15/arch/powerpc/bits/socket.h 2014-01-03 21:12:17.000000000 +0100 ++++ musl-git/arch/powerpc/bits/socket.h 2014-03-17 16:49:44.000000000 +0100 +@@ -1,12 +1,12 @@ + struct msghdr + { + void *msg_name; +- int msg_namelen; ++ socklen_t msg_namelen; + struct iovec *msg_iov; +- unsigned long msg_iovlen; ++ int msg_iovlen; + void *msg_control; +- unsigned long msg_controllen; +- unsigned msg_flags; ++ socklen_t msg_controllen; ++ int msg_flags; + }; + + struct cmsghdr diff -Nur musl-0.9.15/arch/powerpc/bits/termios.h musl-git/arch/powerpc/bits/termios.h --- musl-0.9.15/arch/powerpc/bits/termios.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/powerpc/bits/termios.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/powerpc/bits/termios.h 2014-03-17 16:49:44.000000000 +0100 @@ -66,7 +66,6 @@ #define TAB1 00002000 #define TAB2 00004000 @@ -442,7 +621,7 @@ diff -Nur musl-0.9.15/arch/powerpc/bits/termios.h musl-git/arch/powerpc/bits/ter +#endif diff -Nur musl-0.9.15/arch/sh/atomic.h musl-git/arch/sh/atomic.h --- musl-0.9.15/arch/sh/atomic.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/atomic.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/atomic.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,87 @@ +#ifndef _INTERNAL_ATOMIC_H +#define _INTERNAL_ATOMIC_H @@ -533,7 +712,7 @@ diff -Nur musl-0.9.15/arch/sh/atomic.h musl-git/arch/sh/atomic.h +#endif diff -Nur musl-0.9.15/arch/sh/bits/alltypes.h.in musl-git/arch/sh/bits/alltypes.h.in --- musl-0.9.15/arch/sh/bits/alltypes.h.in 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/alltypes.h.in 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/alltypes.h.in 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,23 @@ +#define _Addr int +#define _Int64 long long @@ -560,7 +739,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/alltypes.h.in musl-git/arch/sh/bits/alltypes. +TYPEDEF struct { union { int __i[5]; void *__p[5]; } __u; } pthread_barrier_t; diff -Nur musl-0.9.15/arch/sh/bits/endian.h musl-git/arch/sh/bits/endian.h --- musl-0.9.15/arch/sh/bits/endian.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/endian.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/endian.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,5 @@ +#if __BIG_ENDIAN__ +#define __BYTE_ORDER __BIG_ENDIAN @@ -569,7 +748,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/endian.h musl-git/arch/sh/bits/endian.h +#endif diff -Nur musl-0.9.15/arch/sh/bits/errno.h musl-git/arch/sh/bits/errno.h --- musl-0.9.15/arch/sh/bits/errno.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/errno.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/errno.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,134 @@ +#define EPERM 1 +#define ENOENT 2 @@ -707,7 +886,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/errno.h musl-git/arch/sh/bits/errno.h +#define EHWPOISON 133 diff -Nur musl-0.9.15/arch/sh/bits/fcntl.h musl-git/arch/sh/bits/fcntl.h --- musl-0.9.15/arch/sh/bits/fcntl.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/fcntl.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/fcntl.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,39 @@ +#define O_CREAT 0100 +#define O_EXCL 0200 @@ -750,7 +929,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/fcntl.h musl-git/arch/sh/bits/fcntl.h +#define F_GETOWNER_UIDS 17 diff -Nur musl-0.9.15/arch/sh/bits/fenv.h musl-git/arch/sh/bits/fenv.h --- musl-0.9.15/arch/sh/bits/fenv.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/fenv.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/fenv.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,26 @@ +#ifndef __SH_FPU_ANY__ + @@ -780,7 +959,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/fenv.h musl-git/arch/sh/bits/fenv.h +#define FE_DFL_ENV ((const fenv_t *) -1) diff -Nur musl-0.9.15/arch/sh/bits/float.h musl-git/arch/sh/bits/float.h --- musl-0.9.15/arch/sh/bits/float.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/float.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/float.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,17 @@ +#define FLT_ROUNDS 1 +#define FLT_EVAL_METHOD 0 @@ -801,7 +980,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/float.h musl-git/arch/sh/bits/float.h +#define DECIMAL_DIG 17 diff -Nur musl-0.9.15/arch/sh/bits/ioctl.h musl-git/arch/sh/bits/ioctl.h --- musl-0.9.15/arch/sh/bits/ioctl.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/ioctl.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/ioctl.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,205 @@ +#define _IOC(a,b,c,d) ( ((a)<<30) | ((b)<<8) | (c) | ((d)<<16) ) +#define _IOC_NONE 0U @@ -1010,7 +1189,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/ioctl.h musl-git/arch/sh/bits/ioctl.h +#define SIOCPROTOPRIVATE 0x89E0 diff -Nur musl-0.9.15/arch/sh/bits/ipc.h musl-git/arch/sh/bits/ipc.h --- musl-0.9.15/arch/sh/bits/ipc.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/ipc.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/ipc.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,14 @@ +struct ipc_perm +{ @@ -1028,7 +1207,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/ipc.h musl-git/arch/sh/bits/ipc.h +#define IPC_64 0x100 diff -Nur musl-0.9.15/arch/sh/bits/limits.h musl-git/arch/sh/bits/limits.h --- musl-0.9.15/arch/sh/bits/limits.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/limits.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/limits.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,8 @@ +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) @@ -1040,7 +1219,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/limits.h musl-git/arch/sh/bits/limits.h +#define LLONG_MAX 0x7fffffffffffffffLL diff -Nur musl-0.9.15/arch/sh/bits/mman.h musl-git/arch/sh/bits/mman.h --- musl-0.9.15/arch/sh/bits/mman.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/mman.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/mman.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,62 @@ +#define MAP_FAILED ((void *) -1) + @@ -1106,7 +1285,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/mman.h musl-git/arch/sh/bits/mman.h +#endif diff -Nur musl-0.9.15/arch/sh/bits/msg.h musl-git/arch/sh/bits/msg.h --- musl-0.9.15/arch/sh/bits/msg.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/msg.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/msg.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,16 @@ +struct msqid_ds +{ @@ -1126,18 +1305,38 @@ diff -Nur musl-0.9.15/arch/sh/bits/msg.h musl-git/arch/sh/bits/msg.h +}; diff -Nur musl-0.9.15/arch/sh/bits/posix.h musl-git/arch/sh/bits/posix.h --- musl-0.9.15/arch/sh/bits/posix.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/posix.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/posix.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,2 @@ +#define _POSIX_V6_ILP32_OFFBIG 1 +#define _POSIX_V7_ILP32_OFFBIG 1 +diff -Nur musl-0.9.15/arch/sh/bits/sem.h musl-git/arch/sh/bits/sem.h +--- musl-0.9.15/arch/sh/bits/sem.h 1970-01-01 01:00:00.000000000 +0100 ++++ musl-git/arch/sh/bits/sem.h 2014-03-17 16:49:44.000000000 +0100 +@@ -0,0 +1,16 @@ ++struct semid_ds { ++ struct ipc_perm sem_perm; ++ time_t sem_otime; ++ time_t __unused1; ++ time_t sem_ctime; ++ time_t __unused2; ++#if __BYTE_ORDER == __LITTLE_ENDIAN ++ unsigned short sem_nsems; ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++#else ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++ unsigned short sem_nsems; ++#endif ++ time_t __unused3; ++ time_t __unused4; ++}; diff -Nur musl-0.9.15/arch/sh/bits/setjmp.h musl-git/arch/sh/bits/setjmp.h --- musl-0.9.15/arch/sh/bits/setjmp.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/setjmp.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/setjmp.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +typedef unsigned long __jmp_buf[13]; diff -Nur musl-0.9.15/arch/sh/bits/shm.h musl-git/arch/sh/bits/shm.h --- musl-0.9.15/arch/sh/bits/shm.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/shm.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/shm.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,28 @@ +#define SHMLBA 16384 + @@ -1169,7 +1368,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/shm.h musl-git/arch/sh/bits/shm.h +}; diff -Nur musl-0.9.15/arch/sh/bits/signal.h musl-git/arch/sh/bits/signal.h --- musl-0.9.15/arch/sh/bits/signal.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/signal.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/signal.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,76 @@ +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) @@ -1249,7 +1448,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/signal.h musl-git/arch/sh/bits/signal.h +#define _NSIG 65 diff -Nur musl-0.9.15/arch/sh/bits/socket.h musl-git/arch/sh/bits/socket.h --- musl-0.9.15/arch/sh/bits/socket.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/socket.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/socket.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,17 @@ +struct msghdr +{ @@ -1270,7 +1469,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/socket.h musl-git/arch/sh/bits/socket.h +}; diff -Nur musl-0.9.15/arch/sh/bits/statfs.h musl-git/arch/sh/bits/statfs.h --- musl-0.9.15/arch/sh/bits/statfs.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/statfs.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/statfs.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,7 @@ +struct statfs { + unsigned long f_type, f_bsize; @@ -1281,7 +1480,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/statfs.h musl-git/arch/sh/bits/statfs.h +}; diff -Nur musl-0.9.15/arch/sh/bits/stat.h musl-git/arch/sh/bits/stat.h --- musl-0.9.15/arch/sh/bits/stat.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/stat.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/stat.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,22 @@ +/* copied from kernel definition, but with padding replaced + * by the corresponding correctly-sized userspace types. */ @@ -1307,7 +1506,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/stat.h musl-git/arch/sh/bits/stat.h +}; diff -Nur musl-0.9.15/arch/sh/bits/stdarg.h musl-git/arch/sh/bits/stdarg.h --- musl-0.9.15/arch/sh/bits/stdarg.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/stdarg.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/stdarg.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,4 @@ +#define va_start(v,l) __builtin_va_start(v,l) +#define va_end(v) __builtin_va_end(v) @@ -1315,7 +1514,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/stdarg.h musl-git/arch/sh/bits/stdarg.h +#define va_copy(d,s) __builtin_va_copy(d,s) diff -Nur musl-0.9.15/arch/sh/bits/stdint.h musl-git/arch/sh/bits/stdint.h --- musl-0.9.15/arch/sh/bits/stdint.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/stdint.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/stdint.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,20 @@ +typedef int32_t int_fast16_t; +typedef int32_t int_fast32_t; @@ -1339,7 +1538,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/stdint.h musl-git/arch/sh/bits/stdint.h +#define SIZE_MAX UINT32_MAX diff -Nur musl-0.9.15/arch/sh/bits/syscall.h musl-git/arch/sh/bits/syscall.h --- musl-0.9.15/arch/sh/bits/syscall.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/syscall.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/syscall.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,684 @@ +#define __NR_restart_syscall 0 +#define __NR_exit 1 @@ -2027,7 +2226,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/syscall.h musl-git/arch/sh/bits/syscall.h +#define SYS_finit_module 368 diff -Nur musl-0.9.15/arch/sh/bits/termios.h musl-git/arch/sh/bits/termios.h --- musl-0.9.15/arch/sh/bits/termios.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/termios.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/termios.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,160 @@ +struct termios +{ @@ -2191,7 +2390,7 @@ diff -Nur musl-0.9.15/arch/sh/bits/termios.h musl-git/arch/sh/bits/termios.h +#endif diff -Nur musl-0.9.15/arch/sh/bits/user.h musl-git/arch/sh/bits/user.h --- musl-0.9.15/arch/sh/bits/user.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/bits/user.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/bits/user.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,75 @@ +#undef __WORDSIZE +#define __WORDSIZE 32 @@ -2270,8 +2469,8 @@ diff -Nur musl-0.9.15/arch/sh/bits/user.h musl-git/arch/sh/bits/user.h +}; diff -Nur musl-0.9.15/arch/sh/crt_arch.h musl-git/arch/sh/crt_arch.h --- musl-0.9.15/arch/sh/crt_arch.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/crt_arch.h 2014-03-10 16:52:06.000000000 +0100 -@@ -0,0 +1,9 @@ ++++ musl-git/arch/sh/crt_arch.h 2014-03-17 16:49:44.000000000 +0100 +@@ -0,0 +1,12 @@ +__asm__("\ +.global _start \n\ +_start: \n\ @@ -2281,9 +2480,12 @@ diff -Nur musl-0.9.15/arch/sh/crt_arch.h musl-git/arch/sh/crt_arch.h + bsr __cstart \n\ + nop \n\ +"); ++ ++/* used by gcc for switching the FPU between single and double precision */ ++const unsigned long __fpscr_values[2] = { 0, 0x80000 }; diff -Nur musl-0.9.15/arch/sh/pthread_arch.h musl-git/arch/sh/pthread_arch.h --- musl-0.9.15/arch/sh/pthread_arch.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/pthread_arch.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/pthread_arch.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,11 @@ +static inline struct pthread *__pthread_self() +{ @@ -2298,7 +2500,7 @@ diff -Nur musl-0.9.15/arch/sh/pthread_arch.h musl-git/arch/sh/pthread_arch.h +#define CANCEL_REG_IP 17 diff -Nur musl-0.9.15/arch/sh/reloc.h musl-git/arch/sh/reloc.h --- musl-0.9.15/arch/sh/reloc.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/reloc.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/reloc.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,47 @@ +#if __BYTE_ORDER == __BIG_ENDIAN +#define ENDIAN_SUFFIX "eb" @@ -2349,7 +2551,7 @@ diff -Nur musl-0.9.15/arch/sh/reloc.h musl-git/arch/sh/reloc.h +} diff -Nur musl-0.9.15/arch/sh/src/atomic.c musl-git/arch/sh/src/atomic.c --- musl-0.9.15/arch/sh/src/atomic.c 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/src/atomic.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/src/atomic.c 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,146 @@ +#include "libc.h" + @@ -2499,13 +2701,16 @@ diff -Nur musl-0.9.15/arch/sh/src/atomic.c musl-git/arch/sh/src/atomic.c +} diff -Nur musl-0.9.15/arch/sh/src/__fpsrc_values.c musl-git/arch/sh/src/__fpsrc_values.c --- musl-0.9.15/arch/sh/src/__fpsrc_values.c 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/src/__fpsrc_values.c 2014-03-10 16:52:06.000000000 +0100 -@@ -0,0 +1,2 @@ ++++ musl-git/arch/sh/src/__fpsrc_values.c 2014-03-17 16:49:44.000000000 +0100 +@@ -0,0 +1,5 @@ ++#include "libc.h" ++ +/* used by gcc for switching the FPU between single and double precision */ -+const unsigned long __fpscr_values[2] = { 0, 0x80000 }; ++const unsigned long __fpscr_values[2] ATTR_LIBC_VISIBILITY = { 0, 0x80000 }; ++ diff -Nur musl-0.9.15/arch/sh/syscall_arch.h musl-git/arch/sh/syscall_arch.h --- musl-0.9.15/arch/sh/syscall_arch.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/sh/syscall_arch.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/sh/syscall_arch.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,87 @@ +#define __SYSCALL_LL_E(x) \ +((union { long long ll; long l[2]; }){ .ll = x }).l[0], \ @@ -2596,7 +2801,7 @@ diff -Nur musl-0.9.15/arch/sh/syscall_arch.h musl-git/arch/sh/syscall_arch.h +} diff -Nur musl-0.9.15/arch/x32/atomic.h musl-git/arch/x32/atomic.h --- musl-0.9.15/arch/x32/atomic.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/atomic.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/atomic.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,125 @@ +#ifndef _INTERNAL_ATOMIC_H +#define _INTERNAL_ATOMIC_H @@ -2725,7 +2930,7 @@ diff -Nur musl-0.9.15/arch/x32/atomic.h musl-git/arch/x32/atomic.h +#endif diff -Nur musl-0.9.15/arch/x32/bits/alltypes.h.in musl-git/arch/x32/bits/alltypes.h.in --- musl-0.9.15/arch/x32/bits/alltypes.h.in 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/alltypes.h.in 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/alltypes.h.in 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,28 @@ +#define _Addr int +#define _Int64 long long @@ -2757,12 +2962,12 @@ diff -Nur musl-0.9.15/arch/x32/bits/alltypes.h.in musl-git/arch/x32/bits/alltype +TYPEDEF struct { union { int __i[8]; void *__p[4]; } __u; } pthread_barrier_t; diff -Nur musl-0.9.15/arch/x32/bits/endian.h musl-git/arch/x32/bits/endian.h --- musl-0.9.15/arch/x32/bits/endian.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/endian.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/endian.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +#define __BYTE_ORDER __LITTLE_ENDIAN diff -Nur musl-0.9.15/arch/x32/bits/errno.h musl-git/arch/x32/bits/errno.h --- musl-0.9.15/arch/x32/bits/errno.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/errno.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/errno.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,134 @@ +#define EPERM 1 +#define ENOENT 2 @@ -2900,7 +3105,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/errno.h musl-git/arch/x32/bits/errno.h +#define EHWPOISON 133 diff -Nur musl-0.9.15/arch/x32/bits/fcntl.h musl-git/arch/x32/bits/fcntl.h --- musl-0.9.15/arch/x32/bits/fcntl.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/fcntl.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/fcntl.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,39 @@ +#define O_CREAT 0100 +#define O_EXCL 0200 @@ -2943,7 +3148,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/fcntl.h musl-git/arch/x32/bits/fcntl.h +#define F_GETOWNER_UIDS 17 diff -Nur musl-0.9.15/arch/x32/bits/fenv.h musl-git/arch/x32/bits/fenv.h --- musl-0.9.15/arch/x32/bits/fenv.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/fenv.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/fenv.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,34 @@ +#define FE_INVALID 1 +#define __FE_DENORM 2 @@ -2981,7 +3186,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/fenv.h musl-git/arch/x32/bits/fenv.h +#define FE_DFL_ENV ((const fenv_t *) -1) diff -Nur musl-0.9.15/arch/x32/bits/float.h musl-git/arch/x32/bits/float.h --- musl-0.9.15/arch/x32/bits/float.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/float.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/float.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,21 @@ +#define FLT_ROUNDS 1 +#ifdef __FLT_EVAL_METHOD__ @@ -3006,7 +3211,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/float.h musl-git/arch/x32/bits/float.h +#define DECIMAL_DIG 21 diff -Nur musl-0.9.15/arch/x32/bits/ioctl.h musl-git/arch/x32/bits/ioctl.h --- musl-0.9.15/arch/x32/bits/ioctl.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/ioctl.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/ioctl.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,197 @@ +#define _IOC(a,b,c,d) ( ((a)<<30) | ((b)<<8) | (c) | ((d)<<16) ) +#define _IOC_NONE 0U @@ -3207,7 +3412,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/ioctl.h musl-git/arch/x32/bits/ioctl.h +#define SIOCPROTOPRIVATE 0x89E0 diff -Nur musl-0.9.15/arch/x32/bits/io.h musl-git/arch/x32/bits/io.h --- musl-0.9.15/arch/x32/bits/io.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/io.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/io.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,77 @@ +static __inline void outb(unsigned char __val, unsigned short __port) +{ @@ -3288,7 +3493,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/io.h musl-git/arch/x32/bits/io.h +} diff -Nur musl-0.9.15/arch/x32/bits/ipc.h musl-git/arch/x32/bits/ipc.h --- musl-0.9.15/arch/x32/bits/ipc.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/ipc.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/ipc.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,14 @@ +struct ipc_perm +{ @@ -3306,7 +3511,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/ipc.h musl-git/arch/x32/bits/ipc.h +#define IPC_64 0 diff -Nur musl-0.9.15/arch/x32/bits/limits.h musl-git/arch/x32/bits/limits.h --- musl-0.9.15/arch/x32/bits/limits.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/limits.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/limits.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,8 @@ +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) @@ -3318,7 +3523,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/limits.h musl-git/arch/x32/bits/limits.h +#define LLONG_MAX 0x7fffffffffffffffLL diff -Nur musl-0.9.15/arch/x32/bits/mman.h musl-git/arch/x32/bits/mman.h --- musl-0.9.15/arch/x32/bits/mman.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/mman.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/mman.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,62 @@ +#define MAP_FAILED ((void *) -1) + @@ -3384,7 +3589,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/mman.h musl-git/arch/x32/bits/mman.h +#endif diff -Nur musl-0.9.15/arch/x32/bits/msg.h musl-git/arch/x32/bits/msg.h --- musl-0.9.15/arch/x32/bits/msg.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/msg.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/msg.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,16 @@ +struct msqid_ds +{ @@ -3404,13 +3609,13 @@ diff -Nur musl-0.9.15/arch/x32/bits/msg.h musl-git/arch/x32/bits/msg.h +}; diff -Nur musl-0.9.15/arch/x32/bits/posix.h musl-git/arch/x32/bits/posix.h --- musl-0.9.15/arch/x32/bits/posix.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/posix.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/posix.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,2 @@ +#define _POSIX_V6_LP64_OFF64 1 +#define _POSIX_V7_LP64_OFF64 1 diff -Nur musl-0.9.15/arch/x32/bits/reg.h musl-git/arch/x32/bits/reg.h --- musl-0.9.15/arch/x32/bits/reg.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/reg.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/reg.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,29 @@ +#undef __WORDSIZE +#define __WORDSIZE 32 @@ -3441,14 +3646,34 @@ diff -Nur musl-0.9.15/arch/x32/bits/reg.h musl-git/arch/x32/bits/reg.h +#define ES 24 +#define FS 25 +#define GS 26 +diff -Nur musl-0.9.15/arch/x32/bits/sem.h musl-git/arch/x32/bits/sem.h +--- musl-0.9.15/arch/x32/bits/sem.h 1970-01-01 01:00:00.000000000 +0100 ++++ musl-git/arch/x32/bits/sem.h 2014-03-17 16:49:44.000000000 +0100 +@@ -0,0 +1,16 @@ ++struct semid_ds { ++ struct ipc_perm sem_perm; ++ time_t sem_otime; ++ time_t __unused1; ++ time_t sem_ctime; ++ time_t __unused2; ++#if __BYTE_ORDER == __LITTLE_ENDIAN ++ unsigned short sem_nsems; ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++#else ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++ unsigned short sem_nsems; ++#endif ++ time_t __unused3; ++ time_t __unused4; ++}; diff -Nur musl-0.9.15/arch/x32/bits/setjmp.h musl-git/arch/x32/bits/setjmp.h --- musl-0.9.15/arch/x32/bits/setjmp.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/setjmp.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/setjmp.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +typedef unsigned long long __jmp_buf[8]; diff -Nur musl-0.9.15/arch/x32/bits/shm.h musl-git/arch/x32/bits/shm.h --- musl-0.9.15/arch/x32/bits/shm.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/shm.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/shm.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,33 @@ +#define SHMLBA 4096 + @@ -3485,7 +3710,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/shm.h musl-git/arch/x32/bits/shm.h +; diff -Nur musl-0.9.15/arch/x32/bits/signal.h musl-git/arch/x32/bits/signal.h --- musl-0.9.15/arch/x32/bits/signal.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/signal.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/signal.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,119 @@ +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) @@ -3608,7 +3833,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/signal.h musl-git/arch/x32/bits/signal.h + diff -Nur musl-0.9.15/arch/x32/bits/socket.h musl-git/arch/x32/bits/socket.h --- musl-0.9.15/arch/x32/bits/socket.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/socket.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/socket.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,18 @@ +struct msghdr +{ @@ -3630,18 +3855,20 @@ diff -Nur musl-0.9.15/arch/x32/bits/socket.h musl-git/arch/x32/bits/socket.h +}; diff -Nur musl-0.9.15/arch/x32/bits/statfs.h musl-git/arch/x32/bits/statfs.h --- musl-0.9.15/arch/x32/bits/statfs.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/statfs.h 2014-03-10 16:52:06.000000000 +0100 -@@ -0,0 +1,7 @@ ++++ musl-git/arch/x32/bits/statfs.h 2014-03-18 13:19:59.000000000 +0100 +@@ -0,0 +1,9 @@ +struct statfs { -+ unsigned long f_type, f_bsize; ++ unsigned long f_type, __pad0, f_bsize, __pad1; + fsblkcnt_t f_blocks, f_bfree, f_bavail; + fsfilcnt_t f_files, f_ffree; + fsid_t f_fsid; -+ unsigned long f_namelen, f_frsize, f_flags, f_spare[4]; ++ unsigned long f_namelen, __pad2, f_frsize, __pad3; ++ unsigned long f_flags, __pad4; ++ unsigned long long f_spare[4]; +}; diff -Nur musl-0.9.15/arch/x32/bits/stat.h musl-git/arch/x32/bits/stat.h --- musl-0.9.15/arch/x32/bits/stat.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/stat.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/stat.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,22 @@ +/* copied from kernel definition, but with padding replaced + * by the corresponding correctly-sized userspace types. */ @@ -3667,7 +3894,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/stat.h musl-git/arch/x32/bits/stat.h +}; diff -Nur musl-0.9.15/arch/x32/bits/stdarg.h musl-git/arch/x32/bits/stdarg.h --- musl-0.9.15/arch/x32/bits/stdarg.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/stdarg.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/stdarg.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,4 @@ +#define va_start(v,l) __builtin_va_start(v,l) +#define va_end(v) __builtin_va_end(v) @@ -3675,7 +3902,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/stdarg.h musl-git/arch/x32/bits/stdarg.h +#define va_copy(d,s) __builtin_va_copy(d,s) diff -Nur musl-0.9.15/arch/x32/bits/stdint.h musl-git/arch/x32/bits/stdint.h --- musl-0.9.15/arch/x32/bits/stdint.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/stdint.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/stdint.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,20 @@ +typedef int32_t int_fast16_t; +typedef int32_t int_fast32_t; @@ -3699,7 +3926,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/stdint.h musl-git/arch/x32/bits/stdint.h +#define SIZE_MAX UINT32_MAX diff -Nur musl-0.9.15/arch/x32/bits/syscall.h musl-git/arch/x32/bits/syscall.h --- musl-0.9.15/arch/x32/bits/syscall.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/syscall.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/syscall.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,634 @@ +#define __X32_SYSCALL_BIT 0x40000000 +#define __NR_read (__X32_SYSCALL_BIT + 0) @@ -4337,7 +4564,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/syscall.h musl-git/arch/x32/bits/syscall.h +#define SYS_fadvise SYS_fadvise64 diff -Nur musl-0.9.15/arch/x32/bits/termios.h musl-git/arch/x32/bits/termios.h --- musl-0.9.15/arch/x32/bits/termios.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/termios.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/termios.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,160 @@ +struct termios +{ @@ -4501,7 +4728,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/termios.h musl-git/arch/x32/bits/termios.h +#endif diff -Nur musl-0.9.15/arch/x32/bits/user.h musl-git/arch/x32/bits/user.h --- musl-0.9.15/arch/x32/bits/user.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/bits/user.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/bits/user.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,44 @@ +#undef __WORDSIZE +#define __WORDSIZE 64 @@ -4549,7 +4776,7 @@ diff -Nur musl-0.9.15/arch/x32/bits/user.h musl-git/arch/x32/bits/user.h +#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) diff -Nur musl-0.9.15/arch/x32/crt_arch.h musl-git/arch/x32/crt_arch.h --- musl-0.9.15/arch/x32/crt_arch.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/crt_arch.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/crt_arch.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,9 @@ +__asm__("\ +.text \n\ @@ -4562,7 +4789,7 @@ diff -Nur musl-0.9.15/arch/x32/crt_arch.h musl-git/arch/x32/crt_arch.h +"); diff -Nur musl-0.9.15/arch/x32/pthread_arch.h musl-git/arch/x32/pthread_arch.h --- musl-0.9.15/arch/x32/pthread_arch.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/pthread_arch.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/pthread_arch.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,10 @@ +static inline struct pthread *__pthread_self() +{ @@ -4576,7 +4803,7 @@ diff -Nur musl-0.9.15/arch/x32/pthread_arch.h musl-git/arch/x32/pthread_arch.h +#define CANCEL_REG_IP 16 diff -Nur musl-0.9.15/arch/x32/reloc.h musl-git/arch/x32/reloc.h --- musl-0.9.15/arch/x32/reloc.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/reloc.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/reloc.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,46 @@ +#include <stdint.h> +#include <string.h> @@ -4626,7 +4853,7 @@ diff -Nur musl-0.9.15/arch/x32/reloc.h musl-git/arch/x32/reloc.h +} diff -Nur musl-0.9.15/arch/x32/src/syscall_cp_fixup.c musl-git/arch/x32/src/syscall_cp_fixup.c --- musl-0.9.15/arch/x32/src/syscall_cp_fixup.c 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/src/syscall_cp_fixup.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/src/syscall_cp_fixup.c 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,31 @@ +#include <sys/syscall.h> +long __syscall_cp_internal(volatile void*, long long, long long, long long, long long, @@ -4661,7 +4888,7 @@ diff -Nur musl-0.9.15/arch/x32/src/syscall_cp_fixup.c musl-git/arch/x32/src/sysc + diff -Nur musl-0.9.15/arch/x32/src/sysinfo.c musl-git/arch/x32/src/sysinfo.c --- musl-0.9.15/arch/x32/src/sysinfo.c 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/src/sysinfo.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/src/sysinfo.c 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,47 @@ +#include <sys/sysinfo.h> +#include "syscall.h" @@ -4712,7 +4939,7 @@ diff -Nur musl-0.9.15/arch/x32/src/sysinfo.c musl-git/arch/x32/src/sysinfo.c +} diff -Nur musl-0.9.15/arch/x32/syscall_arch.h musl-git/arch/x32/syscall_arch.h --- musl-0.9.15/arch/x32/syscall_arch.h 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/arch/x32/syscall_arch.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x32/syscall_arch.h 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,117 @@ +#define __SYSCALL_LL_E(x) (x) +#define __SYSCALL_LL_O(x) (x) @@ -4833,7 +5060,7 @@ diff -Nur musl-0.9.15/arch/x32/syscall_arch.h musl-git/arch/x32/syscall_arch.h +} diff -Nur musl-0.9.15/arch/x86_64/atomic.h musl-git/arch/x86_64/atomic.h --- musl-0.9.15/arch/x86_64/atomic.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/x86_64/atomic.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x86_64/atomic.h 2014-03-17 16:49:44.000000000 +0100 @@ -5,38 +5,36 @@ static inline int a_ctz_64(uint64_t x) @@ -4917,9 +5144,29 @@ diff -Nur musl-0.9.15/arch/x86_64/atomic.h musl-git/arch/x86_64/atomic.h } static inline void a_spin() +diff -Nur musl-0.9.15/arch/x86_64/bits/sem.h musl-git/arch/x86_64/bits/sem.h +--- musl-0.9.15/arch/x86_64/bits/sem.h 1970-01-01 01:00:00.000000000 +0100 ++++ musl-git/arch/x86_64/bits/sem.h 2014-03-17 16:49:44.000000000 +0100 +@@ -0,0 +1,16 @@ ++struct semid_ds { ++ struct ipc_perm sem_perm; ++ time_t sem_otime; ++ time_t __unused1; ++ time_t sem_ctime; ++ time_t __unused2; ++#if __BYTE_ORDER == __LITTLE_ENDIAN ++ unsigned short sem_nsems; ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++#else ++ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; ++ unsigned short sem_nsems; ++#endif ++ time_t __unused3; ++ time_t __unused4; ++}; diff -Nur musl-0.9.15/arch/x86_64/bits/shm.h musl-git/arch/x86_64/bits/shm.h --- musl-0.9.15/arch/x86_64/bits/shm.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/x86_64/bits/shm.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x86_64/bits/shm.h 2014-03-17 16:49:44.000000000 +0100 @@ -13,3 +13,14 @@ unsigned long __pad1; unsigned long __pad2; @@ -4937,7 +5184,7 @@ diff -Nur musl-0.9.15/arch/x86_64/bits/shm.h musl-git/arch/x86_64/bits/shm.h + diff -Nur musl-0.9.15/arch/x86_64/bits/stat.h musl-git/arch/x86_64/bits/stat.h --- musl-0.9.15/arch/x86_64/bits/stat.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/x86_64/bits/stat.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x86_64/bits/stat.h 2014-03-17 16:49:44.000000000 +0100 @@ -2,7 +2,7 @@ * by the corresponding correctly-sized userspace types. */ @@ -4949,7 +5196,7 @@ diff -Nur musl-0.9.15/arch/x86_64/bits/stat.h musl-git/arch/x86_64/bits/stat.h diff -Nur musl-0.9.15/arch/x86_64/bits/termios.h musl-git/arch/x86_64/bits/termios.h --- musl-0.9.15/arch/x86_64/bits/termios.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/x86_64/bits/termios.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x86_64/bits/termios.h 2014-03-17 16:49:44.000000000 +0100 @@ -42,6 +42,7 @@ #define IXANY 0004000 #define IXOFF 0010000 @@ -5005,7 +5252,7 @@ diff -Nur musl-0.9.15/arch/x86_64/bits/termios.h musl-git/arch/x86_64/bits/termi +#endif diff -Nur musl-0.9.15/arch/x86_64/pthread_arch.h musl-git/arch/x86_64/pthread_arch.h --- musl-0.9.15/arch/x86_64/pthread_arch.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/arch/x86_64/pthread_arch.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/arch/x86_64/pthread_arch.h 2014-03-17 16:49:44.000000000 +0100 @@ -1,7 +1,7 @@ static inline struct pthread *__pthread_self() { @@ -5017,7 +5264,7 @@ diff -Nur musl-0.9.15/arch/x86_64/pthread_arch.h musl-git/arch/x86_64/pthread_ar diff -Nur musl-0.9.15/configure musl-git/configure --- musl-0.9.15/configure 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/configure 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/configure 2014-03-18 13:19:59.000000000 +0100 @@ -222,12 +222,16 @@ # Convert to just ARCH # @@ -5026,7 +5273,7 @@ diff -Nur musl-0.9.15/configure musl-git/configure +mips64*|powerpc64*) fail "$0: unsupported target \"$target\"" ;; arm*) ARCH=arm ;; i?86*) ARCH=i386 ;; -+x86_64-x32*|x32*) ARCH=x32 ;; ++x86_64-x32*|x32*|x86_64*x32) ARCH=x32 ;; x86_64*) ARCH=x86_64 ;; -mips-*|mipsel-*) ARCH=mips ;; -microblaze-*) ARCH=microblaze ;; @@ -5084,7 +5331,7 @@ diff -Nur musl-0.9.15/configure musl-git/configure diff -Nur musl-0.9.15/COPYRIGHT musl-git/COPYRIGHT --- musl-0.9.15/COPYRIGHT 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/COPYRIGHT 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/COPYRIGHT 2014-03-17 16:49:44.000000000 +0100 @@ -1,6 +1,6 @@ musl as a whole is licensed under the following standard MIT license: @@ -5104,7 +5351,7 @@ diff -Nur musl-0.9.15/COPYRIGHT musl-git/COPYRIGHT media. All public header files (include/* and arch/*/bits/*) should be diff -Nur musl-0.9.15/crt/superh/crti.s musl-git/crt/superh/crti.s --- musl-0.9.15/crt/superh/crti.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/crt/superh/crti.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/crt/superh/crti.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,13 @@ +.section .init +.global _init @@ -5121,7 +5368,7 @@ diff -Nur musl-0.9.15/crt/superh/crti.s musl-git/crt/superh/crti.s + nop diff -Nur musl-0.9.15/crt/superh/crtn.s musl-git/crt/superh/crtn.s --- musl-0.9.15/crt/superh/crtn.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/crt/superh/crtn.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/crt/superh/crtn.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,9 @@ +.section .init + lds.l @r15+, pr @@ -5134,7 +5381,7 @@ diff -Nur musl-0.9.15/crt/superh/crtn.s musl-git/crt/superh/crtn.s + nop diff -Nur musl-0.9.15/crt/x32/crti.s musl-git/crt/x32/crti.s --- musl-0.9.15/crt/x32/crti.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/crt/x32/crti.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/crt/x32/crti.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,9 @@ +.section .init +.global _init @@ -5147,7 +5394,7 @@ diff -Nur musl-0.9.15/crt/x32/crti.s musl-git/crt/x32/crti.s + push %rax diff -Nur musl-0.9.15/crt/x32/crtn.s musl-git/crt/x32/crtn.s --- musl-0.9.15/crt/x32/crtn.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/crt/x32/crtn.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/crt/x32/crtn.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,7 @@ +.section .init + pop %rax @@ -5158,7 +5405,7 @@ diff -Nur musl-0.9.15/crt/x32/crtn.s musl-git/crt/x32/crtn.s + ret diff -Nur musl-0.9.15/.gitignore musl-git/.gitignore --- musl-0.9.15/.gitignore 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/.gitignore 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/.gitignore 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,11 @@ +*.o +*.lo @@ -5173,7 +5420,7 @@ diff -Nur musl-0.9.15/.gitignore musl-git/.gitignore +src/internal/version.h diff -Nur musl-0.9.15/include/arpa/inet.h musl-git/include/arpa/inet.h --- musl-0.9.15/include/arpa/inet.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/arpa/inet.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/arpa/inet.h 2014-03-17 16:49:44.000000000 +0100 @@ -20,7 +20,7 @@ const char *inet_ntop (int, const void *__restrict, char *__restrict, socklen_t); @@ -5185,7 +5432,7 @@ diff -Nur musl-0.9.15/include/arpa/inet.h musl-git/include/arpa/inet.h diff -Nur musl-0.9.15/include/dlfcn.h musl-git/include/dlfcn.h --- musl-0.9.15/include/dlfcn.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/dlfcn.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/dlfcn.h 2014-03-17 16:49:44.000000000 +0100 @@ -31,7 +31,7 @@ const char *dli_sname; void *dli_saddr; @@ -5197,7 +5444,7 @@ diff -Nur musl-0.9.15/include/dlfcn.h musl-git/include/dlfcn.h diff -Nur musl-0.9.15/include/elf.h musl-git/include/elf.h --- musl-0.9.15/include/elf.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/elf.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/elf.h 2014-03-17 16:49:44.000000000 +0100 @@ -1153,6 +1153,7 @@ #define EF_MIPS_64BIT_WHIRL 16 #define EF_MIPS_ABI2 32 @@ -5326,7 +5573,7 @@ diff -Nur musl-0.9.15/include/elf.h musl-git/include/elf.h #define R_AARCH64_JUMP_SLOT 1026 diff -Nur musl-0.9.15/include/fcntl.h musl-git/include/fcntl.h --- musl-0.9.15/include/fcntl.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/fcntl.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/fcntl.h 2014-03-17 16:49:44.000000000 +0100 @@ -148,6 +148,7 @@ #define SPLICE_F_MORE 4 #define SPLICE_F_GIFT 8 @@ -5345,7 +5592,7 @@ diff -Nur musl-0.9.15/include/fcntl.h musl-git/include/fcntl.h #define creat64 creat diff -Nur musl-0.9.15/include/math.h musl-git/include/math.h --- musl-0.9.15/include/math.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/math.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/math.h 2014-03-17 16:49:44.000000000 +0100 @@ -42,12 +42,14 @@ static __inline unsigned __FLOAT_BITS(float __f) @@ -5365,7 +5612,7 @@ diff -Nur musl-0.9.15/include/math.h musl-git/include/math.h diff -Nur musl-0.9.15/include/netdb.h musl-git/include/netdb.h --- musl-0.9.15/include/netdb.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/netdb.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/netdb.h 2014-03-17 16:49:44.000000000 +0100 @@ -131,6 +131,7 @@ #define TRY_AGAIN 2 #define NO_RECOVERY 3 @@ -5376,7 +5623,7 @@ diff -Nur musl-0.9.15/include/netdb.h musl-git/include/netdb.h #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) diff -Nur musl-0.9.15/include/netinet/if_ether.h musl-git/include/netinet/if_ether.h --- musl-0.9.15/include/netinet/if_ether.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/netinet/if_ether.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/netinet/if_ether.h 2014-03-17 16:49:44.000000000 +0100 @@ -54,6 +54,7 @@ #define ETH_P_8021AH 0x88E7 #define ETH_P_MVRP 0x88F5 @@ -5387,7 +5634,7 @@ diff -Nur musl-0.9.15/include/netinet/if_ether.h musl-git/include/netinet/if_eth #define ETH_P_FIP 0x8914 diff -Nur musl-0.9.15/include/netinet/in.h musl-git/include/netinet/in.h --- musl-0.9.15/include/netinet/in.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/netinet/in.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/netinet/in.h 2014-03-17 16:49:44.000000000 +0100 @@ -149,7 +149,7 @@ (IN6_IS_ADDR_MULTICAST(a) && ((((uint8_t *) (a))[1] & 0xf) == 0xe)) @@ -5496,7 +5743,7 @@ diff -Nur musl-0.9.15/include/netinet/in.h musl-git/include/netinet/in.h diff -Nur musl-0.9.15/include/netinet/tcp.h musl-git/include/netinet/tcp.h --- musl-0.9.15/include/netinet/tcp.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/netinet/tcp.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/netinet/tcp.h 2014-03-17 16:49:44.000000000 +0100 @@ -44,42 +44,80 @@ #define SOL_TCP 6 #include <sys/types.h> @@ -5694,7 +5941,7 @@ diff -Nur musl-0.9.15/include/netinet/tcp.h musl-git/include/netinet/tcp.h #endif diff -Nur musl-0.9.15/include/netinet/udp.h musl-git/include/netinet/udp.h --- musl-0.9.15/include/netinet/udp.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/netinet/udp.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/netinet/udp.h 2014-03-17 16:49:44.000000000 +0100 @@ -5,19 +5,22 @@ extern "C" { #endif @@ -5727,7 +5974,7 @@ diff -Nur musl-0.9.15/include/netinet/udp.h musl-git/include/netinet/udp.h #define UDP_ENCAP 100 diff -Nur musl-0.9.15/include/sched.h musl-git/include/sched.h --- musl-0.9.15/include/sched.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/sched.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/sched.h 2014-03-17 16:49:44.000000000 +0100 @@ -78,7 +78,7 @@ int sched_getaffinity(pid_t, size_t, cpu_set_t *); int sched_setaffinity(pid_t, size_t, const cpu_set_t *); @@ -5739,7 +5986,7 @@ diff -Nur musl-0.9.15/include/sched.h musl-git/include/sched.h #define CPU_SET_S(i, size, set) __CPU_op_S(i, size, set, |=) diff -Nur musl-0.9.15/include/signal.h musl-git/include/signal.h --- musl-0.9.15/include/signal.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/signal.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/signal.h 2014-03-17 16:49:44.000000000 +0100 @@ -227,8 +227,8 @@ typedef void (*sighandler_t)(int); void (*bsd_signal(int, void (*)(int)))(int); @@ -5753,7 +6000,7 @@ diff -Nur musl-0.9.15/include/signal.h musl-git/include/signal.h #define SA_ONESHOT SA_RESETHAND diff -Nur musl-0.9.15/include/stdlib.h musl-git/include/stdlib.h --- musl-0.9.15/include/stdlib.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/stdlib.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/stdlib.h 2014-03-17 16:49:44.000000000 +0100 @@ -93,7 +93,7 @@ #define WSTOPSIG(s) WEXITSTATUS(s) #define WIFEXITED(s) (!WTERMSIG(s)) @@ -5765,7 +6012,7 @@ diff -Nur musl-0.9.15/include/stdlib.h musl-git/include/stdlib.h int setenv (const char *, const char *, int); diff -Nur musl-0.9.15/include/sys/inotify.h musl-git/include/sys/inotify.h --- musl-0.9.15/include/sys/inotify.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/sys/inotify.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/sys/inotify.h 2014-03-17 16:49:44.000000000 +0100 @@ -48,7 +48,7 @@ int inotify_init(void); int inotify_init1(int); @@ -5777,7 +6024,7 @@ diff -Nur musl-0.9.15/include/sys/inotify.h musl-git/include/sys/inotify.h } diff -Nur musl-0.9.15/include/sys/mman.h musl-git/include/sys/mman.h --- musl-0.9.15/include/sys/mman.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/sys/mman.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/sys/mman.h 2014-03-17 16:49:44.000000000 +0100 @@ -33,7 +33,7 @@ #ifdef _GNU_SOURCE @@ -5789,7 +6036,7 @@ diff -Nur musl-0.9.15/include/sys/mman.h musl-git/include/sys/mman.h #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) diff -Nur musl-0.9.15/include/sys/procfs.h musl-git/include/sys/procfs.h --- musl-0.9.15/include/sys/procfs.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/sys/procfs.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/sys/procfs.h 2014-03-17 16:49:44.000000000 +0100 @@ -40,7 +40,7 @@ char pr_zomb; char pr_nice; @@ -5801,38 +6048,34 @@ diff -Nur musl-0.9.15/include/sys/procfs.h musl-git/include/sys/procfs.h #else diff -Nur musl-0.9.15/include/sys/sem.h musl-git/include/sys/sem.h --- musl-0.9.15/include/sys/sem.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/sys/sem.h 2014-03-10 16:52:06.000000000 +0100 -@@ -29,19 +29,19 @@ ++++ musl-git/include/sys/sem.h 2014-03-17 16:49:44.000000000 +0100 +@@ -27,22 +27,7 @@ + + #include <endian.h> - struct semid_ds { - struct ipc_perm sem_perm; +-struct semid_ds { +- struct ipc_perm sem_perm; - long sem_otime; - unsigned long __unused1; - long sem_ctime; - unsigned long __unused2; -+ time_t sem_otime; -+ time_t __unused1; -+ time_t sem_ctime; -+ time_t __unused2; - #if __BYTE_ORDER == __LITTLE_ENDIAN - unsigned short sem_nsems; +-#if __BYTE_ORDER == __LITTLE_ENDIAN +- unsigned short sem_nsems; - char __sem_nsems_pad[sizeof(long)-sizeof(short)]; -+ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; - #else +-#else - char __sem_nsems_pad[sizeof(long)-sizeof(short)]; -+ char __sem_nsems_pad[sizeof(time_t)-sizeof(short)]; - unsigned short sem_nsems; - #endif +- unsigned short sem_nsems; +-#endif - unsigned long __unused3; - unsigned long __unused4; -+ time_t __unused3; -+ time_t __unused4; - }; +-}; ++#include <bits/sem.h> #define _SEM_SEMUN_UNDEFINED 1 + diff -Nur musl-0.9.15/include/sys/shm.h musl-git/include/sys/shm.h --- musl-0.9.15/include/sys/shm.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/sys/shm.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/sys/shm.h 2014-03-17 16:49:44.000000000 +0100 @@ -14,6 +14,13 @@ #include <bits/alltypes.h> @@ -5870,7 +6113,7 @@ diff -Nur musl-0.9.15/include/sys/shm.h musl-git/include/sys/shm.h void *shmat(int, const void *, int); diff -Nur musl-0.9.15/include/sys/socket.h musl-git/include/sys/socket.h --- musl-0.9.15/include/sys/socket.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/sys/socket.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/sys/socket.h 2014-03-17 16:49:44.000000000 +0100 @@ -202,11 +202,16 @@ #define SO_LOCK_FILTER 44 #define SO_SELECT_ERR_QUEUE 45 @@ -5911,7 +6154,7 @@ diff -Nur musl-0.9.15/include/sys/sysctl.h musl-git/include/sys/sysctl.h -#endif diff -Nur musl-0.9.15/include/sys/time.h musl-git/include/sys/time.h --- musl-0.9.15/include/sys/time.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/sys/time.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/sys/time.h 2014-03-17 16:49:44.000000000 +0100 @@ -51,6 +51,17 @@ ((a)->tv_usec += 1000000, (a)->tv_sec--) ) #endif @@ -5932,7 +6175,7 @@ diff -Nur musl-0.9.15/include/sys/time.h musl-git/include/sys/time.h #endif diff -Nur musl-0.9.15/include/sys/wait.h musl-git/include/sys/wait.h --- musl-0.9.15/include/sys/wait.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/sys/wait.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/sys/wait.h 2014-03-17 16:49:44.000000000 +0100 @@ -50,7 +50,7 @@ #define WCOREDUMP(s) ((s) & 0x80) #define WIFEXITED(s) (!WTERMSIG(s)) @@ -5944,7 +6187,7 @@ diff -Nur musl-0.9.15/include/sys/wait.h musl-git/include/sys/wait.h #ifdef __cplusplus diff -Nur musl-0.9.15/include/syslog.h musl-git/include/syslog.h --- musl-0.9.15/include/syslog.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/syslog.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/syslog.h 2014-03-17 16:49:44.000000000 +0100 @@ -21,7 +21,7 @@ #define LOG_MAKEPRI(f, p) (((f)<<3)|(p)) @@ -5956,7 +6199,7 @@ diff -Nur musl-0.9.15/include/syslog.h musl-git/include/syslog.h #define LOG_USER (1<<3) diff -Nur musl-0.9.15/include/time.h musl-git/include/time.h --- musl-0.9.15/include/time.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/time.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/time.h 2014-03-17 16:49:44.000000000 +0100 @@ -125,7 +125,7 @@ @@ -5968,7 +6211,7 @@ diff -Nur musl-0.9.15/include/time.h musl-git/include/time.h diff -Nur musl-0.9.15/include/utmp.h musl-git/include/utmp.h --- musl-0.9.15/include/utmp.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/utmp.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/utmp.h 2014-03-17 16:49:44.000000000 +0100 @@ -10,6 +10,7 @@ #define ACCOUNTING 9 #define UT_NAMESIZE 32 @@ -5988,7 +6231,7 @@ diff -Nur musl-0.9.15/include/utmp.h musl-git/include/utmp.h struct utmp *getutent(void); diff -Nur musl-0.9.15/include/utmpx.h musl-git/include/utmpx.h --- musl-0.9.15/include/utmpx.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/include/utmpx.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/include/utmpx.h 2014-03-17 16:49:44.000000000 +0100 @@ -5,6 +5,8 @@ extern "C" { #endif @@ -6035,7 +6278,7 @@ diff -Nur musl-0.9.15/include/utmpx.h musl-git/include/utmpx.h #define RUN_LVL 1 diff -Nur musl-0.9.15/src/crypt/crypt_des.c musl-git/src/crypt/crypt_des.c --- musl-0.9.15/src/crypt/crypt_des.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/crypt/crypt_des.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/crypt/crypt_des.c 2014-03-17 16:49:44.000000000 +0100 @@ -692,7 +692,7 @@ return saltbits; } @@ -6092,7 +6335,7 @@ diff -Nur musl-0.9.15/src/crypt/crypt_des.c musl-git/src/crypt/crypt_des.c * Now encode the result... diff -Nur musl-0.9.15/src/crypt/encrypt.c musl-git/src/crypt/encrypt.c --- musl-0.9.15/src/crypt/encrypt.c 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/crypt/encrypt.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/crypt/encrypt.c 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,60 @@ +#include <stdint.h> +#include <stdlib.h> @@ -6156,7 +6399,7 @@ diff -Nur musl-0.9.15/src/crypt/encrypt.c musl-git/src/crypt/encrypt.c +} diff -Nur musl-0.9.15/src/dirent/readdir.c musl-git/src/dirent/readdir.c --- musl-0.9.15/src/dirent/readdir.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/dirent/readdir.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/dirent/readdir.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,5 +1,7 @@ #include <dirent.h> +#include <errno.h> @@ -6181,7 +6424,7 @@ diff -Nur musl-0.9.15/src/dirent/readdir.c musl-git/src/dirent/readdir.c } diff -Nur musl-0.9.15/src/errno/strerror.c musl-git/src/errno/strerror.c --- musl-0.9.15/src/errno/strerror.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/errno/strerror.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/errno/strerror.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,7 +1,7 @@ #include <errno.h> #include <string.h> @@ -6206,7 +6449,7 @@ diff -Nur musl-0.9.15/src/errno/strerror.c musl-git/src/errno/strerror.c return (char *)s; diff -Nur musl-0.9.15/src/fcntl/fcntl.c musl-git/src/fcntl/fcntl.c --- musl-0.9.15/src/fcntl/fcntl.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/fcntl/fcntl.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fcntl/fcntl.c 2014-03-17 16:49:44.000000000 +0100 @@ -7,17 +7,17 @@ int fcntl(int fd, int cmd, ...) @@ -6247,7 +6490,7 @@ diff -Nur musl-0.9.15/src/fcntl/fcntl.c musl-git/src/fcntl/fcntl.c } diff -Nur musl-0.9.15/src/fcntl/posix_fadvise.c musl-git/src/fcntl/posix_fadvise.c --- musl-0.9.15/src/fcntl/posix_fadvise.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/fcntl/posix_fadvise.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fcntl/posix_fadvise.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,8 +1,11 @@ #include <fcntl.h> #include "syscall.h" @@ -6262,7 +6505,7 @@ diff -Nur musl-0.9.15/src/fcntl/posix_fadvise.c musl-git/src/fcntl/posix_fadvise +LFS64(posix_fadvise); diff -Nur musl-0.9.15/src/fcntl/posix_fallocate.c musl-git/src/fcntl/posix_fallocate.c --- musl-0.9.15/src/fcntl/posix_fallocate.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/fcntl/posix_fallocate.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fcntl/posix_fallocate.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,8 +1,11 @@ #include <fcntl.h> #include "syscall.h" @@ -6277,7 +6520,7 @@ diff -Nur musl-0.9.15/src/fcntl/posix_fallocate.c musl-git/src/fcntl/posix_fallo +LFS64(posix_fallocate); diff -Nur musl-0.9.15/src/fenv/i386/fenv.s musl-git/src/fenv/i386/fenv.s --- musl-0.9.15/src/fenv/i386/fenv.s 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/fenv/i386/fenv.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fenv/i386/fenv.s 2014-03-17 16:49:44.000000000 +0100 @@ -126,7 +126,7 @@ push %eax push %eax @@ -6289,17 +6532,17 @@ diff -Nur musl-0.9.15/src/fenv/i386/fenv.s musl-git/src/fenv/i386/fenv.s fldenv (%esp) diff -Nur musl-0.9.15/src/fenv/mipsel-sf/fenv.sub musl-git/src/fenv/mipsel-sf/fenv.sub --- musl-0.9.15/src/fenv/mipsel-sf/fenv.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/fenv/mipsel-sf/fenv.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fenv/mipsel-sf/fenv.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +../fenv.c diff -Nur musl-0.9.15/src/fenv/mips-sf/fenv.sub musl-git/src/fenv/mips-sf/fenv.sub --- musl-0.9.15/src/fenv/mips-sf/fenv.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/fenv/mips-sf/fenv.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fenv/mips-sf/fenv.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +../fenv.c diff -Nur musl-0.9.15/src/fenv/sh/fenv.s musl-git/src/fenv/sh/fenv.s --- musl-0.9.15/src/fenv/sh/fenv.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/fenv/sh/fenv.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fenv/sh/fenv.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,74 @@ +.global fegetround +.type fegetround, @function @@ -6377,17 +6620,17 @@ diff -Nur musl-0.9.15/src/fenv/sh/fenv.s musl-git/src/fenv/sh/fenv.s + mov #0, r0 diff -Nur musl-0.9.15/src/fenv/sheb-nofpu/fenv.sub musl-git/src/fenv/sheb-nofpu/fenv.sub --- musl-0.9.15/src/fenv/sheb-nofpu/fenv.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/fenv/sheb-nofpu/fenv.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fenv/sheb-nofpu/fenv.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +../fenv.c diff -Nur musl-0.9.15/src/fenv/sh-nofpu/fenv.sub musl-git/src/fenv/sh-nofpu/fenv.sub --- musl-0.9.15/src/fenv/sh-nofpu/fenv.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/fenv/sh-nofpu/fenv.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fenv/sh-nofpu/fenv.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +../fenv.c diff -Nur musl-0.9.15/src/fenv/x32/fenv.s musl-git/src/fenv/x32/fenv.s --- musl-0.9.15/src/fenv/x32/fenv.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/fenv/x32/fenv.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fenv/x32/fenv.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,97 @@ +.global feclearexcept +.type feclearexcept,@function @@ -6488,7 +6731,7 @@ diff -Nur musl-0.9.15/src/fenv/x32/fenv.s musl-git/src/fenv/x32/fenv.s + ret diff -Nur musl-0.9.15/src/fenv/x86_64/fenv.s musl-git/src/fenv/x86_64/fenv.s --- musl-0.9.15/src/fenv/x86_64/fenv.s 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/fenv/x86_64/fenv.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/fenv/x86_64/fenv.s 2014-03-17 16:49:44.000000000 +0100 @@ -76,7 +76,7 @@ ret 1: push %rax @@ -6500,7 +6743,7 @@ diff -Nur musl-0.9.15/src/fenv/x86_64/fenv.s musl-git/src/fenv/x86_64/fenv.s pushq $0x1f80 diff -Nur musl-0.9.15/src/internal/sh/syscall.s musl-git/src/internal/sh/syscall.s --- musl-0.9.15/src/internal/sh/syscall.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/internal/sh/syscall.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/internal/sh/syscall.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,22 @@ +.global __syscall +.type __syscall, @function @@ -6526,7 +6769,7 @@ diff -Nur musl-0.9.15/src/internal/sh/syscall.s musl-git/src/internal/sh/syscall + nop diff -Nur musl-0.9.15/src/internal/stdio_impl.h musl-git/src/internal/stdio_impl.h --- musl-0.9.15/src/internal/stdio_impl.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/internal/stdio_impl.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/internal/stdio_impl.h 2014-03-17 16:49:44.000000000 +0100 @@ -17,6 +17,7 @@ #define F_EOF 16 #define F_ERR 32 @@ -6537,7 +6780,7 @@ diff -Nur musl-0.9.15/src/internal/stdio_impl.h musl-git/src/internal/stdio_impl unsigned flags; diff -Nur musl-0.9.15/src/internal/syscall.h musl-git/src/internal/syscall.h --- musl-0.9.15/src/internal/syscall.h 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/internal/syscall.h 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/internal/syscall.h 2014-03-17 16:49:44.000000000 +0100 @@ -1,22 +1,28 @@ #ifndef _INTERNAL_SYSCALL_H #define _INTERNAL_SYSCALL_H @@ -6601,7 +6844,7 @@ diff -Nur musl-0.9.15/src/internal/syscall.h musl-git/src/internal/syscall.h #define syscall_cp(...) __syscall_ret(__syscall_cp(__VA_ARGS__)) diff -Nur musl-0.9.15/src/internal/x32/syscall.s musl-git/src/internal/x32/syscall.s --- musl-0.9.15/src/internal/x32/syscall.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/internal/x32/syscall.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/internal/x32/syscall.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,12 @@ +.global __syscall +.type __syscall,@function @@ -6617,8 +6860,8 @@ diff -Nur musl-0.9.15/src/internal/x32/syscall.s musl-git/src/internal/x32/sysca + ret diff -Nur musl-0.9.15/src/ipc/semctl.c musl-git/src/ipc/semctl.c --- musl-0.9.15/src/ipc/semctl.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/ipc/semctl.c 2014-03-10 16:52:06.000000000 +0100 -@@ -3,16 +3,22 @@ ++++ musl-git/src/ipc/semctl.c 2014-03-17 16:49:44.000000000 +0100 +@@ -3,16 +3,26 @@ #include "syscall.h" #include "ipc.h" @@ -6631,12 +6874,18 @@ diff -Nur musl-0.9.15/src/ipc/semctl.c musl-git/src/ipc/semctl.c int semctl(int id, int num, int cmd, ...) { - long arg; -+ union semun arg; ++ union semun arg = {0}; va_list ap; - va_start(ap, cmd); +- va_start(ap, cmd); - arg = va_arg(ap, long); -+ arg = va_arg(ap, union semun); - va_end(ap); +- va_end(ap); ++ switch (cmd) { ++ case SETVAL: case GETALL: case SETALL: case IPC_STAT: case IPC_SET: ++ case IPC_INFO: case SEM_INFO: case SEM_STAT: ++ va_start(ap, cmd); ++ arg = va_arg(ap, union semun); ++ va_end(ap); ++ } #ifdef SYS_semctl - return syscall(SYS_semctl, id, num, cmd | IPC_64, arg); + return syscall(SYS_semctl, id, num, cmd | IPC_64, arg.buf); @@ -6647,7 +6896,7 @@ diff -Nur musl-0.9.15/src/ipc/semctl.c musl-git/src/ipc/semctl.c } diff -Nur musl-0.9.15/src/ldso/dladdr.c musl-git/src/ldso/dladdr.c --- musl-0.9.15/src/ldso/dladdr.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/ldso/dladdr.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/ldso/dladdr.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,9 +1,9 @@ #define _GNU_SOURCE #include <dlfcn.h> @@ -6662,7 +6911,7 @@ diff -Nur musl-0.9.15/src/ldso/dladdr.c musl-git/src/ldso/dladdr.c } diff -Nur musl-0.9.15/src/ldso/dynlink.c musl-git/src/ldso/dynlink.c --- musl-0.9.15/src/ldso/dynlink.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/ldso/dynlink.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/ldso/dynlink.c 2014-03-17 16:49:44.000000000 +0100 @@ -253,7 +253,8 @@ name = strings + sym->st_name; ctx = IS_COPY(type) ? head->next : head; @@ -6693,7 +6942,7 @@ diff -Nur musl-0.9.15/src/ldso/dynlink.c musl-git/src/ldso/dynlink.c } diff -Nur musl-0.9.15/src/ldso/sh/dlsym.s musl-git/src/ldso/sh/dlsym.s --- musl-0.9.15/src/ldso/sh/dlsym.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/ldso/sh/dlsym.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/ldso/sh/dlsym.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,10 @@ +.text +.global dlsym @@ -6707,7 +6956,7 @@ diff -Nur musl-0.9.15/src/ldso/sh/dlsym.s musl-git/src/ldso/sh/dlsym.s +L1: .long __dlsym@PLT-(1b-.) diff -Nur musl-0.9.15/src/ldso/sh/start.s musl-git/src/ldso/sh/start.s --- musl-0.9.15/src/ldso/sh/start.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/ldso/sh/start.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/ldso/sh/start.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,26 @@ +.text +.global _start @@ -6737,7 +6986,7 @@ diff -Nur musl-0.9.15/src/ldso/sh/start.s musl-git/src/ldso/sh/start.s +L1: .long __dynlink@PLT-(2b-.) diff -Nur musl-0.9.15/src/ldso/x32/dlsym.s musl-git/src/ldso/x32/dlsym.s --- musl-0.9.15/src/ldso/x32/dlsym.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/ldso/x32/dlsym.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/ldso/x32/dlsym.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,6 @@ +.text +.global dlsym @@ -6747,7 +6996,7 @@ diff -Nur musl-0.9.15/src/ldso/x32/dlsym.s musl-git/src/ldso/x32/dlsym.s + jmp __dlsym diff -Nur musl-0.9.15/src/ldso/x32/start.s musl-git/src/ldso/x32/start.s --- musl-0.9.15/src/ldso/x32/start.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/ldso/x32/start.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/ldso/x32/start.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,24 @@ +.text +.global _start @@ -6775,7 +7024,7 @@ diff -Nur musl-0.9.15/src/ldso/x32/start.s musl-git/src/ldso/x32/start.s + jmp *%rax diff -Nur musl-0.9.15/src/linux/clone.c musl-git/src/linux/clone.c --- musl-0.9.15/src/linux/clone.c 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/linux/clone.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/linux/clone.c 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,19 @@ +#include <stdarg.h> +#include <unistd.h> @@ -6798,7 +7047,7 @@ diff -Nur musl-0.9.15/src/linux/clone.c musl-git/src/linux/clone.c +} diff -Nur musl-0.9.15/src/linux/fallocate.c musl-git/src/linux/fallocate.c --- musl-0.9.15/src/linux/fallocate.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/linux/fallocate.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/linux/fallocate.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,9 +1,13 @@ #define _GNU_SOURCE #include <fcntl.h> @@ -6815,7 +7064,7 @@ diff -Nur musl-0.9.15/src/linux/fallocate.c musl-git/src/linux/fallocate.c +LFS64(fallocate); diff -Nur musl-0.9.15/src/linux/inotify.c musl-git/src/linux/inotify.c --- musl-0.9.15/src/linux/inotify.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/linux/inotify.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/linux/inotify.c 2014-03-17 16:49:44.000000000 +0100 @@ -15,7 +15,7 @@ return syscall(SYS_inotify_add_watch, fd, pathname, mask); } @@ -6827,7 +7076,7 @@ diff -Nur musl-0.9.15/src/linux/inotify.c musl-git/src/linux/inotify.c } diff -Nur musl-0.9.15/src/linux/remap_file_pages.c musl-git/src/linux/remap_file_pages.c --- musl-0.9.15/src/linux/remap_file_pages.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/linux/remap_file_pages.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/linux/remap_file_pages.c 2014-03-17 16:49:44.000000000 +0100 @@ -2,7 +2,7 @@ #include <sys/mman.h> #include "syscall.h" @@ -6839,7 +7088,7 @@ diff -Nur musl-0.9.15/src/linux/remap_file_pages.c musl-git/src/linux/remap_file } diff -Nur musl-0.9.15/src/linux/stime.c musl-git/src/linux/stime.c --- musl-0.9.15/src/linux/stime.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/linux/stime.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/linux/stime.c 2014-03-17 16:49:44.000000000 +0100 @@ -2,7 +2,7 @@ #include <time.h> #include <sys/time.h> @@ -6851,7 +7100,7 @@ diff -Nur musl-0.9.15/src/linux/stime.c musl-git/src/linux/stime.c return settimeofday(&tv, (void *)0); diff -Nur musl-0.9.15/src/linux/x32/sysinfo.s musl-git/src/linux/x32/sysinfo.s --- musl-0.9.15/src/linux/x32/sysinfo.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/linux/x32/sysinfo.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/linux/x32/sysinfo.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,5 @@ +.text +.global sysinfo @@ -6860,7 +7109,7 @@ diff -Nur musl-0.9.15/src/linux/x32/sysinfo.s musl-git/src/linux/x32/sysinfo.s + jmp __x32_sysinfo diff -Nur musl-0.9.15/src/locale/wcsxfrm.c musl-git/src/locale/wcsxfrm.c --- musl-0.9.15/src/locale/wcsxfrm.c 2014-01-03 21:12:17.000000000 +0100 -+++ musl-git/src/locale/wcsxfrm.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/locale/wcsxfrm.c 2014-03-17 16:49:44.000000000 +0100 @@ -6,10 +6,12 @@ size_t __wcsxfrm_l(wchar_t *restrict dest, const wchar_t *restrict src, size_t n, locale_t loc) { @@ -6878,7 +7127,7 @@ diff -Nur musl-0.9.15/src/locale/wcsxfrm.c musl-git/src/locale/wcsxfrm.c diff -Nur musl-0.9.15/src/math/i386/remainderf.s musl-git/src/math/i386/remainderf.s --- musl-0.9.15/src/math/i386/remainderf.s 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/math/i386/remainderf.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/i386/remainderf.s 2014-03-17 16:49:44.000000000 +0100 @@ -1,6 +1,9 @@ .global remainderf .type remainderf,@function @@ -6891,7 +7140,7 @@ diff -Nur musl-0.9.15/src/math/i386/remainderf.s musl-git/src/math/i386/remainde 1: fprem1 diff -Nur musl-0.9.15/src/math/i386/remainder.s musl-git/src/math/i386/remainder.s --- musl-0.9.15/src/math/i386/remainder.s 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/math/i386/remainder.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/i386/remainder.s 2014-03-17 16:49:44.000000000 +0100 @@ -1,6 +1,9 @@ .global remainder .type remainder,@function @@ -6904,7 +7153,7 @@ diff -Nur musl-0.9.15/src/math/i386/remainder.s musl-git/src/math/i386/remainder 1: fprem1 diff -Nur musl-0.9.15/src/math/x32/acosl.s musl-git/src/math/x32/acosl.s --- musl-0.9.15/src/math/x32/acosl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/acosl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/acosl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,16 @@ +# see ../i386/acos.s + @@ -6924,7 +7173,7 @@ diff -Nur musl-0.9.15/src/math/x32/acosl.s musl-git/src/math/x32/acosl.s + ret diff -Nur musl-0.9.15/src/math/x32/asinl.s musl-git/src/math/x32/asinl.s --- musl-0.9.15/src/math/x32/asinl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/asinl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/asinl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,12 @@ +.global asinl +.type asinl,@function @@ -6940,7 +7189,7 @@ diff -Nur musl-0.9.15/src/math/x32/asinl.s musl-git/src/math/x32/asinl.s + ret diff -Nur musl-0.9.15/src/math/x32/atan2l.s musl-git/src/math/x32/atan2l.s --- musl-0.9.15/src/math/x32/atan2l.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/atan2l.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/atan2l.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,7 @@ +.global atan2l +.type atan2l,@function @@ -6951,7 +7200,7 @@ diff -Nur musl-0.9.15/src/math/x32/atan2l.s musl-git/src/math/x32/atan2l.s + ret diff -Nur musl-0.9.15/src/math/x32/atanl.s musl-git/src/math/x32/atanl.s --- musl-0.9.15/src/math/x32/atanl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/atanl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/atanl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,7 @@ +.global atanl +.type atanl,@function @@ -6962,12 +7211,12 @@ diff -Nur musl-0.9.15/src/math/x32/atanl.s musl-git/src/math/x32/atanl.s + ret diff -Nur musl-0.9.15/src/math/x32/ceill.s musl-git/src/math/x32/ceill.s --- musl-0.9.15/src/math/x32/ceill.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/ceill.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/ceill.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +# see floorl.s diff -Nur musl-0.9.15/src/math/x32/exp2l.s musl-git/src/math/x32/exp2l.s --- musl-0.9.15/src/math/x32/exp2l.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/exp2l.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/exp2l.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,90 @@ +.global expm1l +.type expm1l,@function @@ -7061,7 +7310,7 @@ diff -Nur musl-0.9.15/src/math/x32/exp2l.s musl-git/src/math/x32/exp2l.s + ret diff -Nur musl-0.9.15/src/math/x32/expl.s musl-git/src/math/x32/expl.s --- musl-0.9.15/src/math/x32/expl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/expl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/expl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,101 @@ +# exp(x) = 2^hi + 2^hi (2^lo - 1) +# where hi+lo = log2e*x with 128bit precision @@ -7166,12 +7415,12 @@ diff -Nur musl-0.9.15/src/math/x32/expl.s musl-git/src/math/x32/expl.s + ret diff -Nur musl-0.9.15/src/math/x32/expm1l.s musl-git/src/math/x32/expm1l.s --- musl-0.9.15/src/math/x32/expm1l.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/expm1l.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/expm1l.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +# see exp2l.s diff -Nur musl-0.9.15/src/math/x32/fabsf.s musl-git/src/math/x32/fabsf.s --- musl-0.9.15/src/math/x32/fabsf.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/fabsf.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/fabsf.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,7 @@ +.global fabsf +.type fabsf,@function @@ -7182,7 +7431,7 @@ diff -Nur musl-0.9.15/src/math/x32/fabsf.s musl-git/src/math/x32/fabsf.s + ret diff -Nur musl-0.9.15/src/math/x32/fabsl.s musl-git/src/math/x32/fabsl.s --- musl-0.9.15/src/math/x32/fabsl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/fabsl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/fabsl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,6 @@ +.global fabsl +.type fabsl,@function @@ -7192,7 +7441,7 @@ diff -Nur musl-0.9.15/src/math/x32/fabsl.s musl-git/src/math/x32/fabsl.s + ret diff -Nur musl-0.9.15/src/math/x32/fabs.s musl-git/src/math/x32/fabs.s --- musl-0.9.15/src/math/x32/fabs.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/fabs.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/fabs.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,9 @@ +.global fabs +.type fabs,@function @@ -7205,7 +7454,7 @@ diff -Nur musl-0.9.15/src/math/x32/fabs.s musl-git/src/math/x32/fabs.s + ret diff -Nur musl-0.9.15/src/math/x32/floorl.s musl-git/src/math/x32/floorl.s --- musl-0.9.15/src/math/x32/floorl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/floorl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/floorl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,27 @@ +.global floorl +.type floorl,@function @@ -7236,7 +7485,7 @@ diff -Nur musl-0.9.15/src/math/x32/floorl.s musl-git/src/math/x32/floorl.s + jmp 1b diff -Nur musl-0.9.15/src/math/x32/fmodl.s musl-git/src/math/x32/fmodl.s --- musl-0.9.15/src/math/x32/fmodl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/fmodl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/fmodl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,11 @@ +.global fmodl +.type fmodl,@function @@ -7251,7 +7500,7 @@ diff -Nur musl-0.9.15/src/math/x32/fmodl.s musl-git/src/math/x32/fmodl.s + ret diff -Nur musl-0.9.15/src/math/x32/llrintf.s musl-git/src/math/x32/llrintf.s --- musl-0.9.15/src/math/x32/llrintf.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/llrintf.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/llrintf.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,5 @@ +.global llrintf +.type llrintf,@function @@ -7260,7 +7509,7 @@ diff -Nur musl-0.9.15/src/math/x32/llrintf.s musl-git/src/math/x32/llrintf.s + ret diff -Nur musl-0.9.15/src/math/x32/llrintl.s musl-git/src/math/x32/llrintl.s --- musl-0.9.15/src/math/x32/llrintl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/llrintl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/llrintl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,7 @@ +.global llrintl +.type llrintl,@function @@ -7271,7 +7520,7 @@ diff -Nur musl-0.9.15/src/math/x32/llrintl.s musl-git/src/math/x32/llrintl.s + ret diff -Nur musl-0.9.15/src/math/x32/llrint.s musl-git/src/math/x32/llrint.s --- musl-0.9.15/src/math/x32/llrint.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/llrint.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/llrint.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,5 @@ +.global llrint +.type llrint,@function @@ -7280,7 +7529,7 @@ diff -Nur musl-0.9.15/src/math/x32/llrint.s musl-git/src/math/x32/llrint.s + ret diff -Nur musl-0.9.15/src/math/x32/log10l.s musl-git/src/math/x32/log10l.s --- musl-0.9.15/src/math/x32/log10l.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/log10l.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/log10l.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,7 @@ +.global log10l +.type log10l,@function @@ -7291,7 +7540,7 @@ diff -Nur musl-0.9.15/src/math/x32/log10l.s musl-git/src/math/x32/log10l.s + ret diff -Nur musl-0.9.15/src/math/x32/log1pl.s musl-git/src/math/x32/log1pl.s --- musl-0.9.15/src/math/x32/log1pl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/log1pl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/log1pl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,15 @@ +.global log1pl +.type log1pl,@function @@ -7310,7 +7559,7 @@ diff -Nur musl-0.9.15/src/math/x32/log1pl.s musl-git/src/math/x32/log1pl.s + ret diff -Nur musl-0.9.15/src/math/x32/log2l.s musl-git/src/math/x32/log2l.s --- musl-0.9.15/src/math/x32/log2l.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/log2l.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/log2l.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,7 @@ +.global log2l +.type log2l,@function @@ -7321,7 +7570,7 @@ diff -Nur musl-0.9.15/src/math/x32/log2l.s musl-git/src/math/x32/log2l.s + ret diff -Nur musl-0.9.15/src/math/x32/logl.s musl-git/src/math/x32/logl.s --- musl-0.9.15/src/math/x32/logl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/logl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/logl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,7 @@ +.global logl +.type logl,@function @@ -7332,7 +7581,7 @@ diff -Nur musl-0.9.15/src/math/x32/logl.s musl-git/src/math/x32/logl.s + ret diff -Nur musl-0.9.15/src/math/x32/lrintf.s musl-git/src/math/x32/lrintf.s --- musl-0.9.15/src/math/x32/lrintf.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/lrintf.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/lrintf.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,5 @@ +.global lrintf +.type lrintf,@function @@ -7341,7 +7590,7 @@ diff -Nur musl-0.9.15/src/math/x32/lrintf.s musl-git/src/math/x32/lrintf.s + ret diff -Nur musl-0.9.15/src/math/x32/lrintl.s musl-git/src/math/x32/lrintl.s --- musl-0.9.15/src/math/x32/lrintl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/lrintl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/lrintl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,7 @@ +.global lrintl +.type lrintl,@function @@ -7352,7 +7601,7 @@ diff -Nur musl-0.9.15/src/math/x32/lrintl.s musl-git/src/math/x32/lrintl.s + ret diff -Nur musl-0.9.15/src/math/x32/lrint.s musl-git/src/math/x32/lrint.s --- musl-0.9.15/src/math/x32/lrint.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/lrint.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/lrint.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,5 @@ +.global lrint +.type lrint,@function @@ -7361,7 +7610,7 @@ diff -Nur musl-0.9.15/src/math/x32/lrint.s musl-git/src/math/x32/lrint.s + ret diff -Nur musl-0.9.15/src/math/x32/remainderl.s musl-git/src/math/x32/remainderl.s --- musl-0.9.15/src/math/x32/remainderl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/remainderl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/remainderl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,11 @@ +.global remainderl +.type remainderl,@function @@ -7376,7 +7625,7 @@ diff -Nur musl-0.9.15/src/math/x32/remainderl.s musl-git/src/math/x32/remainderl + ret diff -Nur musl-0.9.15/src/math/x32/rintl.s musl-git/src/math/x32/rintl.s --- musl-0.9.15/src/math/x32/rintl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/rintl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/rintl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,6 @@ +.global rintl +.type rintl,@function @@ -7386,7 +7635,7 @@ diff -Nur musl-0.9.15/src/math/x32/rintl.s musl-git/src/math/x32/rintl.s + ret diff -Nur musl-0.9.15/src/math/x32/sqrtf.s musl-git/src/math/x32/sqrtf.s --- musl-0.9.15/src/math/x32/sqrtf.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/sqrtf.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/sqrtf.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,4 @@ +.global sqrtf +.type sqrtf,@function @@ -7394,7 +7643,7 @@ diff -Nur musl-0.9.15/src/math/x32/sqrtf.s musl-git/src/math/x32/sqrtf.s + ret diff -Nur musl-0.9.15/src/math/x32/sqrtl.s musl-git/src/math/x32/sqrtl.s --- musl-0.9.15/src/math/x32/sqrtl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/sqrtl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/sqrtl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,5 @@ +.global sqrtl +.type sqrtl,@function @@ -7403,7 +7652,7 @@ diff -Nur musl-0.9.15/src/math/x32/sqrtl.s musl-git/src/math/x32/sqrtl.s + ret diff -Nur musl-0.9.15/src/math/x32/sqrt.s musl-git/src/math/x32/sqrt.s --- musl-0.9.15/src/math/x32/sqrt.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/sqrt.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/sqrt.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,4 @@ +.global sqrt +.type sqrt,@function @@ -7411,12 +7660,12 @@ diff -Nur musl-0.9.15/src/math/x32/sqrt.s musl-git/src/math/x32/sqrt.s + ret diff -Nur musl-0.9.15/src/math/x32/truncl.s musl-git/src/math/x32/truncl.s --- musl-0.9.15/src/math/x32/truncl.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/math/x32/truncl.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/math/x32/truncl.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +# see floorl.s diff -Nur musl-0.9.15/src/misc/nftw.c musl-git/src/misc/nftw.c --- musl-0.9.15/src/misc/nftw.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/misc/nftw.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/misc/nftw.c 2014-03-17 16:49:44.000000000 +0100 @@ -46,8 +46,7 @@ type = FTW_F; } @@ -7427,9 +7676,46 @@ diff -Nur musl-0.9.15/src/misc/nftw.c musl-git/src/misc/nftw.c return 0; new.chain = h; +diff -Nur musl-0.9.15/src/misc/pty.c musl-git/src/misc/pty.c +--- musl-0.9.15/src/misc/pty.c 2014-01-03 21:12:18.000000000 +0100 ++++ musl-git/src/misc/pty.c 2014-03-17 16:49:44.000000000 +0100 +@@ -26,7 +26,7 @@ + { + int pty, err; + if (!buf) len = 0; +- if ((err = __syscall(SYS_ioctl, fd, TIOCGPTN, &pty))) return err; ++ if ((err = __syscall(SYS_ioctl, fd, TIOCGPTN, &pty))) return -err; + if (snprintf(buf, len, "/dev/pts/%d", pty) >= len) return ERANGE; + return 0; + } +diff -Nur musl-0.9.15/src/misc/syscall.c musl-git/src/misc/syscall.c +--- musl-0.9.15/src/misc/syscall.c 2014-01-03 21:12:18.000000000 +0100 ++++ musl-git/src/misc/syscall.c 2014-03-18 22:16:18.000000000 +0100 +@@ -6,14 +6,14 @@ + long syscall(long n, ...) + { + va_list ap; +- long a,b,c,d,e,f; ++ syscall_arg_t a,b,c,d,e,f; + va_start(ap, n); +- a=va_arg(ap, long); +- b=va_arg(ap, long); +- c=va_arg(ap, long); +- d=va_arg(ap, long); +- e=va_arg(ap, long); +- f=va_arg(ap, long); ++ a=va_arg(ap, syscall_arg_t); ++ b=va_arg(ap, syscall_arg_t); ++ c=va_arg(ap, syscall_arg_t); ++ d=va_arg(ap, syscall_arg_t); ++ e=va_arg(ap, syscall_arg_t); ++ f=va_arg(ap, syscall_arg_t); + va_end(ap); + return __syscall_ret(__syscall(n,a,b,c,d,e,f)); + } diff -Nur musl-0.9.15/src/network/accept4.c musl-git/src/network/accept4.c --- musl-0.9.15/src/network/accept4.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/network/accept4.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/network/accept4.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,9 +1,20 @@ #define _GNU_SOURCE #include <sys/socket.h> @@ -7454,7 +7740,7 @@ diff -Nur musl-0.9.15/src/network/accept4.c musl-git/src/network/accept4.c } diff -Nur musl-0.9.15/src/network/inet_legacy.c musl-git/src/network/inet_legacy.c --- musl-0.9.15/src/network/inet_legacy.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/network/inet_legacy.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/network/inet_legacy.c 2014-03-17 16:49:44.000000000 +0100 @@ -16,9 +16,8 @@ return 1; } @@ -7468,7 +7754,7 @@ diff -Nur musl-0.9.15/src/network/inet_legacy.c musl-git/src/network/inet_legacy else h |= n<<8; diff -Nur musl-0.9.15/src/network/proto.c musl-git/src/network/proto.c --- musl-0.9.15/src/network/proto.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/network/proto.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/network/proto.c 2014-03-17 16:49:44.000000000 +0100 @@ -4,7 +4,7 @@ /* do we really need all these?? */ @@ -7491,7 +7777,7 @@ diff -Nur musl-0.9.15/src/network/proto.c musl-git/src/network/proto.c diff -Nur musl-0.9.15/src/prng/random.c musl-git/src/prng/random.c --- musl-0.9.15/src/prng/random.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/prng/random.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/prng/random.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,10 +1,3 @@ -/* - * random.c - Copyright © 2011 Szabolcs Nagy @@ -7526,7 +7812,7 @@ diff -Nur musl-0.9.15/src/prng/random.c musl-git/src/prng/random.c } diff -Nur musl-0.9.15/src/process/posix_spawn.c musl-git/src/process/posix_spawn.c --- musl-0.9.15/src/process/posix_spawn.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/process/posix_spawn.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/process/posix_spawn.c 2014-03-17 16:49:44.000000000 +0100 @@ -166,7 +166,7 @@ close(args.p[0]); @@ -7538,7 +7824,7 @@ diff -Nur musl-0.9.15/src/process/posix_spawn.c musl-git/src/process/posix_spawn pthread_setcancelstate(cs, 0); diff -Nur musl-0.9.15/src/process/x32/vfork.s musl-git/src/process/x32/vfork.s --- musl-0.9.15/src/process/x32/vfork.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/process/x32/vfork.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/process/x32/vfork.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,12 @@ +.global __vfork +.weak vfork @@ -7554,17 +7840,17 @@ diff -Nur musl-0.9.15/src/process/x32/vfork.s musl-git/src/process/x32/vfork.s + jmp __syscall_ret diff -Nur musl-0.9.15/src/setjmp/mipsel-sf/longjmp.sub musl-git/src/setjmp/mipsel-sf/longjmp.sub --- musl-0.9.15/src/setjmp/mipsel-sf/longjmp.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/mipsel-sf/longjmp.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/mipsel-sf/longjmp.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +../mips-sf/longjmp.s diff -Nur musl-0.9.15/src/setjmp/mipsel-sf/setjmp.sub musl-git/src/setjmp/mipsel-sf/setjmp.sub --- musl-0.9.15/src/setjmp/mipsel-sf/setjmp.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/mipsel-sf/setjmp.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/mipsel-sf/setjmp.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +../mips-sf/setjmp.s diff -Nur musl-0.9.15/src/setjmp/mips-sf/longjmp.s musl-git/src/setjmp/mips-sf/longjmp.s --- musl-0.9.15/src/setjmp/mips-sf/longjmp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/mips-sf/longjmp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/mips-sf/longjmp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,25 @@ +.set noreorder + @@ -7593,12 +7879,12 @@ diff -Nur musl-0.9.15/src/setjmp/mips-sf/longjmp.s musl-git/src/setjmp/mips-sf/l + lw $28, 44($4) diff -Nur musl-0.9.15/src/setjmp/mips-sf/longjmp.sub musl-git/src/setjmp/mips-sf/longjmp.sub --- musl-0.9.15/src/setjmp/mips-sf/longjmp.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/mips-sf/longjmp.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/mips-sf/longjmp.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +longjmp.s diff -Nur musl-0.9.15/src/setjmp/mips-sf/setjmp.s musl-git/src/setjmp/mips-sf/setjmp.s --- musl-0.9.15/src/setjmp/mips-sf/setjmp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/mips-sf/setjmp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/mips-sf/setjmp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,25 @@ +.set noreorder + @@ -7627,12 +7913,12 @@ diff -Nur musl-0.9.15/src/setjmp/mips-sf/setjmp.s musl-git/src/setjmp/mips-sf/se + li $2, 0 diff -Nur musl-0.9.15/src/setjmp/mips-sf/setjmp.sub musl-git/src/setjmp/mips-sf/setjmp.sub --- musl-0.9.15/src/setjmp/mips-sf/setjmp.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/mips-sf/setjmp.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/mips-sf/setjmp.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +setjmp.s diff -Nur musl-0.9.15/src/setjmp/sh/longjmp.s musl-git/src/setjmp/sh/longjmp.s --- musl-0.9.15/src/setjmp/sh/longjmp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/sh/longjmp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/sh/longjmp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,26 @@ +.global _longjmp +.global longjmp @@ -7662,7 +7948,7 @@ diff -Nur musl-0.9.15/src/setjmp/sh/longjmp.s musl-git/src/setjmp/sh/longjmp.s + nop diff -Nur musl-0.9.15/src/setjmp/sh/setjmp.s musl-git/src/setjmp/sh/setjmp.s --- musl-0.9.15/src/setjmp/sh/setjmp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/sh/setjmp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/sh/setjmp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,25 @@ +.global __setjmp +.global _setjmp @@ -7691,17 +7977,17 @@ diff -Nur musl-0.9.15/src/setjmp/sh/setjmp.s musl-git/src/setjmp/sh/setjmp.s + mov #0, r0 diff -Nur musl-0.9.15/src/setjmp/sheb-nofpu/longjmp.sub musl-git/src/setjmp/sheb-nofpu/longjmp.sub --- musl-0.9.15/src/setjmp/sheb-nofpu/longjmp.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/sheb-nofpu/longjmp.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/sheb-nofpu/longjmp.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +../sh-nofpu/longjmp.s diff -Nur musl-0.9.15/src/setjmp/sheb-nofpu/setjmp.sub musl-git/src/setjmp/sheb-nofpu/setjmp.sub --- musl-0.9.15/src/setjmp/sheb-nofpu/setjmp.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/sheb-nofpu/setjmp.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/sheb-nofpu/setjmp.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +../sh-nofpu/setjmp.s diff -Nur musl-0.9.15/src/setjmp/sh-nofpu/longjmp.s musl-git/src/setjmp/sh-nofpu/longjmp.s --- musl-0.9.15/src/setjmp/sh-nofpu/longjmp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/sh-nofpu/longjmp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/sh-nofpu/longjmp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,22 @@ +.global _longjmp +.global longjmp @@ -7727,12 +8013,12 @@ diff -Nur musl-0.9.15/src/setjmp/sh-nofpu/longjmp.s musl-git/src/setjmp/sh-nofpu + nop diff -Nur musl-0.9.15/src/setjmp/sh-nofpu/longjmp.sub musl-git/src/setjmp/sh-nofpu/longjmp.sub --- musl-0.9.15/src/setjmp/sh-nofpu/longjmp.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/sh-nofpu/longjmp.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/sh-nofpu/longjmp.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +longjmp.s diff -Nur musl-0.9.15/src/setjmp/sh-nofpu/setjmp.s musl-git/src/setjmp/sh-nofpu/setjmp.s --- musl-0.9.15/src/setjmp/sh-nofpu/setjmp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/sh-nofpu/setjmp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/sh-nofpu/setjmp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,21 @@ +.global __setjmp +.global _setjmp @@ -7757,12 +8043,12 @@ diff -Nur musl-0.9.15/src/setjmp/sh-nofpu/setjmp.s musl-git/src/setjmp/sh-nofpu/ + mov #0, r0 diff -Nur musl-0.9.15/src/setjmp/sh-nofpu/setjmp.sub musl-git/src/setjmp/sh-nofpu/setjmp.sub --- musl-0.9.15/src/setjmp/sh-nofpu/setjmp.sub 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/sh-nofpu/setjmp.sub 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/sh-nofpu/setjmp.sub 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1 @@ +setjmp.s diff -Nur musl-0.9.15/src/setjmp/x32/longjmp.s musl-git/src/setjmp/x32/longjmp.s --- musl-0.9.15/src/setjmp/x32/longjmp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/x32/longjmp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/x32/longjmp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,22 @@ +/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */ +.global _longjmp @@ -7788,7 +8074,7 @@ diff -Nur musl-0.9.15/src/setjmp/x32/longjmp.s musl-git/src/setjmp/x32/longjmp.s + jmp *%rdx /* goto saved address without altering rsp */ diff -Nur musl-0.9.15/src/setjmp/x32/setjmp.s musl-git/src/setjmp/x32/setjmp.s --- musl-0.9.15/src/setjmp/x32/setjmp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/setjmp/x32/setjmp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/setjmp/x32/setjmp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,22 @@ +/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */ +.global __setjmp @@ -7814,7 +8100,7 @@ diff -Nur musl-0.9.15/src/setjmp/x32/setjmp.s musl-git/src/setjmp/x32/setjmp.s + ret diff -Nur musl-0.9.15/src/signal/sh/restore.s musl-git/src/signal/sh/restore.s --- musl-0.9.15/src/signal/sh/restore.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/signal/sh/restore.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/signal/sh/restore.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,24 @@ +.global __restore +.type __restore, @function @@ -7842,7 +8128,7 @@ diff -Nur musl-0.9.15/src/signal/sh/restore.s musl-git/src/signal/sh/restore.s + or r0, r0 diff -Nur musl-0.9.15/src/signal/sh/sigsetjmp.s musl-git/src/signal/sh/sigsetjmp.s --- musl-0.9.15/src/signal/sh/sigsetjmp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/signal/sh/sigsetjmp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/signal/sh/sigsetjmp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,27 @@ +.global sigsetjmp +.type sigsetjmp, @function @@ -7873,7 +8159,7 @@ diff -Nur musl-0.9.15/src/signal/sh/sigsetjmp.s musl-git/src/signal/sh/sigsetjmp +L2: .long setjmp@PLT-(3b-.) diff -Nur musl-0.9.15/src/signal/sigandset.c musl-git/src/signal/sigandset.c --- musl-0.9.15/src/signal/sigandset.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/signal/sigandset.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/signal/sigandset.c 2014-03-17 16:49:44.000000000 +0100 @@ -3,7 +3,7 @@ #define SST_SIZE (_NSIG/8/sizeof(long)) @@ -7885,7 +8171,7 @@ diff -Nur musl-0.9.15/src/signal/sigandset.c musl-git/src/signal/sigandset.c for(; i < SST_SIZE; i++) d[i] = l[i] & r[i]; diff -Nur musl-0.9.15/src/signal/sigorset.c musl-git/src/signal/sigorset.c --- musl-0.9.15/src/signal/sigorset.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/signal/sigorset.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/signal/sigorset.c 2014-03-17 16:49:44.000000000 +0100 @@ -3,7 +3,7 @@ #define SST_SIZE (_NSIG/8/sizeof(long)) @@ -7897,7 +8183,7 @@ diff -Nur musl-0.9.15/src/signal/sigorset.c musl-git/src/signal/sigorset.c for(; i < SST_SIZE; i++) d[i] = l[i] | r[i]; diff -Nur musl-0.9.15/src/signal/x32/restore.s musl-git/src/signal/x32/restore.s --- musl-0.9.15/src/signal/x32/restore.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/signal/x32/restore.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/signal/x32/restore.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,8 @@ +.global __restore_rt +.global __restore @@ -7909,7 +8195,7 @@ diff -Nur musl-0.9.15/src/signal/x32/restore.s musl-git/src/signal/x32/restore.s + syscall diff -Nur musl-0.9.15/src/signal/x32/sigsetjmp.s musl-git/src/signal/x32/sigsetjmp.s --- musl-0.9.15/src/signal/x32/sigsetjmp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/signal/x32/sigsetjmp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/signal/x32/sigsetjmp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,14 @@ +/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */ +.global sigsetjmp @@ -7927,7 +8213,7 @@ diff -Nur musl-0.9.15/src/signal/x32/sigsetjmp.s musl-git/src/signal/x32/sigsetj +1: jmp setjmp diff -Nur musl-0.9.15/src/stdio/__fdopen.c musl-git/src/stdio/__fdopen.c --- musl-0.9.15/src/stdio/__fdopen.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/stdio/__fdopen.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/stdio/__fdopen.c 2014-03-17 16:49:44.000000000 +0100 @@ -32,7 +32,9 @@ /* Set append mode on fd if opened for append */ if (*mode == 'a') { @@ -7941,7 +8227,7 @@ diff -Nur musl-0.9.15/src/stdio/__fdopen.c musl-git/src/stdio/__fdopen.c f->fd = fd; diff -Nur musl-0.9.15/src/stdio/ftell.c musl-git/src/stdio/ftell.c --- musl-0.9.15/src/stdio/ftell.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/stdio/ftell.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/stdio/ftell.c 2014-03-17 16:49:44.000000000 +0100 @@ -4,7 +4,9 @@ off_t __ftello_unlocked(FILE *f) @@ -7955,7 +8241,7 @@ diff -Nur musl-0.9.15/src/stdio/ftell.c musl-git/src/stdio/ftell.c /* Adjust for data in buffer. */ diff -Nur musl-0.9.15/src/stdio/vfprintf.c musl-git/src/stdio/vfprintf.c --- musl-0.9.15/src/stdio/vfprintf.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/stdio/vfprintf.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/stdio/vfprintf.c 2014-03-17 16:49:44.000000000 +0100 @@ -207,7 +207,8 @@ static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) @@ -7986,7 +8272,7 @@ diff -Nur musl-0.9.15/src/stdio/vfprintf.c musl-git/src/stdio/vfprintf.c diff -Nur musl-0.9.15/src/stdio/vfscanf.c musl-git/src/stdio/vfscanf.c --- musl-0.9.15/src/stdio/vfscanf.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/stdio/vfscanf.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/stdio/vfscanf.c 2014-03-17 16:49:44.000000000 +0100 @@ -328,3 +328,5 @@ FUNLOCK(f); return matches; @@ -7995,7 +8281,7 @@ diff -Nur musl-0.9.15/src/stdio/vfscanf.c musl-git/src/stdio/vfscanf.c +weak_alias(vfscanf,__isoc99_vfscanf); diff -Nur musl-0.9.15/src/thread/arm/clone.s musl-git/src/thread/arm/clone.s --- musl-0.9.15/src/thread/arm/clone.s 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/thread/arm/clone.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/arm/clone.s 2014-03-17 16:49:44.000000000 +0100 @@ -1,10 +1,7 @@ .text .global __clone @@ -8009,7 +8295,7 @@ diff -Nur musl-0.9.15/src/thread/arm/clone.s musl-git/src/thread/arm/clone.s mov r6,r3 diff -Nur musl-0.9.15/src/thread/cancel_dummy.c musl-git/src/thread/cancel_dummy.c --- musl-0.9.15/src/thread/cancel_dummy.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/thread/cancel_dummy.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/cancel_dummy.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,6 +1,9 @@ #include "pthread_impl.h" +#include "syscall.h" @@ -8023,7 +8309,7 @@ diff -Nur musl-0.9.15/src/thread/cancel_dummy.c musl-git/src/thread/cancel_dummy } diff -Nur musl-0.9.15/src/thread/cancel_impl.c musl-git/src/thread/cancel_impl.c --- musl-0.9.15/src/thread/cancel_impl.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/thread/cancel_impl.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/cancel_impl.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,4 +1,5 @@ #include "pthread_impl.h" +#include "syscall.h" @@ -8048,7 +8334,7 @@ diff -Nur musl-0.9.15/src/thread/cancel_impl.c musl-git/src/thread/cancel_impl.c long r; diff -Nur musl-0.9.15/src/thread/clone.c musl-git/src/thread/clone.c --- musl-0.9.15/src/thread/clone.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/thread/clone.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/clone.c 2014-03-17 16:49:44.000000000 +0100 @@ -1,10 +1,7 @@ #include <errno.h> -#include "libc.h" @@ -8064,7 +8350,7 @@ diff -Nur musl-0.9.15/src/thread/clone.c musl-git/src/thread/clone.c -weak_alias(__clone, clone); diff -Nur musl-0.9.15/src/thread/i386/clone.s musl-git/src/thread/i386/clone.s --- musl-0.9.15/src/thread/i386/clone.s 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/thread/i386/clone.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/i386/clone.s 2014-03-17 16:49:44.000000000 +0100 @@ -1,10 +1,7 @@ .text .global __clone @@ -8078,7 +8364,7 @@ diff -Nur musl-0.9.15/src/thread/i386/clone.s musl-git/src/thread/i386/clone.s push %ebx diff -Nur musl-0.9.15/src/thread/microblaze/clone.s musl-git/src/thread/microblaze/clone.s --- musl-0.9.15/src/thread/microblaze/clone.s 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/thread/microblaze/clone.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/microblaze/clone.s 2014-03-17 16:49:44.000000000 +0100 @@ -1,14 +1,11 @@ .global __clone -.weak clone @@ -8105,7 +8391,7 @@ diff -Nur musl-0.9.15/src/thread/microblaze/clone.s musl-git/src/thread/microbla brald r15, r3 diff -Nur musl-0.9.15/src/thread/sh/clone.s musl-git/src/thread/sh/clone.s --- musl-0.9.15/src/thread/sh/clone.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/thread/sh/clone.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/sh/clone.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,47 @@ +.text +.global __clone @@ -8156,7 +8442,7 @@ diff -Nur musl-0.9.15/src/thread/sh/clone.s musl-git/src/thread/sh/clone.s + or r0, r0 diff -Nur musl-0.9.15/src/thread/sh/__set_thread_area.s musl-git/src/thread/sh/__set_thread_area.s --- musl-0.9.15/src/thread/sh/__set_thread_area.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/thread/sh/__set_thread_area.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/sh/__set_thread_area.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,5 @@ +.global __set_thread_area +.type __set_thread_area, @function @@ -8165,7 +8451,7 @@ diff -Nur musl-0.9.15/src/thread/sh/__set_thread_area.s musl-git/src/thread/sh/_ + ldc r4, gbr diff -Nur musl-0.9.15/src/thread/sh/syscall_cp.s musl-git/src/thread/sh/syscall_cp.s --- musl-0.9.15/src/thread/sh/syscall_cp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/thread/sh/syscall_cp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/sh/syscall_cp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,39 @@ +.text +.global __syscall_cp_asm @@ -8208,7 +8494,7 @@ diff -Nur musl-0.9.15/src/thread/sh/syscall_cp.s musl-git/src/thread/sh/syscall_ + nop diff -Nur musl-0.9.15/src/thread/sh/__unmapself.s musl-git/src/thread/sh/__unmapself.s --- musl-0.9.15/src/thread/sh/__unmapself.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/thread/sh/__unmapself.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/sh/__unmapself.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,22 @@ +.text +.global __unmapself @@ -8234,7 +8520,7 @@ diff -Nur musl-0.9.15/src/thread/sh/__unmapself.s musl-git/src/thread/sh/__unmap + or r0, r0 diff -Nur musl-0.9.15/src/thread/__wait.c musl-git/src/thread/__wait.c --- musl-0.9.15/src/thread/__wait.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/thread/__wait.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/__wait.c 2014-03-17 16:49:44.000000000 +0100 @@ -10,6 +10,6 @@ } if (waiters) a_inc(waiters); @@ -8245,7 +8531,7 @@ diff -Nur musl-0.9.15/src/thread/__wait.c musl-git/src/thread/__wait.c } diff -Nur musl-0.9.15/src/thread/x32/clone.s musl-git/src/thread/x32/clone.s --- musl-0.9.15/src/thread/x32/clone.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/thread/x32/clone.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/x32/clone.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,25 @@ +.text +.global __clone @@ -8274,7 +8560,7 @@ diff -Nur musl-0.9.15/src/thread/x32/clone.s musl-git/src/thread/x32/clone.s +1: ret diff -Nur musl-0.9.15/src/thread/x32/__set_thread_area.s musl-git/src/thread/x32/__set_thread_area.s --- musl-0.9.15/src/thread/x32/__set_thread_area.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/thread/x32/__set_thread_area.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/x32/__set_thread_area.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,10 @@ +/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */ +.text @@ -8288,7 +8574,7 @@ diff -Nur musl-0.9.15/src/thread/x32/__set_thread_area.s musl-git/src/thread/x32 + ret diff -Nur musl-0.9.15/src/thread/x32/syscall_cp.s musl-git/src/thread/x32/syscall_cp.s --- musl-0.9.15/src/thread/x32/syscall_cp.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/thread/x32/syscall_cp.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/x32/syscall_cp.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,23 @@ +.text +.global __syscall_cp_internal @@ -8315,7 +8601,7 @@ diff -Nur musl-0.9.15/src/thread/x32/syscall_cp.s musl-git/src/thread/x32/syscal + ret diff -Nur musl-0.9.15/src/thread/x32/__unmapself.s musl-git/src/thread/x32/__unmapself.s --- musl-0.9.15/src/thread/x32/__unmapself.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/thread/x32/__unmapself.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/x32/__unmapself.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,10 @@ +/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */ +.text @@ -8329,7 +8615,7 @@ diff -Nur musl-0.9.15/src/thread/x32/__unmapself.s musl-git/src/thread/x32/__unm + syscall /* exit(0) */ diff -Nur musl-0.9.15/src/thread/x86_64/clone.s musl-git/src/thread/x86_64/clone.s --- musl-0.9.15/src/thread/x86_64/clone.s 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/thread/x86_64/clone.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/thread/x86_64/clone.s 2014-03-17 16:49:44.000000000 +0100 @@ -1,10 +1,7 @@ .text .global __clone @@ -8343,7 +8629,7 @@ diff -Nur musl-0.9.15/src/thread/x86_64/clone.s musl-git/src/thread/x86_64/clone mov %rdi,%r11 diff -Nur musl-0.9.15/src/time/timer_delete.c musl-git/src/time/timer_delete.c --- musl-0.9.15/src/time/timer_delete.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/time/timer_delete.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/time/timer_delete.c 2014-03-17 16:49:44.000000000 +0100 @@ -10,5 +10,5 @@ __wake(&td->timer_id, 1, 1); return 0; @@ -8353,7 +8639,7 @@ diff -Nur musl-0.9.15/src/time/timer_delete.c musl-git/src/time/timer_delete.c } diff -Nur musl-0.9.15/src/time/timer_getoverrun.c musl-git/src/time/timer_getoverrun.c --- musl-0.9.15/src/time/timer_getoverrun.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/time/timer_getoverrun.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/time/timer_getoverrun.c 2014-03-17 16:49:44.000000000 +0100 @@ -8,5 +8,5 @@ pthread_t td = (void *)((uintptr_t)t << 1); t = (void *)(uintptr_t)(td->timer_id & INT_MAX); @@ -8363,7 +8649,7 @@ diff -Nur musl-0.9.15/src/time/timer_getoverrun.c musl-git/src/time/timer_getove } diff -Nur musl-0.9.15/src/time/timer_gettime.c musl-git/src/time/timer_gettime.c --- musl-0.9.15/src/time/timer_gettime.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/time/timer_gettime.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/time/timer_gettime.c 2014-03-17 16:49:44.000000000 +0100 @@ -8,5 +8,5 @@ pthread_t td = (void *)((uintptr_t)t << 1); t = (void *)(uintptr_t)(td->timer_id & INT_MAX); @@ -8373,7 +8659,7 @@ diff -Nur musl-0.9.15/src/time/timer_gettime.c musl-git/src/time/timer_gettime.c } diff -Nur musl-0.9.15/src/time/timer_settime.c musl-git/src/time/timer_settime.c --- musl-0.9.15/src/time/timer_settime.c 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/src/time/timer_settime.c 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/time/timer_settime.c 2014-03-17 16:49:44.000000000 +0100 @@ -8,5 +8,5 @@ pthread_t td = (void *)((uintptr_t)t << 1); t = (void *)(uintptr_t)(td->timer_id & INT_MAX); @@ -8383,7 +8669,7 @@ diff -Nur musl-0.9.15/src/time/timer_settime.c musl-git/src/time/timer_settime.c } diff -Nur musl-0.9.15/src/unistd/sh/pipe.s musl-git/src/unistd/sh/pipe.s --- musl-0.9.15/src/unistd/sh/pipe.s 1970-01-01 01:00:00.000000000 +0100 -+++ musl-git/src/unistd/sh/pipe.s 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/src/unistd/sh/pipe.s 2014-03-17 16:49:44.000000000 +0100 @@ -0,0 +1,27 @@ +.global pipe +.type pipe, @function @@ -8414,7 +8700,7 @@ diff -Nur musl-0.9.15/src/unistd/sh/pipe.s musl-git/src/unistd/sh/pipe.s +L1: .long __syscall_ret@PLT-(1b-.) diff -Nur musl-0.9.15/tools/install.sh musl-git/tools/install.sh --- musl-0.9.15/tools/install.sh 2014-01-03 21:12:18.000000000 +0100 -+++ musl-git/tools/install.sh 2014-03-10 16:52:06.000000000 +0100 ++++ musl-git/tools/install.sh 2014-03-17 16:49:44.000000000 +0100 @@ -51,6 +51,7 @@ ln -s "$1" "$tmp" else diff --git a/toolchain/musl/patches/musl-x32.patch b/toolchain/musl/patches/musl-x32.patch deleted file mode 100644 index c391e4c85..000000000 --- a/toolchain/musl/patches/musl-x32.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nur musl-0.9.15.orig/configure musl-0.9.15/configure ---- musl-0.9.15.orig/configure 2014-03-16 21:17:29.000000000 +0100 -+++ musl-0.9.15/configure 2014-03-16 22:46:46.000000000 +0100 -@@ -226,7 +226,7 @@ - mips64*|powerpc64*) fail "$0: unsupported target \"$target\"" ;; - arm*) ARCH=arm ;; - i?86*) ARCH=i386 ;; --x86_64-x32*|x32*) ARCH=x32 ;; -+x86_64*x32) ARCH=x32 ;; - x86_64*) ARCH=x86_64 ;; - mips*) ARCH=mips ;; - microblaze*) ARCH=microblaze ;; |