diff -Nru pax-utils-1.1.4/aclocal.m4 pax-utils-1.1.5/aclocal.m4 --- pax-utils-1.1.4/aclocal.m4 2015-10-26 04:30:17.000000000 +0000 +++ pax-utils-1.1.5/aclocal.m4 2016-02-10 19:17:55.000000000 +0000 @@ -20,116 +20,6 @@ If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_append_flag.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE]) -# -# DESCRIPTION -# -# FLAG is appended to the FLAGS-VARIABLE shell variable, with a space -# added in between. -# -# If FLAGS-VARIABLE is not specified, the current language's flags (e.g. -# CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains -# FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly -# FLAG. -# -# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. -# -# LICENSE -# -# Copyright (c) 2008 Guido U. Draheim -# Copyright (c) 2011 Maarten Bosmans -# -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation, either version 3 of the License, or (at your -# option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -# Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# As a special exception, the respective Autoconf Macro's copyright owner -# gives unlimited permission to copy, distribute and modify the configure -# scripts that are the output of Autoconf when processing the Macro. You -# need not follow the terms of the GNU General Public License when using -# or distributing such scripts, even though portions of the text of the -# Macro appear in them. The GNU General Public License (GPL) does govern -# all other use of the material that constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the Autoconf -# Macro released by the Autoconf Archive. When you make and distribute a -# modified version of the Autoconf Macro, you may extend this special -# exception to the GPL to apply to your modified version as well. - -#serial 6 - -AC_DEFUN([AX_APPEND_FLAG], -[dnl -AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_SET_IF -AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])]) -AS_VAR_SET_IF(FLAGS,[ - AS_CASE([" AS_VAR_GET(FLAGS) "], - [*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])], - [ - AS_VAR_APPEND(FLAGS,[" $1"]) - AC_RUN_LOG([: FLAGS="$FLAGS"]) - ]) - ], - [ - AS_VAR_SET(FLAGS,[$1]) - AC_RUN_LOG([: FLAGS="$FLAGS"]) - ]) -AS_VAR_POPDEF([FLAGS])dnl -])dnl AX_APPEND_FLAG - -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_require_defined.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_REQUIRE_DEFINED(MACRO) -# -# DESCRIPTION -# -# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have -# been defined and thus are available for use. This avoids random issues -# where a macro isn't expanded. Instead the configure script emits a -# non-fatal: -# -# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found -# -# It's like AC_REQUIRE except it doesn't expand the required macro. -# -# Here's an example: -# -# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) -# -# LICENSE -# -# Copyright (c) 2014 Mike Frysinger -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 1 - -AC_DEFUN([AX_REQUIRE_DEFINED], [dnl - m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])]) -])dnl AX_REQUIRE_DEFINED - # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # @@ -1992,8 +1882,10 @@ m4_include([autotools/m4/00gnulib.m4]) m4_include([autotools/m4/absolute-header.m4]) m4_include([autotools/m4/alloca.m4]) +m4_include([autotools/m4/ax_append_flag.m4]) m4_include([autotools/m4/ax_cflags_warn_all.m4]) m4_include([autotools/m4/ax_check_compile_flag.m4]) +m4_include([autotools/m4/ax_require_defined.m4]) m4_include([autotools/m4/canonicalize.m4]) m4_include([autotools/m4/chdir-long.m4]) m4_include([autotools/m4/clock_time.m4]) diff -Nru pax-utils-1.1.4/autogen.sh pax-utils-1.1.5/autogen.sh --- pax-utils-1.1.4/autogen.sh 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/autogen.sh 2016-02-10 19:16:43.000000000 +0000 @@ -1,6 +1,6 @@ #!/bin/bash -e -v() { echo "$@"; "$@"; } +. "${0%/*}"/travis/lib.sh m4dir="autotools/m4" @@ -33,16 +33,35 @@ utimensat vasprintf-posix " -v gnulib-tool \ +v --fold="gnulib-tool" gnulib-tool \ --source-base=autotools/gnulib --m4-base=autotools/m4 \ --import \ ${mods} # not everyone has sys-devel/autoconf-archive installed -for macro in $(grep -o '\' configure.ac | sort -u) ; do - if m4=$(grep -rl "\[${macro}\]" /usr/share/aclocal/) ; then - v cp $m4 ${m4dir}/ +v tar xf travis/autotools.tar.xz +has() { [[ " ${*:2} " == *" $1 "* ]] ; } +import_ax() { + local macro content m4 lm4s=() + content=$(sed -e '/^[[:space:]]*#/d' -e 's:\.*::' "$@") + for macro in $(echo "${content}" | grep -o '\' | sort -u) ; do + for m4 in $(grep -rl "\[${macro}\]" /usr/share/aclocal/) ; do + has ${m4} "${m4s[@]}" || lm4s+=( ${m4} ) + done + done + if [[ ${#lm4s[@]} -gt 0 ]] ; then + cp -v `printf '%s\n' ${lm4s[@]} | sort -u` autotools/m4/ + m4s+=( "${lm4s[@]}" ) fi +} +m4s=() +import_ax configure.ac +curr=1 +new=0 +while [[ ${curr} -ne ${new} ]] ; do + curr=${#m4s[@]} + import_ax autotools/m4/ax_*.m4 + new=${#m4s[@]} done export AUTOMAKE="automake --foreign" diff -Nru pax-utils-1.1.4/autotools/config.guess pax-utils-1.1.5/autotools/config.guess --- pax-utils-1.1.4/autotools/config.guess 2015-10-26 04:30:21.000000000 +0000 +++ pax-utils-1.1.5/autotools/config.guess 2016-02-10 19:18:01.000000000 +0000 @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2015 Free Software Foundation, Inc. -timestamp='2015-07-03' +timestamp='2015-12-14' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -249,6 +249,9 @@ *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; + *:Sortix:*:*) + echo ${UNAME_MACHINE}-unknown-sortix + exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) @@ -962,6 +965,9 @@ ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; + k1om:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; @@ -1128,7 +1134,7 @@ # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub - # prints for the "djgpp" host, or else GDB configury will decide that + # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; @@ -1398,6 +1404,9 @@ x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; + amd64:Isilon\ OneFS:*:*) + echo x86_64-unknown-onefs + exit ;; esac cat >&2 < +# include + +# include + +static int +dup_nothrow (int fd) +{ + int dupfd; + struct stat sbuf; + + dupfd = dup (fd); + if (dupfd == -1 && errno == ENOTSUP \ + && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode)) + { + char path[_MAX_PATH]; + + /* Get a path from fd */ + if (!__libc_Back_ioFHToPath (fd, path, sizeof (path))) + dupfd = open (path, O_RDONLY); + } + + return dupfd; +} #else # define dup_nothrow dup #endif diff -Nru pax-utils-1.1.4/autotools/gnulib/dup-safer.c pax-utils-1.1.5/autotools/gnulib/dup-safer.c --- pax-utils-1.1.4/autotools/gnulib/dup-safer.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/dup-safer.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* Invoke dup, but avoid some glitches. - Copyright (C) 2001, 2004-2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2001, 2004-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/errno.in.h pax-utils-1.1.5/autotools/gnulib/errno.in.h --- pax-utils-1.1.4/autotools/gnulib/errno.in.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/errno.in.h 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* A POSIX-like . - Copyright (C) 2008-2015 Free Software Foundation, Inc. + Copyright (C) 2008-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/error.c pax-utils-1.1.5/autotools/gnulib/error.c --- pax-utils-1.1.4/autotools/gnulib/error.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/error.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ /* Error handler for noninteractive utilities - Copyright (C) 1990-1998, 2000-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 1990-1998, 2000-2007, 2009-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/error.h pax-utils-1.1.5/autotools/gnulib/error.h --- pax-utils-1.1.4/autotools/gnulib/error.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/error.h 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ /* Declaration for error-reporting function - Copyright (C) 1995-1997, 2003, 2006, 2008-2015 Free Software Foundation, + Copyright (C) 1995-1997, 2003, 2006, 2008-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. diff -Nru pax-utils-1.1.4/autotools/gnulib/euidaccess.c pax-utils-1.1.5/autotools/gnulib/euidaccess.c --- pax-utils-1.1.4/autotools/gnulib/euidaccess.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/euidaccess.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* euidaccess -- check if effective user id can access file - Copyright (C) 1990-1991, 1995, 1998, 2000, 2003-2006, 2008-2015 Free + Copyright (C) 1990-1991, 1995, 1998, 2000, 2003-2006, 2008-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. diff -Nru pax-utils-1.1.4/autotools/gnulib/exitfail.c pax-utils-1.1.5/autotools/gnulib/exitfail.c --- pax-utils-1.1.4/autotools/gnulib/exitfail.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/exitfail.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* Failure exit status - Copyright (C) 2002-2003, 2005-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/exitfail.h pax-utils-1.1.5/autotools/gnulib/exitfail.h --- pax-utils-1.1.4/autotools/gnulib/exitfail.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/exitfail.h 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* Failure exit status - Copyright (C) 2002, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2002, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/faccessat.c pax-utils-1.1.5/autotools/gnulib/faccessat.c --- pax-utils-1.1.4/autotools/gnulib/faccessat.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/faccessat.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ /* Check the access rights of a file relative to an open directory. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/fchdir.c pax-utils-1.1.5/autotools/gnulib/fchdir.c --- pax-utils-1.1.4/autotools/gnulib/fchdir.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/fchdir.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ /* fchdir replacement. - Copyright (C) 2006-2015 Free Software Foundation, Inc. + Copyright (C) 2006-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/fcntl.c pax-utils-1.1.5/autotools/gnulib/fcntl.c --- pax-utils-1.1.4/autotools/gnulib/fcntl.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/fcntl.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* Provide file descriptor control. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -162,6 +162,93 @@ } #endif /* W32 */ +#ifdef __KLIBC__ + +# define INCL_DOS +# include + +static int +klibc_fcntl (int fd, int action, /* arg */...) +{ + va_list arg_ptr; + int arg; + struct stat sbuf; + int result = -1; + + va_start (arg_ptr, action); + arg = va_arg (arg_ptr, int); + result = fcntl (fd, action, arg); + /* EPERM for F_DUPFD, ENOTSUP for others */ + if (result == -1 && (errno == EPERM || errno == ENOTSUP) + && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode)) + { + ULONG ulMode; + + switch (action) + { + case F_DUPFD: + /* Find available fd */ + while (fcntl (arg, F_GETFL) != -1 || errno != EBADF) + arg++; + + result = dup2 (fd, arg); + break; + + /* Using underlying APIs is right ? */ + case F_GETFD: + if (DosQueryFHState (fd, &ulMode)) + break; + + result = (ulMode & OPEN_FLAGS_NOINHERIT) ? FD_CLOEXEC : 0; + break; + + case F_SETFD: + if (arg & ~FD_CLOEXEC) + break; + + if (DosQueryFHState (fd, &ulMode)) + break; + + if (arg & FD_CLOEXEC) + ulMode |= OPEN_FLAGS_NOINHERIT; + else + ulMode &= ~OPEN_FLAGS_NOINHERIT; + + /* Filter supported flags. */ + ulMode &= (OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_FAIL_ON_ERROR + | OPEN_FLAGS_NO_CACHE | OPEN_FLAGS_NOINHERIT); + + if (DosSetFHState (fd, ulMode)) + break; + + result = 0; + break; + + case F_GETFL: + result = 0; + break; + + case F_SETFL: + if (arg != 0) + break; + + result = 0; + break; + + default : + errno = EINVAL; + break; + } + } + + va_end (arg_ptr); + + return result; +} + +# define fcntl klibc_fcntl +#endif + /* Perform the specified ACTION on the file descriptor FD, possibly using the argument ARG further described below. This replacement handles the following actions, and forwards all others on to the diff -Nru pax-utils-1.1.4/autotools/gnulib/fcntl.in.h pax-utils-1.1.5/autotools/gnulib/fcntl.in.h --- pax-utils-1.1.4/autotools/gnulib/fcntl.in.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/fcntl.in.h 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* Like , but with non-working flags defined to 0. - Copyright (C) 2006-2015 Free Software Foundation, Inc. + Copyright (C) 2006-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/fd-hook.c pax-utils-1.1.5/autotools/gnulib/fd-hook.c --- pax-utils-1.1.4/autotools/gnulib/fd-hook.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/fd-hook.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ /* Hook for making making file descriptor functions close(), ioctl() extensible. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2009. This program is free software: you can redistribute it and/or modify it diff -Nru pax-utils-1.1.4/autotools/gnulib/fd-hook.h pax-utils-1.1.5/autotools/gnulib/fd-hook.h --- pax-utils-1.1.4/autotools/gnulib/fd-hook.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/fd-hook.h 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ /* Hook for making making file descriptor functions close(), ioctl() extensible. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff -Nru pax-utils-1.1.4/autotools/gnulib/fdopendir.c pax-utils-1.1.5/autotools/gnulib/fdopendir.c --- pax-utils-1.1.4/autotools/gnulib/fdopendir.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/fdopendir.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ /* provide a replacement fdopendir function - Copyright (C) 2004-2015 Free Software Foundation, Inc. + Copyright (C) 2004-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -62,6 +62,41 @@ If this function returns successfully, FD is under control of the dirent.h system, and the caller should not close or modify the state of FD other than by the dirent.h functions. */ +# ifdef __KLIBC__ +# include + +DIR * +fdopendir (int fd) +{ + char path[_MAX_PATH]; + DIR *dirp; + + /* Get a path from fd */ + if (__libc_Back_ioFHToPath (fd, path, sizeof (path))) + return NULL; + + dirp = opendir (path); + if (!dirp) + return NULL; + + /* Unregister fd registered by opendir() */ + _gl_unregister_dirp_fd (dirfd (dirp)); + + /* Register our fd */ + if (_gl_register_dirp_fd (fd, dirp)) + { + int saved_errno = errno; + + closedir (dirp); + + errno = saved_errno; + + dirp = NULL; + } + + return dirp; +} +# else DIR * fdopendir (int fd) { @@ -84,6 +119,7 @@ return dir; } +# endif /* Like fdopendir, except that if OLDER_DUPFD is not -1, it is known to be a dup of FD which is less than FD - 1 and which will be diff -Nru pax-utils-1.1.4/autotools/gnulib/fd-safer.c pax-utils-1.1.5/autotools/gnulib/fd-safer.c --- pax-utils-1.1.4/autotools/gnulib/fd-safer.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/fd-safer.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* Return a safer copy of a file descriptor. - Copyright (C) 2005-2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/filenamecat.h pax-utils-1.1.5/autotools/gnulib/filenamecat.h --- pax-utils-1.1.4/autotools/gnulib/filenamecat.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/filenamecat.h 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* Concatenate two arbitrary file names. - Copyright (C) 1996-1997, 2003, 2005, 2007, 2009-2015 Free Software + Copyright (C) 1996-1997, 2003, 2005, 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/filenamecat-lgpl.c pax-utils-1.1.5/autotools/gnulib/filenamecat-lgpl.c --- pax-utils-1.1.4/autotools/gnulib/filenamecat-lgpl.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/filenamecat-lgpl.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* Concatenate two arbitrary file names. - Copyright (C) 1996-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 1996-2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/filename.h pax-utils-1.1.5/autotools/gnulib/filename.h --- pax-utils-1.1.4/autotools/gnulib/filename.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/filename.h 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ /* Basic filename support macros. - Copyright (C) 2001-2004, 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/float.c pax-utils-1.1.5/autotools/gnulib/float.c --- pax-utils-1.1.4/autotools/gnulib/float.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/float.c 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ /* Auxiliary definitions for . - Copyright (C) 2011-2015 Free Software Foundation, Inc. + Copyright (C) 2011-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/float+.h pax-utils-1.1.5/autotools/gnulib/float+.h --- pax-utils-1.1.4/autotools/gnulib/float+.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/float+.h 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ /* Supplemental information about the floating-point formats. - Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/float.in.h pax-utils-1.1.5/autotools/gnulib/float.in.h --- pax-utils-1.1.4/autotools/gnulib/float.in.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/float.in.h 2016-02-10 19:17:02.000000000 +0000 @@ -1,6 +1,6 @@ /* A correct . - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/fpucw.h pax-utils-1.1.5/autotools/gnulib/fpucw.h --- pax-utils-1.1.4/autotools/gnulib/fpucw.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/fpucw.h 2016-02-10 19:17:02.000000000 +0000 @@ -1,5 +1,5 @@ -/* Manipulating the FPU control word. - Copyright (C) 2007-2015 Free Software Foundation, Inc. +/* Manipulating the FPU control word. -*- coding: utf-8 -*- + Copyright (C) 2007-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/frexp.c pax-utils-1.1.5/autotools/gnulib/frexp.c --- pax-utils-1.1.4/autotools/gnulib/frexp.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/frexp.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Split a double into fraction and mantissa. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/frexpl.c pax-utils-1.1.5/autotools/gnulib/frexpl.c --- pax-utils-1.1.4/autotools/gnulib/frexpl.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/frexpl.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Split a 'long double' into fraction and mantissa. - Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/fstatat.c pax-utils-1.1.5/autotools/gnulib/fstatat.c --- pax-utils-1.1.4/autotools/gnulib/fstatat.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/fstatat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Work around an fstatat bug on Solaris 9. - Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/fstat.c pax-utils-1.1.5/autotools/gnulib/fstat.c --- pax-utils-1.1.4/autotools/gnulib/fstat.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/fstat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* fstat() replacement. - Copyright (C) 2011-2015 Free Software Foundation, Inc. + Copyright (C) 2011-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/futimens.c pax-utils-1.1.5/autotools/gnulib/futimens.c --- pax-utils-1.1.4/autotools/gnulib/futimens.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/futimens.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Set the access and modification time of an open fd. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/getcwd-lgpl.c pax-utils-1.1.5/autotools/gnulib/getcwd-lgpl.c --- pax-utils-1.1.4/autotools/gnulib/getcwd-lgpl.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/getcwd-lgpl.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2011-2015 Free Software Foundation, Inc. +/* Copyright (C) 2011-2016 Free Software Foundation, Inc. This file is part of gnulib. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/getdelim.c pax-utils-1.1.5/autotools/gnulib/getdelim.c --- pax-utils-1.1.4/autotools/gnulib/getdelim.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/getdelim.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* getdelim.c --- Implementation of replacement getdelim function. - Copyright (C) 1994, 1996-1998, 2001, 2003, 2005-2015 Free Software + Copyright (C) 1994, 1996-1998, 2001, 2003, 2005-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or diff -Nru pax-utils-1.1.4/autotools/gnulib/getdtablesize.c pax-utils-1.1.5/autotools/gnulib/getdtablesize.c --- pax-utils-1.1.4/autotools/gnulib/getdtablesize.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/getdtablesize.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* getdtablesize() function for platforms that don't have it. - Copyright (C) 2008-2015 Free Software Foundation, Inc. + Copyright (C) 2008-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/getgroups.c pax-utils-1.1.5/autotools/gnulib/getgroups.c --- pax-utils-1.1.4/autotools/gnulib/getgroups.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/getgroups.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* provide consistent interface to getgroups for systems that don't allow N==0 - Copyright (C) 1996, 1999, 2003, 2006-2015 Free Software Foundation, Inc. + Copyright (C) 1996, 1999, 2003, 2006-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/getline.c pax-utils-1.1.5/autotools/gnulib/getline.c --- pax-utils-1.1.4/autotools/gnulib/getline.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/getline.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* getline.c --- Implementation of replacement getline function. - Copyright (C) 2005-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2007, 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as diff -Nru pax-utils-1.1.4/autotools/gnulib/getopt1.c pax-utils-1.1.5/autotools/gnulib/getopt1.c --- pax-utils-1.1.4/autotools/gnulib/getopt1.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/getopt1.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* getopt_long and getopt_long_only entry points for GNU getopt. - Copyright (C) 1987-1994, 1996-1998, 2004, 2006, 2009-2015 Free Software + Copyright (C) 1987-1994, 1996-1998, 2004, 2006, 2009-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. diff -Nru pax-utils-1.1.4/autotools/gnulib/getopt.c pax-utils-1.1.5/autotools/gnulib/getopt.c --- pax-utils-1.1.4/autotools/gnulib/getopt.c 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/getopt.c 2016-02-10 19:17:03.000000000 +0000 @@ -2,7 +2,7 @@ NOTE: getopt is part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! - Copyright (C) 1987-1996, 1998-2004, 2006, 2008-2015 Free Software + Copyright (C) 1987-1996, 1998-2004, 2006, 2008-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. diff -Nru pax-utils-1.1.4/autotools/gnulib/getopt.in.h pax-utils-1.1.5/autotools/gnulib/getopt.in.h --- pax-utils-1.1.4/autotools/gnulib/getopt.in.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/getopt.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Declarations for getopt. - Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2007, 2009-2015 Free Software + Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2007, 2009-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. diff -Nru pax-utils-1.1.4/autotools/gnulib/getopt_int.h pax-utils-1.1.5/autotools/gnulib/getopt_int.h --- pax-utils-1.1.4/autotools/gnulib/getopt_int.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/getopt_int.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Internal declarations for getopt. - Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2015 Free Software + Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. diff -Nru pax-utils-1.1.4/autotools/gnulib/gettext.h pax-utils-1.1.5/autotools/gnulib/gettext.h --- pax-utils-1.1.4/autotools/gnulib/gettext.h 2015-10-26 04:29:27.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/gettext.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Convenience header for conditional use of GNU . - Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2015 Free Software + Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/gettime.c pax-utils-1.1.5/autotools/gnulib/gettime.c --- pax-utils-1.1.4/autotools/gnulib/gettime.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/gettime.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* gettime -- get the system clock - Copyright (C) 2002, 2004-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2002, 2004-2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/gettimeofday.c pax-utils-1.1.5/autotools/gnulib/gettimeofday.c --- pax-utils-1.1.4/autotools/gnulib/gettimeofday.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/gettimeofday.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Provide gettimeofday for systems that don't have it or for which it's broken. - Copyright (C) 2001-2003, 2005-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2007, 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/group-member.c pax-utils-1.1.5/autotools/gnulib/group-member.c --- pax-utils-1.1.4/autotools/gnulib/group-member.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/group-member.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* group-member.c -- determine whether group id is in calling user's group list - Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2015 Free Software + Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/intprops.h pax-utils-1.1.5/autotools/gnulib/intprops.h --- pax-utils-1.1.4/autotools/gnulib/intprops.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/intprops.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* intprops.h -- properties of integer types - Copyright (C) 2001-2005, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2001-2005, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,8 +22,7 @@ #include -/* Return an integer value, converted to the same type as the integer - expression E after integer type promotion. V is the unconverted value. */ +/* Return a value with the common real type of E and V and the value of V. */ #define _GL_INT_CONVERT(e, v) (0 * (e) + (v)) /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see @@ -48,12 +47,12 @@ /* True if the signed integer expression E uses two's complement. */ #define _GL_INT_TWOS_COMPLEMENT(e) (~ _GL_INT_CONVERT (e, 0) == -1) -/* True if the arithmetic type T is signed. */ +/* True if the real type T is signed. */ #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) -/* Return 1 if the integer expression E, after integer promotion, has - a signed type. */ -#define _GL_INT_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0) +/* Return 1 if the real expression E, after promotion, has a + signed or floating type. */ +#define EXPR_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0) /* Minimum and maximum values for integer types and expressions. These @@ -76,11 +75,11 @@ /* The maximum and minimum values for the type of the expression E, after integer promotion. E should not have side effects. */ #define _GL_INT_MINIMUM(e) \ - (_GL_INT_SIGNED (e) \ + (EXPR_SIGNED (e) \ ? - _GL_INT_TWOS_COMPLEMENT (e) - _GL_SIGNED_INT_MAXIMUM (e) \ : _GL_INT_CONVERT (e, 0)) #define _GL_INT_MAXIMUM(e) \ - (_GL_INT_SIGNED (e) \ + (EXPR_SIGNED (e) \ ? _GL_SIGNED_INT_MAXIMUM (e) \ : _GL_INT_NEGATE_CONVERT (e, 1)) #define _GL_SIGNED_INT_MAXIMUM(e) \ @@ -263,22 +262,29 @@ : (a) % - (b)) \ == 0) - -/* Integer overflow checks. +/* Check for integer overflow, and report low order bits of answer. The INT__OVERFLOW macros return 1 if the corresponding C operators might not yield numerically correct answers due to arithmetic overflow. - They work correctly on all known practical hosts, and do not rely + The INT__WRAPV macros also store the low-order bits of the answer. + These macros work correctly on all known practical hosts, and do not rely on undefined behavior due to signed arithmetic overflow. - Example usage: + Example usage, assuming A and B are long int: - long int i = ...; - long int j = ...; - if (INT_MULTIPLY_OVERFLOW (i, j)) - printf ("multiply would overflow"); + if (INT_MULTIPLY_OVERFLOW (a, b)) + printf ("result would overflow\n"); else - printf ("product is %ld", i * j); + printf ("result is %ld (no overflow)\n", a * b); + + Example usage with WRAPV flavor: + + long int result; + bool overflow = INT_MULTIPLY_WRAPV (a, b, &result); + printf ("result is %ld (%s)\n", result, + overflow ? "after overflow" : "no overflow"); + + Restrictions on these macros: These macros do not check for all possible numerical problems or undefined or unspecified behavior: they do not check for division @@ -287,6 +293,9 @@ These macros may evaluate their arguments zero or multiple times, so the arguments should not have side effects. + The WRAPV macros are not constant expressions. They support only + +, binary -, and *. The result type must be signed. + These macros are tuned for their last argument being a constant. Return 1 if the integer expressions A * B, A - B, -A, A * B, A / B, @@ -317,4 +326,104 @@ _GL_INT_MINIMUM (0 * (b) + (a)), \ _GL_INT_MAXIMUM (0 * (b) + (a))) +/* Compute A + B, A - B, A * B, respectively, storing the result into *R. + Return 1 if the result overflows. See above for restrictions. */ +#define INT_ADD_WRAPV(a, b, r) \ + _GL_INT_OP_WRAPV (a, b, r, +, __builtin_add_overflow, INT_ADD_OVERFLOW) +#define INT_SUBTRACT_WRAPV(a, b, r) \ + _GL_INT_OP_WRAPV (a, b, r, -, __builtin_sub_overflow, INT_SUBTRACT_OVERFLOW) +#define INT_MULTIPLY_WRAPV(a, b, r) \ + _GL_INT_OP_WRAPV (a, b, r, *, __builtin_mul_overflow, INT_MULTIPLY_OVERFLOW) + +#ifndef __has_builtin +# define __has_builtin(x) 0 +#endif + +/* Nonzero if this compiler has GCC bug 68193 or Clang bug 25390. See: + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193 + https://llvm.org/bugs/show_bug.cgi?id=25390 + For now, assume all versions of GCC-like compilers generate bogus + warnings for _Generic. This matters only for older compilers that + lack __builtin_add_overflow. */ +#if __GNUC__ +# define _GL__GENERIC_BOGUS 1 +#else +# define _GL__GENERIC_BOGUS 0 +#endif + +/* Store A B into *R, where OP specifies the operation. + BUILTIN is the builtin operation, and OVERFLOW the overflow predicate. + See above for restrictions. */ +#if 5 <= __GNUC__ || __has_builtin (__builtin_add_overflow) +# define _GL_INT_OP_WRAPV(a, b, r, op, builtin, overflow) builtin (a, b, r) +#elif 201112 <= __STDC_VERSION__ && !_GL__GENERIC_BOGUS +# define _GL_INT_OP_WRAPV(a, b, r, op, builtin, overflow) \ + (_Generic \ + (*(r), \ + signed char: \ + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned char, \ + signed char, SCHAR_MIN, SCHAR_MAX), \ + short int: \ + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned short int, \ + short int, SHRT_MIN, SHRT_MAX), \ + int: \ + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ + int, INT_MIN, INT_MAX), \ + long int: \ + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ + long int, LONG_MIN, LONG_MAX), \ + long long int: \ + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ + long long int, LLONG_MIN, LLONG_MAX))) +#else +# define _GL_INT_OP_WRAPV(a, b, r, op, builtin, overflow) \ + (sizeof *(r) == sizeof (signed char) \ + ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned char, \ + signed char, SCHAR_MIN, SCHAR_MAX) \ + : sizeof *(r) == sizeof (short int) \ + ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned short int, \ + short int, SHRT_MIN, SHRT_MAX) \ + : sizeof *(r) == sizeof (int) \ + ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ + int, INT_MIN, INT_MAX) \ + : _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow)) +# ifdef LLONG_MAX +# define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ + (sizeof *(r) == sizeof (long int) \ + ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ + long int, LONG_MIN, LONG_MAX) \ + : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ + long long int, LLONG_MIN, LLONG_MAX)) +# else +# define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ + long int, LONG_MIN, LONG_MAX)) +# endif +#endif + +/* Store the low-order bits of A B into *R, where the operation + is given by OP. Use the unsigned type UT for calculation to avoid + overflow problems. *R's type is T, with extremal values TMIN and + TMAX. T must be a signed integer type. */ +#define _GL_INT_OP_CALC(a, b, r, op, overflow, ut, t, tmin, tmax) \ + (sizeof ((a) op (b)) < sizeof (t) \ + ? _GL_INT_OP_CALC1 ((t) (a), (t) (b), r, op, overflow, ut, t, tmin, tmax) \ + : _GL_INT_OP_CALC1 (a, b, r, op, overflow, ut, t, tmin, tmax)) +#define _GL_INT_OP_CALC1(a, b, r, op, overflow, ut, t, tmin, tmax) \ + ((overflow (a, b) \ + || (EXPR_SIGNED ((a) op (b)) && ((a) op (b)) < (tmin)) \ + || (tmax) < ((a) op (b))) \ + ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t, tmin, tmax), 1) \ + : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t, tmin, tmax), 0)) + +/* Return A B, where the operation is given by OP. Use the + unsigned type UT for calculation to avoid overflow problems. + Convert the result to type T without overflow by subtracting TMIN + from large values before converting, and adding it afterwards. + Compilers can optimize all the operations except OP. */ +#define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, ut, t, tmin, tmax) \ + (((ut) (a) op (ut) (b)) <= (tmax) \ + ? (t) ((ut) (a) op (ut) (b)) \ + : ((t) (((ut) (a) op (ut) (b)) - (tmin)) + (tmin))) + #endif /* _GL_INTPROPS_H */ diff -Nru pax-utils-1.1.4/autotools/gnulib/isnan.c pax-utils-1.1.5/autotools/gnulib/isnan.c --- pax-utils-1.1.4/autotools/gnulib/isnan.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/isnan.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Test for NaN that does not need libm. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/isnand.c pax-utils-1.1.5/autotools/gnulib/isnand.c --- pax-utils-1.1.4/autotools/gnulib/isnand.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/isnand.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Test for NaN that does not need libm. - Copyright (C) 2008-2015 Free Software Foundation, Inc. + Copyright (C) 2008-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/isnand-nolibm.h pax-utils-1.1.5/autotools/gnulib/isnand-nolibm.h --- pax-utils-1.1.4/autotools/gnulib/isnand-nolibm.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/isnand-nolibm.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Test for NaN that does not need libm. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/isnanf.c pax-utils-1.1.5/autotools/gnulib/isnanf.c --- pax-utils-1.1.4/autotools/gnulib/isnanf.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/isnanf.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Test for NaN that does not need libm. - Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/isnanf-nolibm.h pax-utils-1.1.5/autotools/gnulib/isnanf-nolibm.h --- pax-utils-1.1.4/autotools/gnulib/isnanf-nolibm.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/isnanf-nolibm.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Test for NaN that does not need libm. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/isnanl.c pax-utils-1.1.5/autotools/gnulib/isnanl.c --- pax-utils-1.1.4/autotools/gnulib/isnanl.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/isnanl.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Test for NaN that does not need libm. - Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/isnanl-nolibm.h pax-utils-1.1.5/autotools/gnulib/isnanl-nolibm.h --- pax-utils-1.1.4/autotools/gnulib/isnanl-nolibm.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/isnanl-nolibm.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Test for NaN that does not need libm. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/itold.c pax-utils-1.1.5/autotools/gnulib/itold.c --- pax-utils-1.1.4/autotools/gnulib/itold.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/itold.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Replacement for 'int' to 'long double' conversion routine. - Copyright (C) 2011-2015 Free Software Foundation, Inc. + Copyright (C) 2011-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/lstat.c pax-utils-1.1.5/autotools/gnulib/lstat.c --- pax-utils-1.1.4/autotools/gnulib/lstat.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/lstat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Work around a bug of lstat on some systems - Copyright (C) 1997-2006, 2008-2015 Free Software Foundation, Inc. + Copyright (C) 1997-2006, 2008-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/Makefile.am pax-utils-1.1.5/autotools/gnulib/Makefile.am --- pax-utils-1.1.4/autotools/gnulib/Makefile.am 2015-10-26 04:29:34.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/Makefile.am 2016-02-10 19:17:09.000000000 +0000 @@ -1,6 +1,6 @@ ## DO NOT EDIT! GENERATED AUTOMATICALLY! ## Process this file with automake to produce Makefile.in. -# Copyright (C) 2002-2015 Free Software Foundation, Inc. +# Copyright (C) 2002-2016 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -21,7 +21,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=autotools/gnulib --m4-base=autotools/m4 --doc-base=doc --tests-base=tests --aux-dir=autotools --no-conditional-dependencies --no-libtool --macro-prefix=gl alloca faccessat fdopendir fstatat futimens getline getopt-posix mkdirat openat progname readlinkat renameat stat-time strcasestr-simple strncat symlinkat sys_stat unlinkat utimensat vasprintf-posix +# Reproduce by: gnulib-tool --import --lib=libgnu --source-base=autotools/gnulib --m4-base=autotools/m4 --doc-base=doc --tests-base=tests --aux-dir=autotools --no-conditional-dependencies --no-libtool --macro-prefix=gl alloca faccessat fdopendir fstatat futimens getline getopt-posix mkdirat openat progname readlinkat renameat stat-time strcasestr-simple strncat symlinkat sys_stat unlinkat utimensat vasprintf-posix AUTOMAKE_OPTIONS = 1.9.6 gnits diff -Nru pax-utils-1.1.4/autotools/gnulib/Makefile.in pax-utils-1.1.5/autotools/gnulib/Makefile.in --- pax-utils-1.1.4/autotools/gnulib/Makefile.in 2015-10-26 04:30:22.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/Makefile.in 2016-02-10 19:18:01.000000000 +0000 @@ -14,7 +14,7 @@ @SET_MAKE@ -# Copyright (C) 2002-2015 Free Software Foundation, Inc. +# Copyright (C) 2002-2016 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -35,7 +35,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=autotools/gnulib --m4-base=autotools/m4 --doc-base=doc --tests-base=tests --aux-dir=autotools --no-conditional-dependencies --no-libtool --macro-prefix=gl alloca faccessat fdopendir fstatat futimens getline getopt-posix mkdirat openat progname readlinkat renameat stat-time strcasestr-simple strncat symlinkat sys_stat unlinkat utimensat vasprintf-posix +# Reproduce by: gnulib-tool --import --lib=libgnu --source-base=autotools/gnulib --m4-base=autotools/m4 --doc-base=doc --tests-base=tests --aux-dir=autotools --no-conditional-dependencies --no-libtool --macro-prefix=gl alloca faccessat fdopendir fstatat futimens getline getopt-posix mkdirat openat progname readlinkat renameat stat-time strcasestr-simple strncat symlinkat sys_stat unlinkat utimensat vasprintf-posix @@ -118,8 +118,10 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \ $(top_srcdir)/autotools/m4/absolute-header.m4 \ $(top_srcdir)/autotools/m4/alloca.m4 \ + $(top_srcdir)/autotools/m4/ax_append_flag.m4 \ $(top_srcdir)/autotools/m4/ax_cflags_warn_all.m4 \ $(top_srcdir)/autotools/m4/ax_check_compile_flag.m4 \ + $(top_srcdir)/autotools/m4/ax_require_defined.m4 \ $(top_srcdir)/autotools/m4/canonicalize.m4 \ $(top_srcdir)/autotools/m4/chdir-long.m4 \ $(top_srcdir)/autotools/m4/clock_time.m4 \ diff -Nru pax-utils-1.1.4/autotools/gnulib/malloca.c pax-utils-1.1.5/autotools/gnulib/malloca.c --- pax-utils-1.1.4/autotools/gnulib/malloca.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/malloca.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Safe automatic memory allocation. - Copyright (C) 2003, 2006-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2007, 2009-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/malloca.h pax-utils-1.1.5/autotools/gnulib/malloca.h --- pax-utils-1.1.4/autotools/gnulib/malloca.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/malloca.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Safe automatic memory allocation. - Copyright (C) 2003-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2003-2007, 2009-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/malloc.c pax-utils-1.1.5/autotools/gnulib/malloc.c --- pax-utils-1.1.4/autotools/gnulib/malloc.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/malloc.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* malloc() function that is glibc compatible. - Copyright (C) 1997-1998, 2006-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 1997-1998, 2006-2007, 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/math.c pax-utils-1.1.5/autotools/gnulib/math.c --- pax-utils-1.1.4/autotools/gnulib/math.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/math.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,3 +1,4 @@ #include #define _GL_MATH_INLINE _GL_EXTERN_INLINE #include "math.h" +typedef int dummy; diff -Nru pax-utils-1.1.4/autotools/gnulib/math.in.h pax-utils-1.1.5/autotools/gnulib/math.in.h --- pax-utils-1.1.4/autotools/gnulib/math.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/math.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 2002-2003, 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/memchr.c pax-utils-1.1.5/autotools/gnulib/memchr.c --- pax-utils-1.1.4/autotools/gnulib/memchr.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/memchr.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2015 +/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2016 Free Software Foundation, Inc. Based on strlen implementation by Torbjorn Granlund (tege@sics.se), diff -Nru pax-utils-1.1.4/autotools/gnulib/mempcpy.c pax-utils-1.1.5/autotools/gnulib/mempcpy.c --- pax-utils-1.1.4/autotools/gnulib/mempcpy.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/mempcpy.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Copy memory area and return pointer after last written byte. - Copyright (C) 2003, 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2003, 2007, 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/memrchr.c pax-utils-1.1.5/autotools/gnulib/memrchr.c --- pax-utils-1.1.4/autotools/gnulib/memrchr.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/memrchr.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* memrchr -- find the last occurrence of a byte in a memory block - Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2015 Free Software + Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2016 Free Software Foundation, Inc. Based on strlen implementation by Torbjorn Granlund (tege@sics.se), diff -Nru pax-utils-1.1.4/autotools/gnulib/mkdirat.c pax-utils-1.1.5/autotools/gnulib/mkdirat.c --- pax-utils-1.1.4/autotools/gnulib/mkdirat.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/mkdirat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* fd-relative mkdir - Copyright (C) 2005-2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/mkdir.c pax-utils-1.1.5/autotools/gnulib/mkdir.c --- pax-utils-1.1.4/autotools/gnulib/mkdir.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/mkdir.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,7 +1,7 @@ /* On some systems, mkdir ("foo/", 0700) fails because of the trailing slash. On those systems, this wrapper removes the trailing slash. - Copyright (C) 2001, 2003, 2006, 2008-2015 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2006, 2008-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/msvc-inval.c pax-utils-1.1.5/autotools/gnulib/msvc-inval.c --- pax-utils-1.1.4/autotools/gnulib/msvc-inval.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/msvc-inval.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Invalid parameter handler for MSVC runtime libraries. - Copyright (C) 2011-2015 Free Software Foundation, Inc. + Copyright (C) 2011-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/msvc-inval.h pax-utils-1.1.5/autotools/gnulib/msvc-inval.h --- pax-utils-1.1.4/autotools/gnulib/msvc-inval.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/msvc-inval.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Invalid parameter handler for MSVC runtime libraries. - Copyright (C) 2011-2015 Free Software Foundation, Inc. + Copyright (C) 2011-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/msvc-nothrow.c pax-utils-1.1.5/autotools/gnulib/msvc-nothrow.c --- pax-utils-1.1.4/autotools/gnulib/msvc-nothrow.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/msvc-nothrow.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Wrappers that don't throw invalid parameter notifications with MSVC runtime libraries. - Copyright (C) 2011-2015 Free Software Foundation, Inc. + Copyright (C) 2011-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/msvc-nothrow.h pax-utils-1.1.5/autotools/gnulib/msvc-nothrow.h --- pax-utils-1.1.4/autotools/gnulib/msvc-nothrow.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/msvc-nothrow.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Wrappers that don't throw invalid parameter notifications with MSVC runtime libraries. - Copyright (C) 2011-2015 Free Software Foundation, Inc. + Copyright (C) 2011-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/openat.c pax-utils-1.1.5/autotools/gnulib/openat.c --- pax-utils-1.1.4/autotools/gnulib/openat.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/openat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* provide a replacement openat function - Copyright (C) 2004-2015 Free Software Foundation, Inc. + Copyright (C) 2004-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/openat-die.c pax-utils-1.1.5/autotools/gnulib/openat-die.c --- pax-utils-1.1.4/autotools/gnulib/openat-die.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/openat-die.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Report a save- or restore-cwd failure in our openat replacement and then exit. - Copyright (C) 2005-2006, 2008-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2008-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/openat.h pax-utils-1.1.5/autotools/gnulib/openat.h --- pax-utils-1.1.4/autotools/gnulib/openat.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/openat.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* provide a replacement openat function - Copyright (C) 2004-2006, 2008-2015 Free Software Foundation, Inc. + Copyright (C) 2004-2006, 2008-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/openat-priv.h pax-utils-1.1.5/autotools/gnulib/openat-priv.h --- pax-utils-1.1.4/autotools/gnulib/openat-priv.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/openat-priv.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Internals for openat-like functions. - Copyright (C) 2005-2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/openat-proc.c pax-utils-1.1.5/autotools/gnulib/openat-proc.c --- pax-utils-1.1.4/autotools/gnulib/openat-proc.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/openat-proc.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Create /proc/self/fd-related names for subfiles of open directories. - Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,24 +30,21 @@ #include #include -#include "intprops.h" - -#define PROC_SELF_FD_FORMAT "/proc/self/fd/%d/%s" - -#define PROC_SELF_FD_NAME_SIZE_BOUND(len) \ - (sizeof PROC_SELF_FD_FORMAT - sizeof "%d%s" \ - + INT_STRLEN_BOUND (int) + (len) + 1) +#ifdef __KLIBC__ +# include +#endif +#include "intprops.h" -/* Set BUF to the expansion of PROC_SELF_FD_FORMAT, using FD and FILE - respectively for %d and %s. If successful, return BUF if the - result fits in BUF, dynamically allocated memory otherwise. But - return NULL if /proc is not reliable, either because the operating - system support is lacking or because memory is low. */ +/* Set BUF to the name of the subfile of the directory identified by + FD, where the subfile is named FILE. If successful, return BUF if + the result fits in BUF, dynamically allocated memory otherwise. + Return NULL (setting errno) on error. */ char * openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file) { - static int proc_status = 0; + char *result = buf; + int dirlen; /* Make sure the caller gets ENOENT when appropriate. */ if (!*file) @@ -56,47 +53,82 @@ return buf; } - if (! proc_status) - { - /* Set PROC_STATUS to a positive value if /proc/self/fd is - reliable, and a negative value otherwise. Solaris 10 - /proc/self/fd mishandles "..", and any file name might expand - to ".." after symbolic link expansion, so avoid /proc/self/fd - if it mishandles "..". Solaris 10 has openat, but this - problem is exhibited on code that built on Solaris 8 and - running on Solaris 10. */ - - int proc_self_fd = open ("/proc/self/fd", - O_SEARCH | O_DIRECTORY | O_NOCTTY | O_NONBLOCK); - if (proc_self_fd < 0) - proc_status = -1; - else - { - /* Detect whether /proc/self/fd/%i/../fd exists, where %i is the - number of a file descriptor open on /proc/self/fd. On Linux, - that name resolves to /proc/self/fd, which was opened above. - However, on Solaris, it may resolve to /proc/self/fd/fd, which - cannot exist, since all names in /proc/self/fd are numeric. */ - char dotdot_buf[PROC_SELF_FD_NAME_SIZE_BOUND (sizeof "../fd" - 1)]; - sprintf (dotdot_buf, PROC_SELF_FD_FORMAT, proc_self_fd, "../fd"); - proc_status = access (dotdot_buf, F_OK) ? -1 : 1; - close (proc_self_fd); - } - } +#ifndef __KLIBC__ +# define PROC_SELF_FD_FORMAT "/proc/self/fd/%d/" + { + enum { + PROC_SELF_FD_DIR_SIZE_BOUND + = (sizeof PROC_SELF_FD_FORMAT - (sizeof "%d" - 1) + + INT_STRLEN_BOUND (int)) + }; + + static int proc_status = 0; + if (! proc_status) + { + /* Set PROC_STATUS to a positive value if /proc/self/fd is + reliable, and a negative value otherwise. Solaris 10 + /proc/self/fd mishandles "..", and any file name might expand + to ".." after symbolic link expansion, so avoid /proc/self/fd + if it mishandles "..". Solaris 10 has openat, but this + problem is exhibited on code that built on Solaris 8 and + running on Solaris 10. */ + + int proc_self_fd = open ("/proc/self/fd", + O_SEARCH | O_DIRECTORY | O_NOCTTY | O_NONBLOCK); + if (proc_self_fd < 0) + proc_status = -1; + else + { + /* Detect whether /proc/self/fd/%i/../fd exists, where %i is the + number of a file descriptor open on /proc/self/fd. On Linux, + that name resolves to /proc/self/fd, which was opened above. + However, on Solaris, it may resolve to /proc/self/fd/fd, which + cannot exist, since all names in /proc/self/fd are numeric. */ + char dotdot_buf[PROC_SELF_FD_DIR_SIZE_BOUND + sizeof "../fd" - 1]; + sprintf (dotdot_buf, PROC_SELF_FD_FORMAT "../fd", proc_self_fd); + proc_status = access (dotdot_buf, F_OK) ? -1 : 1; + close (proc_self_fd); + } + } + + if (proc_status < 0) + return NULL; + else + { + size_t bufsize = PROC_SELF_FD_DIR_SIZE_BOUND + strlen (file); + if (OPENAT_BUFFER_SIZE < bufsize) + { + result = malloc (bufsize); + if (! result) + return NULL; + } + + dirlen = sprintf (result, PROC_SELF_FD_FORMAT, fd); + } + } +#else + /* OS/2 kLIBC provides a function to retrieve a path from a fd. */ + { + char dir[_MAX_PATH]; + size_t bufsize; + + if (__libc_Back_ioFHToPath (fd, dir, sizeof dir)) + return NULL; + + dirlen = strlen (dir); + bufsize = dirlen + 1 + strlen (file) + 1; /* 1 for '/', 1 for null */ + if (OPENAT_BUFFER_SIZE < bufsize) + { + result = malloc (bufsize); + if (! result) + return NULL; + } + + strcpy (result, dir); + result[dirlen++] = '/'; + } +#endif - if (proc_status < 0) - return NULL; - else - { - size_t bufsize = PROC_SELF_FD_NAME_SIZE_BOUND (strlen (file)); - char *result = buf; - if (OPENAT_BUFFER_SIZE < bufsize) - { - result = malloc (bufsize); - if (! result) - return NULL; - } - sprintf (result, PROC_SELF_FD_FORMAT, fd, file); - return result; - } + strcpy (result + dirlen, file); + return result; } diff -Nru pax-utils-1.1.4/autotools/gnulib/open.c pax-utils-1.1.5/autotools/gnulib/open.c --- pax-utils-1.1.4/autotools/gnulib/open.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/open.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Open a descriptor to a file. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/opendir.c pax-utils-1.1.5/autotools/gnulib/opendir.c --- pax-utils-1.1.4/autotools/gnulib/opendir.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/opendir.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Start reading the entries of a directory. - Copyright (C) 2006-2015 Free Software Foundation, Inc. + Copyright (C) 2006-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,6 +40,11 @@ # include #endif +#ifdef __KLIBC__ +# include +# include +#endif + DIR * opendir (const char *dir_name) { @@ -51,6 +56,22 @@ if (dirp == NULL) return NULL; +# ifdef __KLIBC__ + { + int fd = open (dir_name, O_RDONLY); + if (fd == -1 || _gl_register_dirp_fd (fd, dirp)) + { + int saved_errno = errno; + + close (fd); + closedir (dirp); + + errno = saved_errno; + + return NULL; + } + } +# endif #else char dir_name_mask[MAX_PATH + 1 + 1 + 1]; diff -Nru pax-utils-1.1.4/autotools/gnulib/pathmax.h pax-utils-1.1.5/autotools/gnulib/pathmax.h --- pax-utils-1.1.4/autotools/gnulib/pathmax.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/pathmax.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Define PATH_MAX somehow. Requires sys/types.h. - Copyright (C) 1992, 1999, 2001, 2003, 2005, 2009-2015 Free Software + Copyright (C) 1992, 1999, 2001, 2003, 2005, 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/pipe-safer.c pax-utils-1.1.5/autotools/gnulib/pipe-safer.c --- pax-utils-1.1.4/autotools/gnulib/pipe-safer.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/pipe-safer.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Invoke pipe, but avoid some glitches. - Copyright (C) 2005-2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/printf-args.c pax-utils-1.1.5/autotools/gnulib/printf-args.c --- pax-utils-1.1.4/autotools/gnulib/printf-args.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/printf-args.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Decomposed printf argument list. - Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2015 Free Software + Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/printf-args.h pax-utils-1.1.5/autotools/gnulib/printf-args.h --- pax-utils-1.1.4/autotools/gnulib/printf-args.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/printf-args.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Decomposed printf argument list. - Copyright (C) 1999, 2002-2003, 2006-2007, 2011-2015 Free Software + Copyright (C) 1999, 2002-2003, 2006-2007, 2011-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/printf-frexp.c pax-utils-1.1.5/autotools/gnulib/printf-frexp.c --- pax-utils-1.1.4/autotools/gnulib/printf-frexp.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/printf-frexp.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Split a double into fraction and mantissa, for hexadecimal printf. - Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/printf-frexp.h pax-utils-1.1.5/autotools/gnulib/printf-frexp.h --- pax-utils-1.1.4/autotools/gnulib/printf-frexp.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/printf-frexp.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Split a double into fraction and mantissa, for hexadecimal printf. - Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/printf-frexpl.c pax-utils-1.1.5/autotools/gnulib/printf-frexpl.c --- pax-utils-1.1.4/autotools/gnulib/printf-frexpl.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/printf-frexpl.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Split a 'long double' into fraction and mantissa, for hexadecimal printf. - Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/printf-frexpl.h pax-utils-1.1.5/autotools/gnulib/printf-frexpl.h --- pax-utils-1.1.4/autotools/gnulib/printf-frexpl.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/printf-frexpl.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Split a 'long double' into fraction and mantissa, for hexadecimal printf. - Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/printf-parse.c pax-utils-1.1.5/autotools/gnulib/printf-parse.c --- pax-utils-1.1.4/autotools/gnulib/printf-parse.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/printf-parse.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Formatted output to strings. - Copyright (C) 1999-2000, 2002-2003, 2006-2015 Free Software Foundation, Inc. + Copyright (C) 1999-2000, 2002-2003, 2006-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/printf-parse.h pax-utils-1.1.5/autotools/gnulib/printf-parse.h --- pax-utils-1.1.4/autotools/gnulib/printf-parse.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/printf-parse.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Parse printf format string. - Copyright (C) 1999, 2002-2003, 2005, 2007, 2010-2015 Free Software + Copyright (C) 1999, 2002-2003, 2005, 2007, 2010-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/progname.c pax-utils-1.1.5/autotools/gnulib/progname.c --- pax-utils-1.1.4/autotools/gnulib/progname.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/progname.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Program name management. - Copyright (C) 2001-2003, 2005-2015 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/progname.h pax-utils-1.1.5/autotools/gnulib/progname.h --- pax-utils-1.1.4/autotools/gnulib/progname.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/progname.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Program name management. - Copyright (C) 2001-2004, 2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006, 2009-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/readlinkat.c pax-utils-1.1.5/autotools/gnulib/readlinkat.c --- pax-utils-1.1.4/autotools/gnulib/readlinkat.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/readlinkat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Read a symlink relative to an open directory. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/readlink.c pax-utils-1.1.5/autotools/gnulib/readlink.c --- pax-utils-1.1.4/autotools/gnulib/readlink.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/readlink.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Stub for readlink(). - Copyright (C) 2003-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2003-2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/realloc.c pax-utils-1.1.5/autotools/gnulib/realloc.c --- pax-utils-1.1.4/autotools/gnulib/realloc.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/realloc.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* realloc() function that is glibc compatible. - Copyright (C) 1997, 2003-2004, 2006-2007, 2009-2015 Free Software + Copyright (C) 1997, 2003-2004, 2006-2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/renameat.c pax-utils-1.1.5/autotools/gnulib/renameat.c --- pax-utils-1.1.4/autotools/gnulib/renameat.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/renameat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Rename a file relative to open directories. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/rename.c pax-utils-1.1.5/autotools/gnulib/rename.c --- pax-utils-1.1.4/autotools/gnulib/rename.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/rename.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Work around rename bugs in some systems. - Copyright (C) 2001-2003, 2005-2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/rmdir.c pax-utils-1.1.5/autotools/gnulib/rmdir.c --- pax-utils-1.1.4/autotools/gnulib/rmdir.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/rmdir.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Work around rmdir bugs. - Copyright (C) 1988, 1990, 1999, 2003-2006, 2009-2015 Free Software + Copyright (C) 1988, 1990, 1999, 2003-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/root-uid.h pax-utils-1.1.5/autotools/gnulib/root-uid.h --- pax-utils-1.1.4/autotools/gnulib/root-uid.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/root-uid.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* The user ID that always has appropriate privileges in the POSIX sense. - Copyright 2012-2015 Free Software Foundation, Inc. + Copyright 2012-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/same-inode.h pax-utils-1.1.5/autotools/gnulib/same-inode.h --- pax-utils-1.1.4/autotools/gnulib/same-inode.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/same-inode.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Determine whether two stat buffers refer to the same file. - Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/save-cwd.c pax-utils-1.1.5/autotools/gnulib/save-cwd.c --- pax-utils-1.1.4/autotools/gnulib/save-cwd.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/save-cwd.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* save-cwd.c -- Save and restore current working directory. - Copyright (C) 1995, 1997-1998, 2003-2006, 2009-2015 Free Software + Copyright (C) 1995, 1997-1998, 2003-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/save-cwd.h pax-utils-1.1.5/autotools/gnulib/save-cwd.h --- pax-utils-1.1.4/autotools/gnulib/save-cwd.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/save-cwd.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Save and restore current working directory. - Copyright (C) 1995, 1997-1998, 2003, 2009-2015 Free Software Foundation, + Copyright (C) 1995, 1997-1998, 2003, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/signbitd.c pax-utils-1.1.5/autotools/gnulib/signbitd.c --- pax-utils-1.1.4/autotools/gnulib/signbitd.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/signbitd.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* signbit() macro: Determine the sign bit of a floating-point number. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/signbitf.c pax-utils-1.1.5/autotools/gnulib/signbitf.c --- pax-utils-1.1.4/autotools/gnulib/signbitf.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/signbitf.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* signbit() macro: Determine the sign bit of a floating-point number. - Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/signbitl.c pax-utils-1.1.5/autotools/gnulib/signbitl.c --- pax-utils-1.1.4/autotools/gnulib/signbitl.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/signbitl.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* signbit() macro: Determine the sign bit of a floating-point number. - Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/size_max.h pax-utils-1.1.5/autotools/gnulib/size_max.h --- pax-utils-1.1.4/autotools/gnulib/size_max.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/size_max.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* size_max.h -- declare SIZE_MAX through system headers - Copyright (C) 2005-2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2016 Free Software Foundation, Inc. Written by Simon Josefsson. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/stat.c pax-utils-1.1.5/autotools/gnulib/stat.c --- pax-utils-1.1.4/autotools/gnulib/stat.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/stat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Work around platform bugs in stat. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/stat-time.h pax-utils-1.1.5/autotools/gnulib/stat-time.h --- pax-utils-1.1.4/autotools/gnulib/stat-time.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/stat-time.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* stat-related time functions. - Copyright (C) 2005, 2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2005, 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/stdbool.in.h pax-utils-1.1.5/autotools/gnulib/stdbool.in.h --- pax-utils-1.1.4/autotools/gnulib/stdbool.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/stdbool.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc. +/* Copyright (C) 2001-2003, 2006-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/stddef.in.h pax-utils-1.1.5/autotools/gnulib/stddef.in.h --- pax-utils-1.1.4/autotools/gnulib/stddef.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/stddef.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* A substitute for POSIX 2008 , for platforms that have issues. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/stdint.in.h pax-utils-1.1.5/autotools/gnulib/stdint.in.h --- pax-utils-1.1.4/autotools/gnulib/stdint.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/stdint.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2002, 2004-2015 Free Software Foundation, Inc. +/* Copyright (C) 2001-2002, 2004-2016 Free Software Foundation, Inc. Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood. This file is part of gnulib. @@ -288,12 +288,17 @@ /* 7.18.1.4. Integer types capable of holding object pointers */ +/* kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own + definitions of intptr_t and uintptr_t (which use int and unsigned) + to avoid clashes with declarations of system functions like sbrk. */ +#ifndef _INTPTR_T_DECLARED #undef intptr_t #undef uintptr_t typedef long int gl_intptr_t; typedef unsigned long int gl_uintptr_t; #define intptr_t gl_intptr_t #define uintptr_t gl_uintptr_t +#endif /* 7.18.1.5. Greatest-width integer types */ diff -Nru pax-utils-1.1.4/autotools/gnulib/stdio.in.h pax-utils-1.1.5/autotools/gnulib/stdio.in.h --- pax-utils-1.1.4/autotools/gnulib/stdio.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/stdio.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 2004, 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2004, 2007-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/stdlib.in.h pax-utils-1.1.5/autotools/gnulib/stdlib.in.h --- pax-utils-1.1.4/autotools/gnulib/stdlib.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/stdlib.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 1995, 2001-2004, 2006-2015 Free Software Foundation, Inc. + Copyright (C) 1995, 2001-2004, 2006-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/strcasecmp.c pax-utils-1.1.5/autotools/gnulib/strcasecmp.c --- pax-utils-1.1.4/autotools/gnulib/strcasecmp.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/strcasecmp.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Case-insensitive string comparison function. - Copyright (C) 1998-1999, 2005-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2007, 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/strcasestr.c pax-utils-1.1.5/autotools/gnulib/strcasestr.c --- pax-utils-1.1.4/autotools/gnulib/strcasestr.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/strcasestr.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Case-insensitive searching in a string. - Copyright (C) 2005-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2005. This program is free software; you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/strdup.c pax-utils-1.1.5/autotools/gnulib/strdup.c --- pax-utils-1.1.4/autotools/gnulib/strdup.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/strdup.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1996-1998, 2002-2004, 2006-2007, 2009-2015 Free Software +/* Copyright (C) 1991, 1996-1998, 2002-2004, 2006-2007, 2009-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. diff -Nru pax-utils-1.1.4/autotools/gnulib/strerror.c pax-utils-1.1.5/autotools/gnulib/strerror.c --- pax-utils-1.1.4/autotools/gnulib/strerror.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/strerror.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* strerror.c --- POSIX compatible system error routine - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/strerror-override.c pax-utils-1.1.5/autotools/gnulib/strerror-override.c --- pax-utils-1.1.4/autotools/gnulib/strerror-override.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/strerror-override.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* strerror-override.c --- POSIX compatible system error routine - Copyright (C) 2010-2015 Free Software Foundation, Inc. + Copyright (C) 2010-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/strerror-override.h pax-utils-1.1.5/autotools/gnulib/strerror-override.h --- pax-utils-1.1.4/autotools/gnulib/strerror-override.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/strerror-override.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* strerror-override.h --- POSIX compatible system error routine - Copyright (C) 2010-2015 Free Software Foundation, Inc. + Copyright (C) 2010-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/string.in.h pax-utils-1.1.5/autotools/gnulib/string.in.h --- pax-utils-1.1.4/autotools/gnulib/string.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/string.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 1995-1996, 2001-2015 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 2001-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/strings.in.h pax-utils-1.1.5/autotools/gnulib/strings.in.h --- pax-utils-1.1.4/autotools/gnulib/strings.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/strings.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* A substitute . - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/stripslash.c pax-utils-1.1.5/autotools/gnulib/stripslash.c --- pax-utils-1.1.4/autotools/gnulib/stripslash.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/stripslash.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* stripslash.c -- remove redundant trailing slashes from a file name - Copyright (C) 1990, 2001, 2003-2006, 2009-2015 Free Software Foundation, + Copyright (C) 1990, 2001, 2003-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/strncasecmp.c pax-utils-1.1.5/autotools/gnulib/strncasecmp.c --- pax-utils-1.1.4/autotools/gnulib/strncasecmp.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/strncasecmp.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* strncasecmp.c -- case insensitive string comparator - Copyright (C) 1998-1999, 2005-2007, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2007, 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/strncat.c pax-utils-1.1.5/autotools/gnulib/strncat.c --- pax-utils-1.1.4/autotools/gnulib/strncat.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/strncat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Concatenate strings. - Copyright (C) 1999, 2002, 2006, 2010-2015 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2006, 2010-2016 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it diff -Nru pax-utils-1.1.4/autotools/gnulib/str-two-way.h pax-utils-1.1.5/autotools/gnulib/str-two-way.h --- pax-utils-1.1.4/autotools/gnulib/str-two-way.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/str-two-way.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Byte-wise substring search, using the Two-Way algorithm. - Copyright (C) 2008-2015 Free Software Foundation, Inc. + Copyright (C) 2008-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Eric Blake , 2008. diff -Nru pax-utils-1.1.4/autotools/gnulib/symlinkat.c pax-utils-1.1.5/autotools/gnulib/symlinkat.c --- pax-utils-1.1.4/autotools/gnulib/symlinkat.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/symlinkat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Create a symlink relative to an open directory. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/symlink.c pax-utils-1.1.5/autotools/gnulib/symlink.c --- pax-utils-1.1.4/autotools/gnulib/symlink.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/symlink.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Stub for symlink(). - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/sys_stat.in.h pax-utils-1.1.5/autotools/gnulib/sys_stat.in.h --- pax-utils-1.1.4/autotools/gnulib/sys_stat.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/sys_stat.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Provide a more complete sys/stat header file. - Copyright (C) 2005-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/sys_time.in.h pax-utils-1.1.5/autotools/gnulib/sys_time.in.h --- pax-utils-1.1.4/autotools/gnulib/sys_time.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/sys_time.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Provide a more complete sys/time.h. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/sys_types.in.h pax-utils-1.1.5/autotools/gnulib/sys_types.in.h --- pax-utils-1.1.4/autotools/gnulib/sys_types.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/sys_types.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Provide a more complete sys/types.h. - Copyright (C) 2011-2015 Free Software Foundation, Inc. + Copyright (C) 2011-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/time.in.h pax-utils-1.1.5/autotools/gnulib/time.in.h --- pax-utils-1.1.4/autotools/gnulib/time.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/time.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* A more-standard . - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/timespec.h pax-utils-1.1.5/autotools/gnulib/timespec.h --- pax-utils-1.1.4/autotools/gnulib/timespec.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/timespec.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* timespec -- System time interface - Copyright (C) 2000, 2002, 2004-2005, 2007, 2009-2015 Free Software + Copyright (C) 2000, 2002, 2004-2005, 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify diff -Nru pax-utils-1.1.4/autotools/gnulib/unistd.c pax-utils-1.1.5/autotools/gnulib/unistd.c --- pax-utils-1.1.4/autotools/gnulib/unistd.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/unistd.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,3 +1,4 @@ #include #define _GL_UNISTD_INLINE _GL_EXTERN_INLINE #include "unistd.h" +typedef int dummy; diff -Nru pax-utils-1.1.4/autotools/gnulib/unistd--.h pax-utils-1.1.5/autotools/gnulib/unistd--.h --- pax-utils-1.1.4/autotools/gnulib/unistd--.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/unistd--.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Like unistd.h, but redefine some names to avoid glitches. - Copyright (C) 2005, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2005, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/unistd.in.h pax-utils-1.1.5/autotools/gnulib/unistd.in.h --- pax-utils-1.1.4/autotools/gnulib/unistd.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/unistd.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Substitute for and wrapper around . - Copyright (C) 2003-2015 Free Software Foundation, Inc. + Copyright (C) 2003-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/unistd-safer.h pax-utils-1.1.5/autotools/gnulib/unistd-safer.h --- pax-utils-1.1.4/autotools/gnulib/unistd-safer.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/unistd-safer.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Invoke unistd-like functions, but avoid some glitches. - Copyright (C) 2001, 2003, 2005, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2005, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/unlinkat.c pax-utils-1.1.5/autotools/gnulib/unlinkat.c --- pax-utils-1.1.4/autotools/gnulib/unlinkat.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/unlinkat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Work around unlinkat bugs on Solaris 9 and Hurd. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/unlink.c pax-utils-1.1.5/autotools/gnulib/unlink.c --- pax-utils-1.1.4/autotools/gnulib/unlink.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/unlink.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Work around unlink bugs. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/utimensat.c pax-utils-1.1.5/autotools/gnulib/utimensat.c --- pax-utils-1.1.4/autotools/gnulib/utimensat.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/utimensat.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Set the access and modification time of a file relative to directory fd. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/utimens.c pax-utils-1.1.5/autotools/gnulib/utimens.c --- pax-utils-1.1.4/autotools/gnulib/utimens.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/utimens.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Set file access and modification times. - Copyright (C) 2003-2015 Free Software Foundation, Inc. + Copyright (C) 2003-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the diff -Nru pax-utils-1.1.4/autotools/gnulib/utimens.h pax-utils-1.1.5/autotools/gnulib/utimens.h --- pax-utils-1.1.4/autotools/gnulib/utimens.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/utimens.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Set file access and modification times. - Copyright 2012-2015 Free Software Foundation, Inc. + Copyright 2012-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the diff -Nru pax-utils-1.1.4/autotools/gnulib/vasnprintf.c pax-utils-1.1.5/autotools/gnulib/vasnprintf.c --- pax-utils-1.1.4/autotools/gnulib/vasnprintf.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/vasnprintf.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* vsprintf with automatic memory allocation. - Copyright (C) 1999, 2002-2015 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/vasnprintf.h pax-utils-1.1.5/autotools/gnulib/vasnprintf.h --- pax-utils-1.1.4/autotools/gnulib/vasnprintf.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/vasnprintf.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* vsprintf with automatic memory allocation. - Copyright (C) 2002-2004, 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2002-2004, 2007-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/vasprintf.c pax-utils-1.1.5/autotools/gnulib/vasprintf.c --- pax-utils-1.1.4/autotools/gnulib/vasprintf.c 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/vasprintf.c 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ /* Formatted output to strings. - Copyright (C) 1999, 2002, 2006-2015 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2006-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/verify.h pax-utils-1.1.5/autotools/gnulib/verify.h --- pax-utils-1.1.4/autotools/gnulib/verify.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/verify.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* Compile-time assert-like macros. - Copyright (C) 2005-2006, 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/gnulib/wchar.in.h pax-utils-1.1.5/autotools/gnulib/wchar.in.h --- pax-utils-1.1.4/autotools/gnulib/wchar.in.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/wchar.in.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* A substitute for ISO C99 , for platforms that have issues. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,7 +31,7 @@ @PRAGMA_COLUMNS@ #if (((defined __need_mbstate_t || defined __need_wint_t) \ - && !defined __MINGW32__) \ + && !defined __MINGW32__ && !defined __KLIBC__) \ || (defined __hpux \ && ((defined _INTTYPES_INCLUDED && !defined strtoimax) \ || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) \ @@ -445,6 +445,11 @@ # if !@HAVE_DECL_WCWIDTH@ /* wcwidth exists but is not declared. */ _GL_FUNCDECL_SYS (wcwidth, int, (wchar_t) _GL_ATTRIBUTE_PURE); +# elif defined __KLIBC__ +/* On OS/2 kLIBC, wcwidth is a macro that expands to the name of a + static inline function. The implementation of wcwidth in wcwidth.c + causes a "conflicting types" error. */ +# undef wcwidth # endif _GL_CXXALIAS_SYS (wcwidth, int, (wchar_t)); # endif diff -Nru pax-utils-1.1.4/autotools/gnulib/xalloc-oversized.h pax-utils-1.1.5/autotools/gnulib/xalloc-oversized.h --- pax-utils-1.1.4/autotools/gnulib/xalloc-oversized.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/xalloc-oversized.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* xalloc-oversized.h -- memory allocation size checking - Copyright (C) 1990-2000, 2003-2004, 2006-2015 Free Software Foundation, Inc. + Copyright (C) 1990-2000, 2003-2004, 2006-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,9 +16,13 @@ along with this program. If not, see . */ #ifndef XALLOC_OVERSIZED_H_ -# define XALLOC_OVERSIZED_H_ +#define XALLOC_OVERSIZED_H_ -# include +#include + +#ifndef __has_builtin +# define __has_builtin(x) 0 +#endif /* Return 1 if an array of N objects, each of size S, cannot exist due to size arithmetic overflow. S must be positive and N must be @@ -32,7 +36,12 @@ sizeof (ptrdiff_t) <= sizeof (size_t), so do not bother to test for exactly-SIZE_MAX allocations on such hosts; this avoids a test and branch when S is known to be 1. */ +#if 5 <= __GNUC__ || __has_builtin (__builtin_mul_overflow) +# define xalloc_oversized(n, s) \ + ({ size_t __xalloc_size; __builtin_mul_overflow (n, s, &__xalloc_size); }) +#else # define xalloc_oversized(n, s) \ ((size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) < (n)) +#endif #endif /* !XALLOC_OVERSIZED_H_ */ diff -Nru pax-utils-1.1.4/autotools/gnulib/xsize.h pax-utils-1.1.5/autotools/gnulib/xsize.h --- pax-utils-1.1.4/autotools/gnulib/xsize.h 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/gnulib/xsize.h 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ /* xsize.h -- Checked size_t computations. - Copyright (C) 2003, 2008-2015 Free Software Foundation, Inc. + Copyright (C) 2003, 2008-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru pax-utils-1.1.4/autotools/m4/00gnulib.m4 pax-utils-1.1.5/autotools/m4/00gnulib.m4 --- pax-utils-1.1.4/autotools/m4/00gnulib.m4 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/00gnulib.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # 00gnulib.m4 serial 3 -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/absolute-header.m4 pax-utils-1.1.5/autotools/m4/absolute-header.m4 --- pax-utils-1.1.4/autotools/m4/absolute-header.m4 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/absolute-header.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # absolute-header.m4 serial 16 -dnl Copyright (C) 2006-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2006-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/alloca.m4 pax-utils-1.1.5/autotools/m4/alloca.m4 --- pax-utils-1.1.4/autotools/m4/alloca.m4 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/alloca.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # alloca.m4 serial 14 -dnl Copyright (C) 2002-2004, 2006-2007, 2009-2015 Free Software Foundation, +dnl Copyright (C) 2002-2004, 2006-2007, 2009-2016 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/ax_append_flag.m4 pax-utils-1.1.5/autotools/m4/ax_append_flag.m4 --- pax-utils-1.1.4/autotools/m4/ax_append_flag.m4 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ax_append_flag.m4 2016-02-10 19:17:15.000000000 +0000 @@ -0,0 +1,71 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_append_flag.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE]) +# +# DESCRIPTION +# +# FLAG is appended to the FLAGS-VARIABLE shell variable, with a space +# added in between. +# +# If FLAGS-VARIABLE is not specified, the current language's flags (e.g. +# CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains +# FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly +# FLAG. +# +# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. +# +# LICENSE +# +# Copyright (c) 2008 Guido U. Draheim +# Copyright (c) 2011 Maarten Bosmans +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 6 + +AC_DEFUN([AX_APPEND_FLAG], +[dnl +AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_SET_IF +AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])]) +AS_VAR_SET_IF(FLAGS,[ + AS_CASE([" AS_VAR_GET(FLAGS) "], + [*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])], + [ + AS_VAR_APPEND(FLAGS,[" $1"]) + AC_RUN_LOG([: FLAGS="$FLAGS"]) + ]) + ], + [ + AS_VAR_SET(FLAGS,[$1]) + AC_RUN_LOG([: FLAGS="$FLAGS"]) + ]) +AS_VAR_POPDEF([FLAGS])dnl +])dnl AX_APPEND_FLAG diff -Nru pax-utils-1.1.4/autotools/m4/ax_append_link_flags.m4 pax-utils-1.1.5/autotools/m4/ax_append_link_flags.m4 --- pax-utils-1.1.4/autotools/m4/ax_append_link_flags.m4 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ax_append_link_flags.m4 2016-02-10 19:17:15.000000000 +0000 @@ -0,0 +1,63 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_append_link_flags.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS]) +# +# DESCRIPTION +# +# For every FLAG1, FLAG2 it is checked whether the linker works with the +# flag. If it does, the flag is added FLAGS-VARIABLE +# +# If FLAGS-VARIABLE is not specified, the linker's flags (LDFLAGS) is +# used. During the check the flag is always added to the linker's flags. +# +# If EXTRA-FLAGS is defined, it is added to the linker's default flags +# when the check is done. The check is thus made with the flags: "LDFLAGS +# EXTRA-FLAGS FLAG". This can for example be used to force the linker to +# issue an error when a bad flag is given. +# +# NOTE: This macro depends on the AX_APPEND_FLAG and AX_CHECK_LINK_FLAG. +# Please keep this macro in sync with AX_APPEND_COMPILE_FLAGS. +# +# LICENSE +# +# Copyright (c) 2011 Maarten Bosmans +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 4 + +AC_DEFUN([AX_APPEND_LINK_FLAGS], +[AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) +AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) +for flag in $1; do + AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3]) +done +])dnl AX_APPEND_LINK_FLAGS diff -Nru pax-utils-1.1.4/autotools/m4/ax_cflags_force_c89.m4 pax-utils-1.1.5/autotools/m4/ax_cflags_force_c89.m4 --- pax-utils-1.1.4/autotools/m4/ax_cflags_force_c89.m4 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ax_cflags_force_c89.m4 2016-02-10 19:17:15.000000000 +0000 @@ -0,0 +1,93 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_cflags_force_c89.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_CFLAGS_FORCE_C89 [(shellvar [,default, [A/NA]])] +# +# DESCRIPTION +# +# Try to find a compiler option that enables strict C89 mode. +# +# For the GNU CC compiler it will be -ansi -pedantic. The result is added +# to the shellvar being CFLAGS by default. +# +# Currently this macro knows about GCC, Solaris C compiler, Digital Unix C +# compiler, C for AIX Compiler, HP-UX C compiler, IRIX C compiler, NEC +# SX-5 (Super-UX 10) C compiler, and Cray J90 (Unicos 10.0.0.8) C +# compiler. +# +# - $1 shell-variable-to-add-to : CFLAGS +# - $2 add-value-if-not-found : nothing +# - $3 action-if-found : add value to shellvariable +# - $4 action-if-not-found : nothing +# +# NOTE: These macros depend on AX_APPEND_FLAG. +# +# LICENSE +# +# Copyright (c) 2009 Guido U. Draheim +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 3 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 9 + +AC_DEFUN([AX_CFLAGS_FORCE_C89],[dnl +AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl +AS_VAR_PUSHDEF([VAR],[ac_cv_cflags_force_c89])dnl +AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for C89 mode], +VAR,[VAR="no, unknown" + AC_LANG_SAVE + AC_LANG_C + ac_save_[]FLAGS="$[]FLAGS" +for ac_arg dnl +in "-pedantic % -ansi -pedantic" dnl GCC + "-xstrconst % -v -Xc" dnl Solaris C + "-std1 % -std1" dnl Digital Unix + " % -qlanglvl=ansi" dnl AIX + " % -ansi -ansiE" dnl IRIX + "+ESlit % -Aa" dnl HP-UX C + "-Xc % -Xc" dnl NEC SX-5 (Super-UX 10) + "-h conform % -h conform" dnl Cray C (Unicos) + # +do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` + AC_TRY_COMPILE([],[return 0;], + [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break]) +done + FLAGS="$ac_save_[]FLAGS" + AC_LANG_RESTORE +]) +AS_VAR_POPDEF([FLAGS])dnl +AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) +case ".$VAR" in + .ok|.ok,*) m4_ifvaln($3,$3) ;; + .|.no|.no,*) m4_default($4,[m4_ifval($2,[AX_APPEND_FLAG([$2], [$1])])]) ;; + *) m4_default($3,[AX_APPEND_FLAG([$VAR], [$1])]) ;; +esac +AS_VAR_POPDEF([VAR])dnl +]) diff -Nru pax-utils-1.1.4/autotools/m4/ax_cflags_no_writable_strings.m4 pax-utils-1.1.5/autotools/m4/ax_cflags_no_writable_strings.m4 --- pax-utils-1.1.4/autotools/m4/ax_cflags_no_writable_strings.m4 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ax_cflags_no_writable_strings.m4 2016-02-10 19:17:15.000000000 +0000 @@ -0,0 +1,121 @@ +# ================================================================================= +# http://www.gnu.org/software/autoconf-archive/ax_cflags_no_writable_strings.html +# ================================================================================= +# +# SYNOPSIS +# +# AX_CFLAGS_NO_WRITABLE_STRINGS [(shellvar [,default, [A/NA]])] +# +# DESCRIPTION +# +# Try to find a compiler option that makes all string literals readonly. +# +# The sanity check is done by looking at string.h which has a set of +# strcpy definitions that should be defined with const-modifiers to not +# emit a warning in all so many places. +# +# For the GNU CC compiler it will be -fno-writable-strings -Wwrite-strings +# The result is added to the shellvar being CFLAGS by default. +# +# DEFAULTS: +# +# - $1 shell-variable-to-add-to : CFLAGS +# - $2 add-value-if-not-found : nothing +# - $3 action-if-found : add value to shellvariable +# - $4 action-if-not-found : nothing +# +# NOTE: These macros depend on AX_APPEND_FLAG. +# +# LICENSE +# +# Copyright (c) 2008 Guido U. Draheim +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 3 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 13 + +AC_DEFUN([AX_FLAGS_NO_WRITABLE_STRINGS],[dnl +AS_VAR_PUSHDEF([FLAGS],[_AC_LANG_PREFIX[]FLAGS])dnl +AS_VAR_PUSHDEF([VAR],[ax_cv_[]_AC_LANG_ABBREV[]flags_no_writable_strings])dnl +AC_CACHE_CHECK([m4_ifval([$1],[$1],FLAGS) making strings readonly], +VAR,[VAR="no, unknown" +ac_save_[]FLAGS="$[]FLAGS" +# IRIX C compiler: +# -use_readonly_const is the default for IRIX C, +# puts them into .rodata, but they are copied later. +# need to be "-G0 -rdatashared" for strictmode but +# I am not sure what effect that has really. - guidod +for ac_arg dnl +in "-pedantic -Werror % -fno-writable-strings -Wwrite-strings" dnl GCC + "-pedantic -Werror % -fconst-strings -Wwrite-strings" dnl newer GCC + "-pedantic % -fconst-strings %% no, const-strings is default" dnl newer GCC + "-v -Xc % -xstrconst" dnl Solaris C - strings go into readonly segment + "+w1 -Aa % +ESlit" dnl HP-UX C - strings go into readonly segment + "-w0 -std1 % -readonly_strings" dnl Digital Unix - again readonly segment + "-fullwarn -use_readonly_const %% ok, its the default" dnl IRIX C + # +do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` + AC_TRY_COMPILE([],[return 0;], + [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break]) +done +case ".$VAR" in + .|.no|.no,*) ;; + *) # sanity check - testing strcpy() from string.h + cp config.log config.tmp + AC_TRY_COMPILE([#include ],[ + char test[16]; + if (strcpy (test, "test")) return 1;], + dnl the original did use test -n `$CC testprogram.c` + [if test `diff config.log config.tmp | grep -i warning | wc -l` != 0 + then VAR="no, suppressed, string.h," ; fi], + [VAR="no, suppressed, string.h"]) + rm config.tmp + ;; +esac +FLAGS="$ac_save_[]FLAGS" +]) +AS_VAR_POPDEF([FLAGS])dnl +AC_REQUIRE([AX_APPEND_FLAG]) +case ".$VAR" in + .ok|.ok,*) m4_ifvaln($3,$3) ;; + .|.no|.no,*) m4_default($4,[m4_ifval($2,[AX_APPEND_FLAG([$2], [$1])])]) ;; + *) m4_default($3,[AX_APPEND_FLAG([$VAR], [$1])]) ;; +esac +AS_VAR_POPDEF([VAR])dnl +])dnl AX_FLAGS_NO_WRITABLE_STRINGS + +AC_DEFUN([AX_CFLAGS_NO_WRITABLE_STRINGS],[dnl +AC_LANG_PUSH([C]) +AX_FLAGS_NO_WRITABLE_STRINGS([$1], [$2], [$3], [$4]) +AC_LANG_POP([C]) +]) + +AC_DEFUN([AX_CXXFLAGS_NO_WRITABLE_STRINGS],[dnl +AC_LANG_PUSH([C++]) +AX_FLAGS_NO_WRITABLE_STRINGS([$1], [$2], [$3], [$4]) +AC_LANG_POP([C++]) +]) diff -Nru pax-utils-1.1.4/autotools/m4/ax_cflags_strict_prototypes.m4 pax-utils-1.1.5/autotools/m4/ax_cflags_strict_prototypes.m4 --- pax-utils-1.1.4/autotools/m4/ax_cflags_strict_prototypes.m4 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ax_cflags_strict_prototypes.m4 2016-02-10 19:17:15.000000000 +0000 @@ -0,0 +1,118 @@ +# =============================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_cflags_strict_prototypes.html +# =============================================================================== +# +# SYNOPSIS +# +# AX_CFLAGS_STRICT_PROTOTYPES [(shellvar [,default, [A/NA]] +# +# DESCRIPTION +# +# Try to find a compiler option that requires strict prototypes. +# +# The sanity check is done by looking at sys/signal.h which has a set of +# macro-definitions SIG_DFL and SIG_IGN that are cast to the local +# signal-handler type. If that signal-handler type is not fully qualified +# then the system headers are not seen as strictly prototype clean. +# +# For the GNU CC compiler it will be -fstrict-prototypes +# -Wstrict-prototypes The result is added to the shellvar being CFLAGS by +# default. +# +# DEFAULTS: +# +# - $1 shell-variable-to-add-to : CFLAGS +# - $2 add-value-if-not-found : nothing +# - $3 action-if-found : add value to shellvariable +# - $4 action-if-not-found : nothing +# +# NOTE: These macros depend on AX_APPEND_FLAG. +# +# LICENSE +# +# Copyright (c) 2008 Guido U. Draheim +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 3 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 13 + +AC_DEFUN([AX_FLAGS_STRICT_PROTOTYPES],[dnl +AS_VAR_PUSHDEF([FLAGS],[_AC_LANG_PREFIX[]FLAGS])dnl +AS_VAR_PUSHDEF([VAR],[ac_cv_[]_AC_LANG_ABBREV[]flags_strict_prototypes])dnl +AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for strict prototypes], +VAR,[VAR="no, unknown" +ac_save_[]FLAGS="$[]FLAGS" +for ac_arg dnl +in "-pedantic -Werror % -fstrict-prototypes -Wstrict-prototypes" dnl GCC + "-pedantic -Werror % -Wstrict-prototypes" dnl try to warn atleast + "-pedantic -Werror % -Wmissing-prototypes" dnl try to warn atleast + "-pedantic -Werror % -Werror-implicit-function-declaration" dnl + "-pedantic -Werror % -Wimplicit-function-declaration" dnl + "-pedantic % -Wstrict-prototypes %% no, unsupported" dnl oops + # +do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` + AC_TRY_COMPILE([],[return 0;], + [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break]) +done +case ".$VAR" in + .|.no|.no,*) ;; + *) # sanity check with signal() from sys/signal.h + cp config.log config.tmp + AC_TRY_COMPILE([#include ],[ + if (signal (SIGINT, SIG_IGN) == SIG_DFL) return 1; + if (signal (SIGINT, SIG_IGN) != SIG_DFL) return 2;], + dnl the original did use test -n `$CC testprogram.c` + [if test `diff config.log config.tmp | grep -i warning | wc -l` != 0 +then if test `diff config.log config.tmp | grep -i warning | wc -l` != 1 +then VAR="no, suppressed, signal.h," ; fi ; fi], + [VAR="no, suppressed, signal.h"]) + rm config.tmp + ;; +esac +FLAGS="$ac_save_[]FLAGS" +]) +AS_VAR_POPDEF([FLAGS])dnl +AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) +case ".$VAR" in + .ok|.ok,*) m4_ifvaln($3,$3) ;; + .|.no|.no,*) m4_default($4,[m4_ifval($2,[AX_APPEND_FLAG([$2], [$1])])]) ;; + *) m4_default($3,[AX_APPEND_FLAG([$VAR], [$1])]) ;; +esac +AS_VAR_POPDEF([VAR])dnl +])dnl AX_FLAGS_STRICT_PROTOTYPES + +AC_DEFUN([AX_CFLAGS_STRICT_PROTOTYPES],[dnl +AC_LANG_PUSH([C]) +AX_FLAGS_STRICT_PROTOTYPES([$1], [$2], [$3], [$4]) +AC_LANG_POP([C]) +]) + +AC_DEFUN([AX_CXXFLAGS_STRICT_PROTOTYPES],[dnl +AC_LANG_PUSH([C++]) +AX_FLAGS_STRICT_PROTOTYPES([$1], [$2], [$3], [$4]) +AC_LANG_POP([C++]) +]) diff -Nru pax-utils-1.1.4/autotools/m4/ax_check_link_flag.m4 pax-utils-1.1.5/autotools/m4/ax_check_link_flag.m4 --- pax-utils-1.1.4/autotools/m4/ax_check_link_flag.m4 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ax_check_link_flag.m4 2016-02-10 19:17:15.000000000 +0000 @@ -0,0 +1,74 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_check_link_flag.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_CHECK_LINK_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT]) +# +# DESCRIPTION +# +# Check whether the given FLAG works with the linker or gives an error. +# (Warnings, however, are ignored) +# +# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on +# success/failure. +# +# If EXTRA-FLAGS is defined, it is added to the linker's default flags +# when the check is done. The check is thus made with the flags: "LDFLAGS +# EXTRA-FLAGS FLAG". This can for example be used to force the linker to +# issue an error when a bad flag is given. +# +# INPUT gives an alternative input source to AC_LINK_IFELSE. +# +# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this +# macro in sync with AX_CHECK_{PREPROC,COMPILE}_FLAG. +# +# LICENSE +# +# Copyright (c) 2008 Guido U. Draheim +# Copyright (c) 2011 Maarten Bosmans +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 4 + +AC_DEFUN([AX_CHECK_LINK_FLAG], +[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF +AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_ldflags_$4_$1])dnl +AC_CACHE_CHECK([whether the linker accepts $1], CACHEVAR, [ + ax_check_save_flags=$LDFLAGS + LDFLAGS="$LDFLAGS $4 $1" + AC_LINK_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], + [AS_VAR_SET(CACHEVAR,[yes])], + [AS_VAR_SET(CACHEVAR,[no])]) + LDFLAGS=$ax_check_save_flags]) +AS_VAR_IF(CACHEVAR,yes, + [m4_default([$2], :)], + [m4_default([$3], :)]) +AS_VAR_POPDEF([CACHEVAR])dnl +])dnl AX_CHECK_LINK_FLAGS diff -Nru pax-utils-1.1.4/autotools/m4/ax_compiler_flags_gir.m4 pax-utils-1.1.5/autotools/m4/ax_compiler_flags_gir.m4 --- pax-utils-1.1.4/autotools/m4/ax_compiler_flags_gir.m4 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ax_compiler_flags_gir.m4 2016-02-10 19:17:15.000000000 +0000 @@ -0,0 +1,60 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_compiler_flags_gir.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_COMPILER_FLAGS_GIR([VARIABLE], [IS-RELEASE], [EXTRA-BASE-FLAGS], [EXTRA-YES-FLAGS]) +# +# DESCRIPTION +# +# Add warning flags for the g-ir-scanner (from GObject Introspection) to +# VARIABLE, which defaults to WARN_SCANNERFLAGS. VARIABLE is AC_SUBST-ed +# by this macro, but must be manually added to the SCANNERFLAGS variable +# for each GIR target in the code base. +# +# This macro depends on the environment set up by AX_COMPILER_FLAGS. +# Specifically, it uses the value of $ax_enable_compile_warnings to decide +# which flags to enable. +# +# LICENSE +# +# Copyright (c) 2015 Philip Withnall +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + +#serial 4 + +AC_DEFUN([AX_COMPILER_FLAGS_GIR],[ + AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) + + # Variable names + m4_define(ax_warn_scannerflags_variable, + [m4_normalize(ifelse([$1],,[WARN_SCANNERFLAGS],[$1]))]) + + # Base flags + AX_APPEND_FLAG([$3],ax_warn_scannerflags_variable) + + AS_IF([test "$ax_enable_compile_warnings" != "no"],[ + # "yes" flags + AX_APPEND_FLAG([ dnl + --warn-all dnl + $4 dnl + $5 dnl + $6 dnl + $7 dnl + ],ax_warn_scannerflags_variable) + ]) + AS_IF([test "$ax_enable_compile_warnings" = "error"],[ + # "error" flags + AX_APPEND_FLAG([ dnl + --warn-error dnl + ],ax_warn_scannerflags_variable) + ]) + + # Substitute the variables + AC_SUBST(ax_warn_scannerflags_variable) +])dnl AX_COMPILER_FLAGS diff -Nru pax-utils-1.1.4/autotools/m4/ax_compiler_flags.m4 pax-utils-1.1.5/autotools/m4/ax_compiler_flags.m4 --- pax-utils-1.1.4/autotools/m4/ax_compiler_flags.m4 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ax_compiler_flags.m4 2016-02-10 19:17:15.000000000 +0000 @@ -0,0 +1,158 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_compiler_flags.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_COMPILER_FLAGS([CFLAGS-VARIABLE], [LDFLAGS-VARIABLE], [IS-RELEASE], [EXTRA-BASE-CFLAGS], [EXTRA-YES-CFLAGS], [UNUSED], [UNUSED], [UNUSED], [EXTRA-BASE-LDFLAGS], [EXTRA-YES-LDFLAGS], [UNUSED], [UNUSED], [UNUSED]) +# +# DESCRIPTION +# +# Check for the presence of an --enable-compile-warnings option to +# configure, defaulting to "error" in normal operation, or "yes" if +# IS-RELEASE is equal to "yes". Return the value in the variable +# $ax_enable_compile_warnings. +# +# Depending on the value of --enable-compile-warnings, different compiler +# warnings are checked to see if they work with the current compiler and, +# if so, are appended to CFLAGS-VARIABLE and LDFLAGS-VARIABLE. This +# allows a consistent set of baseline compiler warnings to be used across +# a code base, irrespective of any warnings enabled locally by individual +# developers. By standardising the warnings used by all developers of a +# project, the project can commit to a zero-warnings policy, using -Werror +# to prevent compilation if new warnings are introduced. This makes +# catching bugs which are flagged by warnings a lot easier. +# +# By providing a consistent --enable-compile-warnings argument across all +# projects using this macro, continuous integration systems can easily be +# configured the same for all projects. Automated systems or build +# systems aimed at beginners may want to pass the --disable-Werror +# argument to unconditionally prevent warnings being fatal. +# +# --enable-compile-warnings can take the values: +# +# * no: Base compiler warnings only; not even -Wall. +# * yes: The above, plus a broad range of useful warnings. +# * error: The above, plus -Werror so that all warnings are fatal. +# Use --disable-Werror to override this and disable fatal +# warnings. +# +# The set of base and enabled flags can be augmented using the +# EXTRA-*-CFLAGS and EXTRA-*-LDFLAGS variables, which are tested and +# appended to the output variable if --enable-compile-warnings is not +# "no". Flags should not be disabled using these arguments, as the entire +# point of AX_COMPILER_FLAGS is to enforce a consistent set of useful +# compiler warnings on code, using warnings which have been chosen for low +# false positive rates. If a compiler emits false positives for a +# warning, a #pragma should be used in the code to disable the warning +# locally. See: +# +# https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas +# +# The EXTRA-* variables should only be used to supply extra warning flags, +# and not general purpose compiler flags, as they are controlled by +# configure options such as --disable-Werror. +# +# IS-RELEASE can be used to disable -Werror when making a release, which +# is useful for those hairy moments when you just want to get the release +# done as quickly as possible. Set it to "yes" to disable -Werror. By +# default, it uses the value of $ax_is_release, so if you are using the +# AX_IS_RELEASE macro, there is no need to pass this parameter. For +# example: +# +# AX_IS_RELEASE([git-directory]) +# AX_COMPILER_FLAGS() +# +# CFLAGS-VARIABLE defaults to WARN_CFLAGS, and LDFLAGS-VARIABLE defaults +# to WARN_LDFLAGS. Both variables are AC_SUBST-ed by this macro, but must +# be manually added to the CFLAGS and LDFLAGS variables for each target in +# the code base. +# +# If C++ language support is enabled with AC_PROG_CXX, which must occur +# before this macro in configure.ac, warning flags for the C++ compiler +# are AC_SUBST-ed as WARN_CXXFLAGS, and must be manually added to the +# CXXFLAGS variables for each target in the code base. EXTRA-*-CFLAGS can +# be used to augment the base and enabled flags. +# +# Warning flags for g-ir-scanner (from GObject Introspection) are +# AC_SUBST-ed as WARN_SCANNERFLAGS. This variable must be manually added +# to the SCANNERFLAGS variable for each GIR target in the code base. If +# extra g-ir-scanner flags need to be enabled, the AX_COMPILER_FLAGS_GIR +# macro must be invoked manually. +# +# AX_COMPILER_FLAGS may add support for other tools in future, in addition +# to the compiler and linker. No extra EXTRA-* variables will be added +# for those tools, and all extra support will still use the single +# --enable-compile-warnings configure option. For finer grained control +# over the flags for individual tools, use AX_COMPILER_FLAGS_CFLAGS, +# AX_COMPILER_FLAGS_LDFLAGS and AX_COMPILER_FLAGS_* for new tools. +# +# The UNUSED variables date from a previous version of this macro, and are +# automatically appended to the preceding non-UNUSED variable. They should +# be left empty in new uses of the macro. +# +# LICENSE +# +# Copyright (c) 2014, 2015 Philip Withnall +# Copyright (c) 2015 David King +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + +#serial 13 + +# _AX_COMPILER_FLAGS_LANG([LANGNAME]) +m4_defun([_AX_COMPILER_FLAGS_LANG], +[m4_ifdef([_AX_COMPILER_FLAGS_LANG_]$1[_enabled], [], + [m4_define([_AX_COMPILER_FLAGS_LANG_]$1[_enabled], [])dnl + AX_REQUIRE_DEFINED([AX_COMPILER_FLAGS_]$1[FLAGS])])dnl +]) + +AC_DEFUN([AX_COMPILER_FLAGS],[ + # C support is enabled by default. + _AX_COMPILER_FLAGS_LANG([C]) + # Only enable C++ support if AC_PROG_CXX is called. The redefinition of + # AC_PROG_CXX is so that a fatal error is emitted if this macro is called + # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be + # checked. + AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AX_COMPILER_FLAGS_LANG([CXX])], + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AX_COMPILER_FLAGS_LANG([CXX])])]) + AX_REQUIRE_DEFINED([AX_COMPILER_FLAGS_LDFLAGS]) + + # Default value for IS-RELEASE is $ax_is_release + ax_compiler_flags_is_release=m4_tolower(m4_normalize(ifelse([$3],, + [$ax_is_release], + [$3]))) + + AC_ARG_ENABLE([compile-warnings], + AS_HELP_STRING([--enable-compile-warnings=@<:@no/yes/error@:>@], + [Enable compiler warnings and errors]),, + [AS_IF([test "$ax_compiler_flags_is_release" = "yes"], + [enable_compile_warnings="yes"], + [enable_compile_warnings="error"])]) + AC_ARG_ENABLE([Werror], + AS_HELP_STRING([--disable-Werror], + [Unconditionally make all compiler warnings non-fatal]),, + [enable_Werror=maybe]) + + # Return the user's chosen warning level + AS_IF([test "$enable_Werror" = "no" -a \ + "$enable_compile_warnings" = "error"],[ + enable_compile_warnings="yes" + ]) + + ax_enable_compile_warnings=$enable_compile_warnings + + AX_COMPILER_FLAGS_CFLAGS([$1],[$ax_compiler_flags_is_release], + [$4],[$5 $6 $7 $8]) + m4_ifdef([_AX_COMPILER_FLAGS_LANG_CXX_enabled], + [AX_COMPILER_FLAGS_CXXFLAGS([WARN_CXXFLAGS], + [$ax_compiler_flags_is_release], + [$4],[$5 $6 $7 $8])]) + AX_COMPILER_FLAGS_LDFLAGS([$2],[$ax_compiler_flags_is_release], + [$9],[$10 $11 $12 $13]) + AX_COMPILER_FLAGS_GIR([WARN_SCANNERFLAGS],[$ax_compiler_flags_is_release]) +])dnl AX_COMPILER_FLAGS diff -Nru pax-utils-1.1.4/autotools/m4/ax_require_defined.m4 pax-utils-1.1.5/autotools/m4/ax_require_defined.m4 --- pax-utils-1.1.4/autotools/m4/ax_require_defined.m4 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ax_require_defined.m4 2016-02-10 19:17:15.000000000 +0000 @@ -0,0 +1,37 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_require_defined.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_REQUIRE_DEFINED(MACRO) +# +# DESCRIPTION +# +# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have +# been defined and thus are available for use. This avoids random issues +# where a macro isn't expanded. Instead the configure script emits a +# non-fatal: +# +# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found +# +# It's like AC_REQUIRE except it doesn't expand the required macro. +# +# Here's an example: +# +# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) +# +# LICENSE +# +# Copyright (c) 2014 Mike Frysinger +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + +#serial 1 + +AC_DEFUN([AX_REQUIRE_DEFINED], [dnl + m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])]) +])dnl AX_REQUIRE_DEFINED diff -Nru pax-utils-1.1.4/autotools/m4/canonicalize.m4 pax-utils-1.1.5/autotools/m4/canonicalize.m4 --- pax-utils-1.1.4/autotools/m4/canonicalize.m4 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/canonicalize.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ # canonicalize.m4 serial 26 -dnl Copyright (C) 2003-2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2003-2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/chdir-long.m4 pax-utils-1.1.5/autotools/m4/chdir-long.m4 --- pax-utils-1.1.4/autotools/m4/chdir-long.m4 2015-10-26 04:29:28.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/chdir-long.m4 2016-02-10 19:17:03.000000000 +0000 @@ -6,7 +6,7 @@ # never fails with ENAMETOOLONG. # Arrange to compile chdir-long.c only on systems that define PATH_MAX. -dnl Copyright (C) 2004-2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2004-2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/clock_time.m4 pax-utils-1.1.5/autotools/m4/clock_time.m4 --- pax-utils-1.1.4/autotools/m4/clock_time.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/clock_time.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # clock_time.m4 serial 10 -dnl Copyright (C) 2002-2006, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2006, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/closedir.m4 pax-utils-1.1.5/autotools/m4/closedir.m4 --- pax-utils-1.1.4/autotools/m4/closedir.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/closedir.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ -# closedir.m4 serial 2 -dnl Copyright (C) 2011-2015 Free Software Foundation, Inc. +# closedir.m4 serial 5 +dnl Copyright (C) 2011-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -22,4 +22,9 @@ fi fi ]) + dnl Replace closedir() for supporting the gnulib-defined dirfd() function. + case $host_os,$HAVE_CLOSEDIR in + os2*,1) + REPLACE_CLOSEDIR=1;; + esac ]) diff -Nru pax-utils-1.1.4/autotools/m4/close.m4 pax-utils-1.1.5/autotools/m4/close.m4 --- pax-utils-1.1.4/autotools/m4/close.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/close.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # close.m4 serial 8 -dnl Copyright (C) 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/dirent_h.m4 pax-utils-1.1.5/autotools/m4/dirent_h.m4 --- pax-utils-1.1.4/autotools/m4/dirent_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/dirent_h.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # dirent_h.m4 serial 16 -dnl Copyright (C) 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/dirfd.m4 pax-utils-1.1.5/autotools/m4/dirfd.m4 --- pax-utils-1.1.4/autotools/m4/dirfd.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/dirfd.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,8 +1,8 @@ -# serial 22 -*- Autoconf -*- +# serial 24 -*- Autoconf -*- dnl Find out how to get the file descriptor associated with an open DIR*. -# Copyright (C) 2001-2006, 2008-2015 Free Software Foundation, Inc. +# Copyright (C) 2001-2006, 2008-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -35,13 +35,15 @@ gl_cv_func_dirfd_macro=yes, gl_cv_func_dirfd_macro=no)]) - # Use the replacement only if we have no function or macro with that name. - if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then - if test $ac_cv_have_decl_dirfd = yes; then - # If the system declares dirfd already, let's declare rpl_dirfd instead. + # Use the replacement if we have no function or macro with that name, + # or if OS/2 kLIBC whose dirfd() does not work. + # Replace only if the system declares dirfd already. + case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in + no,no,*,yes | *,*,os2*,yes) REPLACE_DIRFD=1 - fi - fi + AC_DEFINE([REPLACE_DIRFD], [1], + [Define to 1 if gnulib's dirfd() replacement is used.]);; + esac ]) dnl Prerequisites of lib/dirfd.c. diff -Nru pax-utils-1.1.4/autotools/m4/dirname.m4 pax-utils-1.1.5/autotools/m4/dirname.m4 --- pax-utils-1.1.4/autotools/m4/dirname.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/dirname.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ #serial 10 -*- autoconf -*- -dnl Copyright (C) 2002-2006, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2006, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/double-slash-root.m4 pax-utils-1.1.5/autotools/m4/double-slash-root.m4 --- pax-utils-1.1.4/autotools/m4/double-slash-root.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/double-slash-root.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # double-slash-root.m4 serial 4 -*- Autoconf -*- -dnl Copyright (C) 2006, 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2006, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/dup2.m4 pax-utils-1.1.5/autotools/m4/dup2.m4 --- pax-utils-1.1.4/autotools/m4/dup2.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/dup2.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ -#serial 24 -dnl Copyright (C) 2002, 2005, 2007, 2009-2015 Free Software Foundation, Inc. +#serial 25 +dnl Copyright (C) 2002, 2005, 2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -62,6 +62,16 @@ result |= 32; dup2 (2, 255); dup2 (2, 256); + /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ + { + int fd = open (".", O_RDONLY); + if (fd == -1) + result |= 64; + else if (dup2 (fd, fd + 1) == -1) + result |= 128; + + close (fd); + } return result;]]) ], [gl_cv_func_dup2_works=yes], [gl_cv_func_dup2_works=no], @@ -78,6 +88,8 @@ gl_cv_func_dup2_works="guessing no" ;; *-android*) # implemented using dup3(), which fails if oldfd == newfd gl_cv_func_dup2_works="guessing no" ;; + os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. + gl_cv_func_dup2_works="guessing no" ;; *) gl_cv_func_dup2_works="guessing yes" ;; esac]) ]) diff -Nru pax-utils-1.1.4/autotools/m4/dup.m4 pax-utils-1.1.5/autotools/m4/dup.m4 --- pax-utils-1.1.4/autotools/m4/dup.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/dup.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ -# dup.m4 serial 3 -dnl Copyright (C) 2011-2015 Free Software Foundation, Inc. +# dup.m4 serial 4 +dnl Copyright (C) 2011-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -19,6 +19,26 @@ REPLACE_DUP=1 fi ]) + AC_CACHE_CHECK([whether dup works], [gl_cv_func_dup_works], + [AC_RUN_IFELSE( + [AC_LANG_PROGRAM([[#include + #include + #include ]], + [[/* On OS/2 kLIBC, dup does not work on a directory fd. */ + int fd = open (".", O_RDONLY); + return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0; + ]]) + ], + [gl_cv_func_dup_works=yes], + [gl_cv_func_dup_works=no], + [gl_cv_func_dup_works='guessing yes']) + ]) + case "$gl_cv_func_dup_works" in + *yes) ;; + *) + REPLACE_DUP=1 + ;; + esac ]) # Prerequisites of lib/dup.c. diff -Nru pax-utils-1.1.4/autotools/m4/eealloc.m4 pax-utils-1.1.5/autotools/m4/eealloc.m4 --- pax-utils-1.1.4/autotools/m4/eealloc.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/eealloc.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # eealloc.m4 serial 3 -dnl Copyright (C) 2003, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2003, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/errno_h.m4 pax-utils-1.1.5/autotools/m4/errno_h.m4 --- pax-utils-1.1.4/autotools/m4/errno_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/errno_h.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # errno_h.m4 serial 12 -dnl Copyright (C) 2004, 2006, 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2004, 2006, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/error.m4 pax-utils-1.1.5/autotools/m4/error.m4 --- pax-utils-1.1.4/autotools/m4/error.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/error.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ #serial 14 -# Copyright (C) 1996-1998, 2001-2004, 2009-2015 Free Software Foundation, Inc. +# Copyright (C) 1996-1998, 2001-2004, 2009-2016 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/euidaccess.m4 pax-utils-1.1.5/autotools/m4/euidaccess.m4 --- pax-utils-1.1.4/autotools/m4/euidaccess.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/euidaccess.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # euidaccess.m4 serial 15 -dnl Copyright (C) 2002-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/exponentd.m4 pax-utils-1.1.5/autotools/m4/exponentd.m4 --- pax-utils-1.1.4/autotools/m4/exponentd.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/exponentd.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # exponentd.m4 serial 3 -dnl Copyright (C) 2007-2008, 2010-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2008, 2010-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/exponentf.m4 pax-utils-1.1.5/autotools/m4/exponentf.m4 --- pax-utils-1.1.4/autotools/m4/exponentf.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/exponentf.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # exponentf.m4 serial 2 -dnl Copyright (C) 2007-2008, 2010-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2008, 2010-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/exponentl.m4 pax-utils-1.1.5/autotools/m4/exponentl.m4 --- pax-utils-1.1.4/autotools/m4/exponentl.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/exponentl.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # exponentl.m4 serial 3 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/extensions.m4 pax-utils-1.1.5/autotools/m4/extensions.m4 --- pax-utils-1.1.4/autotools/m4/extensions.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/extensions.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,7 +1,7 @@ # serial 13 -*- Autoconf -*- # Enable extensions on systems that normally disable them. -# Copyright (C) 2003, 2006-2015 Free Software Foundation, Inc. +# Copyright (C) 2003, 2006-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/extern-inline.m4 pax-utils-1.1.5/autotools/m4/extern-inline.m4 --- pax-utils-1.1.4/autotools/m4/extern-inline.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/extern-inline.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,6 +1,6 @@ dnl 'extern inline' a la ISO C99. -dnl Copyright 2012-2015 Free Software Foundation, Inc. +dnl Copyright 2012-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/faccessat.m4 pax-utils-1.1.5/autotools/m4/faccessat.m4 --- pax-utils-1.1.4/autotools/m4/faccessat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/faccessat.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,7 +1,7 @@ # serial 6 # See if we need to provide faccessat replacement. -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/fchdir.m4 pax-utils-1.1.5/autotools/m4/fchdir.m4 --- pax-utils-1.1.4/autotools/m4/fchdir.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/fchdir.m4 2016-02-10 19:17:03.000000000 +0000 @@ -1,5 +1,5 @@ # fchdir.m4 serial 21 -dnl Copyright (C) 2006-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2006-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/fcntl_h.m4 pax-utils-1.1.5/autotools/m4/fcntl_h.m4 --- pax-utils-1.1.4/autotools/m4/fcntl_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/fcntl_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # serial 15 # Configure fcntl.h. -dnl Copyright (C) 2006-2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2006-2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/fcntl.m4 pax-utils-1.1.5/autotools/m4/fcntl.m4 --- pax-utils-1.1.4/autotools/m4/fcntl.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/fcntl.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ -# fcntl.m4 serial 8 -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +# fcntl.m4 serial 9 +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -54,6 +54,17 @@ if (errno != EINVAL) result |= 2; if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; if (errno != EINVAL) result |= 8; + /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ + { + int fd; + fd = open (".", O_RDONLY); + if (fd == -1) + result |= 16; + else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) + result |= 32; + + close (fd); + } return result;]])], [gl_cv_func_fcntl_f_dupfd_works=yes], [gl_cv_func_fcntl_f_dupfd_works=no], diff -Nru pax-utils-1.1.4/autotools/m4/fcntl-o.m4 pax-utils-1.1.5/autotools/m4/fcntl-o.m4 --- pax-utils-1.1.4/autotools/m4/fcntl-o.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/fcntl-o.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # fcntl-o.m4 serial 4 -dnl Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/fdopendir.m4 pax-utils-1.1.5/autotools/m4/fdopendir.m4 --- pax-utils-1.1.4/autotools/m4/fdopendir.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/fdopendir.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # serial 10 # See if we need to provide fdopendir. -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/filenamecat.m4 pax-utils-1.1.5/autotools/m4/filenamecat.m4 --- pax-utils-1.1.4/autotools/m4/filenamecat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/filenamecat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # filenamecat.m4 serial 11 -dnl Copyright (C) 2002-2006, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2006, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/float_h.m4 pax-utils-1.1.5/autotools/m4/float_h.m4 --- pax-utils-1.1.4/autotools/m4/float_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/float_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # float_h.m4 serial 9 -dnl Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/fpieee.m4 pax-utils-1.1.5/autotools/m4/fpieee.m4 --- pax-utils-1.1.4/autotools/m4/fpieee.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/fpieee.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ -# fpieee.m4 serial 2 -dnl Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. +# fpieee.m4 serial 2 -*- coding: utf-8 -*- +dnl Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/frexpl.m4 pax-utils-1.1.5/autotools/m4/frexpl.m4 --- pax-utils-1.1.4/autotools/m4/frexpl.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/frexpl.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # frexpl.m4 serial 20 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/frexp.m4 pax-utils-1.1.5/autotools/m4/frexp.m4 --- pax-utils-1.1.4/autotools/m4/frexp.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/frexp.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # frexp.m4 serial 15 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/fstatat.m4 pax-utils-1.1.5/autotools/m4/fstatat.m4 --- pax-utils-1.1.4/autotools/m4/fstatat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/fstatat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # fstatat.m4 serial 3 -dnl Copyright (C) 2004-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2004-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/fstat.m4 pax-utils-1.1.5/autotools/m4/fstat.m4 --- pax-utils-1.1.4/autotools/m4/fstat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/fstat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # fstat.m4 serial 4 -dnl Copyright (C) 2011-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2011-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/futimens.m4 pax-utils-1.1.5/autotools/m4/futimens.m4 --- pax-utils-1.1.4/autotools/m4/futimens.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/futimens.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # serial 6 # See if we need to provide futimens replacement. -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/getcwd.m4 pax-utils-1.1.5/autotools/m4/getcwd.m4 --- pax-utils-1.1.4/autotools/m4/getcwd.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/getcwd.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # getcwd.m4 - check for working getcwd that is compatible with glibc -# Copyright (C) 2001, 2003-2007, 2009-2015 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003-2007, 2009-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/getdelim.m4 pax-utils-1.1.5/autotools/m4/getdelim.m4 --- pax-utils-1.1.4/autotools/m4/getdelim.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/getdelim.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # getdelim.m4 serial 10 -dnl Copyright (C) 2005-2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2005-2007, 2009-2016 Free Software Foundation, Inc. dnl dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/getdtablesize.m4 pax-utils-1.1.5/autotools/m4/getdtablesize.m4 --- pax-utils-1.1.4/autotools/m4/getdtablesize.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/getdtablesize.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # getdtablesize.m4 serial 6 -dnl Copyright (C) 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/getgroups.m4 pax-utils-1.1.5/autotools/m4/getgroups.m4 --- pax-utils-1.1.4/autotools/m4/getgroups.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/getgroups.m4 2016-02-10 19:17:04.000000000 +0000 @@ -3,7 +3,7 @@ dnl From Jim Meyering. dnl A wrapper around AC_FUNC_GETGROUPS. -# Copyright (C) 1996-1997, 1999-2004, 2008-2015 Free Software Foundation, Inc. +# Copyright (C) 1996-1997, 1999-2004, 2008-2016 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/getline.m4 pax-utils-1.1.5/autotools/m4/getline.m4 --- pax-utils-1.1.4/autotools/m4/getline.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/getline.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # getline.m4 serial 26 -dnl Copyright (C) 1998-2003, 2005-2007, 2009-2015 Free Software Foundation, +dnl Copyright (C) 1998-2003, 2005-2007, 2009-2016 Free Software Foundation, dnl Inc. dnl dnl This file is free software; the Free Software Foundation diff -Nru pax-utils-1.1.4/autotools/m4/getopt.m4 pax-utils-1.1.5/autotools/m4/getopt.m4 --- pax-utils-1.1.4/autotools/m4/getopt.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/getopt.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # getopt.m4 serial 44 -dnl Copyright (C) 2002-2006, 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2006, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/gettime.m4 pax-utils-1.1.5/autotools/m4/gettime.m4 --- pax-utils-1.1.4/autotools/m4/gettime.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/gettime.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # gettime.m4 serial 8 -dnl Copyright (C) 2002, 2004-2006, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002, 2004-2006, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/gettimeofday.m4 pax-utils-1.1.5/autotools/m4/gettimeofday.m4 --- pax-utils-1.1.4/autotools/m4/gettimeofday.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/gettimeofday.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # serial 21 -# Copyright (C) 2001-2003, 2005, 2007, 2009-2015 Free Software Foundation, Inc. +# Copyright (C) 2001-2003, 2005, 2007, 2009-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/gnulib-cache.m4 pax-utils-1.1.5/autotools/m4/gnulib-cache.m4 --- pax-utils-1.1.4/autotools/m4/gnulib-cache.m4 2015-10-26 04:29:34.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/gnulib-cache.m4 2016-02-10 19:17:09.000000000 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2015 Free Software Foundation, Inc. +# Copyright (C) 2002-2016 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ # Specification in the form of a command-line invocation: -# gnulib-tool --import --dir=. --lib=libgnu --source-base=autotools/gnulib --m4-base=autotools/m4 --doc-base=doc --tests-base=tests --aux-dir=autotools --no-conditional-dependencies --no-libtool --macro-prefix=gl alloca faccessat fdopendir fstatat futimens getline getopt-posix mkdirat openat progname readlinkat renameat stat-time strcasestr-simple strncat symlinkat sys_stat unlinkat utimensat vasprintf-posix +# gnulib-tool --import --lib=libgnu --source-base=autotools/gnulib --m4-base=autotools/m4 --doc-base=doc --tests-base=tests --aux-dir=autotools --no-conditional-dependencies --no-libtool --macro-prefix=gl alloca faccessat fdopendir fstatat futimens getline getopt-posix mkdirat openat progname readlinkat renameat stat-time strcasestr-simple strncat symlinkat sys_stat unlinkat utimensat vasprintf-posix # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([]) diff -Nru pax-utils-1.1.4/autotools/m4/gnulib-common.m4 pax-utils-1.1.5/autotools/m4/gnulib-common.m4 --- pax-utils-1.1.4/autotools/m4/gnulib-common.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/gnulib-common.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # gnulib-common.m4 serial 36 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -253,9 +253,10 @@ [ dnl Minix 3 comes with two toolchains: The Amsterdam Compiler Kit compiler dnl as "cc", and GCC as "gcc". They have different object file formats and - dnl library formats. In particular, the GNU binutils programs ar, ranlib + dnl library formats. In particular, the GNU binutils programs ar and ranlib dnl produce libraries that work only with gcc, not with cc. AC_REQUIRE([AC_PROG_CC]) + AC_BEFORE([$0], [AM_PROG_AR]) AC_CACHE_CHECK([for Minix Amsterdam compiler], [gl_cv_c_amsterdam_compiler], [ AC_EGREP_CPP([Amsterdam], @@ -267,25 +268,37 @@ [gl_cv_c_amsterdam_compiler=yes], [gl_cv_c_amsterdam_compiler=no]) ]) - if test -z "$AR"; then - if test $gl_cv_c_amsterdam_compiler = yes; then + + dnl Don't compete with AM_PROG_AR's decision about AR/ARFLAGS if we are not + dnl building with __ACK__. + if test $gl_cv_c_amsterdam_compiler = yes; then + if test -z "$AR"; then AR='cc -c.a' - if test -z "$ARFLAGS"; then - ARFLAGS='-o' - fi - else - dnl Use the Automake-documented default values for AR and ARFLAGS, - dnl but prefer ${host}-ar over ar (useful for cross-compiling). - AC_CHECK_TOOL([AR], [ar], [ar]) - if test -z "$ARFLAGS"; then - ARFLAGS='cr' - fi fi - else if test -z "$ARFLAGS"; then - ARFLAGS='cr' + ARFLAGS='-o' fi + else + dnl AM_PROG_AR was added in automake v1.11.2. AM_PROG_AR does not AC_SUBST + dnl ARFLAGS variable (it is filed into Makefile.in directly by automake + dnl script on-demand, if not specified by ./configure of course). + dnl Don't AC_REQUIRE the AM_PROG_AR otherwise the code for __ACK__ above + dnl will be ignored. Also, pay attention to call AM_PROG_AR in else block + dnl because AM_PROG_AR is written so it could re-set AR variable even for + dnl __ACK__. It may seem like its easier to avoid calling the macro here, + dnl but we need to AC_SUBST both AR/ARFLAGS (thus those must have some good + dnl default value and automake should usually know them). + m4_ifdef([AM_PROG_AR], [AM_PROG_AR], [:]) fi + + dnl In case the code above has not helped with setting AR/ARFLAGS, use + dnl Automake-documented default values for AR and ARFLAGS, but prefer + dnl ${host}-ar over ar (useful for cross-compiling). + AC_CHECK_TOOL([AR], [ar], [ar]) + if test -z "$ARFLAGS"; then + ARFLAGS='cr' + fi + AC_SUBST([AR]) AC_SUBST([ARFLAGS]) if test -z "$RANLIB"; then diff -Nru pax-utils-1.1.4/autotools/m4/gnulib-comp.m4 pax-utils-1.1.5/autotools/m4/gnulib-comp.m4 --- pax-utils-1.1.4/autotools/m4/gnulib-comp.m4 2015-10-26 04:29:35.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/gnulib-comp.m4 2016-02-10 19:17:11.000000000 +0000 @@ -1,5 +1,5 @@ # DO NOT EDIT! GENERATED AUTOMATICALLY! -# Copyright (C) 2002-2015 Free Software Foundation, Inc. +# Copyright (C) 2002-2016 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -37,7 +37,11 @@ m4_pattern_allow([^gl_ES$])dnl a valid locale name m4_pattern_allow([^gl_LIBOBJS$])dnl a variable m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable + + # Pre-early section. + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_PROG_AR_RANLIB]) + # Code from module absolute-header: # Code from module alloca: # Code from module alloca-opt: @@ -62,7 +66,6 @@ # Code from module euidaccess: # Code from module exitfail: # Code from module extensions: - AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) # Code from module extern-inline: # Code from module faccessat: # Code from module fchdir: @@ -220,7 +223,8 @@ gl_DIRENT_MODULE_INDICATOR([closedir]) gl_DIRENT_H gl_FUNC_DIRFD - if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then + if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \ + || test $REPLACE_DIRFD = 1; then AC_LIBOBJ([dirfd]) gl_PREREQ_DIRFD fi @@ -419,11 +423,11 @@ gl_PREREQ_MKDIRAT fi gl_SYS_STAT_MODULE_INDICATOR([mkdirat]) - gl_MSVC_INVAL + AC_REQUIRE([gl_MSVC_INVAL]) if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then AC_LIBOBJ([msvc-inval]) fi - gl_MSVC_NOTHROW + AC_REQUIRE([gl_MSVC_NOTHROW]) if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then AC_LIBOBJ([msvc-nothrow]) fi diff -Nru pax-utils-1.1.4/autotools/m4/gnulib-tool.m4 pax-utils-1.1.5/autotools/m4/gnulib-tool.m4 --- pax-utils-1.1.4/autotools/m4/gnulib-tool.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/gnulib-tool.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # gnulib-tool.m4 serial 2 -dnl Copyright (C) 2004-2005, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2004-2005, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/group-member.m4 pax-utils-1.1.5/autotools/m4/group-member.m4 --- pax-utils-1.1.4/autotools/m4/group-member.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/group-member.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # serial 14 -# Copyright (C) 1999-2001, 2003-2007, 2009-2015 Free Software Foundation, Inc. +# Copyright (C) 1999-2001, 2003-2007, 2009-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/include_next.m4 pax-utils-1.1.5/autotools/m4/include_next.m4 --- pax-utils-1.1.4/autotools/m4/include_next.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/include_next.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # include_next.m4 serial 23 -dnl Copyright (C) 2006-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2006-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/intmax_t.m4 pax-utils-1.1.5/autotools/m4/intmax_t.m4 --- pax-utils-1.1.4/autotools/m4/intmax_t.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/intmax_t.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # intmax_t.m4 serial 8 -dnl Copyright (C) 1997-2004, 2006-2007, 2009-2015 Free Software Foundation, +dnl Copyright (C) 1997-2004, 2006-2007, 2009-2016 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/inttypes_h.m4 pax-utils-1.1.5/autotools/m4/inttypes_h.m4 --- pax-utils-1.1.4/autotools/m4/inttypes_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/inttypes_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # inttypes_h.m4 serial 10 -dnl Copyright (C) 1997-2004, 2006, 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 1997-2004, 2006, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/isnand.m4 pax-utils-1.1.5/autotools/m4/isnand.m4 --- pax-utils-1.1.4/autotools/m4/isnand.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/isnand.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # isnand.m4 serial 11 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/isnanf.m4 pax-utils-1.1.5/autotools/m4/isnanf.m4 --- pax-utils-1.1.4/autotools/m4/isnanf.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/isnanf.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # isnanf.m4 serial 14 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/isnanl.m4 pax-utils-1.1.5/autotools/m4/isnanl.m4 --- pax-utils-1.1.4/autotools/m4/isnanl.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/isnanl.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # isnanl.m4 serial 19 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/largefile.m4 pax-utils-1.1.5/autotools/m4/largefile.m4 --- pax-utils-1.1.4/autotools/m4/largefile.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/largefile.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # Enable large files on systems where this is not the default. -# Copyright 1992-1996, 1998-2015 Free Software Foundation, Inc. +# Copyright 1992-1996, 1998-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/ldexpl.m4 pax-utils-1.1.5/autotools/m4/ldexpl.m4 --- pax-utils-1.1.4/autotools/m4/ldexpl.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ldexpl.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # ldexpl.m4 serial 16 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/longlong.m4 pax-utils-1.1.5/autotools/m4/longlong.m4 --- pax-utils-1.1.4/autotools/m4/longlong.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/longlong.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # longlong.m4 serial 17 -dnl Copyright (C) 1999-2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 1999-2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/lstat.m4 pax-utils-1.1.5/autotools/m4/lstat.m4 --- pax-utils-1.1.4/autotools/m4/lstat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/lstat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # serial 27 -# Copyright (C) 1997-2001, 2003-2015 Free Software Foundation, Inc. +# Copyright (C) 1997-2001, 2003-2016 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/malloca.m4 pax-utils-1.1.5/autotools/m4/malloca.m4 --- pax-utils-1.1.4/autotools/m4/malloca.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/malloca.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # malloca.m4 serial 1 -dnl Copyright (C) 2003-2004, 2006-2007, 2009-2015 Free Software Foundation, +dnl Copyright (C) 2003-2004, 2006-2007, 2009-2016 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/malloc.m4 pax-utils-1.1.5/autotools/m4/malloc.m4 --- pax-utils-1.1.4/autotools/m4/malloc.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/malloc.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # malloc.m4 serial 14 -dnl Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/math_h.m4 pax-utils-1.1.5/autotools/m4/math_h.m4 --- pax-utils-1.1.4/autotools/m4/math_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/math_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # math_h.m4 serial 114 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/memchr.m4 pax-utils-1.1.5/autotools/m4/memchr.m4 --- pax-utils-1.1.4/autotools/m4/memchr.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/memchr.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # memchr.m4 serial 12 -dnl Copyright (C) 2002-2004, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2004, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/mempcpy.m4 pax-utils-1.1.5/autotools/m4/mempcpy.m4 --- pax-utils-1.1.4/autotools/m4/mempcpy.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/mempcpy.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # mempcpy.m4 serial 11 -dnl Copyright (C) 2003-2004, 2006-2007, 2009-2015 Free Software Foundation, +dnl Copyright (C) 2003-2004, 2006-2007, 2009-2016 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/memrchr.m4 pax-utils-1.1.5/autotools/m4/memrchr.m4 --- pax-utils-1.1.4/autotools/m4/memrchr.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/memrchr.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # memrchr.m4 serial 10 -dnl Copyright (C) 2002-2003, 2005-2007, 2009-2015 Free Software Foundation, +dnl Copyright (C) 2002-2003, 2005-2007, 2009-2016 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/mkdirat.m4 pax-utils-1.1.5/autotools/m4/mkdirat.m4 --- pax-utils-1.1.4/autotools/m4/mkdirat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/mkdirat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # mkdirat.m4 serial 1 -dnl Copyright (C) 2004-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2004-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/mkdir.m4 pax-utils-1.1.5/autotools/m4/mkdir.m4 --- pax-utils-1.1.4/autotools/m4/mkdir.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/mkdir.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # serial 11 -# Copyright (C) 2001, 2003-2004, 2006, 2008-2015 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003-2004, 2006, 2008-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/mmap-anon.m4 pax-utils-1.1.5/autotools/m4/mmap-anon.m4 --- pax-utils-1.1.4/autotools/m4/mmap-anon.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/mmap-anon.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # mmap-anon.m4 serial 10 -dnl Copyright (C) 2005, 2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2005, 2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/mode_t.m4 pax-utils-1.1.5/autotools/m4/mode_t.m4 --- pax-utils-1.1.4/autotools/m4/mode_t.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/mode_t.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # mode_t.m4 serial 2 -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/msvc-inval.m4 pax-utils-1.1.5/autotools/m4/msvc-inval.m4 --- pax-utils-1.1.4/autotools/m4/msvc-inval.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/msvc-inval.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # msvc-inval.m4 serial 1 -dnl Copyright (C) 2011-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2011-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/msvc-nothrow.m4 pax-utils-1.1.5/autotools/m4/msvc-nothrow.m4 --- pax-utils-1.1.4/autotools/m4/msvc-nothrow.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/msvc-nothrow.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # msvc-nothrow.m4 serial 1 -dnl Copyright (C) 2011-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2011-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/multiarch.m4 pax-utils-1.1.5/autotools/m4/multiarch.m4 --- pax-utils-1.1.4/autotools/m4/multiarch.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/multiarch.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # multiarch.m4 serial 7 -dnl Copyright (C) 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/nocrash.m4 pax-utils-1.1.5/autotools/m4/nocrash.m4 --- pax-utils-1.1.4/autotools/m4/nocrash.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/nocrash.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # nocrash.m4 serial 4 -dnl Copyright (C) 2005, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2005, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/off_t.m4 pax-utils-1.1.5/autotools/m4/off_t.m4 --- pax-utils-1.1.4/autotools/m4/off_t.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/off_t.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # off_t.m4 serial 1 -dnl Copyright (C) 2012-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2012-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/openat.m4 pax-utils-1.1.5/autotools/m4/openat.m4 --- pax-utils-1.1.4/autotools/m4/openat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/openat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # serial 45 # See if we need to use our replacement for Solaris' openat et al functions. -dnl Copyright (C) 2004-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2004-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/opendir.m4 pax-utils-1.1.5/autotools/m4/opendir.m4 --- pax-utils-1.1.4/autotools/m4/opendir.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/opendir.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ -# opendir.m4 serial 2 -dnl Copyright (C) 2011-2015 Free Software Foundation, Inc. +# opendir.m4 serial 4 +dnl Copyright (C) 2011-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -22,4 +22,10 @@ fi fi ]) + dnl Replace opendir() on OS/2 kLIBC to support dirfd() function replaced + dnl by gnulib. + case $host_os,$HAVE_OPENDIR in + os2*,1) + REPLACE_OPENDIR=1;; + esac ]) diff -Nru pax-utils-1.1.4/autotools/m4/open.m4 pax-utils-1.1.5/autotools/m4/open.m4 --- pax-utils-1.1.4/autotools/m4/open.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/open.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # open.m4 serial 14 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/pathmax.m4 pax-utils-1.1.5/autotools/m4/pathmax.m4 --- pax-utils-1.1.4/autotools/m4/pathmax.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/pathmax.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # pathmax.m4 serial 10 -dnl Copyright (C) 2002-2003, 2005-2006, 2009-2015 Free Software Foundation, +dnl Copyright (C) 2002-2003, 2005-2006, 2009-2016 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/printf-frexpl.m4 pax-utils-1.1.5/autotools/m4/printf-frexpl.m4 --- pax-utils-1.1.4/autotools/m4/printf-frexpl.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/printf-frexpl.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # printf-frexpl.m4 serial 10 -dnl Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/printf-frexp.m4 pax-utils-1.1.5/autotools/m4/printf-frexp.m4 --- pax-utils-1.1.4/autotools/m4/printf-frexp.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/printf-frexp.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # printf-frexp.m4 serial 5 -dnl Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/printf.m4 pax-utils-1.1.5/autotools/m4/printf.m4 --- pax-utils-1.1.4/autotools/m4/printf.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/printf.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # printf.m4 serial 52 -dnl Copyright (C) 2003, 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2003, 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/readlinkat.m4 pax-utils-1.1.5/autotools/m4/readlinkat.m4 --- pax-utils-1.1.4/autotools/m4/readlinkat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/readlinkat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # serial 5 # See if we need to provide readlinkat replacement. -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/readlink.m4 pax-utils-1.1.5/autotools/m4/readlink.m4 --- pax-utils-1.1.4/autotools/m4/readlink.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/readlink.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # readlink.m4 serial 12 -dnl Copyright (C) 2003, 2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2003, 2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/realloc.m4 pax-utils-1.1.5/autotools/m4/realloc.m4 --- pax-utils-1.1.4/autotools/m4/realloc.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/realloc.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # realloc.m4 serial 13 -dnl Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/renameat.m4 pax-utils-1.1.5/autotools/m4/renameat.m4 --- pax-utils-1.1.4/autotools/m4/renameat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/renameat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # serial 3 # See if we need to provide renameat replacement. -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/rename.m4 pax-utils-1.1.5/autotools/m4/rename.m4 --- pax-utils-1.1.4/autotools/m4/rename.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/rename.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # serial 26 -# Copyright (C) 2001, 2003, 2005-2006, 2009-2015 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005-2006, 2009-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/rmdir.m4 pax-utils-1.1.5/autotools/m4/rmdir.m4 --- pax-utils-1.1.4/autotools/m4/rmdir.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/rmdir.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # rmdir.m4 serial 13 -dnl Copyright (C) 2002, 2005, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002, 2005, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/save-cwd.m4 pax-utils-1.1.5/autotools/m4/save-cwd.m4 --- pax-utils-1.1.4/autotools/m4/save-cwd.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/save-cwd.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # serial 10 -dnl Copyright (C) 2002-2006, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2006, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/signbit.m4 pax-utils-1.1.5/autotools/m4/signbit.m4 --- pax-utils-1.1.4/autotools/m4/signbit.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/signbit.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # signbit.m4 serial 13 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/size_max.m4 pax-utils-1.1.5/autotools/m4/size_max.m4 --- pax-utils-1.1.4/autotools/m4/size_max.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/size_max.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # size_max.m4 serial 10 -dnl Copyright (C) 2003, 2005-2006, 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2003, 2005-2006, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/ssize_t.m4 pax-utils-1.1.5/autotools/m4/ssize_t.m4 --- pax-utils-1.1.4/autotools/m4/ssize_t.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/ssize_t.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # ssize_t.m4 serial 5 (gettext-0.18.2) -dnl Copyright (C) 2001-2003, 2006, 2010-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2001-2003, 2006, 2010-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/stat.m4 pax-utils-1.1.5/autotools/m4/stat.m4 --- pax-utils-1.1.4/autotools/m4/stat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/stat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # serial 11 -# Copyright (C) 2009-2015 Free Software Foundation, Inc. +# Copyright (C) 2009-2016 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/stat-time.m4 pax-utils-1.1.5/autotools/m4/stat-time.m4 --- pax-utils-1.1.4/autotools/m4/stat-time.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/stat-time.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # Checks for stat-related time functions. -# Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2015 Free Software +# Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2016 Free Software # Foundation, Inc. # This file is free software; the Free Software Foundation diff -Nru pax-utils-1.1.4/autotools/m4/stdbool.m4 pax-utils-1.1.5/autotools/m4/stdbool.m4 --- pax-utils-1.1.4/autotools/m4/stdbool.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/stdbool.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # Check for stdbool.h that conforms to C99. -dnl Copyright (C) 2002-2006, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2006, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/stddef_h.m4 pax-utils-1.1.5/autotools/m4/stddef_h.m4 --- pax-utils-1.1.4/autotools/m4/stddef_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/stddef_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ dnl A placeholder for , for platforms that have issues. # stddef_h.m4 serial 5 -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/stdint_h.m4 pax-utils-1.1.5/autotools/m4/stdint_h.m4 --- pax-utils-1.1.4/autotools/m4/stdint_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/stdint_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # stdint_h.m4 serial 9 -dnl Copyright (C) 1997-2004, 2006, 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 1997-2004, 2006, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/stdint.m4 pax-utils-1.1.5/autotools/m4/stdint.m4 --- pax-utils-1.1.4/autotools/m4/stdint.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/stdint.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # stdint.m4 serial 43 -dnl Copyright (C) 2001-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2001-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/stdio_h.m4 pax-utils-1.1.5/autotools/m4/stdio_h.m4 --- pax-utils-1.1.4/autotools/m4/stdio_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/stdio_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # stdio_h.m4 serial 46 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/stdlib_h.m4 pax-utils-1.1.5/autotools/m4/stdlib_h.m4 --- pax-utils-1.1.4/autotools/m4/stdlib_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/stdlib_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # stdlib_h.m4 serial 42 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/strcase.m4 pax-utils-1.1.5/autotools/m4/strcase.m4 --- pax-utils-1.1.4/autotools/m4/strcase.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/strcase.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # strcase.m4 serial 11 -dnl Copyright (C) 2002, 2005-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002, 2005-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/strcasestr.m4 pax-utils-1.1.5/autotools/m4/strcasestr.m4 --- pax-utils-1.1.4/autotools/m4/strcasestr.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/strcasestr.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # strcasestr.m4 serial 21 -dnl Copyright (C) 2005, 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2005, 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/strdup.m4 pax-utils-1.1.5/autotools/m4/strdup.m4 --- pax-utils-1.1.4/autotools/m4/strdup.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/strdup.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # strdup.m4 serial 13 -dnl Copyright (C) 2002-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/strerror.m4 pax-utils-1.1.5/autotools/m4/strerror.m4 --- pax-utils-1.1.4/autotools/m4/strerror.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/strerror.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # strerror.m4 serial 17 -dnl Copyright (C) 2002, 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002, 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/string_h.m4 pax-utils-1.1.5/autotools/m4/string_h.m4 --- pax-utils-1.1.4/autotools/m4/string_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/string_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # Configure a GNU-like replacement for . -# Copyright (C) 2007-2015 Free Software Foundation, Inc. +# Copyright (C) 2007-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/strings_h.m4 pax-utils-1.1.5/autotools/m4/strings_h.m4 --- pax-utils-1.1.4/autotools/m4/strings_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/strings_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # Configure a replacement for . # serial 6 -# Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. +# Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/strncat.m4 pax-utils-1.1.5/autotools/m4/strncat.m4 --- pax-utils-1.1.4/autotools/m4/strncat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/strncat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # strncat.m4 serial 2 -dnl Copyright (C) 2002-2004, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2004, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/symlinkat.m4 pax-utils-1.1.5/autotools/m4/symlinkat.m4 --- pax-utils-1.1.4/autotools/m4/symlinkat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/symlinkat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # serial 6 # See if we need to provide symlinkat replacement. -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/symlink.m4 pax-utils-1.1.5/autotools/m4/symlink.m4 --- pax-utils-1.1.4/autotools/m4/symlink.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/symlink.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # serial 6 # See if we need to provide symlink replacement. -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/sys_socket_h.m4 pax-utils-1.1.5/autotools/m4/sys_socket_h.m4 --- pax-utils-1.1.4/autotools/m4/sys_socket_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/sys_socket_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # sys_socket_h.m4 serial 23 -dnl Copyright (C) 2005-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2005-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/sys_stat_h.m4 pax-utils-1.1.5/autotools/m4/sys_stat_h.m4 --- pax-utils-1.1.4/autotools/m4/sys_stat_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/sys_stat_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # sys_stat_h.m4 serial 28 -*- Autoconf -*- -dnl Copyright (C) 2006-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2006-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/sys_time_h.m4 pax-utils-1.1.5/autotools/m4/sys_time_h.m4 --- pax-utils-1.1.4/autotools/m4/sys_time_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/sys_time_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # Configure a replacement for . # serial 8 -# Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc. +# Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/sys_types_h.m4 pax-utils-1.1.5/autotools/m4/sys_types_h.m4 --- pax-utils-1.1.4/autotools/m4/sys_types_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/sys_types_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # sys_types_h.m4 serial 5 -dnl Copyright (C) 2011-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2011-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/time_h.m4 pax-utils-1.1.5/autotools/m4/time_h.m4 --- pax-utils-1.1.4/autotools/m4/time_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/time_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # Configure a more-standard replacement for . -# Copyright (C) 2000-2001, 2003-2007, 2009-2015 Free Software Foundation, Inc. +# Copyright (C) 2000-2001, 2003-2007, 2009-2016 Free Software Foundation, Inc. # serial 9 diff -Nru pax-utils-1.1.4/autotools/m4/timespec.m4 pax-utils-1.1.5/autotools/m4/timespec.m4 --- pax-utils-1.1.4/autotools/m4/timespec.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/timespec.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ #serial 15 -# Copyright (C) 2000-2001, 2003-2007, 2009-2015 Free Software Foundation, Inc. +# Copyright (C) 2000-2001, 2003-2007, 2009-2016 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/unistd_h.m4 pax-utils-1.1.5/autotools/m4/unistd_h.m4 --- pax-utils-1.1.4/autotools/m4/unistd_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/unistd_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # unistd_h.m4 serial 68 -dnl Copyright (C) 2006-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2006-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/unistd-safer.m4 pax-utils-1.1.5/autotools/m4/unistd-safer.m4 --- pax-utils-1.1.4/autotools/m4/unistd-safer.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/unistd-safer.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ #serial 9 -dnl Copyright (C) 2002, 2005-2006, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002, 2005-2006, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/unlinkat.m4 pax-utils-1.1.5/autotools/m4/unlinkat.m4 --- pax-utils-1.1.4/autotools/m4/unlinkat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/unlinkat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # unlinkat.m4 serial 2 -dnl Copyright (C) 2004-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2004-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/unlink.m4 pax-utils-1.1.5/autotools/m4/unlink.m4 --- pax-utils-1.1.4/autotools/m4/unlink.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/unlink.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # unlink.m4 serial 11 -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/utimbuf.m4 pax-utils-1.1.5/autotools/m4/utimbuf.m4 --- pax-utils-1.1.4/autotools/m4/utimbuf.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/utimbuf.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ # serial 9 -# Copyright (C) 1998-2001, 2003-2004, 2007, 2009-2015 Free Software Foundation, +# Copyright (C) 1998-2001, 2003-2004, 2007, 2009-2016 Free Software Foundation, # Inc. # # This file is free software; the Free Software Foundation diff -Nru pax-utils-1.1.4/autotools/m4/utimensat.m4 pax-utils-1.1.5/autotools/m4/utimensat.m4 --- pax-utils-1.1.4/autotools/m4/utimensat.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/utimensat.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # serial 5 # See if we need to provide utimensat replacement. -dnl Copyright (C) 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/utimens.m4 pax-utils-1.1.5/autotools/m4/utimens.m4 --- pax-utils-1.1.4/autotools/m4/utimens.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/utimens.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,4 +1,4 @@ -dnl Copyright (C) 2003-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2003-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/utimes.m4 pax-utils-1.1.5/autotools/m4/utimes.m4 --- pax-utils-1.1.4/autotools/m4/utimes.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/utimes.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,7 +1,7 @@ # Detect some bugs in glibc's implementation of utimes. -# serial 3 +# serial 4 -dnl Copyright (C) 2003-2005, 2009-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2003-2005, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -33,6 +33,7 @@ #include #include #include +#include static int inorder (time_t a, time_t b, time_t c) @@ -45,7 +46,10 @@ { int result = 0; char const *file = "conftest.utimes"; - static struct timeval timeval[2] = {{9, 10}, {999999, 999999}}; + /* On OS/2, file timestamps must be on or after 1980 in local time, + with an even number of seconds. */ + static struct timeval timeval[2] = {{315620000 + 10, 10}, + {315620000 + 1000000, 999998}}; /* Test whether utimes() essentially works. */ { @@ -82,9 +86,19 @@ result |= 1; else if (fstat (fd, &st0) != 0) result |= 1; - else if (utimes (file, timeval) != 0) + else if (utimes (file, timeval) != 0 + && (errno != EACCES + /* OS/2 kLIBC utimes fails on opened files. */ + || close (fd) != 0 + || utimes (file, timeval) != 0 + || (fd = open (file, O_WRONLY)) < 0)) result |= 2; - else if (utimes (file, NULL) != 0) + else if (utimes (file, NULL) != 0 + && (errno != EACCES + /* OS/2 kLIBC utimes fails on opened files. */ + || close (fd) != 0 + || utimes (file, NULL) != 0 + || (fd = open (file, O_WRONLY)) < 0)) result |= 8; else if (fstat (fd, &st1) != 0) result |= 1; diff -Nru pax-utils-1.1.4/autotools/m4/vasnprintf.m4 pax-utils-1.1.5/autotools/m4/vasnprintf.m4 --- pax-utils-1.1.4/autotools/m4/vasnprintf.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/vasnprintf.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # vasnprintf.m4 serial 36 -dnl Copyright (C) 2002-2004, 2006-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2004, 2006-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/vasprintf.m4 pax-utils-1.1.5/autotools/m4/vasprintf.m4 --- pax-utils-1.1.4/autotools/m4/vasprintf.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/vasprintf.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # vasprintf.m4 serial 6 -dnl Copyright (C) 2002-2003, 2006-2007, 2009-2015 Free Software Foundation, +dnl Copyright (C) 2002-2003, 2006-2007, 2009-2016 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff -Nru pax-utils-1.1.4/autotools/m4/vasprintf-posix.m4 pax-utils-1.1.5/autotools/m4/vasprintf-posix.m4 --- pax-utils-1.1.4/autotools/m4/vasprintf-posix.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/vasprintf-posix.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # vasprintf-posix.m4 serial 13 -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/warn-on-use.m4 pax-utils-1.1.5/autotools/m4/warn-on-use.m4 --- pax-utils-1.1.4/autotools/m4/warn-on-use.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/warn-on-use.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # warn-on-use.m4 serial 5 -dnl Copyright (C) 2010-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2010-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/wchar_h.m4 pax-utils-1.1.5/autotools/m4/wchar_h.m4 --- pax-utils-1.1.4/autotools/m4/wchar_h.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/wchar_h.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,6 +1,6 @@ dnl A placeholder for ISO C99 , for platforms that have issues. -dnl Copyright (C) 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/wchar_t.m4 pax-utils-1.1.5/autotools/m4/wchar_t.m4 --- pax-utils-1.1.4/autotools/m4/wchar_t.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/wchar_t.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # wchar_t.m4 serial 4 (gettext-0.18.2) -dnl Copyright (C) 2002-2003, 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2003, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/wint_t.m4 pax-utils-1.1.5/autotools/m4/wint_t.m4 --- pax-utils-1.1.4/autotools/m4/wint_t.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/wint_t.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # wint_t.m4 serial 5 (gettext-0.18.2) -dnl Copyright (C) 2003, 2007-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2003, 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/m4/xsize.m4 pax-utils-1.1.5/autotools/m4/xsize.m4 --- pax-utils-1.1.4/autotools/m4/xsize.m4 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/m4/xsize.m4 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ # xsize.m4 serial 5 -dnl Copyright (C) 2003-2004, 2008-2015 Free Software Foundation, Inc. +dnl Copyright (C) 2003-2004, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru pax-utils-1.1.4/autotools/snippet/arg-nonnull.h pax-utils-1.1.5/autotools/snippet/arg-nonnull.h --- pax-utils-1.1.4/autotools/snippet/arg-nonnull.h 2015-10-26 04:29:29.000000000 +0000 +++ pax-utils-1.1.5/autotools/snippet/arg-nonnull.h 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ /* A C macro for declaring that specific arguments must not be NULL. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff -Nru pax-utils-1.1.4/autotools/snippet/c++defs.h pax-utils-1.1.5/autotools/snippet/c++defs.h --- pax-utils-1.1.4/autotools/snippet/c++defs.h 2015-10-26 04:29:30.000000000 +0000 +++ pax-utils-1.1.5/autotools/snippet/c++defs.h 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ /* C++ compatible function declaration macros. - Copyright (C) 2010-2015 Free Software Foundation, Inc. + Copyright (C) 2010-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff -Nru pax-utils-1.1.4/autotools/snippet/warn-on-use.h pax-utils-1.1.5/autotools/snippet/warn-on-use.h --- pax-utils-1.1.4/autotools/snippet/warn-on-use.h 2015-10-26 04:29:30.000000000 +0000 +++ pax-utils-1.1.5/autotools/snippet/warn-on-use.h 2016-02-10 19:17:04.000000000 +0000 @@ -1,5 +1,5 @@ /* A C macro for emitting warnings if a function is used. - Copyright (C) 2010-2015 Free Software Foundation, Inc. + Copyright (C) 2010-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff -Nru pax-utils-1.1.4/config.h.in pax-utils-1.1.5/config.h.in --- pax-utils-1.1.4/config.h.in 2015-10-26 04:30:20.000000000 +0000 +++ pax-utils-1.1.5/config.h.in 2016-02-10 19:17:59.000000000 +0000 @@ -1671,6 +1671,9 @@ such as on Solaris 9 or cygwin 1.5. */ #undef RENAME_TRAILING_SLASH_SOURCE_BUG +/* Define to 1 if gnulib's dirfd() replacement is used. */ +#undef REPLACE_DIRFD + /* Define to 1 if gnulib's fchdir() replacement is used. */ #undef REPLACE_FCHDIR diff -Nru pax-utils-1.1.4/configure pax-utils-1.1.5/configure --- pax-utils-1.1.4/configure 2015-10-26 04:30:19.000000000 +0000 +++ pax-utils-1.1.5/configure 2016-02-10 19:17:57.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for pax-utils v1.1.4. +# Generated by GNU Autoconf 2.69 for pax-utils v1.1.5. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -587,8 +587,8 @@ # Identity of this package. PACKAGE_NAME='pax-utils' PACKAGE_TARNAME='pax-utils' -PACKAGE_VERSION='v1.1.4' -PACKAGE_STRING='pax-utils v1.1.4' +PACKAGE_VERSION='v1.1.5' +PACKAGE_STRING='pax-utils v1.1.5' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -2266,7 +2266,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures pax-utils v1.1.4 to adapt to many kinds of systems. +\`configure' configures pax-utils v1.1.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -2336,7 +2336,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of pax-utils v1.1.4:";; + short | recursive ) echo "Configuration of pax-utils v1.1.5:";; esac cat <<\_ACEOF @@ -2463,7 +2463,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -pax-utils configure v1.1.4 +pax-utils configure v1.1.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -3168,7 +3168,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by pax-utils $as_me v1.1.4, which was +It was created by pax-utils $as_me v1.1.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -4080,7 +4080,7 @@ # Define the identity of the package. PACKAGE='pax-utils' - VERSION='v1.1.4' + VERSION='v1.1.5' cat >>confdefs.h <<_ACEOF @@ -13925,6 +13925,13 @@ + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; } if ${gl_cv_c_amsterdam_compiler+:} false; then : @@ -13951,14 +13958,189 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; } - if test -z "$AR"; then - if test $gl_cv_c_amsterdam_compiler = yes; then + + if test $gl_cv_c_amsterdam_compiler = yes; then + if test -z "$AR"; then AR='cc -c.a' - if test -z "$ARFLAGS"; then - ARFLAGS='-o' + fi + if test -z "$ARFLAGS"; then + ARFLAGS='-o' + fi + else + if test -n "$ac_tool_prefix"; then + for ac_prog in ar lib "link -lib" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar lib "link -lib" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 +$as_echo_n "checking the archiver ($AR) interface... " >&6; } +if ${am_cv_ar_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + am_cv_ar_interface=ar + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int some_variable = 0; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 + (eval $am_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + am_cv_ar_interface=ar + else + am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 + (eval $am_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + am_cv_ar_interface=lib + else + am_cv_ar_interface=unknown + fi fi - else - if test -n "$ac_tool_prefix"; then + rm -f conftest.lib libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 +$as_echo "$am_cv_ar_interface" >&6; } + +case $am_cv_ar_interface in +ar) + ;; +lib) + # Microsoft lib, so override with the ar-lib wrapper script. + # FIXME: It is wrong to rewrite AR. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__AR in this case, + # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something + # similar. + AR="$am_aux_dir/ar-lib $AR" + ;; +unknown) + as_fn_error $? "could not determine $AR interface" "$LINENO" 5 + ;; +esac + + fi + + if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 @@ -14050,17 +14232,12 @@ AR="$ac_cv_prog_AR" fi - if test -z "$ARFLAGS"; then - ARFLAGS='cr' - fi - fi - else - if test -z "$ARFLAGS"; then - ARFLAGS='cr' - fi + if test -z "$ARFLAGS"; then + ARFLAGS='cr' fi + if test -z "$RANLIB"; then if test $gl_cv_c_amsterdam_compiler = yes; then RANLIB=':' @@ -14164,12 +14341,6 @@ - - - - - - # IEEE behaviour is the default on all CPUs except Alpha and SH # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4 # and the GCC 4.1.2 manual). @@ -14400,6 +14571,10 @@ + # Pre-early section. + + + # Code from module absolute-header: # Code from module alloca: # Code from module alloca-opt: @@ -14424,7 +14599,6 @@ # Code from module euidaccess: # Code from module exitfail: # Code from module extensions: - # Code from module extern-inline: # Code from module faccessat: # Code from module fchdir: @@ -19162,6 +19336,9 @@ + + + gl_cv_c_multiarch=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -20951,6 +21128,7 @@ #include #include #include +#include static int inorder (time_t a, time_t b, time_t c) @@ -20963,7 +21141,10 @@ { int result = 0; char const *file = "conftest.utimes"; - static struct timeval timeval[2] = {{9, 10}, {999999, 999999}}; + /* On OS/2, file timestamps must be on or after 1980 in local time, + with an even number of seconds. */ + static struct timeval timeval[2] = {{315620000 + 10, 10}, + {315620000 + 1000000, 999998}}; /* Test whether utimes() essentially works. */ { @@ -21000,9 +21181,19 @@ result |= 1; else if (fstat (fd, &st0) != 0) result |= 1; - else if (utimes (file, timeval) != 0) + else if (utimes (file, timeval) != 0 + && (errno != EACCES + /* OS/2 kLIBC utimes fails on opened files. */ + || close (fd) != 0 + || utimes (file, timeval) != 0 + || (fd = open (file, O_WRONLY)) < 0)) result |= 2; - else if (utimes (file, NULL) != 0) + else if (utimes (file, NULL) != 0 + && (errno != EACCES + /* OS/2 kLIBC utimes fails on opened files. */ + || close (fd) != 0 + || utimes (file, NULL) != 0 + || (fd = open (file, O_WRONLY)) < 0)) result |= 8; else if (fstat (fd, &st1) != 0) result |= 1; @@ -23424,6 +23615,10 @@ fi fi + case $host_os,$HAVE_CLOSEDIR in + os2*,1) + REPLACE_CLOSEDIR=1;; + esac if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then @@ -23640,15 +23835,19 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5 $as_echo "$gl_cv_func_dirfd_macro" >&6; } - # Use the replacement only if we have no function or macro with that name. - if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then - if test $ac_cv_have_decl_dirfd = yes; then - # If the system declares dirfd already, let's declare rpl_dirfd instead. + # Use the replacement if we have no function or macro with that name, + # or if OS/2 kLIBC whose dirfd() does not work. + # Replace only if the system declares dirfd already. + case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in + no,no,*,yes | *,*,os2*,yes) REPLACE_DIRFD=1 - fi - fi - if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then +$as_echo "#define REPLACE_DIRFD 1" >>confdefs.h +;; + esac + + if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \ + || test $REPLACE_DIRFD = 1; then @@ -23785,6 +23984,50 @@ REPLACE_DUP=1 fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5 +$as_echo_n "checking whether dup works... " >&6; } +if ${gl_cv_func_dup_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + gl_cv_func_dup_works='guessing yes' +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + #include +int +main () +{ +/* On OS/2 kLIBC, dup does not work on a directory fd. */ + int fd = open (".", O_RDONLY); + return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0; + + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_dup_works=yes +else + gl_cv_func_dup_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5 +$as_echo "$gl_cv_func_dup_works" >&6; } + case "$gl_cv_func_dup_works" in + *yes) ;; + *) + REPLACE_DUP=1 + ;; + esac if test $REPLACE_DUP = 1; then @@ -23842,6 +24085,8 @@ gl_cv_func_dup2_works="guessing no" ;; *-android*) # implemented using dup3(), which fails if oldfd == newfd gl_cv_func_dup2_works="guessing no" ;; + os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. + gl_cv_func_dup2_works="guessing no" ;; *) gl_cv_func_dup2_works="guessing yes" ;; esac else @@ -23893,6 +24138,16 @@ result |= 32; dup2 (2, 255); dup2 (2, 256); + /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ + { + int fd = open (".", O_RDONLY); + if (fd == -1) + result |= 64; + else if (dup2 (fd, fd + 1) == -1) + result |= 128; + + close (fd); + } return result; ; return 0; @@ -24477,6 +24732,17 @@ if (errno != EINVAL) result |= 2; if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; if (errno != EINVAL) result |= 8; + /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ + { + int fd; + fd = open (".", O_RDONLY); + if (fd == -1) + result |= 16; + else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) + result |= 32; + + close (fd); + } return result; ; return 0; @@ -27824,17 +28090,6 @@ - - if test $ac_cv_func__set_invalid_parameter_handler = yes; then - HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 - -$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h - - else - HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 - fi - - if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then @@ -27848,8 +28103,6 @@ fi - - if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then @@ -28067,6 +28320,10 @@ fi fi + case $host_os,$HAVE_OPENDIR in + os2*,1) + REPLACE_OPENDIR=1;; + esac if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then @@ -34444,7 +34701,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by pax-utils $as_me v1.1.4, which was +This file was extended by pax-utils $as_me v1.1.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -34510,7 +34767,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -pax-utils config.status v1.1.4 +pax-utils config.status v1.1.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -Nru pax-utils-1.1.4/configure.ac pax-utils-1.1.5/configure.ac --- pax-utils-1.1.4/configure.ac 2015-10-26 04:29:16.000000000 +0000 +++ pax-utils-1.1.5/configure.ac 2016-02-10 19:16:51.000000000 +0000 @@ -1,5 +1,5 @@ AC_PREREQ([2.65]) -AC_INIT([pax-utils], [v1.1.4]) +AC_INIT([pax-utils], [v1.1.5]) AC_CONFIG_AUX_DIR([autotools]) AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip silent-rules -Wall]) AM_SILENT_RULES([yes]) # AM_INIT_AUTOMAKE([silent-rules]) is broken atm diff -Nru pax-utils-1.1.4/debian/changelog pax-utils-1.1.5/debian/changelog --- pax-utils-1.1.4/debian/changelog 2015-11-03 06:58:25.000000000 +0000 +++ pax-utils-1.1.5/debian/changelog 2016-02-11 12:40:56.000000000 +0000 @@ -1,3 +1,9 @@ +pax-utils (1.1.5-1) unstable; urgency=medium + + * Imported Upstream version 1.1.5 + + -- Tomasz Buchert Thu, 11 Feb 2016 13:40:44 +0100 + pax-utils (1.1.4-1) unstable; urgency=medium * Imported Upstream version 1.1.4 diff -Nru pax-utils-1.1.4/dumpelf.c pax-utils-1.1.5/dumpelf.c --- pax-utils-1.1.4/dumpelf.c 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/dumpelf.c 2016-02-10 19:16:43.000000000 +0000 @@ -12,14 +12,14 @@ /* prototypes */ static void dumpelf(const char *filename, long file_cnt); -static void dump_ehdr(elfobj *elf, void *ehdr); -static void dump_phdr(elfobj *elf, void *phdr, long phdr_cnt); -static void dump_shdr(elfobj *elf, void *shdr, long shdr_cnt, char *name); -static void dump_dyn(elfobj *elf, void *dyn, long dyn_cnt); +static void dump_ehdr(elfobj *elf, const void *ehdr); +static void dump_phdr(elfobj *elf, const void *phdr, long phdr_cnt); +static void dump_shdr(elfobj *elf, const void *shdr, long shdr_cnt, const char *name); +static void dump_dyn(elfobj *elf, const void *dyn, long dyn_cnt); #if 0 -static void dump_sym(elfobj *elf, void *sym); -static void dump_rel(elfobj *elf, void *rel); -static void dump_rela(elfobj *elf, void *rela); +static void dump_sym(elfobj *elf, const void *sym); +static void dump_rel(elfobj *elf, const void *rel); +static void dump_rela(elfobj *elf, const void *rela); #endif static void usage(int status); static void parseargs(int argc, char *argv[]); @@ -28,7 +28,7 @@ static char be_verbose = 0; /* misc dynamic tag caches */ -static void *phdr_dynamic_void = NULL; +static const void *phdr_dynamic_void; /* dump all internal elf info */ static void dumpelf(const char *filename, long file_cnt) @@ -40,6 +40,8 @@ if ((elf = readelf(filename)) == NULL) return; + phdr_dynamic_void = NULL; + printf("#include \n"); printf( @@ -79,8 +81,8 @@ if (elf->phdr) { #define DUMP_PHDRS(B) \ if (elf->elf_class == ELFCLASS ## B) { \ - Elf ## B ## _Ehdr *ehdr = EHDR ## B (elf->ehdr); \ - Elf ## B ## _Phdr *phdr = PHDR ## B (elf->phdr); \ + const Elf ## B ## _Ehdr *ehdr = EHDR ## B (elf->ehdr); \ + const Elf ## B ## _Phdr *phdr = PHDR ## B (elf->phdr); \ uint16_t phnum = EGET(ehdr->e_phnum); \ for (i = 0; i < phnum; ++i, ++phdr) \ dump_phdr(elf, phdr, i); \ @@ -97,12 +99,19 @@ if (elf->shdr) { #define DUMP_SHDRS(B) \ if (elf->elf_class == ELFCLASS ## B) { \ - Elf ## B ## _Ehdr *ehdr = EHDR ## B (elf->ehdr); \ - Elf ## B ## _Shdr *shdr = SHDR ## B (elf->shdr); \ + const Elf ## B ## _Ehdr *ehdr = EHDR ## B (elf->ehdr); \ + const Elf ## B ## _Shdr *shdr = SHDR ## B (elf->shdr); \ uint16_t shstrndx = EGET(ehdr->e_shstrndx); \ - Elf ## B ## _Off offset = EGET(shdr[shstrndx].sh_offset); \ + const Elf ## B ## _Shdr *strtbl = shdr + shstrndx; \ + Elf ## B ## _Off offset; \ uint16_t shnum = EGET(ehdr->e_shnum); \ + if (shstrndx >= shnum || !VALID_SHDR(elf, strtbl)) { \ + printf(" /* corrupt section header strings table ! */ "); \ + goto break_out_shdr; \ + } \ + offset = EGET(strtbl->sh_offset); \ for (i = 0; i < shnum; ++i, ++shdr) \ + /* Don't use VALID_SHDR as we want to decode the fields */ \ dump_shdr(elf, shdr, i, elf->vdata + offset + EGET(shdr->sh_name)); \ } DUMP_SHDRS(32) @@ -110,6 +119,7 @@ } else { printf(" /* no section headers ! */ "); } + break_out_shdr: printf("},\n"); /* finish the namespace struct and start the abitrary ones */ @@ -121,10 +131,14 @@ if (phdr_dynamic_void) { #define DUMP_DYNS(B) \ if (elf->elf_class == ELFCLASS ## B) { \ - Elf ## B ## _Phdr *phdr = phdr_dynamic_void; \ - Elf ## B ## _Dyn *dyn = elf->vdata + EGET(phdr->p_offset); \ + const Elf ## B ## _Phdr *phdr = phdr_dynamic_void; \ + const Elf ## B ## _Dyn *dyn = elf->vdata + EGET(phdr->p_offset); \ i = 0; \ do { \ + if ((void *)dyn >= elf->data_end - sizeof(*dyn)) { \ + printf(" /* invalid dynamic tags ! */ "); \ + break; \ + } \ dump_dyn(elf, dyn++, i++); \ } while (EGET(dyn->d_tag) != DT_NULL); \ } @@ -138,11 +152,12 @@ /* get out of here */ unreadelf(elf); } -static void dump_ehdr(elfobj *elf, void *ehdr_void) + +static void dump_ehdr(elfobj *elf, const void *ehdr_void) { #define DUMP_EHDR(B) \ if (elf->elf_class == ELFCLASS ## B) { \ - Elf ## B ## _Ehdr *ehdr = EHDR ## B (ehdr_void); \ + const Elf ## B ## _Ehdr *ehdr = EHDR ## B (ehdr_void); \ printf(".ehdr = {\n"); \ printf("\t.e_ident = { /* (EI_NIDENT bytes) */\n" \ "\t\t/* [%i] EI_MAG: */ 0x%X,'%c','%c','%c',\n" \ @@ -151,8 +166,7 @@ "\t\t/* [%i] EI_VERSION: */ %i , /* (%s) */\n" \ "\t\t/* [%i] EI_OSABI: */ %i , /* (%s) */\n" \ "\t\t/* [%i] EI_ABIVERSION: */ %i ,\n" \ - "\t\t/* [%i] EI_PAD: */ 0x%02X /* x %i bytes */\n" \ - /* "\t\t/ [%i] EI_BRAND: / 0x%02X\n" */ \ + "\t\t/* [%i-%i] EI_PAD: */ 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X,\n" \ "\t},\n", \ EI_MAG0, (unsigned int)ehdr->e_ident[EI_MAG0], ehdr->e_ident[EI_MAG1], ehdr->e_ident[EI_MAG2], ehdr->e_ident[EI_MAG3], \ EI_CLASS, (int)ehdr->e_ident[EI_CLASS], get_elfeitype(EI_CLASS, ehdr->e_ident[EI_CLASS]), \ @@ -160,18 +174,25 @@ EI_VERSION, (int)ehdr->e_ident[EI_VERSION], get_elfeitype(EI_VERSION, ehdr->e_ident[EI_VERSION]), \ EI_OSABI, (int)ehdr->e_ident[EI_OSABI], get_elfeitype(EI_OSABI, ehdr->e_ident[EI_OSABI]), \ EI_ABIVERSION, (int)ehdr->e_ident[EI_ABIVERSION], \ - EI_PAD, (unsigned int)ehdr->e_ident[EI_PAD], EI_NIDENT - EI_PAD \ - /* EI_BRAND, ehdr->e_ident[EI_BRAND] */ \ + EI_PAD, EI_NIDENT - 1, \ + (unsigned int)ehdr->e_ident[EI_PAD + 0], \ + (unsigned int)ehdr->e_ident[EI_PAD + 1], \ + (unsigned int)ehdr->e_ident[EI_PAD + 2], \ + (unsigned int)ehdr->e_ident[EI_PAD + 3], \ + (unsigned int)ehdr->e_ident[EI_PAD + 4], \ + (unsigned int)ehdr->e_ident[EI_PAD + 5], \ + (unsigned int)ehdr->e_ident[EI_PAD + 6] \ ); \ printf("\t.e_type = %-10i , /* (%s) */\n", (int)EGET(ehdr->e_type), get_elfetype(elf)); \ printf("\t.e_machine = %-10i , /* (%s) */\n", (int)EGET(ehdr->e_machine), get_elfemtype(elf)); \ - printf("\t.e_version = %-10i ,\n", (int)EGET(ehdr->e_version)); \ - printf("\t.e_entry = 0x%-8lX ,\n", (unsigned long)EGET(ehdr->e_entry)); \ + printf("\t.e_version = %-10i , /* (%s) */\n", (int)EGET(ehdr->e_version), get_elfeitype(EI_VERSION, EGET(ehdr->e_version))); \ + printf("\t.e_entry = 0x%-8lX , /* (start address at runtime) */\n", (unsigned long)EGET(ehdr->e_entry)); \ printf("\t.e_phoff = %-10li , /* (bytes into file) */\n", (unsigned long)EGET(ehdr->e_phoff)); \ printf("\t.e_shoff = %-10li , /* (bytes into file) */\n", (unsigned long)EGET(ehdr->e_shoff)); \ printf("\t.e_flags = 0x%-8X ,\n", (unsigned int)EGET(ehdr->e_flags)); \ printf("\t.e_ehsize = %-10i , /* (bytes) */\n", (int)EGET(ehdr->e_ehsize)); \ printf("\t.e_phentsize = %-10i , /* (bytes) */\n", (int)EGET(ehdr->e_phentsize)); \ + /* TODO: Handle PN_XNUM */ \ printf("\t.e_phnum = %-10i , /* (program headers) */\n", (int)EGET(ehdr->e_phnum)); \ printf("\t.e_shentsize = %-10i , /* (bytes) */\n", (int)EGET(ehdr->e_shentsize)); \ printf("\t.e_shnum = %-10i , /* (section headers) */\n", (int)EGET(ehdr->e_shnum)); \ @@ -181,50 +202,101 @@ DUMP_EHDR(32) DUMP_EHDR(64) } -static void dump_phdr(elfobj *elf, void *phdr_void, long phdr_cnt) + +static const char *dump_p_flags(uint32_t type, uint32_t flags) +{ + static char buf[1024]; + char *p = buf; + p[0] = p[1] = p[2] = '\0'; + + if (flags & PF_R) + p = stpcpy(p, " | PF_R"); + if (flags & PF_W) + p = stpcpy(p, " | PF_W"); + if (flags & PF_X) + p = stpcpy(p, " | PF_X"); + flags &= ~(PF_R | PF_W | PF_X); + + switch (type) { + case PT_PAX_FLAGS: +#define X(b) if (flags & b) { p = stpcpy(p, " | " #b); flags &= ~b; } + X(PF_PAGEEXEC) X(PF_NOPAGEEXEC) + X(PF_SEGMEXEC) X(PF_NOSEGMEXEC) + X(PF_MPROTECT) X(PF_NOMPROTECT) + X(PF_RANDEXEC) X(PF_NORANDEXEC) + X(PF_EMUTRAMP) X(PF_NOEMUTRAMP) + X(PF_RANDMMAP) X(PF_NORANDMMAP) +#undef X + break; + } + + if (flags) + sprintf(p, " | 0x%X", flags); + + return buf + 3; +} +static void dump_phdr(elfobj *elf, const void *phdr_void, long phdr_cnt) { #define DUMP_PHDR(B) \ if (elf->elf_class == ELFCLASS ## B) { \ - Elf ## B ## _Phdr *phdr = PHDR ## B (phdr_void); \ - switch (EGET(phdr->p_type)) { \ + const Elf ## B ## _Phdr *phdr = PHDR ## B (phdr_void); \ + uint32_t p_type = EGET(phdr->p_type); \ + switch (p_type) { \ case PT_DYNAMIC: phdr_dynamic_void = phdr_void; break; \ } \ - printf("/* Program Header #%li 0x%lX */\n{\n", phdr_cnt, (unsigned long)phdr_void - (unsigned long)elf->data); \ - printf("\t.p_type = %-10li , /* [%s] */\n", (long)EGET(phdr->p_type), get_elfptype(EGET(phdr->p_type))); \ - printf("\t.p_offset = %-10li ,\n", (long)EGET(phdr->p_offset)); \ - printf("\t.p_vaddr = 0x%-8lX ,\n", (unsigned long)EGET(phdr->p_vaddr)); \ - printf("\t.p_paddr = 0x%-8lX ,\n", (unsigned long)EGET(phdr->p_paddr)); \ - printf("\t.p_filesz = %-10li ,\n", (long)EGET(phdr->p_filesz)); \ - printf("\t.p_memsz = %-10li ,\n", (long)EGET(phdr->p_memsz)); \ - printf("\t.p_flags = %-10li ,\n", (long)EGET(phdr->p_flags)); \ - printf("\t.p_align = %-10li\n", (long)EGET(phdr->p_align)); \ + printf("/* Program Header #%li 0x%lX */\n{\n", phdr_cnt, (uintptr_t)phdr_void - (uintptr_t)elf->data); \ + printf("\t.p_type = %-10li , /* [%s] */\n", (long)p_type, get_elfptype(p_type)); \ + printf("\t.p_offset = %-10li , /* (bytes into file) */\n", (long)EGET(phdr->p_offset)); \ + printf("\t.p_vaddr = 0x%-8lX , /* (virtual addr at runtime) */\n", (unsigned long)EGET(phdr->p_vaddr)); \ + printf("\t.p_paddr = 0x%-8lX , /* (physical addr at runtime) */\n", (unsigned long)EGET(phdr->p_paddr)); \ + printf("\t.p_filesz = %-10li , /* (bytes in file) */\n", (long)EGET(phdr->p_filesz)); \ + printf("\t.p_memsz = %-10li , /* (bytes in mem at runtime) */\n", (long)EGET(phdr->p_memsz)); \ + printf("\t.p_flags = 0x%-8lX , /* %s */\n", (unsigned long)EGET(phdr->p_flags), dump_p_flags(p_type, EGET(phdr->p_flags))); \ + printf("\t.p_align = %-10li , /* (min mem alignment in bytes) */\n", (long)EGET(phdr->p_align)); \ printf("},\n"); \ } DUMP_PHDR(32) DUMP_PHDR(64) } -static void dump_shdr(elfobj *elf, void *shdr_void, long shdr_cnt, char *name) + +static void dump_shdr(elfobj *elf, const void *shdr_void, long shdr_cnt, const char *name) { unsigned long i; + + /* Make sure the string is valid. */ + if ((void *)name >= elf->data_end) + name = ""; + else if (memchr(name, 0, elf->len - (name - elf->data)) == NULL) + name = ""; + #define DUMP_SHDR(B) \ if (elf->elf_class == ELFCLASS ## B) { \ - Elf ## B ## _Shdr *shdr = SHDR ## B (shdr_void); \ + const Elf ## B ## _Shdr *shdr = SHDR ## B (shdr_void); \ + Elf ## B ## _Off offset = EGET(shdr->sh_offset); \ uint32_t type = EGET(shdr->sh_type); \ uint ## B ## _t size = EGET(shdr->sh_size); \ + \ printf("/* Section Header #%li '%s' 0x%lX */\n{\n", \ - shdr_cnt, name, (unsigned long)shdr_void - (unsigned long)elf->data); \ + shdr_cnt, name, (uintptr_t)shdr_void - (uintptr_t)elf->data); \ printf("\t.sh_name = %-10i ,\n", (int)EGET(shdr->sh_name)); \ printf("\t.sh_type = %-10i , /* [%s] */\n", (int)EGET(shdr->sh_type), get_elfshttype(type)); \ printf("\t.sh_flags = %-10li ,\n", (long)EGET(shdr->sh_flags)); \ printf("\t.sh_addr = 0x%-8lX ,\n", (unsigned long)EGET(shdr->sh_addr)); \ - printf("\t.sh_offset = %-10i , /* (bytes) */\n", (int)EGET(shdr->sh_offset)); \ - printf("\t.sh_size = %-10li , /* (bytes) */\n", (long)EGET(shdr->sh_size)); \ + printf("\t.sh_offset = %-10li , /* (bytes) */\n", (long)offset); \ + printf("\t.sh_size = %-10lu , /* (bytes) */\n", (unsigned long)size); \ printf("\t.sh_link = %-10i ,\n", (int)EGET(shdr->sh_link)); \ printf("\t.sh_info = %-10i ,\n", (int)EGET(shdr->sh_info)); \ printf("\t.sh_addralign = %-10li ,\n", (long)EGET(shdr->sh_addralign)); \ printf("\t.sh_entsize = %-10li\n", (long)EGET(shdr->sh_entsize)); \ - if (size && be_verbose) { \ - void *vdata = elf->vdata + EGET(shdr->sh_offset); \ + \ + if (type == SHT_NOBITS) { \ + /* Special case so we can do valid check next. */ \ + if (be_verbose) \ + printf("\t/* NOBITS sections do not occupy the file. */\n"); \ + } else if (!(offset < (uint64_t)elf->len && size < (uint64_t)elf->len && offset <= elf->len - size)) { \ + printf(" /* corrupt section header ! */ "); \ + } else if (size && be_verbose) { \ + void *vdata = elf->vdata + offset; \ unsigned char *data = vdata; \ switch (type) { \ case SHT_PROGBITS: { \ @@ -234,6 +306,7 @@ } \ if (strcmp(name, ".comment") != 0) \ break; \ + break; \ } \ case SHT_STRTAB: { \ char b; \ @@ -291,14 +364,15 @@ DUMP_SHDR(32) DUMP_SHDR(64) } -static void dump_dyn(elfobj *elf, void *dyn_void, long dyn_cnt) + +static void dump_dyn(elfobj *elf, const void *dyn_void, long dyn_cnt) { #define DUMP_DYN(B) \ if (elf->elf_class == ELFCLASS ## B) { \ - Elf ## B ## _Dyn *dyn = dyn_void; \ + const Elf ## B ## _Dyn *dyn = dyn_void; \ unsigned long tag = EGET(dyn->d_tag); \ printf("/* Dynamic tag #%li '%s' 0x%lX */\n{\n", \ - dyn_cnt, get_elfdtype(tag), (unsigned long)dyn_void - (unsigned long)elf->data); \ + dyn_cnt, get_elfdtype(tag), (uintptr_t)dyn_void - (uintptr_t)elf->data); \ printf("\t.d_tag = 0x%-8lX ,\n", tag); \ printf("\t.d_un = {\n"); \ printf("\t\t.d_val = 0x%-8lX ,\n", (unsigned long)EGET(dyn->d_un.d_val)); \ diff -Nru pax-utils-1.1.4/.gitignore pax-utils-1.1.5/.gitignore --- pax-utils-1.1.4/.gitignore 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/.gitignore 2016-02-10 19:16:43.000000000 +0000 @@ -35,8 +35,10 @@ stamp-h1 /dumpelf +/lddtree /pspax /scanelf /scanmacho +/symtree /man/*.1 diff -Nru pax-utils-1.1.4/lddtree.py pax-utils-1.1.5/lddtree.py --- pax-utils-1.1.4/lddtree.py 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/lddtree.py 2016-02-10 19:16:43.000000000 +0000 @@ -338,9 +338,12 @@ if os.path.exists(target): with open(target, 'rb') as f: - libelf = ELFFile(f) - if CompatibleELFs(elf, libelf): - return (target, path) + try: + libelf = ELFFile(f) + if CompatibleELFs(elf, libelf): + return (target, path) + except exceptions.ELFError as e: + warn('%s: %s' % (target, e)) return (None, None) @@ -475,8 +478,11 @@ 'needed': [], } if fullpath: - lret = ParseELF(realpath, root, prefix, ldpaths, display=fullpath, - debug=debug, _first=False, _all_libs=_all_libs) + try: + lret = ParseELF(realpath, root, prefix, ldpaths, display=fullpath, + debug=debug, _first=False, _all_libs=_all_libs) + except exceptions.ELFError as e: + warn('%s: %s' % (realpath, e)) _all_libs[lib]['needed'] = lret['needed'] del elf diff -Nru pax-utils-1.1.4/lddtree.sh pax-utils-1.1.5/lddtree.sh --- pax-utils-1.1.4/lddtree.sh 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/lddtree.sh 2016-02-10 19:16:43.000000000 +0000 @@ -42,7 +42,7 @@ # LINUX and GNU are the same thing, as are NONE and SYSV, so normalize # GNU & LINUX to NONE. #442024 #464380 scanelf -BF '#F%a %M %D %I' "$1" | \ - sed -r 's: (LINUX|GNU)$: NONE:' + sed -E 's: (LINUX|GNU)$: NONE:' } lib_paths_fallback="${ROOT}lib* ${ROOT}usr/lib* ${ROOT}usr/local/lib*" diff -Nru pax-utils-1.1.4/Makefile pax-utils-1.1.5/Makefile --- pax-utils-1.1.4/Makefile 2015-10-26 04:29:16.000000000 +0000 +++ pax-utils-1.1.5/Makefile 2016-02-10 19:16:51.000000000 +0000 @@ -1,4 +1,4 @@ -PV := v1.1.4 +PV := v1.1.5 # Copyright 2003-2006 Ned Ludd # Distributed under the terms of the GNU General Public License v2 #################################################################### @@ -14,7 +14,8 @@ -Wdeclaration-after-statement \ -Wextra \ -Wsequence-point \ - -Wstrict-overflow + -Wstrict-overflow \ + -Wmisleading-indentation WFLAGS := -Wall -Wunused -Wimplicit -Wshadow -Wformat=2 \ -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \ -Wbad-function-cast -Wnested-externs -Wcomment -Winline \ @@ -90,6 +91,9 @@ @-chpax -permsx $(ELF_TARGETS) @-paxctl -permsx $(ELF_TARGETS) +analyze: clean + scan-build $(MAKE) all + fuzz: clean $(MAKE) AFL_HARDEN=1 CC=afl-gcc all @rm -rf findings @@ -139,7 +143,7 @@ for py in $(SCRIPTS_PY) ; do $(INS_EXE) $$py.py $(PREFIX)/bin/$$py || exit $$? ; done endif $(INS_EXE) $(TARGETS) $(PREFIX)/bin/ - $(INS_DATA) README BUGS TODO $(PKGDOCDIR)/ + $(INS_DATA) README.md BUGS TODO $(PKGDOCDIR)/ $(INS_DATA) $(MPAGES) $(MANDIR)/man1/ PN = pax-utils @@ -161,14 +165,15 @@ # GEN_MARK_START = \# @@@ GEN START @@@ \# GEN_MARK_END = \# @@@ GEN END @@@ \# -EXTRA_DIST = $(shell git ls-files) +EXTRA_DIST = $(shell git ls-files | grep -v ^travis/) autotools-update: $(MAKE) -C man -j - sed -i '/^$(GEN_MARK_START)$$/,/^$(GEN_MARK_END)$$/d' Makefile.am + sed -i.tmp '/^$(GEN_MARK_START)$$/,/^$(GEN_MARK_END)$$/d' Makefile.am + @rm -f Makefile.am.tmp ( \ echo "$(GEN_MARK_START)"; \ printf 'dist_man_MANS +='; \ - printf ' \\\n\t%s' $(wildcard man/*.1); \ + printf ' \\\n\t%s' `printf '%s\n' man/*.1 | LC_ALL=C sort`; \ echo; \ printf 'EXTRA_DIST +='; \ printf ' \\\n\t%s' $(EXTRA_DIST); \ diff -Nru pax-utils-1.1.4/Makefile.am pax-utils-1.1.5/Makefile.am --- pax-utils-1.1.4/Makefile.am 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/Makefile.am 2016-02-10 19:16:43.000000000 +0000 @@ -18,6 +18,7 @@ bin_SCRIPTS = lddtree symtree bin_PROGRAMS = scanelf dumpelf pspax scanmacho +CLEANFILES = $(bin_SCRIPTS) if USE_PYTHON lddtree: lddtree.py @@ -46,16 +47,17 @@ dist_man_MANS += \ man/dumpelf.1 \ man/pspax.1 \ - man/scanmacho.1 \ - man/scanelf.1 + man/scanelf.1 \ + man/scanmacho.1 EXTRA_DIST += \ .depend \ .gitignore \ + .travis.yml \ BUGS \ COPYING \ Makefile \ Makefile.am \ - README \ + README.md \ TODO \ autogen.sh \ configure.ac \ diff -Nru pax-utils-1.1.4/Makefile.in pax-utils-1.1.5/Makefile.in --- pax-utils-1.1.4/Makefile.in 2015-10-26 04:30:21.000000000 +0000 +++ pax-utils-1.1.5/Makefile.in 2016-02-10 19:18:01.000000000 +0000 @@ -97,8 +97,10 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \ $(top_srcdir)/autotools/m4/absolute-header.m4 \ $(top_srcdir)/autotools/m4/alloca.m4 \ + $(top_srcdir)/autotools/m4/ax_append_flag.m4 \ $(top_srcdir)/autotools/m4/ax_cflags_warn_all.m4 \ $(top_srcdir)/autotools/m4/ax_check_compile_flag.m4 \ + $(top_srcdir)/autotools/m4/ax_require_defined.m4 \ $(top_srcdir)/autotools/m4/canonicalize.m4 \ $(top_srcdir)/autotools/m4/chdir-long.m4 \ $(top_srcdir)/autotools/m4/clock_time.m4 \ @@ -396,10 +398,10 @@ $(top_srcdir)/autotools/depcomp \ $(top_srcdir)/autotools/install-sh \ $(top_srcdir)/autotools/ltmain.sh \ - $(top_srcdir)/autotools/missing COPYING README TODO \ - autotools/ar-lib autotools/compile autotools/config.guess \ - autotools/config.sub autotools/depcomp autotools/install-sh \ - autotools/ltmain.sh autotools/missing + $(top_srcdir)/autotools/missing COPYING TODO autotools/ar-lib \ + autotools/compile autotools/config.guess autotools/config.sub \ + autotools/depcomp autotools/install-sh autotools/ltmain.sh \ + autotools/missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) @@ -1500,6 +1502,7 @@ LDADD = libpaxutils.la $(top_builddir)/autotools/gnulib/libgnu.a bin_SCRIPTS = lddtree symtree +CLEANFILES = $(bin_SCRIPTS) TMAKE = \ $(MAKE) -C $(abs_top_srcdir)/tests \ AUTOTOOLS=true \ @@ -1510,12 +1513,12 @@ # Start off with base values which we append below # @@@ GEN START @@@ # -dist_man_MANS = man/dumpelf.1 man/pspax.1 man/scanmacho.1 \ - man/scanelf.1 -EXTRA_DIST = autotools/m4/gnulib-cache.m4 .depend .gitignore BUGS \ - COPYING Makefile Makefile.am README TODO autogen.sh \ - configure.ac dumpelf.c elf.h lddtree.py lddtree.sh macho.h \ - make-tarball.sh man/Makefile man/custom.xsl \ +dist_man_MANS = man/dumpelf.1 man/pspax.1 man/scanelf.1 \ + man/scanmacho.1 +EXTRA_DIST = autotools/m4/gnulib-cache.m4 .depend .gitignore \ + .travis.yml BUGS COPYING Makefile Makefile.am README.md TODO \ + autogen.sh configure.ac dumpelf.c elf.h lddtree.py lddtree.sh \ + macho.h make-tarball.sh man/Makefile man/custom.xsl \ man/dumpelf.docbook man/fragment/date man/fragment/reftail \ man/fragment/version man/pax-utils.docbook man/pspax.docbook \ man/scanelf.docbook man/scanmacho.docbook paxelf.c paxelf.h \ @@ -2108,6 +2111,7 @@ mostlyclean-generic: clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) diff -Nru pax-utils-1.1.4/man/dumpelf.1 pax-utils-1.1.5/man/dumpelf.1 --- pax-utils-1.1.4/man/dumpelf.1 2015-10-26 04:29:15.000000000 +0000 +++ pax-utils-1.1.5/man/dumpelf.1 2016-02-10 19:16:50.000000000 +0000 @@ -1,13 +1,13 @@ '\" t .\" Title: dumpelf .\" Author: Ned Ludd -.\" Generator: DocBook XSL Stylesheets v1.78.0 -.\" Date: 10/26/2015 +.\" Generator: DocBook XSL Stylesheets v1.79.0 +.\" Date: 02/10/2016 .\" Manual: Documentation for pax-utils -.\" Source: pax-utils 1.1.4 +.\" Source: pax-utils 1.1.5 .\" Language: English .\" -.TH "DUMPELF" "1" "10/26/2015" "pax\-utils 1.1.4" "Documentation for pax-utils" +.TH "DUMPELF" "1" "02/10/2016" "pax\-utils 1.1.5" "Documentation for pax-utils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -34,7 +34,6 @@ \fBdumpelf\fR [\fIoptions\fR] \fIELFs\fR .SH "DESCRIPTION" .PP - \fBdumpelf\fR is a user\-space utility to dump all of the internal ELF structures into the equivalent C structures for fun debugging and/or reference purposes\&. .SH "OPTIONS" @@ -65,7 +64,6 @@ if possible\&. .SH "SEE ALSO" .PP - \fBchpax\fR(1), \fBdumpelf\fR(1), \fBpaxctl\fR(1), diff -Nru pax-utils-1.1.4/man/fragment/version pax-utils-1.1.5/man/fragment/version --- pax-utils-1.1.4/man/fragment/version 2015-10-26 04:29:14.000000000 +0000 +++ pax-utils-1.1.5/man/fragment/version 2016-02-10 19:16:49.000000000 +0000 @@ -1 +1 @@ -1.1.4 +1.1.5 diff -Nru pax-utils-1.1.4/man/Makefile pax-utils-1.1.5/man/Makefile --- pax-utils-1.1.4/man/Makefile 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/man/Makefile 2016-02-10 19:16:43.000000000 +0000 @@ -4,7 +4,8 @@ man pdf txt xhtml xhtml-nochunks: @xmlto $@ $(XMLTO_FLAGS_$@) pax-utils.docbook || echo "If this failed, you probably need to emerge ~app-text/docbook-xml-dtd-4.4 app-text/xmlto dev-tex/xmltex" @# scanelf.1 has funky indented lists ... hack it back - @sed -i 's:^[.]TP 4:.TP 2:' scanelf.1 + @sed -i.tmp 's:^[.]TP 4:.TP 2:' scanelf.1 + @rm scanelf.1.tmp clean distclean: rm -f *.1 *.html diff -Nru pax-utils-1.1.4/man/pspax.1 pax-utils-1.1.5/man/pspax.1 --- pax-utils-1.1.4/man/pspax.1 2015-10-26 04:29:15.000000000 +0000 +++ pax-utils-1.1.5/man/pspax.1 2016-02-10 19:16:50.000000000 +0000 @@ -1,13 +1,13 @@ '\" t .\" Title: pspax .\" Author: Ned Ludd -.\" Generator: DocBook XSL Stylesheets v1.78.0 -.\" Date: 10/26/2015 +.\" Generator: DocBook XSL Stylesheets v1.79.0 +.\" Date: 02/10/2016 .\" Manual: Documentation for pax-utils -.\" Source: pax-utils 1.1.4 +.\" Source: pax-utils 1.1.5 .\" Language: English .\" -.TH "PSPAX" "1" "10/26/2015" "pax\-utils 1.1.4" "Documentation for pax-utils" +.TH "PSPAX" "1" "02/10/2016" "pax\-utils 1.1.5" "Documentation for pax-utils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -34,7 +34,6 @@ \fBpspax\fR [\fIoptions\fR] \fIELFs\fR .SH "DESCRIPTION" .PP - \fBpspax\fR is a user\-space utility that scans the proc directory and list ELF types, as well as their respective PaX flags and filenames and attributes\&. Depending on build options, it may additionally display the process running set of capabilities\&. .SH "OPTIONS" @@ -110,7 +109,6 @@ if possible\&. .SH "SEE ALSO" .PP - \fBchpax\fR(1), \fBdumpelf\fR(1), \fBpaxctl\fR(1), diff -Nru pax-utils-1.1.4/man/scanelf.1 pax-utils-1.1.5/man/scanelf.1 --- pax-utils-1.1.4/man/scanelf.1 2015-10-26 04:29:16.000000000 +0000 +++ pax-utils-1.1.5/man/scanelf.1 2016-02-10 19:16:51.000000000 +0000 @@ -1,13 +1,13 @@ '\" t .\" Title: scanelf .\" Author: Ned Ludd -.\" Generator: DocBook XSL Stylesheets v1.78.0 -.\" Date: 10/26/2015 +.\" Generator: DocBook XSL Stylesheets v1.79.0 +.\" Date: 02/10/2016 .\" Manual: Documentation for pax-utils -.\" Source: pax-utils 1.1.4 +.\" Source: pax-utils 1.1.5 .\" Language: English .\" -.TH "SCANELF" "1" "10/26/2015" "pax\-utils 1.1.4" "Documentation for pax-utils" +.TH "SCANELF" "1" "02/10/2016" "pax\-utils 1.1.5" "Documentation for pax-utils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -34,7 +34,6 @@ \fBscanelf\fR [\fIoptions\fR] \fIELFs\fR\ or\ \fIdirectories\fR .SH "DESCRIPTION" .PP - \fBscanelf\fR is a user\-space utility to quickly scan given ELFs, directories, or common system paths for different information\&. This may include ELF types, their PaX markings, TEXTRELs, etc\&.\&.\&. .SH "OPTIONS" @@ -274,7 +273,6 @@ .PP There are three characters that introduce conversion specifiers\&. .PP - \(bu \fB%\fR \- replace with info @@ -291,7 +289,6 @@ .PP And there are a number of conversion specifiers\&. We try to match up the specifier with corresponding option\&. .PP - \(bu \fBa\fR \- machine (EM) type @@ -418,7 +415,6 @@ .PP Putting modifiers in between the percent signs ("\fB%\fR") allows for more in depth filters\&. There are groups of modifiers\&. If you don\*(Aqt specify a member of a group, then all types in that group are matched\&. .PP - \(bu \fBSTT group\fR (symbol type) @@ -520,7 +516,6 @@ .PP Here is the normal list available for your pleasure\&. You of course are free to specify any numeric value you want\&. .PP - \(bu \fB0 \- ET_NONE\fR \- unknown type @@ -549,7 +544,6 @@ .PP You can also narrow your search by specifying the ELF bitsize\&. Again, specify the numeric value or the symbolic define\&. .PP - \(bu \fB32 \- ELFCLASS32\fR \- 32bit ELFs @@ -581,7 +575,6 @@ if possible\&. .SH "SEE ALSO" .PP - \fBchpax\fR(1), \fBdumpelf\fR(1), \fBpaxctl\fR(1), diff -Nru pax-utils-1.1.4/man/scanmacho.1 pax-utils-1.1.5/man/scanmacho.1 --- pax-utils-1.1.4/man/scanmacho.1 2015-10-26 04:29:16.000000000 +0000 +++ pax-utils-1.1.5/man/scanmacho.1 2016-02-10 19:16:50.000000000 +0000 @@ -1,13 +1,13 @@ '\" t .\" Title: scanmacho .\" Author: Ned Ludd -.\" Generator: DocBook XSL Stylesheets v1.78.0 -.\" Date: 10/26/2015 +.\" Generator: DocBook XSL Stylesheets v1.79.0 +.\" Date: 02/10/2016 .\" Manual: Documentation for pax-utils -.\" Source: pax-utils 1.1.4 +.\" Source: pax-utils 1.1.5 .\" Language: English .\" -.TH "SCANMACHO" "1" "10/26/2015" "pax\-utils 1.1.4" "Documentation for pax-utils" +.TH "SCANMACHO" "1" "02/10/2016" "pax\-utils 1.1.5" "Documentation for pax-utils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -34,7 +34,6 @@ \fBscanmacho\fR [\fIoptions\fR] \fIMach\-Os\fR\ or\ \fIdirectories\fR .SH "DESCRIPTION" .PP - \fBscanmacho\fR is a user\-space utility to quickly scan given Mach\-Os, directories, or common system paths for different information\&. This may include Mach\-O types, their install_names, etc\&.\&.\&. .PP @@ -194,7 +193,6 @@ .PP There are three characters that introduce conversion specifiers\&. .PP - \(bu \fB%\fR \- replace with info @@ -211,7 +209,6 @@ .PP And there are a number of conversion specifiers\&. We try to match up the specifier with corresponding option\&. .PP - \(bu \fBa\fR \- arch type @@ -281,13 +278,12 @@ \fBS\fR \- install_name .sp -.SH "MACH-O FILETYPES" +.SH "MACH\-O FILETYPES" .PP You can narrow your search by specifying the Mach\-O object file type\&. The commandline option takes the symbolic type name\&. Multiple values can be passed comma separated\&. Example \-E MH_EXECUTE,MH_DYLIB .PP Here is the normal list available for your pleasure\&. .PP - \(bu \fBMH_OBJECT\fR \- intermediate object file (\&.o) @@ -332,11 +328,10 @@ \fBMH_DSYM\fR \- debug symbols file (in \&.dSYM dir) .sp -.SH "MACH-O BITS" +.SH "MACH\-O BITS" .PP You can also narrow your search by specifying the Mach\-O bitsize\&. Specify the numeric value\&. .PP - \(bu \fB32\fR \- 32bit mach_header @@ -358,7 +353,6 @@ if possible\&. .SH "SEE ALSO" .PP - \fBchpax\fR(1), \fBdumpelf\fR(1), \fBpaxctl\fR(1), diff -Nru pax-utils-1.1.4/paxelf.c pax-utils-1.1.5/paxelf.c --- pax-utils-1.1.4/paxelf.c 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/paxelf.c 2016-02-10 19:16:43.000000000 +0000 @@ -15,11 +15,13 @@ #define QUERY(n) { #n, n } typedef const struct { const char *str; - int value; + /* We use unsigned int as we assume it's at least 32 bits. This covers + all our uses so far as they have been limited to that size. */ + unsigned int value; } pairtype; -static inline const char *find_pairtype(pairtype *pt, int type) +static inline const char *find_pairtype(pairtype *pt, unsigned int type) { - int i; + size_t i; for (i = 0; pt[i].str; ++i) if (type == pt[i].value) return pt[i].str; @@ -84,14 +86,12 @@ { 0, 0 } }; -int get_etype(elfobj *elf) +unsigned int get_etype(elfobj *elf) { - int type; if (elf->elf_class == ELFCLASS32) - type = EGET(EHDR32(elf->ehdr)->e_type); + return EGET(EHDR32(elf->ehdr)->e_type); else - type = EGET(EHDR64(elf->ehdr)->e_type); - return type; + return EGET(EHDR64(elf->ehdr)->e_type); } const char *get_elfetype(elfobj *elf) @@ -108,6 +108,15 @@ } } +/* translate elf EF_ defines -- tricky as it's based on EM_ */ +static unsigned int get_eflags(elfobj *elf) +{ + if (elf->elf_class == ELFCLASS32) + return EGET(EHDR32(elf->ehdr)->e_flags); + else + return EGET(EHDR64(elf->ehdr)->e_flags); +} + static int arm_eabi_poker(elfobj *elf) { unsigned int emachine, eflags; @@ -115,16 +124,11 @@ if (ELFOSABI_NONE != elf->data[EI_OSABI]) return -1; - if (elf->elf_class == ELFCLASS32) { - emachine = EHDR32(elf->ehdr)->e_machine; - eflags = EHDR32(elf->ehdr)->e_flags; - } else { - emachine = EHDR64(elf->ehdr)->e_machine; - eflags = EHDR64(elf->ehdr)->e_flags; - } + emachine = get_emtype(elf); + eflags = get_eflags(elf); - if (EGET(emachine) == EM_ARM) - return EF_ARM_EABI_VERSION(EGET(eflags)) >> 24; + if (emachine == EM_ARM) + return EF_ARM_EABI_VERSION(eflags) >> 24; else return -1; } @@ -162,10 +166,10 @@ fprintf(stream, "\n"); } -int etype_lookup(const char *str) +unsigned int etype_lookup(const char *str) { if (*str == 'E') { - int i; + size_t i; for (i = 0; elf_etypes[i].str; ++i) { if (strcmp(str, elf_etypes[i].str) == 0) return elf_etypes[i].value; @@ -275,14 +279,12 @@ { 0, 0 } }; -int get_emtype(elfobj *elf) +unsigned int get_emtype(elfobj *elf) { - int type; if (elf->elf_class == ELFCLASS32) - type = EGET(EHDR32(elf->ehdr)->e_machine); + return EGET(EHDR32(elf->ehdr)->e_machine); else - type = EGET(EHDR64(elf->ehdr)->e_machine); - return type; + return EGET(EHDR64(elf->ehdr)->e_machine); } const char *get_elfemtype(elfobj *elf) diff -Nru pax-utils-1.1.4/paxelf.h pax-utils-1.1.5/paxelf.h --- pax-utils-1.1.4/paxelf.h 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/paxelf.h 2016-02-10 19:16:43.000000000 +0000 @@ -70,10 +70,10 @@ extern const char *get_elfstvtype(int type); extern const char *get_elfstttype(int type); extern void *elf_findsecbyname(elfobj *elf, const char *name); -extern int get_etype(elfobj *elf); -extern int get_emtype(elfobj *elf); +extern unsigned int get_etype(elfobj *elf); +extern unsigned int get_emtype(elfobj *elf); extern void print_etypes(FILE *); -extern int etype_lookup(const char *); +extern unsigned int etype_lookup(const char *); /* PaX flags (to be read in elfhdr.e_flags) */ #define HF_PAX_PAGEEXEC 1 /* 0: Paging based non-exec pages */ diff -Nru pax-utils-1.1.4/README pax-utils-1.1.5/README --- pax-utils-1.1.4/README 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,60 +0,0 @@ -HOMEPAGE: https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities -GIT: git clone git://anongit.gentoo.org/proj/pax-utils.git -VIEWVCS: https://gitweb.gentoo.org/proj/pax-utils.git/ - -pax-utils is a small set of various PaX aware and related utilities for -ELF binaries. It was written for ELF Q/A on Gentoo systems but can be -used on any distro. - -Note: to rebuild the man-pages, you will need xmlto and the docbook-xml-dtd - packages installed on your system. - -== INSTALL == - -make install - -You don't need PaX to use the pax-utils. Infact the only thing they -really have in common is that pax-utils was initially written to aid in -deploying PaX systems so it includes support for PT_PAX_FLAGS and the -deprecated but still in use EI_PAX flags. For more information about PaX -see the homepage at http://pax.grsecurity.net/ - -== LINKS == - -(Gentoo) -https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities -https://gitweb.gentoo.org/proj/pax-utils.git/ -Maintainer: solar@gentoo.org,vapier@gentoo.org - -(openSUSE) -https://build.opensuse.org/package/show?package=pax-utils&project=openSUSE%3AFactory -Maintainer: ludwig.nussel@suse.de - -(Ubuntu) -http://packages.ubuntu.com/edgy/devel/pax-utils -Maintainer: john.r.moser@gmail.com - -(Debian) -http://packages.debian.org/unstable/misc/pax-utils -http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388200 -Maintainer: rdenis@simphalempin.com - -(FreeBSD) -http://portsmon.freebsd.org/portoverview.py?category=sysutils&portname=pax-utils -http://www.freshports.org/sysutils/pax-utils/ -http://archive.netbsd.se/?ml=freebsd-cvs-all&a=2006-08&m=2311441 -Maintainer: sbz@FreeBSD.org - -(OpenEmedded) -http://www.openembedded.org/filebrowser/org.openembedded.dev/packages/pax-utils - -(Crux) -http://magog.se/crux/pax-utils/Pkgfile -Maintainer: mattias@hedenskog.se - -(Fedora) -https://apps.fedoraproject.org/packages/pax-utils -Maintainer: Dominik 'Rathann' Mierzejewski - -(ArchLinux?) - diff -Nru pax-utils-1.1.4/README.md pax-utils-1.1.5/README.md --- pax-utils-1.1.4/README.md 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/README.md 2016-02-10 19:16:43.000000000 +0000 @@ -0,0 +1,78 @@ +# ELF/PaX Utilities + +| What | How | +| -------- | ----------------------------------------------------- | +| HOMEPAGE | https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities | +| GIT | git clone git://anongit.gentoo.org/proj/pax-utils.git | +| VIEWVCS | https://gitweb.gentoo.org/proj/pax-utils.git/ | +| STATUS | [![Build Status](https://travis-ci.org/gentoo/pax-utils.svg?branch=master)](https://travis-ci.org/gentoo/pax-utils) | + +pax-utils is a small set of utilities for peforming Q/A (mostly security) +checks on systems (most notably, `scanelf`). It is focused on the ELF +format, but does include a Mach-O helper too for OS X systems. + +While heavily integrated into Gentoo's build system, it can be used on any +distro as it is a generic toolset. + +Originally focused only on [PaX](https://pax.grsecurity.net/), it has been +expanded to be generally security focused. It still has a good number of +PaX helpers for people interested in that. + +## Building + +Just run `make`. This should work on any recent POSIX compliant system. + +Note: To rebuild the man-pages, you will need xmlto and the docbook-xml-dtd + packages installed on your system. + +## Installation + +`make install` + +You don't need PaX to use the pax-utils. Infact the only thing they +really have in common is that pax-utils was initially written to aid in +deploying PaX systems so it includes support for PT_PAX_FLAGS and the +deprecated but still in use EI_PAX flags. For more information about PaX +see the homepage at http://pax.grsecurity.net/ + +## Links + +If you include pax-utils in your distro, feel free to send an update for this. + +##### Gentoo + * https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities + * https://gitweb.gentoo.org/proj/pax-utils.git/ + * Maintainer: Mike Frysinger , Ned Ludd + +##### openSUSE + * https://build.opensuse.org/package/show?package=pax-utils&project=openSUSE%3AFactory + * Maintainer: ludwig.nussel@suse.de + +##### Ubuntu + * http://packages.ubuntu.com/edgy/devel/pax-utils + * Maintainer: john.r.moser@gmail.com + +##### Debian + * http://packages.debian.org/unstable/misc/pax-utils + * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388200 + * Maintainer: rdenis@simphalempin.com + +##### FreeBSD + * http://portsmon.freebsd.org/portoverview.py?category=sysutils&portname=pax-utils + * http://www.freshports.org/sysutils/pax-utils/ + * http://archive.netbsd.se/?ml=freebsd-cvs-all&a=2006-08&m=2311441 + * Maintainer: sbz@FreeBSD.org + +##### OpenEmedded + * http://www.openembedded.org/filebrowser/org.openembedded.dev/packages/pax-utils + +##### Crux + * http://magog.se/crux/pax-utils/Pkgfile + * Maintainer: mattias@hedenskog.se + +##### Fedora + * https://apps.fedoraproject.org/packages/pax-utils + * Maintainer: Dominik 'Rathann' Mierzejewski + +##### ArchLinux + * https://www.archlinux.org/packages/community/x86_64/pax-utils/ diff -Nru pax-utils-1.1.4/scanelf.c pax-utils-1.1.5/scanelf.c --- pax-utils-1.1.4/scanelf.c 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/scanelf.c 2016-02-10 19:16:43.000000000 +0000 @@ -461,15 +461,15 @@ Elf ## B ## _Shdr *shdr = SHDR ## B (elf->shdr); \ uint16_t shstrndx = EGET(ehdr->e_shstrndx); \ Elf ## B ## _Shdr *strtbl = shdr + shstrndx; \ - if (shstrndx * sizeof(*shdr) >= elf->len - sizeof(*shdr) || \ - !VALID_SHDR(elf, strtbl)) \ + uint16_t shnum = EGET(ehdr->e_shnum); \ + if (shstrndx >= shnum || !VALID_SHDR(elf, strtbl)) \ goto corrupt_shdr; \ /* let's flag -w/+x object files since the final ELF will most likely \ * need write access to the stack (who doesn't !?). so the combined \ * output will bring in +w automatically and that's bad. \ */ \ check_flags = /*SHF_WRITE|*/SHF_EXECINSTR; \ - for (i = 0; i < EGET(ehdr->e_shnum); ++i) { \ + for (i = 0; i < shnum; ++i) { \ if (EGET(shdr[i].sh_type) != SHT_PROGBITS) continue; \ offset = EGET(strtbl->sh_offset) + EGET(shdr[i].sh_name); \ if (offset >= elf->len - sizeof(NOTE_GNU_STACK)) \ diff -Nru pax-utils-1.1.4/security.c pax-utils-1.1.5/security.c --- pax-utils-1.1.4/security.c 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/security.c 2016-02-10 19:16:43.000000000 +0000 @@ -72,6 +72,9 @@ int base_syscalls[] = { /* We write the most w/scanelf. */ SCMP_SYS(write), + SCMP_SYS(writev), + SCMP_SYS(pwrite64), + SCMP_SYS(pwritev), /* Then the stat family of functions. */ SCMP_SYS(newfstatat), @@ -102,6 +105,8 @@ /* Then the file reading functions. */ SCMP_SYS(pread64), SCMP_SYS(read), + SCMP_SYS(readv), + SCMP_SYS(preadv), /* Then the fd manipulation functions. */ SCMP_SYS(fcntl), diff -Nru pax-utils-1.1.4/tests/lddtree/dotest.cmp pax-utils-1.1.5/tests/lddtree/dotest.cmp --- pax-utils-1.1.4/tests/lddtree/dotest.cmp 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/tests/lddtree/dotest.cmp 2016-02-10 19:16:43.000000000 +0000 @@ -6,22 +6,30 @@ # make sure list output matches # for sfx in py sh ; do - lddtree.${sfx} -l /bin/bash > lddtree.${sfx}.list & + lddtree.${sfx} -l /bin/bash > "${builddir}"/lddtree.${sfx}.list & done wait -testit lddtree.*.list -rm -f lddtree.*.list +if diff -u "${builddir}"/lddtree.*.list ; then + pass "lddtree -l /bin/bash" +else + fail "lddtree -l /bin/bash" +fi +rm -f "${builddir}"/lddtree.*.list # # Same as above but with the -a flag # for sfx in py sh ; do - lddtree.${sfx} -l -a /bin/bash > lddtree.${sfx}.list-all & + lddtree.${sfx} -l -a /bin/bash > "${builddir}"/lddtree.${sfx}.list-all & done wait -testit lddtree.*.list-all -rm -f lddtree.*.list-all +if diff -u "${builddir}"/lddtree.*.list-all ; then + pass "lddtree -l -a /bin/bash" +else + fail "lddtree -l -a /bin/bash" +fi +rm -f "${builddir}"/lddtree.*.list-all exit ${ret} diff -Nru pax-utils-1.1.4/tests/lddtree/dotest.sfx pax-utils-1.1.5/tests/lddtree/dotest.sfx --- pax-utils-1.1.4/tests/lddtree/dotest.sfx 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/tests/lddtree/dotest.sfx 2016-02-10 19:16:43.000000000 +0000 @@ -6,7 +6,7 @@ # smoke tests of sorts # lddtree.${sfx} /bin/bash | \ - grep -i 'none' > lddtree.${sfx}.smoke + grep -i 'none' > "${builddir}"/lddtree.${sfx}.smoke testit lddtree.${sfx}.smoke diff -Nru pax-utils-1.1.4/tests/lib.sh pax-utils-1.1.5/tests/lib.sh --- pax-utils-1.1.4/tests/lib.sh 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/tests/lib.sh 2016-02-10 19:16:43.000000000 +0000 @@ -1,12 +1,17 @@ -# no out of tree building so shut it -srcdir=`cd "${0%/*}" && pwd` -top_srcdir=`cd "${srcdir}/../.." && pwd` -builddir=${srcdir} -top_builddir=${top_srcdir} +if [[ -z ${abs_top_builddir} ]] ; then + srcdir=$(cd "${0%/*}" && pwd) + top_srcdir=$(cd "${srcdir}/../.." && pwd) + builddir=${srcdir} + top_builddir=${top_srcdir} +else + mkdir -p "${builddir}" + top_srcdir=${abs_top_srcdir} + top_builddir=${abs_top_builddir} +fi [ -e /etc/init.d/functions.sh ] && source /etc/init.d/functions.sh -PATH=${top_builddir}:${PATH} +PATH="${top_srcdir}:${top_builddir}:${PATH}" unset ROOT # who knows! ret=0 @@ -24,13 +29,13 @@ local tret=0 err case $# in 1) - if [[ -s $1 ]] ; then + if [[ -s ${builddir}/$1 ]] ; then tret=1 - err=$(<"$1") + err=$(<"${builddir}/$1") fi ;; 2) - if ! err=$(diff -u "$1" "$2") ; then + if ! err=$(diff -u "${builddir}/$1" "${srcdir}/$2") ; then tret=1 fi esac @@ -40,5 +45,5 @@ fail "$1" echo "${err}" fi - rm -f "$1" + rm -f "${builddir}/$1" } diff -Nru pax-utils-1.1.4/tests/Makefile pax-utils-1.1.5/tests/Makefile --- pax-utils-1.1.4/tests/Makefile 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/tests/Makefile 2016-02-10 19:16:43.000000000 +0000 @@ -1,8 +1,10 @@ SUBDIRS = $(patsubst %/Makefile,%,$(wildcard */Makefile)) +abs_top_srcdir = $(realpath $(PWD)/..) +abs_top_builddir = $(realpath $(PWD)/..) # DO NOT STARE AT THE SUN all: %:; $(MAKE) `printf '%s_$@_ ' $(SUBDIRS)` _words = $(subst _, ,$1) _dir = $(firstword $(call _words,$@)) _targ = $(lastword $(call _words,$@)) -%_:; $(MAKE) -C $(_dir) $(_targ) +%_:; $(MAKE) -C $(_dir) $(_targ) srcdir=$(abs_top_srcdir)/tests/$(_dir) builddir=$(abs_top_builddir)/tests/$(_dir) diff -Nru pax-utils-1.1.4/tests/scanelf/dotest pax-utils-1.1.5/tests/scanelf/dotest --- pax-utils-1.1.4/tests/scanelf/dotest 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/tests/scanelf/dotest 2016-02-10 19:16:43.000000000 +0000 @@ -6,7 +6,7 @@ # simple scanelf symbol checks # scanelf -qsmain -F'%s %f' "${top_builddir}"/scanelf \ - > scanelf.simple + > "${builddir}"/scanelf.simple testit scanelf.simple{,.good} diff -Nru pax-utils-1.1.4/tests/source/dotest pax-utils-1.1.5/tests/source/dotest --- pax-utils-1.1.4/tests/source/dotest 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/tests/source/dotest 2016-02-10 19:16:43.000000000 +0000 @@ -32,7 +32,7 @@ -e '\' \ -e '\' \ -e '\' \ - | sed -e "s:^\.\./\.\./::g" > src.typos + | sed -e "s:^\.\./\.\./::g" > "${builddir}"/src.typos testit src.typos @@ -42,7 +42,7 @@ # findfiles | xargs -0 \ grep -n -E -e '\<(bcmp|bcopy|bzero|getwd|index|mktemp|rindex|utimes)\>[[:space:]]*\(' \ - | sed -e "s:^\.\./\.\./::g" > src.obsolete.funcs + | sed -e "s:^\.\./\.\./::g" > "${builddir}"/src.obsolete.funcs testit src.obsolete.funcs @@ -52,7 +52,7 @@ # findfiles | xargs -0 \ grep -n -E -e '\' | grep -v __PAX_UTILS_PATH_MAX \ - | sed -e "s:^\.\./\.\./::g" > src.bad.constants + | sed -e "s:^\.\./\.\./::g" > "${builddir}"/src.bad.constants testit src.bad.constants @@ -62,7 +62,7 @@ # findfiles | xargs -0 \ grep -n -E -e '\<(malloc|memory|sys/(errno|fcntl|signal|stropts|termios|unistd))\.h\>' \ - | sed -e "s:^\.\./\.\./::g" > src.obsolete.headers + | sed -e "s:^\.\./\.\./::g" > "${builddir}"/src.obsolete.headers testit src.obsolete.headers @@ -75,7 +75,7 @@ findfiles | xargs -0 \ grep -n -E -e "\<(${xfuncs})[[:space:]]*\(" \ | grep -v xfuncs.c \ - | sed -e "s:^\.\./\.\./::g" > src.use.xfuncs + | sed -e "s:^\.\./\.\./::g" > "${builddir}"/src.use.xfuncs testit src.use.xfuncs @@ -91,7 +91,7 @@ -e '[[:space:]]$' \ -e '\){' \ -e '(^|[^:])//' \ - | sed -e "s:^\.\./\.\./::g" > src.style + | sed -e "s:^\.\./\.\./::g" > "${builddir}"/src.style testit src.style @@ -103,13 +103,13 @@ case ${x} in */elf.h) continue ;; # Not our files esac - ./space "$x" > "$x~" - if ! diff -u "$x" "$x~" ; then - echo "New file: $x~" + ./space "${x}" > "${builddir}/${x}~" + if ! diff -u "${x}" "${builddir}/${x}~" ; then + echo "New file: ${x}~" else - rm -f "$x~" + rm -f "${builddir}/${x}~" fi -done > src.space < <(findfiles) +done > "${builddir}"/src.space < <(findfiles) testit src.space @@ -118,7 +118,7 @@ # Make sure we don't keep re-importing stuff into elf.h that # breaks non-GNU systems. #507470 # -grep -E "features.h|_DECLS" "${top_srcdir}"/elf.h > src.elf.h +grep -E "features.h|_DECLS" "${top_srcdir}"/elf.h > "${builddir}"/src.elf.h testit src.elf.h @@ -130,7 +130,7 @@ find "${top_srcdir}" \ '!' -ipath '*/tests/*' \ -name '*.py' \ - -exec pyflakes {} + > src.pyflakes + -exec pyflakes {} + > "${builddir}"/src.pyflakes testit src.pyflakes fi diff -Nru pax-utils-1.1.4/tests/source/space pax-utils-1.1.5/tests/source/space --- pax-utils-1.1.4/tests/source/space 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/tests/source/space 2016-02-10 19:16:43.000000000 +0000 @@ -11,7 +11,7 @@ EOF fi -sed -r '/[[:space:]]+$/s:[[:space:]]+$::' "$i" | \ +sed -E '/[[:space:]]+$/s:[[:space:]]+$::' "$i" | \ awk '{ if (NF == 0) { while (NF == 0) Binary files /tmp/tmpbiBUHz/7NXz3ykArk/pax-utils-1.1.4/travis/autotools.tar.xz and /tmp/tmpbiBUHz/rZGjmxNPxr/pax-utils-1.1.5/travis/autotools.tar.xz differ diff -Nru pax-utils-1.1.4/travis/lib.sh pax-utils-1.1.5/travis/lib.sh --- pax-utils-1.1.4/travis/lib.sh 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/travis/lib.sh 2016-02-10 19:16:43.000000000 +0000 @@ -0,0 +1,38 @@ +#!/bin/bash +# Common funcs for working w/Travis. + +travis_fold() { + if [[ -n ${TRAVIS_OS_NAME} ]] ; then + printf 'travis_fold:%s:%s\r\n' "$@" | sed 's: :_:g' + fi +} + +if [[ -n ${TRAVIS_OS_NAME} ]] ; then + whitebg=$(tput setab 7) + blackfg=$(tput setaf 0) + normal=$(tput sgr0) +else + whitebg= + blackbg= + normal= +fi +v() { + local fold="" + case $1 in + --fold=*) fold=${1:7}; shift;; + esac + if [[ -n ${fold} ]] ; then + travis_fold start "${fold}" + echo "\$ $*" + "$@" + travis_fold end "${fold}" + else + echo "${whitebg}${blackfg}\$ $*${normal}" + "$@" + fi +} + +ncpus=$(getconf _NPROCESSORS_ONLN) +m() { + v make -j${ncpus} "$@" +} diff -Nru pax-utils-1.1.4/travis/main.sh pax-utils-1.1.5/travis/main.sh --- pax-utils-1.1.4/travis/main.sh 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/travis/main.sh 2016-02-10 19:16:43.000000000 +0000 @@ -0,0 +1,48 @@ +#!/bin/bash -e + +. "${0%/*}"/lib.sh + +main() { + if [[ ${TRAVIS_OS_NAME} == "osx" ]] ; then + # Note: Linux deps are maintained in .travis.yml. + v --fold="brew_update" brew update + v --fold="brew_install" brew install xmlto xz + fi + + # See if we have to bootstrap gnulib. This is the case on OS X, and on + # Linux until they whitelist the package: + # https://github.com/travis-ci/apt-package-whitelist/issues/727 + if ! gnulib-tool --version >&/dev/null ; then + if [[ ! -d ../gnulib ]] ; then + v --fold="git_clone_gnulib" \ + git clone --depth=1 https://github.com/coreutils/gnulib.git ../gnulib + else + pushd ../gnulib + v --fold="git_pull_gnulib" git pull + popd + fi + export PATH="${PATH}:${PWD}/../gnulib" + fi + + if [[ ${TRAVIS_OS_NAME} == "linux" ]] ; then + # Standard optimized build. + m + m check + + # Debug build w/ASAN and such enabled. + m debug + m check + fi + + # Autotools based build. + v ./autogen.sh + if [[ ${TRAVIS_OS_NAME} == "linux" ]] ; then + v --fold="configure" ./configure + m V=1 distcheck + else + # ELF checks don't work on OS X -- no ELFs! + v ./configure + m V=1 + fi +} +main "$@" diff -Nru pax-utils-1.1.4/.travis.yml pax-utils-1.1.5/.travis.yml --- pax-utils-1.1.4/.travis.yml 1970-01-01 00:00:00.000000000 +0000 +++ pax-utils-1.1.5/.travis.yml 2016-02-10 19:16:43.000000000 +0000 @@ -0,0 +1,31 @@ +# Travis build integration. +# https://docs.travis-ci.com/ + +language: c +compiler: + - clang + - gcc + +sudo: false + +os: + - linux +# Travis currently runs on OS X 10.9 which does not include *at funcs. +# Disable until they update or we include autotools support. + - osx + +# Travis currently uses Ubuntu 12.04 (Precise) which is too old: it does +# not include pyelftools. Disable until they update. +env: + - USE_PYTHON=no +# Note: OS X deps are maintained in .travis.sh until Travis supports it here. +addons: + apt: + packages: + - autoconf-archive + - gnulib + - xmlto + - python-pyelftools + - python3-pyelftools + +script: ./travis/main.sh diff -Nru pax-utils-1.1.4/xfuncs.h pax-utils-1.1.5/xfuncs.h --- pax-utils-1.1.4/xfuncs.h 2015-10-26 04:22:28.000000000 +0000 +++ pax-utils-1.1.5/xfuncs.h 2016-02-10 19:16:43.000000000 +0000 @@ -27,10 +27,14 @@ #define xarraypush_str(arr, ele) xarraypush(arr, ele, strlen(ele) + 1 /*NUL*/) void xarrayfree(array_t *array); #define xrealloc_array(ptr, size, ele_size) xrealloc(ptr, (size) * (ele_size)) +/* The assignment after the check is unfortunate as we do a non-NULL check (we + * already do not permit pushing of NULL pointers), but we can't put it in the + * increment phase as that will cause a load beyond the bounds of valid memory. + */ #define array_for_each(arr, n, ele) \ for (n = 0, ele = array_cnt(arr) ? arr->eles[n] : NULL; \ - n < array_cnt(arr); \ - ele = arr->eles[++n]) + n < array_cnt(arr) && (ele = arr->eles[n]); \ + ++n) #define array_init_decl { .eles = NULL, .num = 0, } #define array_cnt(arr) (arr)->num char *array_flatten_str(array_t *array);