summaryrefslogtreecommitdiff
path: root/gettext-tools/gnulib-lib
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-06-11 13:13:21 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-06-11 13:13:21 +0000
commit500500ec9b7b0d0cef90b48c9b4ddc8866b5f19c (patch)
tree1d7b3e6fab5c199fdbbaab53ee9532de6a4c8cf7 /gettext-tools/gnulib-lib
parent6eb5949dd99d174393465069c2fd0bab32deddcc (diff)
downloadgettext-tarball-master.tar.gz
Diffstat (limited to 'gettext-tools/gnulib-lib')
-rw-r--r--gettext-tools/gnulib-lib/Makefile.am7
-rw-r--r--gettext-tools/gnulib-lib/Makefile.gnulib30
-rw-r--r--gettext-tools/gnulib-lib/Makefile.in235
-rw-r--r--gettext-tools/gnulib-lib/acl-errno-valid.c2
-rw-r--r--gettext-tools/gnulib-lib/acl-internal.c4
-rw-r--r--gettext-tools/gnulib-lib/acl-internal.h4
-rw-r--r--gettext-tools/gnulib-lib/acl.h2
-rw-r--r--gettext-tools/gnulib-lib/acl_entries.c2
-rw-r--r--gettext-tools/gnulib-lib/addext.c4
-rw-r--r--gettext-tools/gnulib-lib/alignof.h2
-rw-r--r--gettext-tools/gnulib-lib/alloca.in.h2
-rw-r--r--gettext-tools/gnulib-lib/allocator.h2
-rw-r--r--gettext-tools/gnulib-lib/areadlink.c2
-rw-r--r--gettext-tools/gnulib-lib/areadlink.h2
-rw-r--r--gettext-tools/gnulib-lib/argmatch.c2
-rw-r--r--gettext-tools/gnulib-lib/argmatch.h2
-rw-r--r--gettext-tools/gnulib-lib/asnprintf.c2
-rw-r--r--gettext-tools/gnulib-lib/asprintf.c2
-rw-r--r--gettext-tools/gnulib-lib/backupfile.c2
-rw-r--r--gettext-tools/gnulib-lib/backupfile.h2
-rw-r--r--gettext-tools/gnulib-lib/basename.c2
-rw-r--r--gettext-tools/gnulib-lib/basename.h2
-rw-r--r--gettext-tools/gnulib-lib/binary-io.h4
-rw-r--r--gettext-tools/gnulib-lib/byteswap.in.h2
-rw-r--r--gettext-tools/gnulib-lib/c-ctype.h2
-rw-r--r--gettext-tools/gnulib-lib/c-strcase.h2
-rw-r--r--gettext-tools/gnulib-lib/c-strcasecmp.c2
-rw-r--r--gettext-tools/gnulib-lib/c-strcaseeq.h2
-rw-r--r--gettext-tools/gnulib-lib/c-strcasestr.c2
-rw-r--r--gettext-tools/gnulib-lib/c-strcasestr.h2
-rw-r--r--gettext-tools/gnulib-lib/c-strncasecmp.c2
-rw-r--r--gettext-tools/gnulib-lib/c-strstr.c2
-rw-r--r--gettext-tools/gnulib-lib/c-strstr.h2
-rw-r--r--gettext-tools/gnulib-lib/canonicalize-lgpl.c2
-rw-r--r--gettext-tools/gnulib-lib/careadlinkat.c2
-rw-r--r--gettext-tools/gnulib-lib/careadlinkat.h2
-rw-r--r--gettext-tools/gnulib-lib/classpath.c2
-rw-r--r--gettext-tools/gnulib-lib/classpath.h2
-rw-r--r--gettext-tools/gnulib-lib/clean-temp.c4
-rw-r--r--gettext-tools/gnulib-lib/clean-temp.h2
-rw-r--r--gettext-tools/gnulib-lib/cloexec.c2
-rw-r--r--gettext-tools/gnulib-lib/cloexec.h2
-rw-r--r--gettext-tools/gnulib-lib/close.c2
-rw-r--r--gettext-tools/gnulib-lib/closedir.c8
-rw-r--r--gettext-tools/gnulib-lib/closeout.c2
-rw-r--r--gettext-tools/gnulib-lib/closeout.h2
-rw-r--r--gettext-tools/gnulib-lib/concat-filename.c2
-rw-r--r--gettext-tools/gnulib-lib/concat-filename.h2
-rw-r--r--gettext-tools/gnulib-lib/config.charset2
-rw-r--r--gettext-tools/gnulib-lib/copy-acl.c2
-rw-r--r--gettext-tools/gnulib-lib/copy-file.c2
-rw-r--r--gettext-tools/gnulib-lib/copy-file.h2
-rw-r--r--gettext-tools/gnulib-lib/csharpcomp.c2
-rw-r--r--gettext-tools/gnulib-lib/csharpcomp.h2
-rw-r--r--gettext-tools/gnulib-lib/csharpexec.c2
-rw-r--r--gettext-tools/gnulib-lib/csharpexec.h2
-rw-r--r--gettext-tools/gnulib-lib/diffseq.h2
-rw-r--r--gettext-tools/gnulib-lib/dirent-private.h2
-rw-r--r--gettext-tools/gnulib-lib/dirent.in.h9
-rw-r--r--gettext-tools/gnulib-lib/dirfd.c98
-rw-r--r--gettext-tools/gnulib-lib/dosname.h2
-rw-r--r--gettext-tools/gnulib-lib/dup-safer-flag.c2
-rw-r--r--gettext-tools/gnulib-lib/dup-safer.c2
-rw-r--r--gettext-tools/gnulib-lib/dup2.c53
-rw-r--r--gettext-tools/gnulib-lib/errno.in.h2
-rw-r--r--gettext-tools/gnulib-lib/error-progname.c2
-rw-r--r--gettext-tools/gnulib-lib/error-progname.h2
-rw-r--r--gettext-tools/gnulib-lib/error.c2
-rw-r--r--gettext-tools/gnulib-lib/error.h2
-rw-r--r--gettext-tools/gnulib-lib/execute.c2
-rw-r--r--gettext-tools/gnulib-lib/execute.h2
-rw-r--r--gettext-tools/gnulib-lib/exitfail.c2
-rw-r--r--gettext-tools/gnulib-lib/exitfail.h2
-rw-r--r--gettext-tools/gnulib-lib/fatal-signal.c2
-rw-r--r--gettext-tools/gnulib-lib/fatal-signal.h2
-rw-r--r--gettext-tools/gnulib-lib/fcntl.c89
-rw-r--r--gettext-tools/gnulib-lib/fcntl.in.h2
-rw-r--r--gettext-tools/gnulib-lib/fd-hook.c2
-rw-r--r--gettext-tools/gnulib-lib/fd-hook.h2
-rw-r--r--gettext-tools/gnulib-lib/fd-ostream.c2
-rw-r--r--gettext-tools/gnulib-lib/fd-ostream.h2
-rw-r--r--gettext-tools/gnulib-lib/fd-ostream.oo.c2
-rw-r--r--gettext-tools/gnulib-lib/fd-ostream.oo.h2
-rw-r--r--gettext-tools/gnulib-lib/fd-safer-flag.c2
-rw-r--r--gettext-tools/gnulib-lib/fd-safer.c2
-rw-r--r--gettext-tools/gnulib-lib/file-ostream.c2
-rw-r--r--gettext-tools/gnulib-lib/file-ostream.h2
-rw-r--r--gettext-tools/gnulib-lib/file-ostream.oo.c2
-rw-r--r--gettext-tools/gnulib-lib/file-ostream.oo.h2
-rw-r--r--gettext-tools/gnulib-lib/filename.h2
-rw-r--r--gettext-tools/gnulib-lib/findprog.c2
-rw-r--r--gettext-tools/gnulib-lib/findprog.h2
-rw-r--r--gettext-tools/gnulib-lib/float+.h2
-rw-r--r--gettext-tools/gnulib-lib/float.c2
-rw-r--r--gettext-tools/gnulib-lib/float.in.h2
-rw-r--r--gettext-tools/gnulib-lib/fnmatch.c2
-rw-r--r--gettext-tools/gnulib-lib/fnmatch.in.h2
-rw-r--r--gettext-tools/gnulib-lib/fnmatch_loop.c2
-rw-r--r--gettext-tools/gnulib-lib/fopen.c2
-rw-r--r--gettext-tools/gnulib-lib/fstat.c2
-rw-r--r--gettext-tools/gnulib-lib/fstrcmp.c2
-rw-r--r--gettext-tools/gnulib-lib/fstrcmp.h2
-rw-r--r--gettext-tools/gnulib-lib/full-write.c2
-rw-r--r--gettext-tools/gnulib-lib/full-write.h2
-rw-r--r--gettext-tools/gnulib-lib/fwriteerror.c2
-rw-r--r--gettext-tools/gnulib-lib/fwriteerror.h2
-rw-r--r--gettext-tools/gnulib-lib/gcd.c2
-rw-r--r--gettext-tools/gnulib-lib/gcd.h2
-rw-r--r--gettext-tools/gnulib-lib/get-permissions.c4
-rw-r--r--gettext-tools/gnulib-lib/getdelim.c2
-rw-r--r--gettext-tools/gnulib-lib/getdtablesize.c2
-rw-r--r--gettext-tools/gnulib-lib/getline.c2
-rw-r--r--gettext-tools/gnulib-lib/getopt.c2
-rw-r--r--gettext-tools/gnulib-lib/getopt.in.h2
-rw-r--r--gettext-tools/gnulib-lib/getopt1.c2
-rw-r--r--gettext-tools/gnulib-lib/getopt_int.h2
-rw-r--r--gettext-tools/gnulib-lib/gettext.h12
-rw-r--r--gettext-tools/gnulib-lib/gettimeofday.c2
-rw-r--r--gettext-tools/gnulib-lib/gl_anyhash_list1.h2
-rw-r--r--gettext-tools/gnulib-lib/gl_anyhash_list2.h2
-rw-r--r--gettext-tools/gnulib-lib/gl_anylinked_list1.h2
-rw-r--r--gettext-tools/gnulib-lib/gl_anylinked_list2.h2
-rw-r--r--gettext-tools/gnulib-lib/gl_array_list.c2
-rw-r--r--gettext-tools/gnulib-lib/gl_array_list.h2
-rw-r--r--gettext-tools/gnulib-lib/gl_linkedhash_list.c2
-rw-r--r--gettext-tools/gnulib-lib/gl_linkedhash_list.h2
-rw-r--r--gettext-tools/gnulib-lib/gl_list.h2
-rw-r--r--gettext-tools/gnulib-lib/gl_xlist.h2
-rw-r--r--gettext-tools/gnulib-lib/glib/gstrfuncs.c2
-rw-r--r--gettext-tools/gnulib-lib/glthread/lock.c2
-rw-r--r--gettext-tools/gnulib-lib/glthread/lock.h2
-rw-r--r--gettext-tools/gnulib-lib/glthread/threadlib.c2
-rw-r--r--gettext-tools/gnulib-lib/glthread/tls.c2
-rw-r--r--gettext-tools/gnulib-lib/glthread/tls.h2
-rw-r--r--gettext-tools/gnulib-lib/hard-locale.c72
-rw-r--r--gettext-tools/gnulib-lib/hard-locale.h25
-rw-r--r--gettext-tools/gnulib-lib/hash.c3
-rw-r--r--gettext-tools/gnulib-lib/hash.h2
-rw-r--r--gettext-tools/gnulib-lib/html-ostream.c2
-rw-r--r--gettext-tools/gnulib-lib/html-ostream.h2
-rw-r--r--gettext-tools/gnulib-lib/html-ostream.oo.c2
-rw-r--r--gettext-tools/gnulib-lib/html-ostream.oo.h2
-rw-r--r--gettext-tools/gnulib-lib/html-styled-ostream.c2
-rw-r--r--gettext-tools/gnulib-lib/html-styled-ostream.h2
-rw-r--r--gettext-tools/gnulib-lib/html-styled-ostream.oo.c2
-rw-r--r--gettext-tools/gnulib-lib/html-styled-ostream.oo.h2
-rw-r--r--gettext-tools/gnulib-lib/iconv.c2
-rw-r--r--gettext-tools/gnulib-lib/iconv.in.h2
-rw-r--r--gettext-tools/gnulib-lib/iconv_close.c2
-rw-r--r--gettext-tools/gnulib-lib/iconv_open.c2
-rw-r--r--gettext-tools/gnulib-lib/iconveh.h2
-rw-r--r--gettext-tools/gnulib-lib/ignore-value.h2
-rw-r--r--gettext-tools/gnulib-lib/intprops.h53
-rw-r--r--gettext-tools/gnulib-lib/isinf.c2
-rw-r--r--gettext-tools/gnulib-lib/isnan.c2
-rw-r--r--gettext-tools/gnulib-lib/isnand-nolibm.h2
-rw-r--r--gettext-tools/gnulib-lib/isnand.c2
-rw-r--r--gettext-tools/gnulib-lib/isnanf-nolibm.h2
-rw-r--r--gettext-tools/gnulib-lib/isnanf.c2
-rw-r--r--gettext-tools/gnulib-lib/isnanl-nolibm.h2
-rw-r--r--gettext-tools/gnulib-lib/isnanl.c2
-rw-r--r--gettext-tools/gnulib-lib/iswblank.c2
-rw-r--r--gettext-tools/gnulib-lib/itold.c2
-rw-r--r--gettext-tools/gnulib-lib/javacomp.c2
-rw-r--r--gettext-tools/gnulib-lib/javacomp.h2
-rw-r--r--gettext-tools/gnulib-lib/javaexec.c2
-rw-r--r--gettext-tools/gnulib-lib/javaexec.h2
-rw-r--r--gettext-tools/gnulib-lib/javaversion.c2
-rw-r--r--gettext-tools/gnulib-lib/javaversion.h2
-rw-r--r--gettext-tools/gnulib-lib/javaversion.java2
-rw-r--r--gettext-tools/gnulib-lib/langinfo.in.h2
-rw-r--r--gettext-tools/gnulib-lib/localcharset.c2
-rw-r--r--gettext-tools/gnulib-lib/localcharset.h2
-rw-r--r--gettext-tools/gnulib-lib/locale.in.h2
-rw-r--r--gettext-tools/gnulib-lib/localename.c2
-rw-r--r--gettext-tools/gnulib-lib/localename.h2
-rw-r--r--gettext-tools/gnulib-lib/log10.c2
-rw-r--r--gettext-tools/gnulib-lib/lstat.c2
-rw-r--r--gettext-tools/gnulib-lib/malloc.c2
-rw-r--r--gettext-tools/gnulib-lib/malloca.c2
-rw-r--r--gettext-tools/gnulib-lib/malloca.h2
-rw-r--r--gettext-tools/gnulib-lib/math.in.h5
-rw-r--r--gettext-tools/gnulib-lib/mbchar.c2
-rw-r--r--gettext-tools/gnulib-lib/mbchar.h2
-rw-r--r--gettext-tools/gnulib-lib/mbiter.h2
-rw-r--r--gettext-tools/gnulib-lib/mbrtowc.c56
-rw-r--r--gettext-tools/gnulib-lib/mbsinit.c2
-rw-r--r--gettext-tools/gnulib-lib/mbslen.c2
-rw-r--r--gettext-tools/gnulib-lib/mbsrtowcs-impl.h2
-rw-r--r--gettext-tools/gnulib-lib/mbsrtowcs-state.c2
-rw-r--r--gettext-tools/gnulib-lib/mbsrtowcs.c2
-rw-r--r--gettext-tools/gnulib-lib/mbsstr.c2
-rw-r--r--gettext-tools/gnulib-lib/mbswidth.c2
-rw-r--r--gettext-tools/gnulib-lib/mbswidth.h2
-rw-r--r--gettext-tools/gnulib-lib/mbuiter.h2
-rw-r--r--gettext-tools/gnulib-lib/memchr.c2
-rw-r--r--gettext-tools/gnulib-lib/memset.c2
-rw-r--r--gettext-tools/gnulib-lib/minmax.h2
-rw-r--r--gettext-tools/gnulib-lib/mkdtemp.c2
-rw-r--r--gettext-tools/gnulib-lib/moo.h2
-rw-r--r--gettext-tools/gnulib-lib/msvc-inval.c2
-rw-r--r--gettext-tools/gnulib-lib/msvc-inval.h2
-rw-r--r--gettext-tools/gnulib-lib/msvc-nothrow.c2
-rw-r--r--gettext-tools/gnulib-lib/msvc-nothrow.h2
-rw-r--r--gettext-tools/gnulib-lib/obstack.c2
-rw-r--r--gettext-tools/gnulib-lib/obstack.h2
-rw-r--r--gettext-tools/gnulib-lib/open.c2
-rw-r--r--gettext-tools/gnulib-lib/opendir.c23
-rw-r--r--gettext-tools/gnulib-lib/ostream.c2
-rw-r--r--gettext-tools/gnulib-lib/ostream.h2
-rw-r--r--gettext-tools/gnulib-lib/ostream.oo.c2
-rw-r--r--gettext-tools/gnulib-lib/ostream.oo.h2
-rw-r--r--gettext-tools/gnulib-lib/pathmax.h2
-rw-r--r--gettext-tools/gnulib-lib/pipe-filter-aux.c2
-rw-r--r--gettext-tools/gnulib-lib/pipe-filter-aux.h7
-rw-r--r--gettext-tools/gnulib-lib/pipe-filter-ii.c135
-rw-r--r--gettext-tools/gnulib-lib/pipe-filter.h2
-rw-r--r--gettext-tools/gnulib-lib/pipe-safer.c2
-rw-r--r--gettext-tools/gnulib-lib/pipe2-safer.c2
-rw-r--r--gettext-tools/gnulib-lib/pipe2.c2
-rw-r--r--gettext-tools/gnulib-lib/printf-args.c2
-rw-r--r--gettext-tools/gnulib-lib/printf-args.h2
-rw-r--r--gettext-tools/gnulib-lib/printf-parse.c2
-rw-r--r--gettext-tools/gnulib-lib/printf-parse.h2
-rw-r--r--gettext-tools/gnulib-lib/progname.c2
-rw-r--r--gettext-tools/gnulib-lib/progname.h2
-rw-r--r--gettext-tools/gnulib-lib/progreloc.c2
-rw-r--r--gettext-tools/gnulib-lib/propername.c2
-rw-r--r--gettext-tools/gnulib-lib/propername.h2
-rw-r--r--gettext-tools/gnulib-lib/qcopy-acl.c2
-rw-r--r--gettext-tools/gnulib-lib/qset-acl.c2
-rw-r--r--gettext-tools/gnulib-lib/quote.h2
-rw-r--r--gettext-tools/gnulib-lib/quotearg.c2
-rw-r--r--gettext-tools/gnulib-lib/quotearg.h2
-rw-r--r--gettext-tools/gnulib-lib/raise.c2
-rw-r--r--gettext-tools/gnulib-lib/rawmemchr.c2
-rw-r--r--gettext-tools/gnulib-lib/read.c2
-rw-r--r--gettext-tools/gnulib-lib/readdir.c2
-rw-r--r--gettext-tools/gnulib-lib/readlink.c2
-rw-r--r--gettext-tools/gnulib-lib/realloc.c2
-rw-r--r--gettext-tools/gnulib-lib/ref-add.sin2
-rw-r--r--gettext-tools/gnulib-lib/ref-del.sin2
-rw-r--r--gettext-tools/gnulib-lib/relocatable.c2
-rw-r--r--gettext-tools/gnulib-lib/relocatable.h2
-rw-r--r--gettext-tools/gnulib-lib/relocwrapper.c2
-rw-r--r--gettext-tools/gnulib-lib/rmdir.c2
-rw-r--r--gettext-tools/gnulib-lib/safe-read.c2
-rw-r--r--gettext-tools/gnulib-lib/safe-read.h2
-rw-r--r--gettext-tools/gnulib-lib/safe-write.c2
-rw-r--r--gettext-tools/gnulib-lib/safe-write.h2
-rw-r--r--gettext-tools/gnulib-lib/sched.in.h2
-rw-r--r--gettext-tools/gnulib-lib/secure_getenv.c2
-rw-r--r--gettext-tools/gnulib-lib/set-acl.c2
-rw-r--r--gettext-tools/gnulib-lib/set-permissions.c3
-rw-r--r--gettext-tools/gnulib-lib/setenv.c2
-rw-r--r--gettext-tools/gnulib-lib/setlocale.c3
-rw-r--r--gettext-tools/gnulib-lib/sh-quote.c2
-rw-r--r--gettext-tools/gnulib-lib/sh-quote.h2
-rw-r--r--gettext-tools/gnulib-lib/sig-handler.h2
-rw-r--r--gettext-tools/gnulib-lib/sigaction.c2
-rw-r--r--gettext-tools/gnulib-lib/signal.in.h2
-rw-r--r--gettext-tools/gnulib-lib/signbitd.c2
-rw-r--r--gettext-tools/gnulib-lib/signbitf.c2
-rw-r--r--gettext-tools/gnulib-lib/signbitl.c2
-rw-r--r--gettext-tools/gnulib-lib/sigprocmask.c2
-rw-r--r--gettext-tools/gnulib-lib/size_max.h2
-rw-r--r--gettext-tools/gnulib-lib/snprintf.c2
-rw-r--r--gettext-tools/gnulib-lib/spawn-pipe.c8
-rw-r--r--gettext-tools/gnulib-lib/spawn-pipe.h2
-rw-r--r--gettext-tools/gnulib-lib/spawn.in.h2
-rw-r--r--gettext-tools/gnulib-lib/spawn_faction_addclose.c2
-rw-r--r--gettext-tools/gnulib-lib/spawn_faction_adddup2.c2
-rw-r--r--gettext-tools/gnulib-lib/spawn_faction_addopen.c2
-rw-r--r--gettext-tools/gnulib-lib/spawn_faction_destroy.c2
-rw-r--r--gettext-tools/gnulib-lib/spawn_faction_init.c2
-rw-r--r--gettext-tools/gnulib-lib/spawn_int.h2
-rw-r--r--gettext-tools/gnulib-lib/spawnattr_destroy.c2
-rw-r--r--gettext-tools/gnulib-lib/spawnattr_init.c2
-rw-r--r--gettext-tools/gnulib-lib/spawnattr_setflags.c2
-rw-r--r--gettext-tools/gnulib-lib/spawnattr_setsigmask.c2
-rw-r--r--gettext-tools/gnulib-lib/spawni.c2
-rw-r--r--gettext-tools/gnulib-lib/spawnp.c2
-rw-r--r--gettext-tools/gnulib-lib/stat.c2
-rw-r--r--gettext-tools/gnulib-lib/stdarg.in.h2
-rw-r--r--gettext-tools/gnulib-lib/stdbool.in.h2
-rw-r--r--gettext-tools/gnulib-lib/stddef.in.h8
-rw-r--r--gettext-tools/gnulib-lib/stdint.in.h16
-rw-r--r--gettext-tools/gnulib-lib/stdio-write.c2
-rw-r--r--gettext-tools/gnulib-lib/stdio.in.h2
-rw-r--r--gettext-tools/gnulib-lib/stdlib.in.h2
-rw-r--r--gettext-tools/gnulib-lib/stpcpy.c2
-rw-r--r--gettext-tools/gnulib-lib/stpncpy.c2
-rw-r--r--gettext-tools/gnulib-lib/str-kmp.h2
-rw-r--r--gettext-tools/gnulib-lib/str-two-way.h2
-rw-r--r--gettext-tools/gnulib-lib/strchrnul.c2
-rw-r--r--gettext-tools/gnulib-lib/strcspn.c2
-rw-r--r--gettext-tools/gnulib-lib/streq.h2
-rw-r--r--gettext-tools/gnulib-lib/strerror-override.c2
-rw-r--r--gettext-tools/gnulib-lib/strerror-override.h2
-rw-r--r--gettext-tools/gnulib-lib/strerror.c2
-rw-r--r--gettext-tools/gnulib-lib/striconv.c2
-rw-r--r--gettext-tools/gnulib-lib/striconv.h2
-rw-r--r--gettext-tools/gnulib-lib/striconveh.c2
-rw-r--r--gettext-tools/gnulib-lib/striconveh.h2
-rw-r--r--gettext-tools/gnulib-lib/striconveha.c2
-rw-r--r--gettext-tools/gnulib-lib/striconveha.h2
-rw-r--r--gettext-tools/gnulib-lib/string.in.h2
-rw-r--r--gettext-tools/gnulib-lib/strnlen.c2
-rw-r--r--gettext-tools/gnulib-lib/strnlen1.c2
-rw-r--r--gettext-tools/gnulib-lib/strnlen1.h2
-rw-r--r--gettext-tools/gnulib-lib/strpbrk.c2
-rw-r--r--gettext-tools/gnulib-lib/strstr.c2
-rw-r--r--gettext-tools/gnulib-lib/strtol.c33
-rw-r--r--gettext-tools/gnulib-lib/strtoul.c2
-rw-r--r--gettext-tools/gnulib-lib/styled-ostream.c2
-rw-r--r--gettext-tools/gnulib-lib/styled-ostream.h2
-rw-r--r--gettext-tools/gnulib-lib/styled-ostream.oo.c2
-rw-r--r--gettext-tools/gnulib-lib/styled-ostream.oo.h2
-rw-r--r--gettext-tools/gnulib-lib/sys_select.in.h21
-rw-r--r--gettext-tools/gnulib-lib/sys_stat.in.h2
-rw-r--r--gettext-tools/gnulib-lib/sys_time.in.h2
-rw-r--r--gettext-tools/gnulib-lib/sys_types.in.h2
-rw-r--r--gettext-tools/gnulib-lib/sys_wait.in.h2
-rw-r--r--gettext-tools/gnulib-lib/tempname.c2
-rw-r--r--gettext-tools/gnulib-lib/tempname.h2
-rw-r--r--gettext-tools/gnulib-lib/term-ostream.c2
-rw-r--r--gettext-tools/gnulib-lib/term-ostream.h2
-rw-r--r--gettext-tools/gnulib-lib/term-ostream.oo.c2
-rw-r--r--gettext-tools/gnulib-lib/term-ostream.oo.h2
-rw-r--r--gettext-tools/gnulib-lib/term-styled-ostream.c2
-rw-r--r--gettext-tools/gnulib-lib/term-styled-ostream.h2
-rw-r--r--gettext-tools/gnulib-lib/term-styled-ostream.oo.c2
-rw-r--r--gettext-tools/gnulib-lib/term-styled-ostream.oo.h2
-rw-r--r--gettext-tools/gnulib-lib/terminfo.h2
-rw-r--r--gettext-tools/gnulib-lib/time.in.h2
-rw-r--r--gettext-tools/gnulib-lib/tmpdir.c2
-rw-r--r--gettext-tools/gnulib-lib/tmpdir.h2
-rw-r--r--gettext-tools/gnulib-lib/tparm.c2
-rw-r--r--gettext-tools/gnulib-lib/tputs.c2
-rw-r--r--gettext-tools/gnulib-lib/trim.c2
-rw-r--r--gettext-tools/gnulib-lib/trim.h2
-rw-r--r--gettext-tools/gnulib-lib/uniconv.in.h2
-rw-r--r--gettext-tools/gnulib-lib/uniconv/u8-conv-from-enc.c2
-rw-r--r--gettext-tools/gnulib-lib/unictype.in.h2
-rw-r--r--gettext-tools/gnulib-lib/unictype/bitmap.h2
-rw-r--r--gettext-tools/gnulib-lib/unictype/ctype_space.c2
-rw-r--r--gettext-tools/gnulib-lib/unilbrk.in.h2
-rw-r--r--gettext-tools/gnulib-lib/unilbrk/lbrktables.c2
-rw-r--r--gettext-tools/gnulib-lib/unilbrk/lbrktables.h2
-rw-r--r--gettext-tools/gnulib-lib/unilbrk/u8-possible-linebreaks.c2
-rw-r--r--gettext-tools/gnulib-lib/unilbrk/u8-width-linebreaks.c2
-rw-r--r--gettext-tools/gnulib-lib/unilbrk/ulc-common.c2
-rw-r--r--gettext-tools/gnulib-lib/unilbrk/ulc-common.h2
-rw-r--r--gettext-tools/gnulib-lib/unilbrk/ulc-width-linebreaks.c2
-rw-r--r--gettext-tools/gnulib-lib/uniname.in.h2
-rw-r--r--gettext-tools/gnulib-lib/uniname/uniname.c2
-rw-r--r--gettext-tools/gnulib-lib/unistd--.h2
-rw-r--r--gettext-tools/gnulib-lib/unistd-safer.h2
-rw-r--r--gettext-tools/gnulib-lib/unistd.in.h2
-rw-r--r--gettext-tools/gnulib-lib/unistr.in.h2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u16-mbtouc-aux.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u16-mbtouc.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u8-check.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u8-mblen.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u8-mbtouc-aux.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe-aux.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u8-mbtouc.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u8-mbtoucr.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u8-prev.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u8-uctomb-aux.c2
-rw-r--r--gettext-tools/gnulib-lib/unistr/u8-uctomb.c2
-rw-r--r--gettext-tools/gnulib-lib/unitypes.in.h2
-rw-r--r--gettext-tools/gnulib-lib/uniwidth.in.h2
-rw-r--r--gettext-tools/gnulib-lib/uniwidth/cjk.h2
-rw-r--r--gettext-tools/gnulib-lib/uniwidth/width.c2
-rw-r--r--gettext-tools/gnulib-lib/unlocked-io.h2
-rw-r--r--gettext-tools/gnulib-lib/unsetenv.c2
-rw-r--r--gettext-tools/gnulib-lib/vasnprintf.c2
-rw-r--r--gettext-tools/gnulib-lib/vasnprintf.h2
-rw-r--r--gettext-tools/gnulib-lib/vasprintf.c2
-rw-r--r--gettext-tools/gnulib-lib/verify.h2
-rw-r--r--gettext-tools/gnulib-lib/vsnprintf.c2
-rw-r--r--gettext-tools/gnulib-lib/w32spawn.h17
-rw-r--r--gettext-tools/gnulib-lib/wait-process.c2
-rw-r--r--gettext-tools/gnulib-lib/wait-process.h2
-rw-r--r--gettext-tools/gnulib-lib/waitpid.c2
-rw-r--r--gettext-tools/gnulib-lib/wchar.in.h9
-rw-r--r--gettext-tools/gnulib-lib/wctype.in.h2
-rw-r--r--gettext-tools/gnulib-lib/wcwidth.c2
-rw-r--r--gettext-tools/gnulib-lib/write.c2
-rw-r--r--gettext-tools/gnulib-lib/xalloc.h2
-rw-r--r--gettext-tools/gnulib-lib/xasprintf.c2
-rw-r--r--gettext-tools/gnulib-lib/xconcat-filename.c2
-rw-r--r--gettext-tools/gnulib-lib/xerror.c2
-rw-r--r--gettext-tools/gnulib-lib/xerror.h2
-rw-r--r--gettext-tools/gnulib-lib/xmalloc.c4
-rw-r--r--gettext-tools/gnulib-lib/xmalloca.c2
-rw-r--r--gettext-tools/gnulib-lib/xmalloca.h2
-rw-r--r--gettext-tools/gnulib-lib/xmemdup0.c44
-rw-r--r--gettext-tools/gnulib-lib/xmemdup0.h41
-rw-r--r--gettext-tools/gnulib-lib/xreadlink.c2
-rw-r--r--gettext-tools/gnulib-lib/xreadlink.h2
-rw-r--r--gettext-tools/gnulib-lib/xsetenv.c2
-rw-r--r--gettext-tools/gnulib-lib/xsetenv.h2
-rw-r--r--gettext-tools/gnulib-lib/xsize.h2
-rw-r--r--gettext-tools/gnulib-lib/xstrdup.c2
-rw-r--r--gettext-tools/gnulib-lib/xstriconv.c2
-rw-r--r--gettext-tools/gnulib-lib/xstriconv.h2
-rw-r--r--gettext-tools/gnulib-lib/xstriconveh.c2
-rw-r--r--gettext-tools/gnulib-lib/xstriconveh.h2
-rw-r--r--gettext-tools/gnulib-lib/xvasprintf.c2
-rw-r--r--gettext-tools/gnulib-lib/xvasprintf.h2
413 files changed, 1268 insertions, 637 deletions
diff --git a/gettext-tools/gnulib-lib/Makefile.am b/gettext-tools/gnulib-lib/Makefile.am
index 9e43721..25c9cc1 100644
--- a/gettext-tools/gnulib-lib/Makefile.am
+++ b/gettext-tools/gnulib-lib/Makefile.am
@@ -1,5 +1,5 @@
## Makefile for the gettext-tools/gnulib-lib subdirectory of GNU gettext
-## Copyright (C) 1995-1998, 2000-2006, 2009, 2015 Free Software
+## Copyright (C) 1995-1998, 2000-2006, 2009, 2015-2016 Free Software
## Foundation, Inc.
##
## This program is free software: you can redistribute it and/or modify
@@ -61,6 +61,11 @@ include Makefile.gnulib
# Which classes to export from the shared library.
MOOPPFLAGS += --dllexport=styled_ostream
+# OS/2 does not support a DLL name longer than 8 characters.
+if OS2
+libgettextlib_la_LDFLAGS += -os2dllname gtlib
+endif
+
# Linking with C++ libraries is needed _only_ on mingw and Cygwin.
if !WOE32DLL
libgettextlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
diff --git a/gettext-tools/gnulib-lib/Makefile.gnulib b/gettext-tools/gnulib-lib/Makefile.gnulib
index 1a63a0a..438bf9d 100644
--- a/gettext-tools/gnulib-lib/Makefile.gnulib
+++ b/gettext-tools/gnulib-lib/Makefile.gnulib
@@ -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 --local-dir=gnulib-local --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --tests-base=gnulib-tests --aux-dir=../build-aux --with-tests --avoid=hash-tests --avoid=unilbrk/u8-possible-linebreaks-tests --avoid=unilbrk/ulc-width-linebreaks-tests --avoid=unistr/u8-mbtouc-tests --avoid=unistr/u8-mbtouc-unsafe-tests --avoid=uniwidth/width-tests --makefile-name=Makefile.gnulib --no-conditional-dependencies --libtool --macro-prefix=gl alloca-opt ansi-c++-opt atexit backupfile basename binary-io bison-i18n byteswap c-ctype c-strcase c-strcasestr c-strstr clean-temp closedir closeout copy-file csharpcomp csharpcomp-script csharpexec csharpexec-script error error-progname execute extensions fd-ostream file-ostream filename findprog fnmatch fopen fstrcmp full-write fwriteerror gcd gcj getline getopt-gnu gettext-h gettext-tools-misc hash html-styled-ostream iconv include_next java javacomp javacomp-script javaexec javaexec-script libunistring-optional localcharset locale localename lock malloc-posix mbrtowc mbsinit memmove memset minmax multiarch obstack open opendir openmp ostream pipe-filter-ii progname propername readdir relocatable-prog relocatable-script setlocale sh-quote sigpipe sigprocmask snippet/arg-nonnull snippet/c++defs snippet/warn-on-use spawn-pipe ssize_t stdbool stddef stdint stdio stdlib stpcpy stpncpy strcspn streq strerror strpbrk strtol strtoul styled-ostream sys_select sys_stat sys_time term-styled-ostream trim unictype/ctype-space unilbrk/ulc-width-linebreaks uniname/uniname unistd unistr/u16-mbtouc unistr/u8-mbtouc unistr/u8-mbtoucr unistr/u8-uctomb uniwidth/width unlocked-io vasprintf verify wait-process wchar wctype-h write xalloc xconcat-filename xerror xmalloca xsetenv xstriconv xstriconveh xvasprintf
+# Reproduce by: gnulib-tool --import --local-dir=gnulib-local --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --tests-base=gnulib-tests --aux-dir=../build-aux --with-tests --avoid=hash-tests --avoid=unilbrk/u8-possible-linebreaks-tests --avoid=unilbrk/ulc-width-linebreaks-tests --avoid=unistr/u8-mbtouc-tests --avoid=unistr/u8-mbtouc-unsafe-tests --avoid=uniwidth/width-tests --makefile-name=Makefile.gnulib --no-conditional-dependencies --libtool --macro-prefix=gl alloca-opt ansi-c++-opt atexit backupfile basename binary-io bison-i18n byteswap c-ctype c-strcase c-strcasestr c-strstr clean-temp closedir closeout copy-file csharpcomp csharpcomp-script csharpexec csharpexec-script error error-progname execute extensions fd-ostream file-ostream filename findprog fnmatch fopen fstrcmp full-write fwriteerror gcd gcj getline getopt-gnu gettext gettext-h gettext-tools-misc hash html-styled-ostream iconv include_next java javacomp javacomp-script javaexec javaexec-script libunistring-optional localcharset locale localename lock malloc-posix mbrtowc mbsinit memmove memset minmax multiarch obstack open opendir openmp ostream pipe-filter-ii progname propername readdir relocatable-prog relocatable-script setlocale sh-quote sigpipe sigprocmask snippet/arg-nonnull snippet/c++defs snippet/warn-on-use spawn-pipe ssize_t stdbool stddef stdint stdio stdlib stpcpy stpncpy strcspn streq strerror strpbrk strtol strtoul styled-ostream sys_select sys_stat sys_time term-styled-ostream trim unictype/ctype-space unilbrk/ulc-width-linebreaks uniname/uniname unistd unistr/u16-mbtouc unistr/u8-mbtouc unistr/u8-mbtoucr unistr/u8-uctomb uniwidth/width unlocked-io vasprintf verify wait-process wchar wctype-h write xalloc xconcat-filename xerror xmalloca xmemdup0 xsetenv xstriconv xstriconveh xvasprintf
MOSTLYCLEANFILES += core *.stackdump
@@ -420,6 +420,15 @@ EXTRA_DIST += dirent.in.h
## end gnulib module dirent
+## begin gnulib module dirfd
+
+
+EXTRA_DIST += dirfd.c
+
+EXTRA_libgettextlib_la_SOURCES += dirfd.c
+
+## end gnulib module dirfd
+
## begin gnulib module dosname
@@ -862,6 +871,14 @@ V_GPERF_0 = @echo " GPERF " $@;
## end gnulib module gperf
+## begin gnulib module hard-locale
+
+libgettextlib_la_SOURCES += hard-locale.c
+
+EXTRA_DIST += hard-locale.h
+
+## end gnulib module hard-locale
+
## begin gnulib module hash
libgettextlib_la_SOURCES += hash.h hash.c
@@ -4704,6 +4721,15 @@ EXTRA_DIST += xmalloca.h
## end gnulib module xmalloca
+## begin gnulib module xmemdup0
+
+
+EXTRA_DIST += xmemdup0.c xmemdup0.h
+
+EXTRA_libgettextlib_la_SOURCES += xmemdup0.c
+
+## end gnulib module xmemdup0
+
## begin gnulib module xreadlink
libgettextlib_la_SOURCES += xreadlink.c
diff --git a/gettext-tools/gnulib-lib/Makefile.in b/gettext-tools/gnulib-lib/Makefile.in
index 30edf60..a8e89eb 100644
--- a/gettext-tools/gnulib-lib/Makefile.in
+++ b/gettext-tools/gnulib-lib/Makefile.in
@@ -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 --local-dir=gnulib-local --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --tests-base=gnulib-tests --aux-dir=../build-aux --with-tests --avoid=hash-tests --avoid=unilbrk/u8-possible-linebreaks-tests --avoid=unilbrk/ulc-width-linebreaks-tests --avoid=unistr/u8-mbtouc-tests --avoid=unistr/u8-mbtouc-unsafe-tests --avoid=uniwidth/width-tests --makefile-name=Makefile.gnulib --no-conditional-dependencies --libtool --macro-prefix=gl alloca-opt ansi-c++-opt atexit backupfile basename binary-io bison-i18n byteswap c-ctype c-strcase c-strcasestr c-strstr clean-temp closedir closeout copy-file csharpcomp csharpcomp-script csharpexec csharpexec-script error error-progname execute extensions fd-ostream file-ostream filename findprog fnmatch fopen fstrcmp full-write fwriteerror gcd gcj getline getopt-gnu gettext-h gettext-tools-misc hash html-styled-ostream iconv include_next java javacomp javacomp-script javaexec javaexec-script libunistring-optional localcharset locale localename lock malloc-posix mbrtowc mbsinit memmove memset minmax multiarch obstack open opendir openmp ostream pipe-filter-ii progname propername readdir relocatable-prog relocatable-script setlocale sh-quote sigpipe sigprocmask snippet/arg-nonnull snippet/c++defs snippet/warn-on-use spawn-pipe ssize_t stdbool stddef stdint stdio stdlib stpcpy stpncpy strcspn streq strerror strpbrk strtol strtoul styled-ostream sys_select sys_stat sys_time term-styled-ostream trim unictype/ctype-space unilbrk/ulc-width-linebreaks uniname/uniname unistd unistr/u16-mbtouc unistr/u8-mbtouc unistr/u8-mbtoucr unistr/u8-uctomb uniwidth/width unlocked-io vasprintf verify wait-process wchar wctype-h write xalloc xconcat-filename xerror xmalloca xsetenv xstriconv xstriconveh xvasprintf
+# Reproduce by: gnulib-tool --import --local-dir=gnulib-local --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --tests-base=gnulib-tests --aux-dir=../build-aux --with-tests --avoid=hash-tests --avoid=unilbrk/u8-possible-linebreaks-tests --avoid=unilbrk/ulc-width-linebreaks-tests --avoid=unistr/u8-mbtouc-tests --avoid=unistr/u8-mbtouc-unsafe-tests --avoid=uniwidth/width-tests --makefile-name=Makefile.gnulib --no-conditional-dependencies --libtool --macro-prefix=gl alloca-opt ansi-c++-opt atexit backupfile basename binary-io bison-i18n byteswap c-ctype c-strcase c-strcasestr c-strstr clean-temp closedir closeout copy-file csharpcomp csharpcomp-script csharpexec csharpexec-script error error-progname execute extensions fd-ostream file-ostream filename findprog fnmatch fopen fstrcmp full-write fwriteerror gcd gcj getline getopt-gnu gettext gettext-h gettext-tools-misc hash html-styled-ostream iconv include_next java javacomp javacomp-script javaexec javaexec-script libunistring-optional localcharset locale localename lock malloc-posix mbrtowc mbsinit memmove memset minmax multiarch obstack open opendir openmp ostream pipe-filter-ii progname propername readdir relocatable-prog relocatable-script setlocale sh-quote sigpipe sigprocmask snippet/arg-nonnull snippet/c++defs snippet/warn-on-use spawn-pipe ssize_t stdbool stddef stdint stdio stdlib stpcpy stpncpy strcspn streq strerror strpbrk strtol strtoul styled-ostream sys_select sys_stat sys_time term-styled-ostream trim unictype/ctype-space unilbrk/ulc-width-linebreaks uniname/uniname unistd unistr/u16-mbtouc unistr/u8-mbtouc unistr/u8-mbtoucr unistr/u8-uctomb uniwidth/width unlocked-io vasprintf verify wait-process wchar wctype-h write xalloc xconcat-filename xerror xmalloca xmemdup0 xsetenv xstriconv xstriconveh xvasprintf
VPATH = @srcdir@
@@ -153,6 +153,9 @@ host_triplet = @host@
@LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE@am__append_33 = unistr/u8-prev.c
@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@am__append_34 = unistr/u8-uctomb.c unistr/u8-uctomb-aux.c
@LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE@am__append_35 = uniwidth/width.c
+
+# OS/2 does not support a DLL name longer than 8 characters.
+@OS2_TRUE@am__append_36 = -os2dllname gtlib
subdir = gnulib-lib
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = \
@@ -185,6 +188,7 @@ am__aclocal_m4_deps = \
$(top_srcdir)/gnulib-m4/ctype.m4 \
$(top_srcdir)/gnulib-m4/curses.m4 \
$(top_srcdir)/gnulib-m4/dirent_h.m4 \
+ $(top_srcdir)/gnulib-m4/dirfd.m4 \
$(top_srcdir)/gnulib-m4/double-slash-root.m4 \
$(top_srcdir)/gnulib-m4/dup.m4 $(top_srcdir)/gnulib-m4/dup2.m4 \
$(top_srcdir)/gnulib-m4/eaccess.m4 \
@@ -221,6 +225,7 @@ am__aclocal_m4_deps = \
$(top_srcdir)/gnulib-m4/gettimeofday.m4 \
$(top_srcdir)/gnulib-m4/gnulib-common.m4 \
$(top_srcdir)/gnulib-m4/gnulib-comp.m4 \
+ $(top_srcdir)/gnulib-m4/hard-locale.m4 \
$(top_srcdir)/gnulib-m4/iconv_h.m4 \
$(top_srcdir)/gnulib-m4/iconv_open.m4 \
$(top_srcdir)/gnulib-m4/include_next.m4 \
@@ -502,22 +507,23 @@ am__libgettextlib_la_SOURCES_DIST = copy-acl.c set-acl.c \
dup-safer-flag.c file-ostream.c findprog.h findprog.c \
fstrcmp.h fstrcmp.c full-write.h full-write.c fwriteerror.h \
fwriteerror.c gcd.h gcd.c gettext.h \
- ../woe32dll/gettextlib-exports.c hash.h hash.c html-ostream.c \
- html-styled-ostream.c ../woe32dll/c++html-styled-ostream.cc \
- javacomp.h javacomp.c javaexec.h javaexec.c javaversion.h \
- javaversion.c gl_linkedhash_list.h gl_linkedhash_list.c \
- gl_anyhash_list1.h gl_anyhash_list2.h gl_anylinked_list1.h \
- gl_anylinked_list2.h gl_list.h gl_list.c localcharset.h \
- localcharset.c localename.c glthread/lock.h glthread/lock.c \
- malloca.c math.c mbchar.c mbiter.h mbiter.c mbslen.c mbsstr.c \
- mbswidth.h mbswidth.c mbuiter.h mbuiter.c minmax.h ostream.c \
- pipe-filter-ii.c pipe-filter-aux.c pipe2.c pipe2-safer.c \
- progname.h progname.c propername.h propername.c qcopy-acl.c \
- qset-acl.c quotearg.c safe-read.c safe-write.c sh-quote.h \
- sh-quote.c sig-handler.c size_max.h spawn-pipe.h spawn-pipe.c \
- striconv.h striconv.c striconveh.h striconveh.c striconveha.h \
- striconveha.c strnlen1.h strnlen1.c styled-ostream.c \
- tempname.c term-ostream.c term-styled-ostream.c \
+ ../woe32dll/gettextlib-exports.c hard-locale.c hash.h hash.c \
+ html-ostream.c html-styled-ostream.c \
+ ../woe32dll/c++html-styled-ostream.cc javacomp.h javacomp.c \
+ javaexec.h javaexec.c javaversion.h javaversion.c \
+ gl_linkedhash_list.h gl_linkedhash_list.c gl_anyhash_list1.h \
+ gl_anyhash_list2.h gl_anylinked_list1.h gl_anylinked_list2.h \
+ gl_list.h gl_list.c localcharset.h localcharset.c localename.c \
+ glthread/lock.h glthread/lock.c malloca.c math.c mbchar.c \
+ mbiter.h mbiter.c mbslen.c mbsstr.c mbswidth.h mbswidth.c \
+ mbuiter.h mbuiter.c minmax.h ostream.c pipe-filter-ii.c \
+ pipe-filter-aux.c pipe2.c pipe2-safer.c progname.h progname.c \
+ propername.h propername.c qcopy-acl.c qset-acl.c quotearg.c \
+ safe-read.c safe-write.c sh-quote.h sh-quote.c sig-handler.c \
+ size_max.h spawn-pipe.h spawn-pipe.c striconv.h striconv.c \
+ striconveh.h striconveh.c striconveha.h striconveha.c \
+ strnlen1.h strnlen1.c styled-ostream.c tempname.c \
+ term-ostream.c term-styled-ostream.c \
../woe32dll/c++term-styled-ostream.cc glthread/threadlib.c \
glthread/tls.h glthread/tls.c tmpdir.h tmpdir.c trim.c \
uniconv/u8-conv-from-enc.c unictype/ctype_space.c \
@@ -575,9 +581,9 @@ am_libgettextlib_la_OBJECTS = copy-acl.lo set-acl.lo \
execute.lo exitfail.lo fatal-signal.lo fd-hook.lo \
fd-ostream.lo fd-safer-flag.lo dup-safer-flag.lo \
file-ostream.lo findprog.lo fstrcmp.lo full-write.lo \
- fwriteerror.lo gcd.lo $(am__objects_1) hash.lo html-ostream.lo \
- $(am__objects_2) $(am__objects_3) javacomp.lo javaexec.lo \
- javaversion.lo gl_linkedhash_list.lo gl_list.lo \
+ fwriteerror.lo gcd.lo $(am__objects_1) hard-locale.lo hash.lo \
+ html-ostream.lo $(am__objects_2) $(am__objects_3) javacomp.lo \
+ javaexec.lo javaversion.lo gl_linkedhash_list.lo gl_list.lo \
localcharset.lo localename.lo glthread/lock.lo malloca.lo \
math.lo mbchar.lo mbiter.lo mbslen.lo mbsstr.lo mbswidth.lo \
mbuiter.lo ostream.lo pipe-filter-ii.lo pipe-filter-aux.lo \
@@ -2102,8 +2108,8 @@ EXTRA_DIST = acl-internal.h acl.h acl_entries.c alignof.h alloca.in.h \
concat-filename.h $(top_srcdir)/../build-aux/csharpcomp.sh.in \
classpath.c classpath.h \
$(top_srcdir)/../build-aux/csharpexec.sh.in dirent.in.h \
- dosname.h dup2.c errno.in.h error.c error.h exitfail.h fcntl.c \
- fcntl.in.h fd-hook.h fd-ostream.h fd-ostream.c \
+ dirfd.c dosname.h dup2.c errno.in.h error.c error.h exitfail.h \
+ fcntl.c fcntl.in.h fd-hook.h fd-ostream.h fd-ostream.c \
fd_ostream.priv.h fd_ostream.vt.h fd-ostream.oo.c \
fd-ostream.oo.h file-ostream.h file-ostream.c \
file_ostream.priv.h file_ostream.vt.h file-ostream.oo.c \
@@ -2111,14 +2117,15 @@ EXTRA_DIST = acl-internal.h acl.h acl_entries.c alignof.h alloca.in.h \
fnmatch.c fnmatch.in.h fnmatch_loop.c fopen.c fstat.c \
getdelim.c getdtablesize.c getline.c getopt.c getopt.in.h \
getopt1.c getopt_int.h $(top_srcdir)/../build-aux/config.rpath \
- gettimeofday.c $(top_srcdir)/../build-aux/config.rpath \
- html-ostream.h html-ostream.c html_ostream.priv.h \
- html_ostream.vt.h html-ostream.oo.c html-ostream.oo.h \
- html-styled-ostream.h html-styled-ostream.c \
- html_styled_ostream.priv.h html_styled_ostream.vt.h \
- html-styled-ostream.oo.c html-styled-ostream.oo.h iconv.in.h \
- iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h \
- iconv_open-osf.h iconv_open-solaris.h iconv.c iconv_close.c \
+ gettimeofday.c hard-locale.h \
+ $(top_srcdir)/../build-aux/config.rpath html-ostream.h \
+ html-ostream.c html_ostream.priv.h html_ostream.vt.h \
+ html-ostream.oo.c html-ostream.oo.h html-styled-ostream.h \
+ html-styled-ostream.c html_styled_ostream.priv.h \
+ html_styled_ostream.vt.h html-styled-ostream.oo.c \
+ html-styled-ostream.oo.h iconv.in.h iconv_open-aix.h \
+ iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h \
+ iconv_open-solaris.h iconv.c iconv_close.c \
iconv_open-aix.gperf iconv_open-hpux.gperf \
iconv_open-irix.gperf iconv_open-osf.gperf \
iconv_open-solaris.gperf iconv_open.c ignore-value.h \
@@ -2250,8 +2257,8 @@ EXTRA_DIST = acl-internal.h acl.h acl_entries.c alignof.h alloca.in.h \
printf-args.c printf-args.h printf-parse.c printf-parse.h \
vasnprintf.c vasnprintf.h asprintf.c vasprintf.c verify.h \
vsnprintf.c waitpid.c wchar.in.h wctype.in.h wcwidth.c write.c \
- concat-filename.h xmalloca.h xreadlink.h xstriconveh.h \
- xalloc.h
+ concat-filename.h xmalloca.h xmemdup0.c xmemdup0.h xreadlink.h \
+ xstriconveh.h xalloc.h
# The BUILT_SOURCES created by this Makefile snippet are not used via #include
# statements but through direct file reference. Therefore this snippet must be
@@ -2375,91 +2382,93 @@ libgettextlib_la_SOURCES = copy-acl.c set-acl.c acl-errno-valid.c \
fd-ostream.c fd-safer-flag.c dup-safer-flag.c file-ostream.c \
findprog.h findprog.c fstrcmp.h fstrcmp.c full-write.h \
full-write.c fwriteerror.h fwriteerror.c gcd.h gcd.c gettext.h \
- $(am__append_2) hash.h hash.c html-ostream.c $(am__append_5) \
- $(am__append_6) javacomp.h javacomp.c javaexec.h javaexec.c \
- javaversion.h javaversion.c gl_linkedhash_list.h \
- gl_linkedhash_list.c gl_anyhash_list1.h gl_anyhash_list2.h \
- gl_anylinked_list1.h gl_anylinked_list2.h gl_list.h gl_list.c \
- localcharset.h localcharset.c localename.c glthread/lock.h \
- glthread/lock.c malloca.c math.c mbchar.c mbiter.h mbiter.c \
- mbslen.c mbsstr.c mbswidth.h mbswidth.c mbuiter.h mbuiter.c \
- minmax.h ostream.c pipe-filter-ii.c pipe-filter-aux.c pipe2.c \
- pipe2-safer.c progname.h progname.c propername.h propername.c \
- qcopy-acl.c qset-acl.c quotearg.c safe-read.c safe-write.c \
- sh-quote.h sh-quote.c sig-handler.c size_max.h spawn-pipe.h \
- spawn-pipe.c w32spawn.h striconv.h striconv.c striconveh.h \
- striconveh.c striconveha.h striconveha.c strnlen1.h strnlen1.c \
- styled-ostream.c tempname.c term-ostream.c $(am__append_19) \
- $(am__append_20) glthread/threadlib.c glthread/tls.h \
- glthread/tls.c tmpdir.h tmpdir.c trim.c $(am__append_21) \
- $(am__append_22) unilbrk/lbrktables.c $(am__append_23) \
- $(am__append_24) unilbrk/ulc-common.c $(am__append_25) \
- $(am__append_26) unistd.c dup-safer.c fd-safer.c pipe-safer.c \
- $(am__append_27) $(am__append_28) $(am__append_29) \
- $(am__append_30) $(am__append_31) $(am__append_32) \
- $(am__append_33) $(am__append_34) $(am__append_35) \
- wait-process.h wait-process.c wctype-h.c xalloc.h xmalloc.c \
- xstrdup.c xconcat-filename.c xerror.h xerror.c gl_xlist.h \
- gl_xlist.c xmalloca.c xreadlink.c xsetenv.h xsetenv.c xsize.h \
- xsize.c xstriconv.h xstriconv.c xstriconveh.c xvasprintf.h \
+ $(am__append_2) hard-locale.c hash.h hash.c html-ostream.c \
+ $(am__append_5) $(am__append_6) javacomp.h javacomp.c \
+ javaexec.h javaexec.c javaversion.h javaversion.c \
+ gl_linkedhash_list.h gl_linkedhash_list.c gl_anyhash_list1.h \
+ gl_anyhash_list2.h gl_anylinked_list1.h gl_anylinked_list2.h \
+ gl_list.h gl_list.c localcharset.h localcharset.c localename.c \
+ glthread/lock.h glthread/lock.c malloca.c math.c mbchar.c \
+ mbiter.h mbiter.c mbslen.c mbsstr.c mbswidth.h mbswidth.c \
+ mbuiter.h mbuiter.c minmax.h ostream.c pipe-filter-ii.c \
+ pipe-filter-aux.c pipe2.c pipe2-safer.c progname.h progname.c \
+ propername.h propername.c qcopy-acl.c qset-acl.c quotearg.c \
+ safe-read.c safe-write.c sh-quote.h sh-quote.c sig-handler.c \
+ size_max.h spawn-pipe.h spawn-pipe.c w32spawn.h striconv.h \
+ striconv.c striconveh.h striconveh.c striconveha.h \
+ striconveha.c strnlen1.h strnlen1.c styled-ostream.c \
+ tempname.c term-ostream.c $(am__append_19) $(am__append_20) \
+ glthread/threadlib.c glthread/tls.h glthread/tls.c tmpdir.h \
+ tmpdir.c trim.c $(am__append_21) $(am__append_22) \
+ unilbrk/lbrktables.c $(am__append_23) $(am__append_24) \
+ unilbrk/ulc-common.c $(am__append_25) $(am__append_26) \
+ unistd.c dup-safer.c fd-safer.c pipe-safer.c $(am__append_27) \
+ $(am__append_28) $(am__append_29) $(am__append_30) \
+ $(am__append_31) $(am__append_32) $(am__append_33) \
+ $(am__append_34) $(am__append_35) wait-process.h \
+ wait-process.c wctype-h.c xalloc.h xmalloc.c xstrdup.c \
+ xconcat-filename.c xerror.h xerror.c gl_xlist.h gl_xlist.c \
+ xmalloca.c xreadlink.c xsetenv.h xsetenv.c xsize.h xsize.c \
+ xstriconv.h xstriconv.c xstriconveh.c xvasprintf.h \
xvasprintf.c xasprintf.c
libgettextlib_la_LIBADD = $(gl_LTLIBOBJS) $(am__append_8) \
$(am__append_13) $(am__append_16)
libgettextlib_la_DEPENDENCIES = $(gl_LTLIBOBJS) $(am__append_9) \
$(am__append_14) $(am__append_17)
EXTRA_libgettextlib_la_SOURCES = acl_entries.c atexit.c \
- canonicalize-lgpl.c close.c closedir.c classpath.c dup2.c \
- error.c fcntl.c fd-ostream.oo.c file-ostream.oo.c float.c \
- itold.c fnmatch.c fnmatch_loop.c fopen.c fstat.c getdelim.c \
- getdtablesize.c getline.c getopt.c getopt1.c gettimeofday.c \
- html-ostream.oo.c html-styled-ostream.oo.c iconv.c \
- iconv_close.c iconv_open.c isinf.c isnan.c isnand.c isnan.c \
- isnand.c isnan.c isnanf.c isnan.c isnanf.c isnan.c isnanl.c \
- isnan.c isnanl.c iswblank.c libcroco/cr-additional-sel.c \
- libcroco/cr-attr-sel.c libcroco/cr-cascade.c \
- libcroco/cr-declaration.c libcroco/cr-doc-handler.c \
- libcroco/cr-enc-handler.c libcroco/cr-fonts.c \
- libcroco/cr-input.c libcroco/cr-num.c libcroco/cr-om-parser.c \
- libcroco/cr-parser.c libcroco/cr-parsing-location.c \
- libcroco/cr-prop-list.c libcroco/cr-pseudo.c libcroco/cr-rgb.c \
- libcroco/cr-sel-eng.c libcroco/cr-selector.c \
- libcroco/cr-simple-sel.c libcroco/cr-statement.c \
- libcroco/cr-string.c libcroco/cr-style.c \
- libcroco/cr-stylesheet.c libcroco/cr-term.c \
- libcroco/cr-tknzr.c libcroco/cr-token.c libcroco/cr-utils.c \
- glib/ghash.c glib/glist.c glib/gmessages.c glib/gprimes.c \
- glib/gstrfuncs.c glib/gstring.c libxml/DOCBparser.c \
- libxml/HTMLparser.c libxml/HTMLtree.c libxml/SAX.c \
- libxml/SAX2.c libxml/buf.c libxml/c14n.c libxml/catalog.c \
- libxml/chvalid.c libxml/debugXML.c libxml/dict.c \
- libxml/encoding.c libxml/entities.c libxml/error.c \
- libxml/globals.c libxml/hash.c libxml/legacy.c libxml/list.c \
- libxml/nanoftp.c libxml/nanohttp.c libxml/parser.c \
- libxml/parserInternals.c libxml/pattern.c libxml/relaxng.c \
- libxml/schematron.c libxml/threads.c libxml/tree.c \
- libxml/trionan.c libxml/uri.c libxml/valid.c libxml/xinclude.c \
- libxml/xlink.c libxml/xmlIO.c libxml/xmlmemory.c \
- libxml/xmlmodule.c libxml/xmlreader.c libxml/xmlregexp.c \
- libxml/xmlsave.c libxml/xmlschemas.c libxml/xmlschemastypes.c \
- libxml/xmlstring.c libxml/xmlunicode.c libxml/xmlwriter.c \
- libxml/xpath.c libxml/xpointer.c log10.c lstat.c malloc.c \
- mbrtowc.c mbsinit.c mbsrtowcs-state.c mbsrtowcs.c memchr.c \
- memmove.c memset.c mkdtemp.c msvc-inval.c msvc-nothrow.c \
- obstack.c open.c opendir.c ostream.oo.c spawni.c \
- spawn_faction_addclose.c spawn_faction_adddup2.c \
- spawn_faction_addopen.c spawn_faction_destroy.c \
- spawn_faction_init.c spawnattr_destroy.c spawnattr_init.c \
- spawnattr_setflags.c spawnattr_setsigmask.c spawnp.c raise.c \
- rawmemchr.c read.c readdir.c readlink.c realloc.c progreloc.c \
- relocatable.c rmdir.c safe-read.c secure_getenv.c setenv.c \
- setlocale.c sigaction.c signbitd.c signbitf.c signbitl.c \
- stdio-write.c sigprocmask.c snprintf.c stat.c stpcpy.c \
- stpncpy.c strchrnul.c strcspn.c strerror.c strerror-override.c \
- strnlen.c strpbrk.c strstr.c strtol.c strtol.c strtoul.c \
- styled-ostream.oo.c term-ostream.oo.c term-styled-ostream.oo.c \
- tparm.c tputs.c unsetenv.c asnprintf.c printf-args.c \
- printf-parse.c vasnprintf.c asprintf.c vasprintf.c vsnprintf.c \
- waitpid.c wcwidth.c write.c
+ canonicalize-lgpl.c close.c closedir.c classpath.c dirfd.c \
+ dup2.c error.c fcntl.c fd-ostream.oo.c file-ostream.oo.c \
+ float.c itold.c fnmatch.c fnmatch_loop.c fopen.c fstat.c \
+ getdelim.c getdtablesize.c getline.c getopt.c getopt1.c \
+ gettimeofday.c html-ostream.oo.c html-styled-ostream.oo.c \
+ iconv.c iconv_close.c iconv_open.c isinf.c isnan.c isnand.c \
+ isnan.c isnand.c isnan.c isnanf.c isnan.c isnanf.c isnan.c \
+ isnanl.c isnan.c isnanl.c iswblank.c \
+ libcroco/cr-additional-sel.c libcroco/cr-attr-sel.c \
+ libcroco/cr-cascade.c libcroco/cr-declaration.c \
+ libcroco/cr-doc-handler.c libcroco/cr-enc-handler.c \
+ libcroco/cr-fonts.c libcroco/cr-input.c libcroco/cr-num.c \
+ libcroco/cr-om-parser.c libcroco/cr-parser.c \
+ libcroco/cr-parsing-location.c libcroco/cr-prop-list.c \
+ libcroco/cr-pseudo.c libcroco/cr-rgb.c libcroco/cr-sel-eng.c \
+ libcroco/cr-selector.c libcroco/cr-simple-sel.c \
+ libcroco/cr-statement.c libcroco/cr-string.c \
+ libcroco/cr-style.c libcroco/cr-stylesheet.c \
+ libcroco/cr-term.c libcroco/cr-tknzr.c libcroco/cr-token.c \
+ libcroco/cr-utils.c glib/ghash.c glib/glist.c glib/gmessages.c \
+ glib/gprimes.c glib/gstrfuncs.c glib/gstring.c \
+ libxml/DOCBparser.c libxml/HTMLparser.c libxml/HTMLtree.c \
+ libxml/SAX.c libxml/SAX2.c libxml/buf.c libxml/c14n.c \
+ libxml/catalog.c libxml/chvalid.c libxml/debugXML.c \
+ libxml/dict.c libxml/encoding.c libxml/entities.c \
+ libxml/error.c libxml/globals.c libxml/hash.c libxml/legacy.c \
+ libxml/list.c libxml/nanoftp.c libxml/nanohttp.c \
+ libxml/parser.c libxml/parserInternals.c libxml/pattern.c \
+ libxml/relaxng.c libxml/schematron.c libxml/threads.c \
+ libxml/tree.c libxml/trionan.c libxml/uri.c libxml/valid.c \
+ libxml/xinclude.c libxml/xlink.c libxml/xmlIO.c \
+ libxml/xmlmemory.c libxml/xmlmodule.c libxml/xmlreader.c \
+ libxml/xmlregexp.c libxml/xmlsave.c libxml/xmlschemas.c \
+ libxml/xmlschemastypes.c libxml/xmlstring.c \
+ libxml/xmlunicode.c libxml/xmlwriter.c libxml/xpath.c \
+ libxml/xpointer.c log10.c lstat.c malloc.c mbrtowc.c mbsinit.c \
+ mbsrtowcs-state.c mbsrtowcs.c memchr.c memmove.c memset.c \
+ mkdtemp.c msvc-inval.c msvc-nothrow.c obstack.c open.c \
+ opendir.c ostream.oo.c spawni.c spawn_faction_addclose.c \
+ spawn_faction_adddup2.c spawn_faction_addopen.c \
+ spawn_faction_destroy.c spawn_faction_init.c \
+ spawnattr_destroy.c spawnattr_init.c spawnattr_setflags.c \
+ spawnattr_setsigmask.c spawnp.c raise.c rawmemchr.c read.c \
+ readdir.c readlink.c realloc.c progreloc.c relocatable.c \
+ rmdir.c safe-read.c secure_getenv.c setenv.c setlocale.c \
+ sigaction.c signbitd.c signbitf.c signbitl.c stdio-write.c \
+ sigprocmask.c snprintf.c stat.c stpcpy.c stpncpy.c strchrnul.c \
+ strcspn.c strerror.c strerror-override.c strnlen.c strpbrk.c \
+ strstr.c strtol.c strtol.c strtoul.c styled-ostream.oo.c \
+ term-ostream.oo.c term-styled-ostream.oo.c tparm.c tputs.c \
+ unsetenv.c asnprintf.c printf-args.c printf-parse.c \
+ vasnprintf.c asprintf.c vasprintf.c vsnprintf.c waitpid.c \
+ wcwidth.c write.c xmemdup0.c
# Need $(LTLIBUNISTRING) because ulc_width_linebreaks, uc_width, etc. may be
# taken from libunistring, when the configure option --with-libunistring-prefix
@@ -2474,7 +2483,7 @@ libgettextlib_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined $(FABS_LIBM) \
$(LOG10_LIBM) $(LTLIBICONV) $(LTLIBINTL) $(LTLIBTHREAD) \
$(LTLIBUNISTRING) $(OPENMP_CFLAGS) $(POW_LIBM) \
@INTL_MACOSX_LIBS@ -release @VERSION@ $(am__append_3) \
- $(am__append_12)
+ $(am__append_12) $(am__append_36)
# Use this preprocessor expression to decide whether #include_next works.
# Do not rely on a 'configure'-time test for this, since the expression
diff --git a/gettext-tools/gnulib-lib/acl-errno-valid.c b/gettext-tools/gnulib-lib/acl-errno-valid.c
index a64d3d3..086f75f 100644
--- a/gettext-tools/gnulib-lib/acl-errno-valid.c
+++ b/gettext-tools/gnulib-lib/acl-errno-valid.c
@@ -1,6 +1,6 @@
/* Test whether ACLs are well supported on this system.
- Copyright 2013-2015 Free Software Foundation, Inc.
+ Copyright 2013-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 --git a/gettext-tools/gnulib-lib/acl-internal.c b/gettext-tools/gnulib-lib/acl-internal.c
index c1b7017..4de60c3 100644
--- a/gettext-tools/gnulib-lib/acl-internal.c
+++ b/gettext-tools/gnulib-lib/acl-internal.c
@@ -1,6 +1,6 @@
/* Test whether a file has a nontrivial ACL. -*- coding: utf-8 -*-
- Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 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
@@ -478,7 +478,7 @@ acl_nontrivial (int count, struct acl *entries)
void
free_permission_context (struct permission_context *ctx)
{
-#ifdef USE_ACL
+#if USE_ACL
# if HAVE_ACL_GET_FILE /* Linux, FreeBSD, Mac OS X, IRIX, Tru64 */
if (ctx->acl)
acl_free (ctx->acl);
diff --git a/gettext-tools/gnulib-lib/acl-internal.h b/gettext-tools/gnulib-lib/acl-internal.h
index 560d146..636273e 100644
--- a/gettext-tools/gnulib-lib/acl-internal.h
+++ b/gettext-tools/gnulib-lib/acl-internal.h
@@ -1,6 +1,6 @@
/* Internal implementation of access control lists. -*- coding: utf-8 -*-
- Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 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
@@ -255,7 +255,7 @@ extern int acl_nontrivial (int count, struct acl *entries);
struct permission_context {
mode_t mode;
-#ifdef USE_ACL
+#if USE_ACL
# if HAVE_ACL_GET_FILE /* Linux, FreeBSD, Mac OS X, IRIX, Tru64 */
acl_t acl;
# if !HAVE_ACL_TYPE_EXTENDED
diff --git a/gettext-tools/gnulib-lib/acl.h b/gettext-tools/gnulib-lib/acl.h
index 88ea08d..491b1ba 100644
--- a/gettext-tools/gnulib-lib/acl.h
+++ b/gettext-tools/gnulib-lib/acl.h
@@ -1,6 +1,6 @@
/* acl.c - access control lists
- Copyright (C) 2002, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 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 --git a/gettext-tools/gnulib-lib/acl_entries.c b/gettext-tools/gnulib-lib/acl_entries.c
index 936a131..9fc9cf5 100644
--- a/gettext-tools/gnulib-lib/acl_entries.c
+++ b/gettext-tools/gnulib-lib/acl_entries.c
@@ -1,6 +1,6 @@
/* Return the number of entries in an ACL.
- Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 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 --git a/gettext-tools/gnulib-lib/addext.c b/gettext-tools/gnulib-lib/addext.c
index bea586f..9cc64c0 100644
--- a/gettext-tools/gnulib-lib/addext.c
+++ b/gettext-tools/gnulib-lib/addext.c
@@ -1,6 +1,6 @@
/* addext.c -- add an extension to a file name
- Copyright (C) 1990, 1997-1999, 2001-2003, 2005-2006, 2015 Free
- Software Foundation, Inc.
+ Copyright (C) 1990, 1997-1999, 2001-2003, 2005-2006, 2015-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 --git a/gettext-tools/gnulib-lib/alignof.h b/gettext-tools/gnulib-lib/alignof.h
index be53fa5..9b51af0 100644
--- a/gettext-tools/gnulib-lib/alignof.h
+++ b/gettext-tools/gnulib-lib/alignof.h
@@ -1,5 +1,5 @@
/* Determine alignment of types.
- Copyright (C) 2003-2004, 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003-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 --git a/gettext-tools/gnulib-lib/alloca.in.h b/gettext-tools/gnulib-lib/alloca.in.h
index b334262..8603e79 100644
--- a/gettext-tools/gnulib-lib/alloca.in.h
+++ b/gettext-tools/gnulib-lib/alloca.in.h
@@ -1,5 +1,5 @@
/* Memory allocation on the stack.
- Copyright (C) 1995, 1999, 2001-2007, 2015 Free Software Foundation,
+ Copyright (C) 1995, 1999, 2001-2007, 2015-2016 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/allocator.h b/gettext-tools/gnulib-lib/allocator.h
index c7c851f..1f1eab6 100644
--- a/gettext-tools/gnulib-lib/allocator.h
+++ b/gettext-tools/gnulib-lib/allocator.h
@@ -1,6 +1,6 @@
/* Memory allocators such as malloc+free.
- 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 --git a/gettext-tools/gnulib-lib/areadlink.c b/gettext-tools/gnulib-lib/areadlink.c
index 248cc6b..fee84a3 100644
--- a/gettext-tools/gnulib-lib/areadlink.c
+++ b/gettext-tools/gnulib-lib/areadlink.c
@@ -1,7 +1,7 @@
/* areadlink.c -- readlink wrapper to return the link name in malloc'd storage
Unlike xreadlink and xreadlink_with_size, don't ever call exit.
- Copyright (C) 2001, 2003-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001, 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 --git a/gettext-tools/gnulib-lib/areadlink.h b/gettext-tools/gnulib-lib/areadlink.h
index d9e0fa1..829c959 100644
--- a/gettext-tools/gnulib-lib/areadlink.h
+++ b/gettext-tools/gnulib-lib/areadlink.h
@@ -1,6 +1,6 @@
/* Read symbolic links without size limitation.
- Copyright (C) 2001, 2003-2004, 2007, 2009-2015 Free Software Foundation,
+ Copyright (C) 2001, 2003-2004, 2007, 2009-2016 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/argmatch.c b/gettext-tools/gnulib-lib/argmatch.c
index 0e452bd..bd1ad71 100644
--- a/gettext-tools/gnulib-lib/argmatch.c
+++ b/gettext-tools/gnulib-lib/argmatch.c
@@ -1,6 +1,6 @@
/* argmatch.c -- find a match for a string in an array
- Copyright (C) 1990, 1998-1999, 2001-2007, 2009-2015 Free Software
+ Copyright (C) 1990, 1998-1999, 2001-2007, 2009-2016 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/argmatch.h b/gettext-tools/gnulib-lib/argmatch.h
index 1543c52..681e529 100644
--- a/gettext-tools/gnulib-lib/argmatch.h
+++ b/gettext-tools/gnulib-lib/argmatch.h
@@ -1,6 +1,6 @@
/* argmatch.h -- definitions and prototypes for argmatch.c
- Copyright (C) 1990, 1998-1999, 2001-2002, 2004-2005, 2009-2015 Free Software
+ Copyright (C) 1990, 1998-1999, 2001-2002, 2004-2005, 2009-2016 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/asnprintf.c b/gettext-tools/gnulib-lib/asnprintf.c
index d6776ca..f23b776 100644
--- a/gettext-tools/gnulib-lib/asnprintf.c
+++ b/gettext-tools/gnulib-lib/asnprintf.c
@@ -1,5 +1,5 @@
/* Formatted output to strings.
- Copyright (C) 1999, 2002, 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2002, 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 --git a/gettext-tools/gnulib-lib/asprintf.c b/gettext-tools/gnulib-lib/asprintf.c
index 06ae3dd..d0ca5f2 100644
--- a/gettext-tools/gnulib-lib/asprintf.c
+++ b/gettext-tools/gnulib-lib/asprintf.c
@@ -1,5 +1,5 @@
/* Formatted output to strings.
- Copyright (C) 1999, 2002, 2006-2007, 2009-2015 Free Software Foundation,
+ Copyright (C) 1999, 2002, 2006-2007, 2009-2016 Free Software Foundation,
Inc.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/backupfile.c b/gettext-tools/gnulib-lib/backupfile.c
index 5ec0228..7d9313f 100644
--- a/gettext-tools/gnulib-lib/backupfile.c
+++ b/gettext-tools/gnulib-lib/backupfile.c
@@ -1,5 +1,5 @@
/* backupfile.c -- make Emacs style backup file names
- Copyright (C) 1990-2003, 2005-2006, 2012, 2015 Free Software
+ Copyright (C) 1990-2003, 2005-2006, 2012, 2015-2016 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/backupfile.h b/gettext-tools/gnulib-lib/backupfile.h
index 91c37fa..279c2fb 100644
--- a/gettext-tools/gnulib-lib/backupfile.h
+++ b/gettext-tools/gnulib-lib/backupfile.h
@@ -1,5 +1,5 @@
/* backupfile.h -- declarations for making Emacs style backup file names
- Copyright (C) 1990-1992, 1997-1999, 2001-2003, 2015 Free Software
+ Copyright (C) 1990-1992, 1997-1999, 2001-2003, 2015-2016 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/basename.c b/gettext-tools/gnulib-lib/basename.c
index 56421aa..3518ade 100644
--- a/gettext-tools/gnulib-lib/basename.c
+++ b/gettext-tools/gnulib-lib/basename.c
@@ -1,5 +1,5 @@
/* Return the name-within-directory of a file name.
- Copyright (C) 1996-2002, 2004, 2006, 2010, 2012, 2015 Free Software
+ Copyright (C) 1996-2002, 2004, 2006, 2010, 2012, 2015-2016 Free Software
Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
diff --git a/gettext-tools/gnulib-lib/basename.h b/gettext-tools/gnulib-lib/basename.h
index 489cc67..2d7f0ad 100644
--- a/gettext-tools/gnulib-lib/basename.h
+++ b/gettext-tools/gnulib-lib/basename.h
@@ -1,5 +1,5 @@
/* Pathname hacking.
- Copyright (C) 2001-2003, 2010, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2010, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/binary-io.h b/gettext-tools/gnulib-lib/binary-io.h
index f5b66c7..9f17c0d 100644
--- a/gettext-tools/gnulib-lib/binary-io.h
+++ b/gettext-tools/gnulib-lib/binary-io.h
@@ -1,5 +1,5 @@
/* Binary mode I/O.
- Copyright (C) 2001, 2003, 2005, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003, 2005, 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
@@ -60,7 +60,7 @@ set_binary_mode (int fd, int mode)
/* SET_BINARY (fd);
changes the file descriptor fd to perform binary I/O. */
-#ifdef __DJGPP__
+#if defined __DJGPP__ || defined __EMX__
# include <unistd.h> /* declares isatty() */
/* Avoid putting stdin/stdout in binary mode if it is connected to
the console, because that would make it impossible for the user
diff --git a/gettext-tools/gnulib-lib/byteswap.in.h b/gettext-tools/gnulib-lib/byteswap.in.h
index db885d8..d965962 100644
--- a/gettext-tools/gnulib-lib/byteswap.in.h
+++ b/gettext-tools/gnulib-lib/byteswap.in.h
@@ -1,5 +1,5 @@
/* byteswap.h - Byte swapping
- Copyright (C) 2005, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007, 2009-2016 Free Software Foundation, Inc.
Written by Oskar Liljeblad <oskar@osk.mine.nu>, 2005.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/c-ctype.h b/gettext-tools/gnulib-lib/c-ctype.h
index 1512530..717ae78 100644
--- a/gettext-tools/gnulib-lib/c-ctype.h
+++ b/gettext-tools/gnulib-lib/c-ctype.h
@@ -5,7 +5,7 @@
<ctype.h> functions' behaviour depends on the current locale set via
setlocale.
- Copyright (C) 2000-2003, 2006, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000-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 --git a/gettext-tools/gnulib-lib/c-strcase.h b/gettext-tools/gnulib-lib/c-strcase.h
index f25bcca..7e570f5 100644
--- a/gettext-tools/gnulib-lib/c-strcase.h
+++ b/gettext-tools/gnulib-lib/c-strcase.h
@@ -1,5 +1,5 @@
/* Case-insensitive string comparison functions in C locale.
- Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2015 Free Software
+ Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2016 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/c-strcasecmp.c b/gettext-tools/gnulib-lib/c-strcasecmp.c
index 6deb6d1..bd113b7 100644
--- a/gettext-tools/gnulib-lib/c-strcasecmp.c
+++ b/gettext-tools/gnulib-lib/c-strcasecmp.c
@@ -1,5 +1,5 @@
/* c-strcasecmp.c -- case insensitive string comparator in C locale
- Copyright (C) 1998-1999, 2005-2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1998-1999, 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 --git a/gettext-tools/gnulib-lib/c-strcaseeq.h b/gettext-tools/gnulib-lib/c-strcaseeq.h
index 28dc55e..ed57251 100644
--- a/gettext-tools/gnulib-lib/c-strcaseeq.h
+++ b/gettext-tools/gnulib-lib/c-strcaseeq.h
@@ -1,5 +1,5 @@
/* Optimized case-insensitive string comparison in C locale.
- Copyright (C) 2001-2002, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 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
diff --git a/gettext-tools/gnulib-lib/c-strcasestr.c b/gettext-tools/gnulib-lib/c-strcasestr.c
index cffece8..e459b5f 100644
--- a/gettext-tools/gnulib-lib/c-strcasestr.c
+++ b/gettext-tools/gnulib-lib/c-strcasestr.c
@@ -1,5 +1,5 @@
/* c-strcasestr.c -- case insensitive substring search in C locale
- Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2005.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/c-strcasestr.h b/gettext-tools/gnulib-lib/c-strcasestr.h
index 3084cd6..271f033 100644
--- a/gettext-tools/gnulib-lib/c-strcasestr.h
+++ b/gettext-tools/gnulib-lib/c-strcasestr.h
@@ -1,5 +1,5 @@
/* Case-insensitive searching in a string in C locale.
- 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 --git a/gettext-tools/gnulib-lib/c-strncasecmp.c b/gettext-tools/gnulib-lib/c-strncasecmp.c
index b98e368..c316929 100644
--- a/gettext-tools/gnulib-lib/c-strncasecmp.c
+++ b/gettext-tools/gnulib-lib/c-strncasecmp.c
@@ -1,5 +1,5 @@
/* c-strncasecmp.c -- case insensitive string comparator in C locale
- Copyright (C) 1998-1999, 2005-2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1998-1999, 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 --git a/gettext-tools/gnulib-lib/c-strstr.c b/gettext-tools/gnulib-lib/c-strstr.c
index c8bebe6..eda7610 100644
--- a/gettext-tools/gnulib-lib/c-strstr.c
+++ b/gettext-tools/gnulib-lib/c-strstr.c
@@ -1,5 +1,5 @@
/* c-strstr.c -- substring search in C locale
- Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2005, 2007.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/c-strstr.h b/gettext-tools/gnulib-lib/c-strstr.h
index 4d44197..fec74a7 100644
--- a/gettext-tools/gnulib-lib/c-strstr.h
+++ b/gettext-tools/gnulib-lib/c-strstr.h
@@ -1,5 +1,5 @@
/* Searching in a string.
- Copyright (C) 2001-2003, 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 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 --git a/gettext-tools/gnulib-lib/canonicalize-lgpl.c b/gettext-tools/gnulib-lib/canonicalize-lgpl.c
index 1c9f2ee..1d0bf65 100644
--- a/gettext-tools/gnulib-lib/canonicalize-lgpl.c
+++ b/gettext-tools/gnulib-lib/canonicalize-lgpl.c
@@ -1,5 +1,5 @@
/* Return the canonical absolute name of a given file.
- Copyright (C) 1996-2015 Free Software Foundation, Inc.
+ Copyright (C) 1996-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 --git a/gettext-tools/gnulib-lib/careadlinkat.c b/gettext-tools/gnulib-lib/careadlinkat.c
index f2f5da2..4180de9 100644
--- a/gettext-tools/gnulib-lib/careadlinkat.c
+++ b/gettext-tools/gnulib-lib/careadlinkat.c
@@ -1,6 +1,6 @@
/* Read symbolic links into a buffer without size limitation, relative to fd.
- Copyright (C) 2001, 2003-2004, 2007, 2009-2015 Free Software Foundation,
+ Copyright (C) 2001, 2003-2004, 2007, 2009-2016 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/careadlinkat.h b/gettext-tools/gnulib-lib/careadlinkat.h
index 4eb9fcc..84ede3e 100644
--- a/gettext-tools/gnulib-lib/careadlinkat.h
+++ b/gettext-tools/gnulib-lib/careadlinkat.h
@@ -1,6 +1,6 @@
/* Read symbolic links into a buffer without size limitation, relative to fd.
- 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 --git a/gettext-tools/gnulib-lib/classpath.c b/gettext-tools/gnulib-lib/classpath.c
index 2a57de2..fa58684 100644
--- a/gettext-tools/gnulib-lib/classpath.c
+++ b/gettext-tools/gnulib-lib/classpath.c
@@ -1,5 +1,5 @@
/* Java CLASSPATH handling.
- Copyright (C) 2001-2003, 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/classpath.h b/gettext-tools/gnulib-lib/classpath.h
index f34cdc7..0ed774d 100644
--- a/gettext-tools/gnulib-lib/classpath.h
+++ b/gettext-tools/gnulib-lib/classpath.h
@@ -1,5 +1,5 @@
/* Java CLASSPATH handling.
- Copyright (C) 2003, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/clean-temp.c b/gettext-tools/gnulib-lib/clean-temp.c
index d388464..9e0fb27 100644
--- a/gettext-tools/gnulib-lib/clean-temp.c
+++ b/gettext-tools/gnulib-lib/clean-temp.c
@@ -1,5 +1,5 @@
/* Temporary directories and temporary files with automatic cleanup.
- Copyright (C) 2001, 2003, 2006-2007, 2009-2015 Free Software Foundation,
+ Copyright (C) 2001, 2003, 2006-2007, 2009-2016 Free Software Foundation,
Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
@@ -584,7 +584,7 @@ supports_delete_on_close ()
/* According to
<http://msdn.microsoft.com/en-us/library/windows/desktop/ms724451(v=vs.85).aspx>
- this structure must be initialised as follows: */
+ this structure must be initialized as follows: */
v.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
if (GetVersionEx (&v))
diff --git a/gettext-tools/gnulib-lib/clean-temp.h b/gettext-tools/gnulib-lib/clean-temp.h
index b730cd7..335e504 100644
--- a/gettext-tools/gnulib-lib/clean-temp.h
+++ b/gettext-tools/gnulib-lib/clean-temp.h
@@ -1,5 +1,5 @@
/* Temporary directories and temporary files with automatic cleanup.
- Copyright (C) 2006, 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2011-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/cloexec.c b/gettext-tools/gnulib-lib/cloexec.c
index 29d1a38..1202836 100644
--- a/gettext-tools/gnulib-lib/cloexec.c
+++ b/gettext-tools/gnulib-lib/cloexec.c
@@ -1,6 +1,6 @@
/* closexec.c - set or clear the close-on-exec descriptor flag
- Copyright (C) 1991, 2004-2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1991, 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 --git a/gettext-tools/gnulib-lib/cloexec.h b/gettext-tools/gnulib-lib/cloexec.h
index ef5bacc..0e58437 100644
--- a/gettext-tools/gnulib-lib/cloexec.h
+++ b/gettext-tools/gnulib-lib/cloexec.h
@@ -1,6 +1,6 @@
/* closexec.c - set or clear the close-on-exec descriptor flag
- Copyright (C) 2004, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2004, 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 --git a/gettext-tools/gnulib-lib/close.c b/gettext-tools/gnulib-lib/close.c
index 54d1f71..46a7aa5 100644
--- a/gettext-tools/gnulib-lib/close.c
+++ b/gettext-tools/gnulib-lib/close.c
@@ -1,5 +1,5 @@
/* close replacement.
- 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 --git a/gettext-tools/gnulib-lib/closedir.c b/gettext-tools/gnulib-lib/closedir.c
index f80843f..30d1290 100644
--- a/gettext-tools/gnulib-lib/closedir.c
+++ b/gettext-tools/gnulib-lib/closedir.c
@@ -1,5 +1,5 @@
/* Stop 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
@@ -39,7 +39,7 @@
int
closedir (DIR *dirp)
{
-# if REPLACE_FCHDIR
+# if REPLACE_FCHDIR || REPLACE_DIRFD
int fd = dirfd (dirp);
# endif
int retval;
@@ -49,6 +49,10 @@ closedir (DIR *dirp)
retval = closedir (dirp);
+# ifdef __KLIBC__
+ if (!retval)
+ _gl_unregister_dirp_fd (fd);
+# endif
#else
if (dirp->current != INVALID_HANDLE_VALUE)
diff --git a/gettext-tools/gnulib-lib/closeout.c b/gettext-tools/gnulib-lib/closeout.c
index a790176..8bba65b 100644
--- a/gettext-tools/gnulib-lib/closeout.c
+++ b/gettext-tools/gnulib-lib/closeout.c
@@ -1,5 +1,5 @@
/* closeout.c - close standard output and standard error
- Copyright (C) 1998-2007, 2012, 2015 Free Software Foundation, Inc.
+ Copyright (C) 1998-2007, 2012, 2015-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 --git a/gettext-tools/gnulib-lib/closeout.h b/gettext-tools/gnulib-lib/closeout.h
index 896e22f..284d1e7 100644
--- a/gettext-tools/gnulib-lib/closeout.h
+++ b/gettext-tools/gnulib-lib/closeout.h
@@ -1,5 +1,5 @@
/* Close standard output and standard error.
- Copyright (C) 1998-2003, 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 1998-2003, 2006, 2015-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 --git a/gettext-tools/gnulib-lib/concat-filename.c b/gettext-tools/gnulib-lib/concat-filename.c
index 1c4e77a..8fff22d 100644
--- a/gettext-tools/gnulib-lib/concat-filename.c
+++ b/gettext-tools/gnulib-lib/concat-filename.c
@@ -1,5 +1,5 @@
/* Construct a full filename from a directory and a relative filename.
- Copyright (C) 2001-2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 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 the
diff --git a/gettext-tools/gnulib-lib/concat-filename.h b/gettext-tools/gnulib-lib/concat-filename.h
index e308744..08f6b40 100644
--- a/gettext-tools/gnulib-lib/concat-filename.h
+++ b/gettext-tools/gnulib-lib/concat-filename.h
@@ -1,5 +1,5 @@
/* Construct a full filename from a directory and a relative filename.
- 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 --git a/gettext-tools/gnulib-lib/config.charset b/gettext-tools/gnulib-lib/config.charset
index f06d7e9..947d916 100644
--- a/gettext-tools/gnulib-lib/config.charset
+++ b/gettext-tools/gnulib-lib/config.charset
@@ -1,7 +1,7 @@
#! /bin/sh
# Output a system dependent table of character encoding aliases.
#
-# Copyright (C) 2000-2004, 2006-2015 Free Software Foundation, Inc.
+# Copyright (C) 2000-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 --git a/gettext-tools/gnulib-lib/copy-acl.c b/gettext-tools/gnulib-lib/copy-acl.c
index 2be8c9e..4b6b443 100644
--- a/gettext-tools/gnulib-lib/copy-acl.c
+++ b/gettext-tools/gnulib-lib/copy-acl.c
@@ -1,6 +1,6 @@
/* Copy access control list from one file to file. -*- coding: utf-8 -*-
- Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 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 --git a/gettext-tools/gnulib-lib/copy-file.c b/gettext-tools/gnulib-lib/copy-file.c
index 90e377c..a3b7270 100644
--- a/gettext-tools/gnulib-lib/copy-file.c
+++ b/gettext-tools/gnulib-lib/copy-file.c
@@ -1,5 +1,5 @@
/* Copying of files.
- Copyright (C) 2001-2003, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/copy-file.h b/gettext-tools/gnulib-lib/copy-file.h
index cdc55e5..f31e242 100644
--- a/gettext-tools/gnulib-lib/copy-file.h
+++ b/gettext-tools/gnulib-lib/copy-file.h
@@ -1,5 +1,5 @@
/* Copying of files.
- Copyright (C) 2001-2003, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/csharpcomp.c b/gettext-tools/gnulib-lib/csharpcomp.c
index 4628571..5b5a59d 100644
--- a/gettext-tools/gnulib-lib/csharpcomp.c
+++ b/gettext-tools/gnulib-lib/csharpcomp.c
@@ -1,5 +1,5 @@
/* Compile a C# program.
- Copyright (C) 2003-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/csharpcomp.h b/gettext-tools/gnulib-lib/csharpcomp.h
index 5bb2d2b..f747514 100644
--- a/gettext-tools/gnulib-lib/csharpcomp.h
+++ b/gettext-tools/gnulib-lib/csharpcomp.h
@@ -1,5 +1,5 @@
/* Compile a C# program.
- Copyright (C) 2003, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/csharpexec.c b/gettext-tools/gnulib-lib/csharpexec.c
index a414d6c..1d8d0cc 100644
--- a/gettext-tools/gnulib-lib/csharpexec.c
+++ b/gettext-tools/gnulib-lib/csharpexec.c
@@ -1,5 +1,5 @@
/* Execute a C# program.
- Copyright (C) 2003-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/csharpexec.h b/gettext-tools/gnulib-lib/csharpexec.h
index cc62cdc..f50948c 100644
--- a/gettext-tools/gnulib-lib/csharpexec.h
+++ b/gettext-tools/gnulib-lib/csharpexec.h
@@ -1,5 +1,5 @@
/* Execute a C# program.
- Copyright (C) 2003, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/diffseq.h b/gettext-tools/gnulib-lib/diffseq.h
index 2a02651..35bcd56 100644
--- a/gettext-tools/gnulib-lib/diffseq.h
+++ b/gettext-tools/gnulib-lib/diffseq.h
@@ -1,6 +1,6 @@
/* Analyze differences between two vectors.
- Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006-2015 Free Software
+ Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006-2016 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/dirent-private.h b/gettext-tools/gnulib-lib/dirent-private.h
index aa01f60..9b200f3 100644
--- a/gettext-tools/gnulib-lib/dirent-private.h
+++ b/gettext-tools/gnulib-lib/dirent-private.h
@@ -1,5 +1,5 @@
/* Private details of the DIR type.
- 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 --git a/gettext-tools/gnulib-lib/dirent.in.h b/gettext-tools/gnulib-lib/dirent.in.h
index 154d268..65482d7 100644
--- a/gettext-tools/gnulib-lib/dirent.in.h
+++ b/gettext-tools/gnulib-lib/dirent.in.h
@@ -1,5 +1,5 @@
/* A GNU-like <dirent.h>.
- 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
@@ -158,6 +158,13 @@ _GL_WARN_ON_USE (closedir, "closedir is not portable - "
# endif
_GL_FUNCDECL_RPL (dirfd, int, (DIR *) _GL_ARG_NONNULL ((1)));
_GL_CXXALIAS_RPL (dirfd, int, (DIR *));
+
+# ifdef __KLIBC__
+/* Gnulib internal hooks needed to maintain the dirfd metadata. */
+_GL_EXTERN_C int _gl_register_dirp_fd (int fd, DIR *dirp)
+ _GL_ARG_NONNULL ((2));
+_GL_EXTERN_C void _gl_unregister_dirp_fd (int fd);
+# endif
# else
# if defined __cplusplus && defined GNULIB_NAMESPACE && defined dirfd
/* dirfd is defined as a macro and not as a function.
diff --git a/gettext-tools/gnulib-lib/dirfd.c b/gettext-tools/gnulib-lib/dirfd.c
new file mode 100644
index 0000000..a325848
--- /dev/null
+++ b/gettext-tools/gnulib-lib/dirfd.c
@@ -0,0 +1,98 @@
+/* dirfd.c -- return the file descriptor associated with an open DIR*
+
+ Copyright (C) 2001, 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
+ 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 <http://www.gnu.org/licenses/>. */
+
+/* Written by Jim Meyering. */
+
+#include <config.h>
+
+#include <dirent.h>
+#include <errno.h>
+
+#ifdef __KLIBC__
+# include <stdlib.h>
+# include <io.h>
+
+static struct dirp_fd_list
+{
+ DIR *dirp;
+ int fd;
+ struct dirp_fd_list *next;
+} *dirp_fd_start = NULL;
+
+/* Register fd associated with dirp to dirp_fd_list. */
+int
+_gl_register_dirp_fd (int fd, DIR *dirp)
+{
+ struct dirp_fd_list *new_dirp_fd = malloc (sizeof *new_dirp_fd);
+ if (!new_dirp_fd)
+ return -1;
+
+ new_dirp_fd->dirp = dirp;
+ new_dirp_fd->fd = fd;
+ new_dirp_fd->next = dirp_fd_start;
+
+ dirp_fd_start = new_dirp_fd;
+
+ return 0;
+}
+
+/* Unregister fd from dirp_fd_list with closing it */
+void
+_gl_unregister_dirp_fd (int fd)
+{
+ struct dirp_fd_list *dirp_fd;
+ struct dirp_fd_list *dirp_fd_prev;
+
+ for (dirp_fd_prev = NULL, dirp_fd = dirp_fd_start; dirp_fd;
+ dirp_fd_prev = dirp_fd, dirp_fd = dirp_fd->next)
+ {
+ if (dirp_fd->fd == fd)
+ {
+ if (dirp_fd_prev)
+ dirp_fd_prev->next = dirp_fd->next;
+ else /* dirp_fd == dirp_fd_start */
+ dirp_fd_start = dirp_fd_start->next;
+
+ close (fd);
+ free (dirp_fd);
+ break;
+ }
+ }
+}
+#endif
+
+int
+dirfd (DIR *dir_p)
+{
+ int fd = DIR_TO_FD (dir_p);
+ if (fd == -1)
+#ifndef __KLIBC__
+ errno = ENOTSUP;
+#else
+ {
+ struct dirp_fd_list *dirp_fd;
+
+ for (dirp_fd = dirp_fd_start; dirp_fd; dirp_fd = dirp_fd->next)
+ if (dirp_fd->dirp == dir_p)
+ return dirp_fd->fd;
+
+ errno = EINVAL;
+ }
+#endif
+
+ return fd;
+}
diff --git a/gettext-tools/gnulib-lib/dosname.h b/gettext-tools/gnulib-lib/dosname.h
index 893baf6..83a953f 100644
--- a/gettext-tools/gnulib-lib/dosname.h
+++ b/gettext-tools/gnulib-lib/dosname.h
@@ -1,6 +1,6 @@
/* File names on MS-DOS/Windows systems.
- Copyright (C) 2000-2001, 2004-2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000-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 --git a/gettext-tools/gnulib-lib/dup-safer-flag.c b/gettext-tools/gnulib-lib/dup-safer-flag.c
index f4610ee..f5b81b7 100644
--- a/gettext-tools/gnulib-lib/dup-safer-flag.c
+++ b/gettext-tools/gnulib-lib/dup-safer-flag.c
@@ -1,7 +1,7 @@
/* Duplicate a file descriptor result, avoiding clobbering
STD{IN,OUT,ERR}_FILENO, with specific flags.
- 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 --git a/gettext-tools/gnulib-lib/dup-safer.c b/gettext-tools/gnulib-lib/dup-safer.c
index c6436cd..6ed8f79 100644
--- a/gettext-tools/gnulib-lib/dup-safer.c
+++ b/gettext-tools/gnulib-lib/dup-safer.c
@@ -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 --git a/gettext-tools/gnulib-lib/dup2.c b/gettext-tools/gnulib-lib/dup2.c
index 0e13214..5d026f2 100644
--- a/gettext-tools/gnulib-lib/dup2.c
+++ b/gettext-tools/gnulib-lib/dup2.c
@@ -1,6 +1,6 @@
/* Duplicate an open file descriptor to a specified file descriptor.
- Copyright (C) 1999, 2004-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1999, 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
@@ -85,6 +85,57 @@ ms_windows_dup2 (int fd, int desired_fd)
# define dup2 ms_windows_dup2
+# elif defined __KLIBC__
+
+# include <InnoTekLIBC/backend.h>
+
+static int
+klibc_dup2dirfd (int fd, int desired_fd)
+{
+ int tempfd;
+ int dupfd;
+
+ tempfd = open ("NUL", O_RDONLY);
+ if (tempfd == -1)
+ return -1;
+
+ if (tempfd == desired_fd)
+ {
+ close (tempfd);
+
+ char path[_MAX_PATH];
+ if (__libc_Back_ioFHToPath (fd, path, sizeof (path)))
+ return -1;
+
+ return open(path, O_RDONLY);
+ }
+
+ dupfd = klibc_dup2dirfd (fd, desired_fd);
+
+ close (tempfd);
+
+ return dupfd;
+}
+
+static int
+klibc_dup2 (int fd, int desired_fd)
+{
+ int dupfd;
+ struct stat sbuf;
+
+ dupfd = dup2 (fd, desired_fd);
+ if (dupfd == -1 && errno == ENOTSUP \
+ && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode))
+ {
+ close (desired_fd);
+
+ return klibc_dup2dirfd (fd, desired_fd);
+ }
+
+ return dupfd;
+}
+
+# define dup2 klibc_dup2
# endif
int
diff --git a/gettext-tools/gnulib-lib/errno.in.h b/gettext-tools/gnulib-lib/errno.in.h
index affbb97..b8397ee 100644
--- a/gettext-tools/gnulib-lib/errno.in.h
+++ b/gettext-tools/gnulib-lib/errno.in.h
@@ -1,6 +1,6 @@
/* A POSIX-like <errno.h>.
- 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 --git a/gettext-tools/gnulib-lib/error-progname.c b/gettext-tools/gnulib-lib/error-progname.c
index 525d11f..ba2702a 100644
--- a/gettext-tools/gnulib-lib/error-progname.c
+++ b/gettext-tools/gnulib-lib/error-progname.c
@@ -1,5 +1,5 @@
/* Use of program name in error-reporting functions.
- Copyright (C) 2001-2003, 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/error-progname.h b/gettext-tools/gnulib-lib/error-progname.h
index f16107a..5b89b71 100644
--- a/gettext-tools/gnulib-lib/error-progname.h
+++ b/gettext-tools/gnulib-lib/error-progname.h
@@ -1,5 +1,5 @@
/* Use of program name in error-reporting functions.
- Copyright (C) 2001-2003, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/error.c b/gettext-tools/gnulib-lib/error.c
index 0ac7695..56ac889 100644
--- a/gettext-tools/gnulib-lib/error.c
+++ b/gettext-tools/gnulib-lib/error.c
@@ -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 --git a/gettext-tools/gnulib-lib/error.h b/gettext-tools/gnulib-lib/error.h
index c5b3736..a9c19cb 100644
--- a/gettext-tools/gnulib-lib/error.h
+++ b/gettext-tools/gnulib-lib/error.h
@@ -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 --git a/gettext-tools/gnulib-lib/execute.c b/gettext-tools/gnulib-lib/execute.c
index 7553244..ff6f506 100644
--- a/gettext-tools/gnulib-lib/execute.c
+++ b/gettext-tools/gnulib-lib/execute.c
@@ -1,5 +1,5 @@
/* Creation of autonomous subprocesses.
- Copyright (C) 2001-2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2004, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/execute.h b/gettext-tools/gnulib-lib/execute.h
index 33f2ec6..224141e 100644
--- a/gettext-tools/gnulib-lib/execute.h
+++ b/gettext-tools/gnulib-lib/execute.h
@@ -1,5 +1,5 @@
/* Creation of autonomous subprocesses.
- Copyright (C) 2001-2003, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/exitfail.c b/gettext-tools/gnulib-lib/exitfail.c
index 8035b89..8033c22 100644
--- a/gettext-tools/gnulib-lib/exitfail.c
+++ b/gettext-tools/gnulib-lib/exitfail.c
@@ -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 --git a/gettext-tools/gnulib-lib/exitfail.h b/gettext-tools/gnulib-lib/exitfail.h
index 5f09786..ef1e488 100644
--- a/gettext-tools/gnulib-lib/exitfail.h
+++ b/gettext-tools/gnulib-lib/exitfail.h
@@ -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 --git a/gettext-tools/gnulib-lib/fatal-signal.c b/gettext-tools/gnulib-lib/fatal-signal.c
index 5ed9c4b..2126a90 100644
--- a/gettext-tools/gnulib-lib/fatal-signal.c
+++ b/gettext-tools/gnulib-lib/fatal-signal.c
@@ -1,5 +1,5 @@
/* Emergency actions in case of a fatal signal.
- Copyright (C) 2003-2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003-2004, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/fatal-signal.h b/gettext-tools/gnulib-lib/fatal-signal.h
index 2037cef..01b9ae0 100644
--- a/gettext-tools/gnulib-lib/fatal-signal.h
+++ b/gettext-tools/gnulib-lib/fatal-signal.h
@@ -1,5 +1,5 @@
/* Emergency actions in case of a fatal signal.
- Copyright (C) 2003-2004, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003-2004, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/fcntl.c b/gettext-tools/gnulib-lib/fcntl.c
index 23b73e9..fd17e96 100644
--- a/gettext-tools/gnulib-lib/fcntl.c
+++ b/gettext-tools/gnulib-lib/fcntl.c
@@ -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 @@ dupfd (int oldfd, int newfd, int flags)
}
#endif /* W32 */
+#ifdef __KLIBC__
+
+# define INCL_DOS
+# include <os2.h>
+
+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 --git a/gettext-tools/gnulib-lib/fcntl.in.h b/gettext-tools/gnulib-lib/fcntl.in.h
index e288018..b943973 100644
--- a/gettext-tools/gnulib-lib/fcntl.in.h
+++ b/gettext-tools/gnulib-lib/fcntl.in.h
@@ -1,6 +1,6 @@
/* Like <fcntl.h>, 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 --git a/gettext-tools/gnulib-lib/fd-hook.c b/gettext-tools/gnulib-lib/fd-hook.c
index b1488c4..8676c6b 100644
--- a/gettext-tools/gnulib-lib/fd-hook.c
+++ b/gettext-tools/gnulib-lib/fd-hook.c
@@ -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 <bruno@clisp.org>, 2009.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/fd-hook.h b/gettext-tools/gnulib-lib/fd-hook.h
index bdb9aef..9568d07 100644
--- a/gettext-tools/gnulib-lib/fd-hook.h
+++ b/gettext-tools/gnulib-lib/fd-hook.h
@@ -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 --git a/gettext-tools/gnulib-lib/fd-ostream.c b/gettext-tools/gnulib-lib/fd-ostream.c
index 7d72ad2..3f2047c 100644
--- a/gettext-tools/gnulib-lib/fd-ostream.c
+++ b/gettext-tools/gnulib-lib/fd-ostream.c
@@ -2,7 +2,7 @@
#line 1 "fd-ostream.oo.c"
/* Output stream referring to a file descriptor.
- Copyright (C) 2006-2007, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/fd-ostream.h b/gettext-tools/gnulib-lib/fd-ostream.h
index c60e725..d698430 100644
--- a/gettext-tools/gnulib-lib/fd-ostream.h
+++ b/gettext-tools/gnulib-lib/fd-ostream.h
@@ -2,7 +2,7 @@
#line 1 "fd-ostream.oo.h"
/* Output stream referring to a file descriptor.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/fd-ostream.oo.c b/gettext-tools/gnulib-lib/fd-ostream.oo.c
index 64b9597..b4e1e50 100644
--- a/gettext-tools/gnulib-lib/fd-ostream.oo.c
+++ b/gettext-tools/gnulib-lib/fd-ostream.oo.c
@@ -1,5 +1,5 @@
/* Output stream referring to a file descriptor.
- Copyright (C) 2006-2007, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/fd-ostream.oo.h b/gettext-tools/gnulib-lib/fd-ostream.oo.h
index 155b627..6415401 100644
--- a/gettext-tools/gnulib-lib/fd-ostream.oo.h
+++ b/gettext-tools/gnulib-lib/fd-ostream.oo.h
@@ -1,5 +1,5 @@
/* Output stream referring to a file descriptor.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/fd-safer-flag.c b/gettext-tools/gnulib-lib/fd-safer-flag.c
index b24861d..4b86583 100644
--- a/gettext-tools/gnulib-lib/fd-safer-flag.c
+++ b/gettext-tools/gnulib-lib/fd-safer-flag.c
@@ -1,7 +1,7 @@
/* Adjust a file descriptor result so that it avoids clobbering
STD{IN,OUT,ERR}_FILENO, with specific flags.
- 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 --git a/gettext-tools/gnulib-lib/fd-safer.c b/gettext-tools/gnulib-lib/fd-safer.c
index 6c1fb2b..8a6bee2 100644
--- a/gettext-tools/gnulib-lib/fd-safer.c
+++ b/gettext-tools/gnulib-lib/fd-safer.c
@@ -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 --git a/gettext-tools/gnulib-lib/file-ostream.c b/gettext-tools/gnulib-lib/file-ostream.c
index b299429..73498cb 100644
--- a/gettext-tools/gnulib-lib/file-ostream.c
+++ b/gettext-tools/gnulib-lib/file-ostream.c
@@ -2,7 +2,7 @@
#line 1 "file-ostream.oo.c"
/* Output stream referring to an stdio FILE.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/file-ostream.h b/gettext-tools/gnulib-lib/file-ostream.h
index f156871..918e8c9 100644
--- a/gettext-tools/gnulib-lib/file-ostream.h
+++ b/gettext-tools/gnulib-lib/file-ostream.h
@@ -2,7 +2,7 @@
#line 1 "file-ostream.oo.h"
/* Output stream referring to an stdio FILE.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/file-ostream.oo.c b/gettext-tools/gnulib-lib/file-ostream.oo.c
index a500825..0b19942 100644
--- a/gettext-tools/gnulib-lib/file-ostream.oo.c
+++ b/gettext-tools/gnulib-lib/file-ostream.oo.c
@@ -1,5 +1,5 @@
/* Output stream referring to an stdio FILE.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/file-ostream.oo.h b/gettext-tools/gnulib-lib/file-ostream.oo.h
index 395cef7..8b4fd8b 100644
--- a/gettext-tools/gnulib-lib/file-ostream.oo.h
+++ b/gettext-tools/gnulib-lib/file-ostream.oo.h
@@ -1,5 +1,5 @@
/* Output stream referring to an stdio FILE.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/filename.h b/gettext-tools/gnulib-lib/filename.h
index 4576993..7d2c31a 100644
--- a/gettext-tools/gnulib-lib/filename.h
+++ b/gettext-tools/gnulib-lib/filename.h
@@ -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 --git a/gettext-tools/gnulib-lib/findprog.c b/gettext-tools/gnulib-lib/findprog.c
index 731a04e..c97a6e0 100644
--- a/gettext-tools/gnulib-lib/findprog.c
+++ b/gettext-tools/gnulib-lib/findprog.c
@@ -1,5 +1,5 @@
/* Locating a program in PATH.
- Copyright (C) 2001-2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2004, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/findprog.h b/gettext-tools/gnulib-lib/findprog.h
index 3bd0653..dc4e18b 100644
--- a/gettext-tools/gnulib-lib/findprog.h
+++ b/gettext-tools/gnulib-lib/findprog.h
@@ -1,5 +1,5 @@
/* Locating a program in PATH.
- Copyright (C) 2001-2003, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/float+.h b/gettext-tools/gnulib-lib/float+.h
index e6aaa92..00fcc76 100644
--- a/gettext-tools/gnulib-lib/float+.h
+++ b/gettext-tools/gnulib-lib/float+.h
@@ -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 <bruno@clisp.org>, 2007.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/float.c b/gettext-tools/gnulib-lib/float.c
index dac9f88..1bad2ee 100644
--- a/gettext-tools/gnulib-lib/float.c
+++ b/gettext-tools/gnulib-lib/float.c
@@ -1,5 +1,5 @@
/* Auxiliary definitions for <float.h>.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2011.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/float.in.h b/gettext-tools/gnulib-lib/float.in.h
index 3bb3826..0b93d90 100644
--- a/gettext-tools/gnulib-lib/float.in.h
+++ b/gettext-tools/gnulib-lib/float.in.h
@@ -1,6 +1,6 @@
/* A correct <float.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 --git a/gettext-tools/gnulib-lib/fnmatch.c b/gettext-tools/gnulib-lib/fnmatch.c
index 4c58844..01fbd1f 100644
--- a/gettext-tools/gnulib-lib/fnmatch.c
+++ b/gettext-tools/gnulib-lib/fnmatch.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1993, 1996-2007, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1993, 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 --git a/gettext-tools/gnulib-lib/fnmatch.in.h b/gettext-tools/gnulib-lib/fnmatch.in.h
index eb5815a..890ee56 100644
--- a/gettext-tools/gnulib-lib/fnmatch.in.h
+++ b/gettext-tools/gnulib-lib/fnmatch.in.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1993, 1996-1999, 2001-2003, 2005, 2007, 2009-2015 Free
+/* Copyright (C) 1991-1993, 1996-1999, 2001-2003, 2005, 2007, 2009-2016 Free
Software Foundation, Inc.
This file is part of the GNU C Library.
diff --git a/gettext-tools/gnulib-lib/fnmatch_loop.c b/gettext-tools/gnulib-lib/fnmatch_loop.c
index 48e83c6..049a48c 100644
--- a/gettext-tools/gnulib-lib/fnmatch_loop.c
+++ b/gettext-tools/gnulib-lib/fnmatch_loop.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1993, 1996-2006, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1993, 1996-2006, 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 --git a/gettext-tools/gnulib-lib/fopen.c b/gettext-tools/gnulib-lib/fopen.c
index 139ede2..6c0c847 100644
--- a/gettext-tools/gnulib-lib/fopen.c
+++ b/gettext-tools/gnulib-lib/fopen.c
@@ -1,5 +1,5 @@
/* Open a stream 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 --git a/gettext-tools/gnulib-lib/fstat.c b/gettext-tools/gnulib-lib/fstat.c
index 7a0521f..435c429 100644
--- a/gettext-tools/gnulib-lib/fstat.c
+++ b/gettext-tools/gnulib-lib/fstat.c
@@ -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 --git a/gettext-tools/gnulib-lib/fstrcmp.c b/gettext-tools/gnulib-lib/fstrcmp.c
index d40e6ef..a12f2b5 100644
--- a/gettext-tools/gnulib-lib/fstrcmp.c
+++ b/gettext-tools/gnulib-lib/fstrcmp.c
@@ -1,5 +1,5 @@
/* Functions to make fuzzy comparisons between strings
- Copyright (C) 1988-1989, 1992-1993, 1995, 2001-2003, 2006, 2008-2015 Free
+ Copyright (C) 1988-1989, 1992-1993, 1995, 2001-2003, 2006, 2008-2016 Free
Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/fstrcmp.h b/gettext-tools/gnulib-lib/fstrcmp.h
index b2a240f..0a6daeb 100644
--- a/gettext-tools/gnulib-lib/fstrcmp.h
+++ b/gettext-tools/gnulib-lib/fstrcmp.h
@@ -1,5 +1,5 @@
/* Fuzzy string comparison.
- Copyright (C) 1995, 2000, 2002-2003, 2006, 2008-2015 Free Software
+ Copyright (C) 1995, 2000, 2002-2003, 2006, 2008-2016 Free Software
Foundation, Inc.
This file was written by Peter Miller <pmiller@agso.gov.au>
diff --git a/gettext-tools/gnulib-lib/full-write.c b/gettext-tools/gnulib-lib/full-write.c
index 027f77a..08248ad 100644
--- a/gettext-tools/gnulib-lib/full-write.c
+++ b/gettext-tools/gnulib-lib/full-write.c
@@ -1,6 +1,6 @@
/* An interface to read and write that retries (if necessary) until complete.
- Copyright (C) 1993-1994, 1997-2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1993-1994, 1997-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 --git a/gettext-tools/gnulib-lib/full-write.h b/gettext-tools/gnulib-lib/full-write.h
index b32b53d..586d0b5 100644
--- a/gettext-tools/gnulib-lib/full-write.h
+++ b/gettext-tools/gnulib-lib/full-write.h
@@ -1,6 +1,6 @@
/* An interface to write() that writes all it is asked to write.
- Copyright (C) 2002-2003, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 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 --git a/gettext-tools/gnulib-lib/fwriteerror.c b/gettext-tools/gnulib-lib/fwriteerror.c
index 8e7c3ea..3581975 100644
--- a/gettext-tools/gnulib-lib/fwriteerror.c
+++ b/gettext-tools/gnulib-lib/fwriteerror.c
@@ -1,5 +1,5 @@
/* Detect write error on a stream.
- Copyright (C) 2003-2006, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003-2006, 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/fwriteerror.h b/gettext-tools/gnulib-lib/fwriteerror.h
index 438f453..af548da 100644
--- a/gettext-tools/gnulib-lib/fwriteerror.h
+++ b/gettext-tools/gnulib-lib/fwriteerror.h
@@ -1,5 +1,5 @@
/* Detect write error on a stream.
- Copyright (C) 2003, 2005-2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gcd.c b/gettext-tools/gnulib-lib/gcd.c
index 414005e..effaeb1 100644
--- a/gettext-tools/gnulib-lib/gcd.c
+++ b/gettext-tools/gnulib-lib/gcd.c
@@ -1,5 +1,5 @@
/* Arithmetic.
- Copyright (C) 2001-2002, 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gcd.h b/gettext-tools/gnulib-lib/gcd.h
index 56ce191..4368d98 100644
--- a/gettext-tools/gnulib-lib/gcd.h
+++ b/gettext-tools/gnulib-lib/gcd.h
@@ -1,5 +1,5 @@
/* Arithmetic.
- Copyright (C) 2001-2002, 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/get-permissions.c b/gettext-tools/gnulib-lib/get-permissions.c
index 9dfb076..bf40dad 100644
--- a/gettext-tools/gnulib-lib/get-permissions.c
+++ b/gettext-tools/gnulib-lib/get-permissions.c
@@ -1,6 +1,6 @@
/* Get permissions of a file. -*- coding: utf-8 -*-
- Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 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
@@ -102,7 +102,7 @@ get_permissions (const char *name, int desc, mode_t mode,
There is an API
pathconf (name, _PC_ACL_ENABLED)
fpathconf (desc, _PC_ACL_ENABLED)
- that allows to determine which of the two kinds of ACLs is supported
+ that allows us to determine which of the two kinds of ACLs is supported
for the given file. But some file systems may implement this call
incorrectly, so better not use it.
When fetching the source ACL, we simply fetch both ACL types.
diff --git a/gettext-tools/gnulib-lib/getdelim.c b/gettext-tools/gnulib-lib/getdelim.c
index 88258e5..e316c91 100644
--- a/gettext-tools/gnulib-lib/getdelim.c
+++ b/gettext-tools/gnulib-lib/getdelim.c
@@ -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 --git a/gettext-tools/gnulib-lib/getdtablesize.c b/gettext-tools/gnulib-lib/getdtablesize.c
index 03eb7ef..d234055 100644
--- a/gettext-tools/gnulib-lib/getdtablesize.c
+++ b/gettext-tools/gnulib-lib/getdtablesize.c
@@ -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 <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/getline.c b/gettext-tools/gnulib-lib/getline.c
index 811c773..dfc679a 100644
--- a/gettext-tools/gnulib-lib/getline.c
+++ b/gettext-tools/gnulib-lib/getline.c
@@ -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 --git a/gettext-tools/gnulib-lib/getopt.c b/gettext-tools/gnulib-lib/getopt.c
index 212cbf7..8ccb901 100644
--- a/gettext-tools/gnulib-lib/getopt.c
+++ b/gettext-tools/gnulib-lib/getopt.c
@@ -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 --git a/gettext-tools/gnulib-lib/getopt.in.h b/gettext-tools/gnulib-lib/getopt.in.h
index f869970..4f6d2e7 100644
--- a/gettext-tools/gnulib-lib/getopt.in.h
+++ b/gettext-tools/gnulib-lib/getopt.in.h
@@ -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 --git a/gettext-tools/gnulib-lib/getopt1.c b/gettext-tools/gnulib-lib/getopt1.c
index 2b1feb6..63db74f 100644
--- a/gettext-tools/gnulib-lib/getopt1.c
+++ b/gettext-tools/gnulib-lib/getopt1.c
@@ -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 --git a/gettext-tools/gnulib-lib/getopt_int.h b/gettext-tools/gnulib-lib/getopt_int.h
index e893a6e..be4c22e 100644
--- a/gettext-tools/gnulib-lib/getopt_int.h
+++ b/gettext-tools/gnulib-lib/getopt_int.h
@@ -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 --git a/gettext-tools/gnulib-lib/gettext.h b/gettext-tools/gnulib-lib/gettext.h
index f37d586..841b072 100644
--- a/gettext-tools/gnulib-lib/gettext.h
+++ b/gettext-tools/gnulib-lib/gettext.h
@@ -1,6 +1,6 @@
/* Convenience header for conditional use of GNU <libintl.h>.
- Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2011, 2015 Free
- Software Foundation, Inc.
+ 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
it under the terms of the GNU General Public License as published by
@@ -225,15 +225,17 @@ dcpgettext_expr (const char *domain,
if (msg_ctxt_id != NULL)
#endif
{
+ int found_translation;
memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
msg_ctxt_id[msgctxt_len - 1] = '\004';
memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
translation = dcgettext (domain, msg_ctxt_id, category);
+ found_translation = (translation != msg_ctxt_id);
#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
if (msg_ctxt_id != buf)
free (msg_ctxt_id);
#endif
- if (translation != msg_ctxt_id)
+ if (found_translation)
return translation;
}
return msgid;
@@ -271,15 +273,17 @@ dcnpgettext_expr (const char *domain,
if (msg_ctxt_id != NULL)
#endif
{
+ int found_translation;
memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
msg_ctxt_id[msgctxt_len - 1] = '\004';
memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category);
+ found_translation = !(translation == msg_ctxt_id || translation == msgid_plural);
#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
if (msg_ctxt_id != buf)
free (msg_ctxt_id);
#endif
- if (!(translation == msg_ctxt_id || translation == msgid_plural))
+ if (found_translation)
return translation;
}
return (n == 1 ? msgid : msgid_plural);
diff --git a/gettext-tools/gnulib-lib/gettimeofday.c b/gettext-tools/gnulib-lib/gettimeofday.c
index e0e2e69..224ca6a 100644
--- a/gettext-tools/gnulib-lib/gettimeofday.c
+++ b/gettext-tools/gnulib-lib/gettimeofday.c
@@ -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 --git a/gettext-tools/gnulib-lib/gl_anyhash_list1.h b/gettext-tools/gnulib-lib/gl_anyhash_list1.h
index 87eb649..de25706 100644
--- a/gettext-tools/gnulib-lib/gl_anyhash_list1.h
+++ b/gettext-tools/gnulib-lib/gl_anyhash_list1.h
@@ -1,5 +1,5 @@
/* Sequential list data type implemented by a hash table with another list.
- Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gl_anyhash_list2.h b/gettext-tools/gnulib-lib/gl_anyhash_list2.h
index b8aa064..cace8f8 100644
--- a/gettext-tools/gnulib-lib/gl_anyhash_list2.h
+++ b/gettext-tools/gnulib-lib/gl_anyhash_list2.h
@@ -1,5 +1,5 @@
/* Sequential list data type implemented by a hash table with another list.
- Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gl_anylinked_list1.h b/gettext-tools/gnulib-lib/gl_anylinked_list1.h
index aa336e3..dcb66ec 100644
--- a/gettext-tools/gnulib-lib/gl_anylinked_list1.h
+++ b/gettext-tools/gnulib-lib/gl_anylinked_list1.h
@@ -1,5 +1,5 @@
/* Sequential list data type implemented by a linked list.
- Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gl_anylinked_list2.h b/gettext-tools/gnulib-lib/gl_anylinked_list2.h
index 5ba2806..6250c2b 100644
--- a/gettext-tools/gnulib-lib/gl_anylinked_list2.h
+++ b/gettext-tools/gnulib-lib/gl_anylinked_list2.h
@@ -1,5 +1,5 @@
/* Sequential list data type implemented by a linked list.
- Copyright (C) 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gl_array_list.c b/gettext-tools/gnulib-lib/gl_array_list.c
index 6224f40..098d8af 100644
--- a/gettext-tools/gnulib-lib/gl_array_list.c
+++ b/gettext-tools/gnulib-lib/gl_array_list.c
@@ -1,5 +1,5 @@
/* Sequential list data type implemented by an array.
- Copyright (C) 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gl_array_list.h b/gettext-tools/gnulib-lib/gl_array_list.h
index e5f5683..059f9ee 100644
--- a/gettext-tools/gnulib-lib/gl_array_list.h
+++ b/gettext-tools/gnulib-lib/gl_array_list.h
@@ -1,5 +1,5 @@
/* Sequential list data type implemented by an array.
- Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gl_linkedhash_list.c b/gettext-tools/gnulib-lib/gl_linkedhash_list.c
index 03605c5..33d9bcf 100644
--- a/gettext-tools/gnulib-lib/gl_linkedhash_list.c
+++ b/gettext-tools/gnulib-lib/gl_linkedhash_list.c
@@ -1,5 +1,5 @@
/* Sequential list data type implemented by a hash table with a linked list.
- Copyright (C) 2006, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gl_linkedhash_list.h b/gettext-tools/gnulib-lib/gl_linkedhash_list.h
index 403d14f..80caa2d 100644
--- a/gettext-tools/gnulib-lib/gl_linkedhash_list.h
+++ b/gettext-tools/gnulib-lib/gl_linkedhash_list.h
@@ -1,5 +1,5 @@
/* Sequential list data type implemented by a hash table with a linked list.
- Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gl_list.h b/gettext-tools/gnulib-lib/gl_list.h
index a0c7d27..c9d05b0 100644
--- a/gettext-tools/gnulib-lib/gl_list.h
+++ b/gettext-tools/gnulib-lib/gl_list.h
@@ -1,5 +1,5 @@
/* Abstract sequential list data type. -*- coding: utf-8 -*-
- Copyright (C) 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/gl_xlist.h b/gettext-tools/gnulib-lib/gl_xlist.h
index 7ea62c1..06824fc 100644
--- a/gettext-tools/gnulib-lib/gl_xlist.h
+++ b/gettext-tools/gnulib-lib/gl_xlist.h
@@ -1,5 +1,5 @@
/* Abstract sequential list data type, with out-of-memory checking.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2009.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/glib/gstrfuncs.c b/gettext-tools/gnulib-lib/glib/gstrfuncs.c
index c2e43c2..7188a64 100644
--- a/gettext-tools/gnulib-lib/glib/gstrfuncs.c
+++ b/gettext-tools/gnulib-lib/glib/gstrfuncs.c
@@ -621,7 +621,7 @@ g_parse_long_long (const gchar *nptr,
/* this code is based on on the strtol(3) code from GNU libc released under
* the GNU General Public License.
*
- * Copyright (C) 1991-1992, 1994-2000, 1901-1902, 2015 Free Software
+ * Copyright (C) 1991-1992, 1994-2000, 1901-1902, 2015-2016 Free Software
* Foundation, Inc.
*/
#define ISSPACE(c) ((c) == ' ' || (c) == '\f' || (c) == '\n' || \
diff --git a/gettext-tools/gnulib-lib/glthread/lock.c b/gettext-tools/gnulib-lib/glthread/lock.c
index b64132a..935043b 100644
--- a/gettext-tools/gnulib-lib/glthread/lock.c
+++ b/gettext-tools/gnulib-lib/glthread/lock.c
@@ -1,5 +1,5 @@
/* Locking in multithreaded situations.
- 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 --git a/gettext-tools/gnulib-lib/glthread/lock.h b/gettext-tools/gnulib-lib/glthread/lock.h
index cf3d0d9..e64506b 100644
--- a/gettext-tools/gnulib-lib/glthread/lock.h
+++ b/gettext-tools/gnulib-lib/glthread/lock.h
@@ -1,5 +1,5 @@
/* Locking in multithreaded situations.
- 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 --git a/gettext-tools/gnulib-lib/glthread/threadlib.c b/gettext-tools/gnulib-lib/glthread/threadlib.c
index f01d351..be63713 100644
--- a/gettext-tools/gnulib-lib/glthread/threadlib.c
+++ b/gettext-tools/gnulib-lib/glthread/threadlib.c
@@ -1,5 +1,5 @@
/* Multithreading primitives.
- 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 --git a/gettext-tools/gnulib-lib/glthread/tls.c b/gettext-tools/gnulib-lib/glthread/tls.c
index f1c0cd7..7c1916a 100644
--- a/gettext-tools/gnulib-lib/glthread/tls.c
+++ b/gettext-tools/gnulib-lib/glthread/tls.c
@@ -1,5 +1,5 @@
/* Thread-local storage in multithreaded situations.
- 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 --git a/gettext-tools/gnulib-lib/glthread/tls.h b/gettext-tools/gnulib-lib/glthread/tls.h
index cf53a2b..63955a2 100644
--- a/gettext-tools/gnulib-lib/glthread/tls.h
+++ b/gettext-tools/gnulib-lib/glthread/tls.h
@@ -1,5 +1,5 @@
/* Thread-local storage in multithreaded situations.
- Copyright (C) 2005, 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005, 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 --git a/gettext-tools/gnulib-lib/hard-locale.c b/gettext-tools/gnulib-lib/hard-locale.c
new file mode 100644
index 0000000..c7d9da5
--- /dev/null
+++ b/gettext-tools/gnulib-lib/hard-locale.c
@@ -0,0 +1,72 @@
+/* hard-locale.c -- Determine whether a locale is hard.
+
+ Copyright (C) 1997-1999, 2002-2004, 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
+ 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 <http://www.gnu.org/licenses/>. */
+
+#include <config.h>
+
+#include "hard-locale.h"
+
+#include <locale.h>
+#include <stdlib.h>
+#include <string.h>
+
+#ifdef __GLIBC__
+# define GLIBC_VERSION __GLIBC__
+#elif defined __UCLIBC__
+# define GLIBC_VERSION 2
+#else
+# define GLIBC_VERSION 0
+#endif
+
+/* Return true if the current CATEGORY locale is hard, i.e. if you
+ can't get away with assuming traditional C or POSIX behavior. */
+bool
+hard_locale (int category)
+{
+ bool hard = true;
+ char const *p = setlocale (category, NULL);
+
+ if (p)
+ {
+ if (2 <= GLIBC_VERSION)
+ {
+ if (strcmp (p, "C") == 0 || strcmp (p, "POSIX") == 0)
+ hard = false;
+ }
+ else
+ {
+ char *locale = strdup (p);
+ if (locale)
+ {
+ /* Temporarily set the locale to the "C" and "POSIX" locales
+ to find their names, so that we can determine whether one
+ or the other is the caller's locale. */
+ if (((p = setlocale (category, "C"))
+ && strcmp (p, locale) == 0)
+ || ((p = setlocale (category, "POSIX"))
+ && strcmp (p, locale) == 0))
+ hard = false;
+
+ /* Restore the caller's locale. */
+ setlocale (category, locale);
+ free (locale);
+ }
+ }
+ }
+
+ return hard;
+}
diff --git a/gettext-tools/gnulib-lib/hard-locale.h b/gettext-tools/gnulib-lib/hard-locale.h
new file mode 100644
index 0000000..7644afa
--- /dev/null
+++ b/gettext-tools/gnulib-lib/hard-locale.h
@@ -0,0 +1,25 @@
+/* Determine whether a locale is hard.
+
+ Copyright (C) 1999, 2003-2004, 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
+ 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 <http://www.gnu.org/licenses/>. */
+
+#ifndef HARD_LOCALE_H_
+# define HARD_LOCALE_H_ 1
+
+# include <stdbool.h>
+
+bool hard_locale (int);
+
+#endif /* HARD_LOCALE_H_ */
diff --git a/gettext-tools/gnulib-lib/hash.c b/gettext-tools/gnulib-lib/hash.c
index 89fa5ec..4202f79 100644
--- a/gettext-tools/gnulib-lib/hash.c
+++ b/gettext-tools/gnulib-lib/hash.c
@@ -1,6 +1,5 @@
/* hash - implement simple hashing table with string based keys.
- Copyright (C) 1994-1995, 2000-2006, 2015 Free Software Foundation,
- Inc.
+ Copyright (C) 1994-1995, 2000-2006, 2015-2016 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, October 1994.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/hash.h b/gettext-tools/gnulib-lib/hash.h
index b98e340..61c0397 100644
--- a/gettext-tools/gnulib-lib/hash.h
+++ b/gettext-tools/gnulib-lib/hash.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 2000-2003, 2005-2006, 2015 Free Software
+/* Copyright (C) 1995, 2000-2003, 2005-2006, 2015-2016 Free Software
* Foundation, Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/html-ostream.c b/gettext-tools/gnulib-lib/html-ostream.c
index 64c816c..f1cfeda 100644
--- a/gettext-tools/gnulib-lib/html-ostream.c
+++ b/gettext-tools/gnulib-lib/html-ostream.c
@@ -2,7 +2,7 @@
#line 1 "html-ostream.oo.c"
/* Output stream that produces HTML output.
- Copyright (C) 2006-2009, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2009, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/html-ostream.h b/gettext-tools/gnulib-lib/html-ostream.h
index 4a33ed7..7a2ecbf 100644
--- a/gettext-tools/gnulib-lib/html-ostream.h
+++ b/gettext-tools/gnulib-lib/html-ostream.h
@@ -2,7 +2,7 @@
#line 1 "html-ostream.oo.h"
/* Output stream that produces HTML output.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/html-ostream.oo.c b/gettext-tools/gnulib-lib/html-ostream.oo.c
index afa84d3..be4fd40 100644
--- a/gettext-tools/gnulib-lib/html-ostream.oo.c
+++ b/gettext-tools/gnulib-lib/html-ostream.oo.c
@@ -1,5 +1,5 @@
/* Output stream that produces HTML output.
- Copyright (C) 2006-2009, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2009, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/html-ostream.oo.h b/gettext-tools/gnulib-lib/html-ostream.oo.h
index 87c6f3d..d044a78 100644
--- a/gettext-tools/gnulib-lib/html-ostream.oo.h
+++ b/gettext-tools/gnulib-lib/html-ostream.oo.h
@@ -1,5 +1,5 @@
/* Output stream that produces HTML output.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/html-styled-ostream.c b/gettext-tools/gnulib-lib/html-styled-ostream.c
index fb15e46..ef37350 100644
--- a/gettext-tools/gnulib-lib/html-styled-ostream.c
+++ b/gettext-tools/gnulib-lib/html-styled-ostream.c
@@ -2,7 +2,7 @@
#line 1 "html-styled-ostream.oo.c"
/* Output stream for CSS styled text, producing HTML output.
- Copyright (C) 2006-2007, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/html-styled-ostream.h b/gettext-tools/gnulib-lib/html-styled-ostream.h
index 4a0ae03..ae6544a 100644
--- a/gettext-tools/gnulib-lib/html-styled-ostream.h
+++ b/gettext-tools/gnulib-lib/html-styled-ostream.h
@@ -2,7 +2,7 @@
#line 1 "html-styled-ostream.oo.h"
/* Output stream for CSS styled text, producing HTML output.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/html-styled-ostream.oo.c b/gettext-tools/gnulib-lib/html-styled-ostream.oo.c
index ef187dd..7722347 100644
--- a/gettext-tools/gnulib-lib/html-styled-ostream.oo.c
+++ b/gettext-tools/gnulib-lib/html-styled-ostream.oo.c
@@ -1,5 +1,5 @@
/* Output stream for CSS styled text, producing HTML output.
- Copyright (C) 2006-2007, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/html-styled-ostream.oo.h b/gettext-tools/gnulib-lib/html-styled-ostream.oo.h
index d66bb2e..02e7c72 100644
--- a/gettext-tools/gnulib-lib/html-styled-ostream.oo.h
+++ b/gettext-tools/gnulib-lib/html-styled-ostream.oo.h
@@ -1,5 +1,5 @@
/* Output stream for CSS styled text, producing HTML output.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/iconv.c b/gettext-tools/gnulib-lib/iconv.c
index 28c13c5..9ce9c01 100644
--- a/gettext-tools/gnulib-lib/iconv.c
+++ b/gettext-tools/gnulib-lib/iconv.c
@@ -1,5 +1,5 @@
/* Character set conversion.
- Copyright (C) 1999-2001, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1999-2001, 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 --git a/gettext-tools/gnulib-lib/iconv.in.h b/gettext-tools/gnulib-lib/iconv.in.h
index 94ab806..cb1da14 100644
--- a/gettext-tools/gnulib-lib/iconv.in.h
+++ b/gettext-tools/gnulib-lib/iconv.in.h
@@ -1,6 +1,6 @@
/* A GNU-like <iconv.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 --git a/gettext-tools/gnulib-lib/iconv_close.c b/gettext-tools/gnulib-lib/iconv_close.c
index 59e0aca..d1cd793 100644
--- a/gettext-tools/gnulib-lib/iconv_close.c
+++ b/gettext-tools/gnulib-lib/iconv_close.c
@@ -1,5 +1,5 @@
/* Character set conversion.
- 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 --git a/gettext-tools/gnulib-lib/iconv_open.c b/gettext-tools/gnulib-lib/iconv_open.c
index 09d042d..d5c5a52 100644
--- a/gettext-tools/gnulib-lib/iconv_open.c
+++ b/gettext-tools/gnulib-lib/iconv_open.c
@@ -1,5 +1,5 @@
/* Character set conversion.
- 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 --git a/gettext-tools/gnulib-lib/iconveh.h b/gettext-tools/gnulib-lib/iconveh.h
index 118e29c..1849c39 100644
--- a/gettext-tools/gnulib-lib/iconveh.h
+++ b/gettext-tools/gnulib-lib/iconveh.h
@@ -1,5 +1,5 @@
/* Character set conversion handler type.
- Copyright (C) 2001-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/ignore-value.h b/gettext-tools/gnulib-lib/ignore-value.h
index 2e3121f..6713d96 100644
--- a/gettext-tools/gnulib-lib/ignore-value.h
+++ b/gettext-tools/gnulib-lib/ignore-value.h
@@ -1,6 +1,6 @@
/* ignore a function return without a compiler warning. -*- coding: utf-8 -*-
- 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 --git a/gettext-tools/gnulib-lib/intprops.h b/gettext-tools/gnulib-lib/intprops.h
index ecafaf7..3152139 100644
--- a/gettext-tools/gnulib-lib/intprops.h
+++ b/gettext-tools/gnulib-lib/intprops.h
@@ -1,10 +1,10 @@
/* intprops.h -- properties of integer types
- Copyright (C) 2001-2005, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 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
- the Free Software Foundation; either version 3 of the License, or
+ 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,
@@ -21,6 +21,7 @@
#define _GL_INTPROPS_H
#include <limits.h>
+#include <verify.h>
/* 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))
@@ -36,17 +37,6 @@
an integer. */
#define TYPE_IS_INTEGER(t) ((t) 1.5 == 1)
-/* True if negative values of the signed integer type T use two's
- complement, ones' complement, or signed magnitude representation,
- respectively. Much GNU code assumes two's complement, but some
- people like to be portable to all possible C hosts. */
-#define TYPE_TWOS_COMPLEMENT(t) ((t) ~ (t) 0 == (t) -1)
-#define TYPE_ONES_COMPLEMENT(t) ((t) ~ (t) 0 == 0)
-#define TYPE_SIGNED_MAGNITUDE(t) ((t) ~ (t) 0 < (t) -1)
-
-/* 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 real type T is signed. */
#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
@@ -55,18 +45,10 @@
#define EXPR_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0)
-/* Minimum and maximum values for integer types and expressions. These
- macros have undefined behavior if T is signed and has padding bits.
- If this is a problem for you, please let us know how to fix it for
- your host. */
+/* Minimum and maximum values for integer types and expressions. */
/* The maximum and minimum values for the integer type T. */
-#define TYPE_MINIMUM(t) \
- ((t) (! TYPE_SIGNED (t) \
- ? (t) 0 \
- : TYPE_SIGNED_MAGNITUDE (t) \
- ? ~ (t) 0 \
- : ~ TYPE_MAXIMUM (t)))
+#define TYPE_MINIMUM(t) ((t) ~ TYPE_MAXIMUM (t))
#define TYPE_MAXIMUM(t) \
((t) (! TYPE_SIGNED (t) \
? (t) -1 \
@@ -76,7 +58,7 @@
after integer promotion. E should not have side effects. */
#define _GL_INT_MINIMUM(e) \
(EXPR_SIGNED (e) \
- ? - _GL_INT_TWOS_COMPLEMENT (e) - _GL_SIGNED_INT_MAXIMUM (e) \
+ ? ~ _GL_SIGNED_INT_MAXIMUM (e) \
: _GL_INT_CONVERT (e, 0))
#define _GL_INT_MAXIMUM(e) \
(EXPR_SIGNED (e) \
@@ -85,8 +67,25 @@
#define _GL_SIGNED_INT_MAXIMUM(e) \
(((_GL_INT_CONVERT (e, 1) << (sizeof ((e) + 0) * CHAR_BIT - 2)) - 1) * 2 + 1)
+/* This include file assumes that signed types are two's complement without
+ padding bits; the above macros have undefined behavior otherwise.
+ If this is a problem for you, please let us know how to fix it for your host.
+ As a sanity check, test the assumption for some signed types that
+ <limits.h> bounds. */
+verify (TYPE_MINIMUM (signed char) == SCHAR_MIN);
+verify (TYPE_MAXIMUM (signed char) == SCHAR_MAX);
+verify (TYPE_MINIMUM (short int) == SHRT_MIN);
+verify (TYPE_MAXIMUM (short int) == SHRT_MAX);
+verify (TYPE_MINIMUM (int) == INT_MIN);
+verify (TYPE_MAXIMUM (int) == INT_MAX);
+verify (TYPE_MINIMUM (long int) == LONG_MIN);
+verify (TYPE_MAXIMUM (long int) == LONG_MAX);
+#ifdef LLONG_MAX
+verify (TYPE_MINIMUM (long long int) == LLONG_MIN);
+verify (TYPE_MAXIMUM (long long int) == LLONG_MAX);
+#endif
-/* Return 1 if the __typeof__ keyword works. This could be done by
+/* Does the __typeof__ keyword work? This could be done by
'configure', but for now it's easier to do it by hand. */
#if (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
|| (0x5110 <= __SUNPRO_C && !__STDC__))
diff --git a/gettext-tools/gnulib-lib/isinf.c b/gettext-tools/gnulib-lib/isinf.c
index 3ba77c5..5a3913a 100644
--- a/gettext-tools/gnulib-lib/isinf.c
+++ b/gettext-tools/gnulib-lib/isinf.c
@@ -1,5 +1,5 @@
/* Test for positive or negative infinity.
- 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 --git a/gettext-tools/gnulib-lib/isnan.c b/gettext-tools/gnulib-lib/isnan.c
index 5eb11d9..e1e57b2 100644
--- a/gettext-tools/gnulib-lib/isnan.c
+++ b/gettext-tools/gnulib-lib/isnan.c
@@ -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 --git a/gettext-tools/gnulib-lib/isnand-nolibm.h b/gettext-tools/gnulib-lib/isnand-nolibm.h
index ca3a87a..dc47264 100644
--- a/gettext-tools/gnulib-lib/isnand-nolibm.h
+++ b/gettext-tools/gnulib-lib/isnand-nolibm.h
@@ -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 --git a/gettext-tools/gnulib-lib/isnand.c b/gettext-tools/gnulib-lib/isnand.c
index 3fd803b..405b23a 100644
--- a/gettext-tools/gnulib-lib/isnand.c
+++ b/gettext-tools/gnulib-lib/isnand.c
@@ -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 --git a/gettext-tools/gnulib-lib/isnanf-nolibm.h b/gettext-tools/gnulib-lib/isnanf-nolibm.h
index 1e8d75a..4e68cad 100644
--- a/gettext-tools/gnulib-lib/isnanf-nolibm.h
+++ b/gettext-tools/gnulib-lib/isnanf-nolibm.h
@@ -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 --git a/gettext-tools/gnulib-lib/isnanf.c b/gettext-tools/gnulib-lib/isnanf.c
index 7fc5da2..d1e3fe9 100644
--- a/gettext-tools/gnulib-lib/isnanf.c
+++ b/gettext-tools/gnulib-lib/isnanf.c
@@ -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 --git a/gettext-tools/gnulib-lib/isnanl-nolibm.h b/gettext-tools/gnulib-lib/isnanl-nolibm.h
index 22d536d..efd9199 100644
--- a/gettext-tools/gnulib-lib/isnanl-nolibm.h
+++ b/gettext-tools/gnulib-lib/isnanl-nolibm.h
@@ -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 --git a/gettext-tools/gnulib-lib/isnanl.c b/gettext-tools/gnulib-lib/isnanl.c
index 8f05eb7..67d39d1 100644
--- a/gettext-tools/gnulib-lib/isnanl.c
+++ b/gettext-tools/gnulib-lib/isnanl.c
@@ -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 --git a/gettext-tools/gnulib-lib/iswblank.c b/gettext-tools/gnulib-lib/iswblank.c
index 94be115..8d47ee5 100644
--- a/gettext-tools/gnulib-lib/iswblank.c
+++ b/gettext-tools/gnulib-lib/iswblank.c
@@ -1,5 +1,5 @@
/* Test wide character for being blank.
- 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 --git a/gettext-tools/gnulib-lib/itold.c b/gettext-tools/gnulib-lib/itold.c
index 1eee03e..5533392 100644
--- a/gettext-tools/gnulib-lib/itold.c
+++ b/gettext-tools/gnulib-lib/itold.c
@@ -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 <bruno@clisp.org>, 2011.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/javacomp.c b/gettext-tools/gnulib-lib/javacomp.c
index c7571c8..a318c0d 100644
--- a/gettext-tools/gnulib-lib/javacomp.c
+++ b/gettext-tools/gnulib-lib/javacomp.c
@@ -1,5 +1,5 @@
/* Compile a Java program.
- Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/javacomp.h b/gettext-tools/gnulib-lib/javacomp.h
index a2f651e..0738af5 100644
--- a/gettext-tools/gnulib-lib/javacomp.h
+++ b/gettext-tools/gnulib-lib/javacomp.h
@@ -1,5 +1,5 @@
/* Compile a Java program.
- Copyright (C) 2001-2002, 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/javaexec.c b/gettext-tools/gnulib-lib/javaexec.c
index e6bfd37..28649dd 100644
--- a/gettext-tools/gnulib-lib/javaexec.c
+++ b/gettext-tools/gnulib-lib/javaexec.c
@@ -1,5 +1,5 @@
/* Execute a Java program.
- Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/javaexec.h b/gettext-tools/gnulib-lib/javaexec.h
index b50ce3a..9935e8f 100644
--- a/gettext-tools/gnulib-lib/javaexec.h
+++ b/gettext-tools/gnulib-lib/javaexec.h
@@ -1,5 +1,5 @@
/* Execute a Java program.
- Copyright (C) 2001-2002, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/javaversion.c b/gettext-tools/gnulib-lib/javaversion.c
index 7eda578..d760c32 100644
--- a/gettext-tools/gnulib-lib/javaversion.c
+++ b/gettext-tools/gnulib-lib/javaversion.c
@@ -1,5 +1,5 @@
/* Determine the Java version supported by javaexec.
- Copyright (C) 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/javaversion.h b/gettext-tools/gnulib-lib/javaversion.h
index 41d21b7..d55a3c4 100644
--- a/gettext-tools/gnulib-lib/javaversion.h
+++ b/gettext-tools/gnulib-lib/javaversion.h
@@ -1,5 +1,5 @@
/* Determine the Java version supported by javaexec.
- Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/javaversion.java b/gettext-tools/gnulib-lib/javaversion.java
index 99a7bbe..4b222d4 100644
--- a/gettext-tools/gnulib-lib/javaversion.java
+++ b/gettext-tools/gnulib-lib/javaversion.java
@@ -1,5 +1,5 @@
/* Show the Java version.
- * 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 --git a/gettext-tools/gnulib-lib/langinfo.in.h b/gettext-tools/gnulib-lib/langinfo.in.h
index 04fd535..e11617c 100644
--- a/gettext-tools/gnulib-lib/langinfo.in.h
+++ b/gettext-tools/gnulib-lib/langinfo.in.h
@@ -1,5 +1,5 @@
/* Substitute for and wrapper around <langinfo.h>.
- 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 --git a/gettext-tools/gnulib-lib/localcharset.c b/gettext-tools/gnulib-lib/localcharset.c
index 1f02aa5..b2a0369 100644
--- a/gettext-tools/gnulib-lib/localcharset.c
+++ b/gettext-tools/gnulib-lib/localcharset.c
@@ -1,6 +1,6 @@
/* Determine a canonical name for the current locale's character encoding.
- Copyright (C) 2000-2006, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000-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 --git a/gettext-tools/gnulib-lib/localcharset.h b/gettext-tools/gnulib-lib/localcharset.h
index c5e6d46..915182e 100644
--- a/gettext-tools/gnulib-lib/localcharset.h
+++ b/gettext-tools/gnulib-lib/localcharset.h
@@ -1,5 +1,5 @@
/* Determine a canonical name for the current locale's character encoding.
- Copyright (C) 2000-2003, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000-2003, 2009-2016 Free Software Foundation, Inc.
This file is part of the GNU CHARSET Library.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/locale.in.h b/gettext-tools/gnulib-lib/locale.in.h
index 05e974d..4083507 100644
--- a/gettext-tools/gnulib-lib/locale.in.h
+++ b/gettext-tools/gnulib-lib/locale.in.h
@@ -1,5 +1,5 @@
/* A POSIX <locale.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 --git a/gettext-tools/gnulib-lib/localename.c b/gettext-tools/gnulib-lib/localename.c
index c256ad5..e67bd01 100644
--- a/gettext-tools/gnulib-lib/localename.c
+++ b/gettext-tools/gnulib-lib/localename.c
@@ -1,5 +1,5 @@
/* Determine name of the currently selected locale.
- Copyright (C) 1995-2015 Free Software Foundation, Inc.
+ Copyright (C) 1995-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 --git a/gettext-tools/gnulib-lib/localename.h b/gettext-tools/gnulib-lib/localename.h
index 13c126d..17f0d85 100644
--- a/gettext-tools/gnulib-lib/localename.h
+++ b/gettext-tools/gnulib-lib/localename.h
@@ -1,5 +1,5 @@
/* Determine name of the currently selected locale.
- 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 --git a/gettext-tools/gnulib-lib/log10.c b/gettext-tools/gnulib-lib/log10.c
index a6b037c..35be15c 100644
--- a/gettext-tools/gnulib-lib/log10.c
+++ b/gettext-tools/gnulib-lib/log10.c
@@ -1,5 +1,5 @@
/* Base 10 logarithmic function.
- Copyright (C) 2012-2015 Free Software Foundation, Inc.
+ Copyright (C) 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 --git a/gettext-tools/gnulib-lib/lstat.c b/gettext-tools/gnulib-lib/lstat.c
index 31dee13..03b0634 100644
--- a/gettext-tools/gnulib-lib/lstat.c
+++ b/gettext-tools/gnulib-lib/lstat.c
@@ -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 --git a/gettext-tools/gnulib-lib/malloc.c b/gettext-tools/gnulib-lib/malloc.c
index 00800a2..e9b01d2 100644
--- a/gettext-tools/gnulib-lib/malloc.c
+++ b/gettext-tools/gnulib-lib/malloc.c
@@ -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 --git a/gettext-tools/gnulib-lib/malloca.c b/gettext-tools/gnulib-lib/malloca.c
index 198a96c..a613277 100644
--- a/gettext-tools/gnulib-lib/malloca.c
+++ b/gettext-tools/gnulib-lib/malloca.c
@@ -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 <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/malloca.h b/gettext-tools/gnulib-lib/malloca.h
index 7a4190c..fa27a9e 100644
--- a/gettext-tools/gnulib-lib/malloca.h
+++ b/gettext-tools/gnulib-lib/malloca.h
@@ -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 <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/math.in.h b/gettext-tools/gnulib-lib/math.in.h
index 62a089a..e3fd994 100644
--- a/gettext-tools/gnulib-lib/math.in.h
+++ b/gettext-tools/gnulib-lib/math.in.h
@@ -1,6 +1,6 @@
/* A GNU-like <math.h>.
- 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
@@ -2205,7 +2205,8 @@ _GL_WARN_REAL_FLOATING_DECL (isnan);
#if @GNULIB_SIGNBIT@
-# if @REPLACE_SIGNBIT_USING_GCC@
+# if (@REPLACE_SIGNBIT_USING_GCC@ \
+ && (!defined __cplusplus || __cplusplus < 201103))
# undef signbit
/* GCC 4.0 and newer provides three built-ins for signbit. */
# define signbit(x) \
diff --git a/gettext-tools/gnulib-lib/mbchar.c b/gettext-tools/gnulib-lib/mbchar.c
index ae9b7eb..27796c3 100644
--- a/gettext-tools/gnulib-lib/mbchar.c
+++ b/gettext-tools/gnulib-lib/mbchar.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2006, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 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 --git a/gettext-tools/gnulib-lib/mbchar.h b/gettext-tools/gnulib-lib/mbchar.h
index fcdefaf..2017d86 100644
--- a/gettext-tools/gnulib-lib/mbchar.h
+++ b/gettext-tools/gnulib-lib/mbchar.h
@@ -1,5 +1,5 @@
/* Multibyte character data type.
- Copyright (C) 2001, 2005-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001, 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 --git a/gettext-tools/gnulib-lib/mbiter.h b/gettext-tools/gnulib-lib/mbiter.h
index ccc1d19..d72b0a7 100644
--- a/gettext-tools/gnulib-lib/mbiter.h
+++ b/gettext-tools/gnulib-lib/mbiter.h
@@ -1,5 +1,5 @@
/* Iterating through multibyte strings: macros for multi-byte encodings.
- Copyright (C) 2001, 2005, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001, 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 --git a/gettext-tools/gnulib-lib/mbrtowc.c b/gettext-tools/gnulib-lib/mbrtowc.c
index e49d55b..cdd874b 100644
--- a/gettext-tools/gnulib-lib/mbrtowc.c
+++ b/gettext-tools/gnulib-lib/mbrtowc.c
@@ -1,5 +1,5 @@
/* Convert multibyte character to wide character.
- Copyright (C) 1999-2002, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 1999-2002, 2005-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
@@ -20,6 +20,11 @@
/* Specification. */
#include <wchar.h>
+#if C_LOCALE_MAYBE_EILSEQ
+# include "hard-locale.h"
+# include <locale.h>
+#endif
+
#if GNULIB_defined_mbstate_t
/* Implement mbrtowc() on top of mbtowc(). */
@@ -328,6 +333,9 @@ mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
size_t
rpl_mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
{
+ size_t ret;
+ wchar_t wc;
+
# if MBRTOWC_NULL_ARG2_BUG || MBRTOWC_RETVAL_BUG || MBRTOWC_EMPTY_INPUT_BUG
if (s == NULL)
{
@@ -342,6 +350,9 @@ rpl_mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
return (size_t) -2;
# endif
+ if (! pwc)
+ pwc = &wc;
+
# if MBRTOWC_RETVAL_BUG
{
static mbstate_t internal_state;
@@ -357,8 +368,7 @@ rpl_mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
size_t count = 0;
for (; n > 0; s++, n--)
{
- wchar_t wc;
- size_t ret = mbrtowc (&wc, s, 1, ps);
+ ret = mbrtowc (&wc, s, 1, ps);
if (ret == (size_t)(-1))
return (size_t)(-1);
@@ -366,8 +376,7 @@ rpl_mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
if (ret != (size_t)(-2))
{
/* The multibyte character has been completed. */
- if (pwc != NULL)
- *pwc = wc;
+ *pwc = wc;
return (wc == 0 ? 0 : count);
}
}
@@ -376,32 +385,23 @@ rpl_mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
}
# endif
-# if MBRTOWC_NUL_RETVAL_BUG
- {
- wchar_t wc;
- size_t ret = mbrtowc (&wc, s, n, ps);
+ ret = mbrtowc (pwc, s, n, ps);
- if (ret != (size_t)(-1) && ret != (size_t)(-2))
- {
- if (pwc != NULL)
- *pwc = wc;
- if (wc == 0)
- ret = 0;
- }
- return ret;
- }
-# else
- {
-# if MBRTOWC_NULL_ARG1_BUG
- wchar_t dummy;
-
- if (pwc == NULL)
- pwc = &dummy;
-# endif
+# if MBRTOWC_NUL_RETVAL_BUG
+ if (ret < (size_t) -2 && !*pwc)
+ return 0;
+# endif
- return mbrtowc (pwc, s, n, ps);
- }
+# if C_LOCALE_MAYBE_EILSEQ
+ if ((size_t) -2 <= ret && n != 0 && ! hard_locale (LC_CTYPE))
+ {
+ unsigned char uc = *s;
+ *pwc = uc;
+ return 1;
+ }
# endif
+
+ return ret;
}
#endif
diff --git a/gettext-tools/gnulib-lib/mbsinit.c b/gettext-tools/gnulib-lib/mbsinit.c
index 4effdd8..372b523 100644
--- a/gettext-tools/gnulib-lib/mbsinit.c
+++ b/gettext-tools/gnulib-lib/mbsinit.c
@@ -1,5 +1,5 @@
/* Test for initial conversion state.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/mbslen.c b/gettext-tools/gnulib-lib/mbslen.c
index 011f821..ed13a42 100644
--- a/gettext-tools/gnulib-lib/mbslen.c
+++ b/gettext-tools/gnulib-lib/mbslen.c
@@ -1,5 +1,5 @@
/* Counting the multibyte characters in a string.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2007.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/mbsrtowcs-impl.h b/gettext-tools/gnulib-lib/mbsrtowcs-impl.h
index a0f4271..f99fa34 100644
--- a/gettext-tools/gnulib-lib/mbsrtowcs-impl.h
+++ b/gettext-tools/gnulib-lib/mbsrtowcs-impl.h
@@ -1,5 +1,5 @@
/* Convert string to wide string.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/mbsrtowcs-state.c b/gettext-tools/gnulib-lib/mbsrtowcs-state.c
index 522eb69..905547a 100644
--- a/gettext-tools/gnulib-lib/mbsrtowcs-state.c
+++ b/gettext-tools/gnulib-lib/mbsrtowcs-state.c
@@ -1,5 +1,5 @@
/* Convert string to wide string.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/mbsrtowcs.c b/gettext-tools/gnulib-lib/mbsrtowcs.c
index c37eba7..54bf6f7 100644
--- a/gettext-tools/gnulib-lib/mbsrtowcs.c
+++ b/gettext-tools/gnulib-lib/mbsrtowcs.c
@@ -1,5 +1,5 @@
/* Convert string to wide string.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/mbsstr.c b/gettext-tools/gnulib-lib/mbsstr.c
index 6d5239e..bc738d4 100644
--- a/gettext-tools/gnulib-lib/mbsstr.c
+++ b/gettext-tools/gnulib-lib/mbsstr.c
@@ -1,5 +1,5 @@
/* Searching in a string. -*- coding: utf-8 -*-
- Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2005.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/mbswidth.c b/gettext-tools/gnulib-lib/mbswidth.c
index 75ca79a..a235bf1 100644
--- a/gettext-tools/gnulib-lib/mbswidth.c
+++ b/gettext-tools/gnulib-lib/mbswidth.c
@@ -1,5 +1,5 @@
/* Determine the number of screen columns needed for a string.
- Copyright (C) 2000-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000-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 --git a/gettext-tools/gnulib-lib/mbswidth.h b/gettext-tools/gnulib-lib/mbswidth.h
index f5b0fc3..b04cfe4 100644
--- a/gettext-tools/gnulib-lib/mbswidth.h
+++ b/gettext-tools/gnulib-lib/mbswidth.h
@@ -1,5 +1,5 @@
/* Determine the number of screen columns needed for a string.
- Copyright (C) 2000-2004, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000-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 --git a/gettext-tools/gnulib-lib/mbuiter.h b/gettext-tools/gnulib-lib/mbuiter.h
index acdec29..aad4fea 100644
--- a/gettext-tools/gnulib-lib/mbuiter.h
+++ b/gettext-tools/gnulib-lib/mbuiter.h
@@ -1,5 +1,5 @@
/* Iterating through multibyte strings: macros for multi-byte encodings.
- Copyright (C) 2001, 2005, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001, 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 --git a/gettext-tools/gnulib-lib/memchr.c b/gettext-tools/gnulib-lib/memchr.c
index f74cc9a..b565542 100644
--- a/gettext-tools/gnulib-lib/memchr.c
+++ b/gettext-tools/gnulib-lib/memchr.c
@@ -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 --git a/gettext-tools/gnulib-lib/memset.c b/gettext-tools/gnulib-lib/memset.c
index 5490f8e..352ca1e 100644
--- a/gettext-tools/gnulib-lib/memset.c
+++ b/gettext-tools/gnulib-lib/memset.c
@@ -1,5 +1,5 @@
/* memset.c -- set an area of memory to a given value
- Copyright (C) 1991, 2003, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1991, 2003, 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 --git a/gettext-tools/gnulib-lib/minmax.h b/gettext-tools/gnulib-lib/minmax.h
index 919678d..be6b321 100644
--- a/gettext-tools/gnulib-lib/minmax.h
+++ b/gettext-tools/gnulib-lib/minmax.h
@@ -1,5 +1,5 @@
/* MIN, MAX macros.
- Copyright (C) 1995, 1998, 2001, 2003, 2005, 2009-2015 Free Software
+ Copyright (C) 1995, 1998, 2001, 2003, 2005, 2009-2016 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/mkdtemp.c b/gettext-tools/gnulib-lib/mkdtemp.c
index 9555392..c1b05fd 100644
--- a/gettext-tools/gnulib-lib/mkdtemp.c
+++ b/gettext-tools/gnulib-lib/mkdtemp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2001-2003, 2006-2007, 2009-2015 Free Software
+/* Copyright (C) 1999, 2001-2003, 2006-2007, 2009-2016 Free Software
Foundation, Inc.
This file is part of the GNU C Library.
diff --git a/gettext-tools/gnulib-lib/moo.h b/gettext-tools/gnulib-lib/moo.h
index 2925b58..d9e6328 100644
--- a/gettext-tools/gnulib-lib/moo.h
+++ b/gettext-tools/gnulib-lib/moo.h
@@ -1,5 +1,5 @@
/* Minimal object-oriented facilities for C.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/msvc-inval.c b/gettext-tools/gnulib-lib/msvc-inval.c
index a1f1dc0..baaf39e 100644
--- a/gettext-tools/gnulib-lib/msvc-inval.c
+++ b/gettext-tools/gnulib-lib/msvc-inval.c
@@ -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 --git a/gettext-tools/gnulib-lib/msvc-inval.h b/gettext-tools/gnulib-lib/msvc-inval.h
index 8b07269..027c949 100644
--- a/gettext-tools/gnulib-lib/msvc-inval.h
+++ b/gettext-tools/gnulib-lib/msvc-inval.h
@@ -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 --git a/gettext-tools/gnulib-lib/msvc-nothrow.c b/gettext-tools/gnulib-lib/msvc-nothrow.c
index 90cf801..ba75bbf 100644
--- a/gettext-tools/gnulib-lib/msvc-nothrow.c
+++ b/gettext-tools/gnulib-lib/msvc-nothrow.c
@@ -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 --git a/gettext-tools/gnulib-lib/msvc-nothrow.h b/gettext-tools/gnulib-lib/msvc-nothrow.h
index 67b151e..3493b84 100644
--- a/gettext-tools/gnulib-lib/msvc-nothrow.h
+++ b/gettext-tools/gnulib-lib/msvc-nothrow.h
@@ -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 --git a/gettext-tools/gnulib-lib/obstack.c b/gettext-tools/gnulib-lib/obstack.c
index dd6e1f7..24b67a5 100644
--- a/gettext-tools/gnulib-lib/obstack.c
+++ b/gettext-tools/gnulib-lib/obstack.c
@@ -1,5 +1,5 @@
/* obstack.c - subroutines used implicitly by object stack macros
- Copyright (C) 1988-2015 Free Software Foundation, Inc.
+ Copyright (C) 1988-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/gettext-tools/gnulib-lib/obstack.h b/gettext-tools/gnulib-lib/obstack.h
index f7e791b..1c25fbc 100644
--- a/gettext-tools/gnulib-lib/obstack.h
+++ b/gettext-tools/gnulib-lib/obstack.h
@@ -1,5 +1,5 @@
/* obstack.h - object stack macros
- Copyright (C) 1988-2015 Free Software Foundation, Inc.
+ Copyright (C) 1988-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/gettext-tools/gnulib-lib/open.c b/gettext-tools/gnulib-lib/open.c
index 95c7811..e9c3120 100644
--- a/gettext-tools/gnulib-lib/open.c
+++ b/gettext-tools/gnulib-lib/open.c
@@ -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 --git a/gettext-tools/gnulib-lib/opendir.c b/gettext-tools/gnulib-lib/opendir.c
index 9f53110..a135fd8 100644
--- a/gettext-tools/gnulib-lib/opendir.c
+++ b/gettext-tools/gnulib-lib/opendir.c
@@ -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 <unistd.h>
#endif
+#ifdef __KLIBC__
+# include <io.h>
+# include <fcntl.h>
+#endif
+
DIR *
opendir (const char *dir_name)
{
@@ -51,6 +56,22 @@ opendir (const char *dir_name)
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 --git a/gettext-tools/gnulib-lib/ostream.c b/gettext-tools/gnulib-lib/ostream.c
index 0cce0d2..380ef20 100644
--- a/gettext-tools/gnulib-lib/ostream.c
+++ b/gettext-tools/gnulib-lib/ostream.c
@@ -2,7 +2,7 @@
#line 1 "ostream.oo.c"
/* Abstract output stream data type.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/ostream.h b/gettext-tools/gnulib-lib/ostream.h
index 7fc6979..488b1de 100644
--- a/gettext-tools/gnulib-lib/ostream.h
+++ b/gettext-tools/gnulib-lib/ostream.h
@@ -2,7 +2,7 @@
#line 1 "ostream.oo.h"
/* Abstract output stream data type.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/ostream.oo.c b/gettext-tools/gnulib-lib/ostream.oo.c
index 3c178fa..443b03c 100644
--- a/gettext-tools/gnulib-lib/ostream.oo.c
+++ b/gettext-tools/gnulib-lib/ostream.oo.c
@@ -1,5 +1,5 @@
/* Abstract output stream data type.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/ostream.oo.h b/gettext-tools/gnulib-lib/ostream.oo.h
index 87199df..d0882b9 100644
--- a/gettext-tools/gnulib-lib/ostream.oo.h
+++ b/gettext-tools/gnulib-lib/ostream.oo.h
@@ -1,5 +1,5 @@
/* Abstract output stream data type.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/pathmax.h b/gettext-tools/gnulib-lib/pathmax.h
index 2f3b64f..aee22f8 100644
--- a/gettext-tools/gnulib-lib/pathmax.h
+++ b/gettext-tools/gnulib-lib/pathmax.h
@@ -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 --git a/gettext-tools/gnulib-lib/pipe-filter-aux.c b/gettext-tools/gnulib-lib/pipe-filter-aux.c
index 4e9567f..7839d51 100644
--- a/gettext-tools/gnulib-lib/pipe-filter-aux.c
+++ b/gettext-tools/gnulib-lib/pipe-filter-aux.c
@@ -1,5 +1,5 @@
/* Auxiliary code for filtering of data through a subprocess.
- Copyright (C) 2012-2015 Free Software Foundation, Inc.
+ Copyright (C) 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 --git a/gettext-tools/gnulib-lib/pipe-filter-aux.h b/gettext-tools/gnulib-lib/pipe-filter-aux.h
index 132cc54..50ad62c 100644
--- a/gettext-tools/gnulib-lib/pipe-filter-aux.h
+++ b/gettext-tools/gnulib-lib/pipe-filter-aux.h
@@ -1,5 +1,5 @@
/* Auxiliary code for filtering of data through a subprocess.
- Copyright (C) 2001-2003, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2009.
This program is free software: you can redistribute it and/or modify
@@ -35,8 +35,9 @@ _GL_INLINE_HEADER_BEGIN
looping while waiting for the child. Not good. But hardly any platform
lacks select() nowadays.) */
-/* On BeOS select() works only on sockets, not on normal file descriptors. */
-#ifdef __BEOS__
+/* On BeOS and OS/2 kLIBC select() works only on sockets, not on normal file
+ descriptors. */
+#if defined __BEOS__ || defined __KLIBC__
# undef HAVE_SELECT
#endif
diff --git a/gettext-tools/gnulib-lib/pipe-filter-ii.c b/gettext-tools/gnulib-lib/pipe-filter-ii.c
index 88b0d0d..28feb46 100644
--- a/gettext-tools/gnulib-lib/pipe-filter-ii.c
+++ b/gettext-tools/gnulib-lib/pipe-filter-ii.c
@@ -1,5 +1,5 @@
/* Filtering of data through a subprocess.
- Copyright (C) 2001-2003, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2009.
This program is free software: you can redistribute it and/or modify
@@ -27,6 +27,127 @@
#include <unistd.h>
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
# include <windows.h>
+#elif defined __KLIBC__
+# define INCL_DOS
+# include <os2.h>
+
+/* Simple implementation of Win32 APIs */
+
+# define WINAPI
+
+typedef struct _HANDLE
+{
+ TID tid;
+ HEV hevDone;
+ unsigned int WINAPI (*start) (void *);
+ void *arg;
+} *HANDLE;
+
+typedef ULONG DWORD;
+
+static void
+start_wrapper (void *arg)
+{
+ HANDLE h = (HANDLE) arg;
+
+ h->start (h->arg);
+
+ DosPostEventSem (h->hevDone);
+ _endthread ();
+}
+
+static HANDLE
+_beginthreadex (void *s, unsigned n, unsigned int WINAPI (*start) (void *),
+ void *arg, unsigned fl, unsigned *th)
+{
+ HANDLE h;
+
+ h = malloc (sizeof (*h));
+ if (!h)
+ return NULL;
+
+ if (DosCreateEventSem (NULL, &h->hevDone, 0, FALSE))
+ goto exit_free;
+
+ h->start = start;
+ h->arg = arg;
+
+ h->tid = _beginthread (start_wrapper, NULL, n, (void *) h);
+ if (h->tid == -1)
+ goto exit_close_event_sem;
+
+ return h;
+
+ exit_close_event_sem:
+ DosCloseEventSem (h->hevDone);
+
+ exit_free:
+ free (h);
+
+ return NULL;
+}
+
+static BOOL
+CloseHandle (HANDLE h)
+{
+ DosCloseEventSem (h->hevDone);
+ free (h);
+}
+
+# define _endthreadex(x) return (x)
+# define TerminateThread(h, e) DosKillThread (h->tid)
+
+# define GetLastError() -1
+
+# ifndef ERROR_NO_DATA
+# define ERROR_NO_DATA 232
+# endif
+
+# define INFINITE SEM_INDEFINITE_WAIT
+# define WAIT_OBJECT_0 0
+
+static DWORD
+WaitForSingleObject (HANDLE h, DWORD ms)
+{
+ return DosWaitEventSem (h->hevDone, ms) == 0 ? WAIT_OBJECT_0 : (DWORD) -1;
+}
+
+static DWORD
+WaitForMultipleObjects (DWORD nCount, const HANDLE *pHandles, BOOL bWaitAll,
+ DWORD ms)
+{
+ HMUX hmux;
+ PSEMRECORD psr;
+ ULONG ulUser;
+ ULONG rc = (ULONG) -1;
+ DWORD i;
+
+ psr = malloc (sizeof (*psr) * nCount);
+ if (!psr)
+ goto exit_return;
+
+ for (i = 0; i < nCount; ++i)
+ {
+ psr[i].hsemCur = (HSEM) pHandles[i]->hevDone;
+ psr[i].ulUser = WAIT_OBJECT_0 + i;
+ }
+
+ if (DosCreateMuxWaitSem (NULL, &hmux, nCount, psr,
+ bWaitAll ? DCMW_WAIT_ALL : DCMW_WAIT_ANY))
+ goto exit_free;
+
+ rc = DosWaitMuxWaitSem (hmux, ms, &ulUser);
+ DosCloseMuxWaitSem (hmux);
+
+ exit_free:
+ free (psr);
+
+ exit_return:
+ if (rc)
+ return (DWORD) -1;
+
+ return ulUser;
+}
#else
# include <signal.h>
# include <sys/select.h>
@@ -41,7 +162,8 @@
#include "pipe-filter-aux.h"
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if (((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+ || defined __KLIBC__)
struct locals
{
@@ -143,7 +265,8 @@ pipe_filter_ii_execute (const char *progname,
{
pid_t child;
int fd[2];
-#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if !(((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+ || defined __KLIBC__)
struct sigaction orig_sigpipe_action;
#endif
@@ -154,7 +277,8 @@ pipe_filter_ii_execute (const char *progname,
if (child == -1)
return -1;
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if (((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+ || defined __KLIBC__)
/* Native Windows API. */
/* Pipes have a non-blocking mode, see function SetNamedPipeHandleState and
the article "Named Pipe Type, Read, and Wait Modes", but Microsoft's
@@ -462,7 +586,8 @@ pipe_filter_ii_execute (const char *progname,
{
int saved_errno = errno;
close (fd[1]);
-#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if !(((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+ || defined __KLIBC__)
if (sigaction (SIGPIPE, &orig_sigpipe_action, NULL) < 0)
abort ();
#endif
diff --git a/gettext-tools/gnulib-lib/pipe-filter.h b/gettext-tools/gnulib-lib/pipe-filter.h
index ab60635..3c0d16f 100644
--- a/gettext-tools/gnulib-lib/pipe-filter.h
+++ b/gettext-tools/gnulib-lib/pipe-filter.h
@@ -1,5 +1,5 @@
/* Filtering of data through a subprocess. -*- coding: utf-8 -*-
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2009,
and Paolo Bonzini <bonzini@gnu.org>, 2009.
diff --git a/gettext-tools/gnulib-lib/pipe-safer.c b/gettext-tools/gnulib-lib/pipe-safer.c
index 91b0fe7..fc6144e 100644
--- a/gettext-tools/gnulib-lib/pipe-safer.c
+++ b/gettext-tools/gnulib-lib/pipe-safer.c
@@ -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 --git a/gettext-tools/gnulib-lib/pipe2-safer.c b/gettext-tools/gnulib-lib/pipe2-safer.c
index 1993ba9..4b7084f 100644
--- a/gettext-tools/gnulib-lib/pipe2-safer.c
+++ b/gettext-tools/gnulib-lib/pipe2-safer.c
@@ -1,5 +1,5 @@
/* Invoke pipe2, 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 --git a/gettext-tools/gnulib-lib/pipe2.c b/gettext-tools/gnulib-lib/pipe2.c
index 89b982b..f8912f2 100644
--- a/gettext-tools/gnulib-lib/pipe2.c
+++ b/gettext-tools/gnulib-lib/pipe2.c
@@ -1,5 +1,5 @@
/* Create a pipe, with specific opening flags.
- 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 --git a/gettext-tools/gnulib-lib/printf-args.c b/gettext-tools/gnulib-lib/printf-args.c
index da17efb..cfaed99 100644
--- a/gettext-tools/gnulib-lib/printf-args.c
+++ b/gettext-tools/gnulib-lib/printf-args.c
@@ -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 --git a/gettext-tools/gnulib-lib/printf-args.h b/gettext-tools/gnulib-lib/printf-args.h
index 387976c..256c413 100644
--- a/gettext-tools/gnulib-lib/printf-args.h
+++ b/gettext-tools/gnulib-lib/printf-args.h
@@ -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 --git a/gettext-tools/gnulib-lib/printf-parse.c b/gettext-tools/gnulib-lib/printf-parse.c
index 40d0a22..fad5d3d 100644
--- a/gettext-tools/gnulib-lib/printf-parse.c
+++ b/gettext-tools/gnulib-lib/printf-parse.c
@@ -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 --git a/gettext-tools/gnulib-lib/printf-parse.h b/gettext-tools/gnulib-lib/printf-parse.h
index fda6704..a46d946 100644
--- a/gettext-tools/gnulib-lib/printf-parse.h
+++ b/gettext-tools/gnulib-lib/printf-parse.h
@@ -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 --git a/gettext-tools/gnulib-lib/progname.c b/gettext-tools/gnulib-lib/progname.c
index fe93bca..debb760 100644
--- a/gettext-tools/gnulib-lib/progname.c
+++ b/gettext-tools/gnulib-lib/progname.c
@@ -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 <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/progname.h b/gettext-tools/gnulib-lib/progname.h
index 15ca3a2..526828f 100644
--- a/gettext-tools/gnulib-lib/progname.h
+++ b/gettext-tools/gnulib-lib/progname.h
@@ -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 <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/progreloc.c b/gettext-tools/gnulib-lib/progreloc.c
index 1d2b4b3..6f06897 100644
--- a/gettext-tools/gnulib-lib/progreloc.c
+++ b/gettext-tools/gnulib-lib/progreloc.c
@@ -1,5 +1,5 @@
/* Provide relocatable programs.
- Copyright (C) 2003-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/propername.c b/gettext-tools/gnulib-lib/propername.c
index 293e7e3..90ad284 100644
--- a/gettext-tools/gnulib-lib/propername.c
+++ b/gettext-tools/gnulib-lib/propername.c
@@ -1,5 +1,5 @@
/* Localization of proper names.
- Copyright (C) 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/propername.h b/gettext-tools/gnulib-lib/propername.h
index 68e617e..83fac08 100644
--- a/gettext-tools/gnulib-lib/propername.h
+++ b/gettext-tools/gnulib-lib/propername.h
@@ -1,5 +1,5 @@
/* Localization of proper names. -*- coding: utf-8 -*-
- Copyright (C) 2006, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/qcopy-acl.c b/gettext-tools/gnulib-lib/qcopy-acl.c
index 9db9033..c7bdfbb 100644
--- a/gettext-tools/gnulib-lib/qcopy-acl.c
+++ b/gettext-tools/gnulib-lib/qcopy-acl.c
@@ -1,6 +1,6 @@
/* Copy access control list from one file to another. -*- coding: utf-8 -*-
- Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 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 --git a/gettext-tools/gnulib-lib/qset-acl.c b/gettext-tools/gnulib-lib/qset-acl.c
index 1ebec22..77227dc 100644
--- a/gettext-tools/gnulib-lib/qset-acl.c
+++ b/gettext-tools/gnulib-lib/qset-acl.c
@@ -1,6 +1,6 @@
/* qset-acl.c - set access control list equivalent to a mode
- Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 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 --git a/gettext-tools/gnulib-lib/quote.h b/gettext-tools/gnulib-lib/quote.h
index 28c05fd..b53d0ea 100644
--- a/gettext-tools/gnulib-lib/quote.h
+++ b/gettext-tools/gnulib-lib/quote.h
@@ -1,6 +1,6 @@
/* quote.h - prototypes for quote.c
- Copyright (C) 1998-2001, 2003, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1998-2001, 2003, 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 --git a/gettext-tools/gnulib-lib/quotearg.c b/gettext-tools/gnulib-lib/quotearg.c
index a0a0e25..73a5084 100644
--- a/gettext-tools/gnulib-lib/quotearg.c
+++ b/gettext-tools/gnulib-lib/quotearg.c
@@ -1,6 +1,6 @@
/* quotearg.c - quote arguments for output
- Copyright (C) 1998-2002, 2004-2015 Free Software Foundation, Inc.
+ Copyright (C) 1998-2002, 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 --git a/gettext-tools/gnulib-lib/quotearg.h b/gettext-tools/gnulib-lib/quotearg.h
index b9eb31d..bc29052 100644
--- a/gettext-tools/gnulib-lib/quotearg.h
+++ b/gettext-tools/gnulib-lib/quotearg.h
@@ -1,6 +1,6 @@
/* quotearg.h - quote arguments for output
- Copyright (C) 1998-2002, 2004, 2006, 2008-2015 Free Software Foundation,
+ Copyright (C) 1998-2002, 2004, 2006, 2008-2016 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/raise.c b/gettext-tools/gnulib-lib/raise.c
index d6ba2a1..bf24c3e 100644
--- a/gettext-tools/gnulib-lib/raise.c
+++ b/gettext-tools/gnulib-lib/raise.c
@@ -1,6 +1,6 @@
/* Provide a non-threads replacement for the POSIX raise function.
- Copyright (C) 2002-2003, 2005-2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-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 --git a/gettext-tools/gnulib-lib/rawmemchr.c b/gettext-tools/gnulib-lib/rawmemchr.c
index a6380ba..dbe01bd 100644
--- a/gettext-tools/gnulib-lib/rawmemchr.c
+++ b/gettext-tools/gnulib-lib/rawmemchr.c
@@ -1,5 +1,5 @@
/* Searching in a string.
- 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 --git a/gettext-tools/gnulib-lib/read.c b/gettext-tools/gnulib-lib/read.c
index 3d8eefa..23b2411 100644
--- a/gettext-tools/gnulib-lib/read.c
+++ b/gettext-tools/gnulib-lib/read.c
@@ -1,5 +1,5 @@
/* POSIX compatible read() function.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2011.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/readdir.c b/gettext-tools/gnulib-lib/readdir.c
index 8646aac..76b7e9d 100644
--- a/gettext-tools/gnulib-lib/readdir.c
+++ b/gettext-tools/gnulib-lib/readdir.c
@@ -1,5 +1,5 @@
/* Read the next entry of a directory.
- 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 --git a/gettext-tools/gnulib-lib/readlink.c b/gettext-tools/gnulib-lib/readlink.c
index 965c3e2..e6c3925 100644
--- a/gettext-tools/gnulib-lib/readlink.c
+++ b/gettext-tools/gnulib-lib/readlink.c
@@ -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 --git a/gettext-tools/gnulib-lib/realloc.c b/gettext-tools/gnulib-lib/realloc.c
index 068b081..83cb44e 100644
--- a/gettext-tools/gnulib-lib/realloc.c
+++ b/gettext-tools/gnulib-lib/realloc.c
@@ -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 --git a/gettext-tools/gnulib-lib/ref-add.sin b/gettext-tools/gnulib-lib/ref-add.sin
index 6cbe5b5..42d3ab0 100644
--- a/gettext-tools/gnulib-lib/ref-add.sin
+++ b/gettext-tools/gnulib-lib/ref-add.sin
@@ -1,6 +1,6 @@
# Add this package to a list of references stored in a text file.
#
-# Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+# Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/ref-del.sin b/gettext-tools/gnulib-lib/ref-del.sin
index f50cf0a..c77b33b 100644
--- a/gettext-tools/gnulib-lib/ref-del.sin
+++ b/gettext-tools/gnulib-lib/ref-del.sin
@@ -1,6 +1,6 @@
# Remove this package from a list of references stored in a text file.
#
-# Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+# Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/relocatable.c b/gettext-tools/gnulib-lib/relocatable.c
index bed882d..7a59595 100644
--- a/gettext-tools/gnulib-lib/relocatable.c
+++ b/gettext-tools/gnulib-lib/relocatable.c
@@ -1,5 +1,5 @@
/* Provide relocatable packages.
- Copyright (C) 2003-2006, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003-2006, 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/relocatable.h b/gettext-tools/gnulib-lib/relocatable.h
index c8911b2..4081f22 100644
--- a/gettext-tools/gnulib-lib/relocatable.h
+++ b/gettext-tools/gnulib-lib/relocatable.h
@@ -1,5 +1,5 @@
/* Provide relocatable packages.
- Copyright (C) 2003, 2005, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005, 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/relocwrapper.c b/gettext-tools/gnulib-lib/relocwrapper.c
index f85cf9a..5eefa2b 100644
--- a/gettext-tools/gnulib-lib/relocwrapper.c
+++ b/gettext-tools/gnulib-lib/relocwrapper.c
@@ -1,5 +1,5 @@
/* Relocating wrapper program.
- Copyright (C) 2003, 2005-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/rmdir.c b/gettext-tools/gnulib-lib/rmdir.c
index ae21d54..4949df2 100644
--- a/gettext-tools/gnulib-lib/rmdir.c
+++ b/gettext-tools/gnulib-lib/rmdir.c
@@ -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 --git a/gettext-tools/gnulib-lib/safe-read.c b/gettext-tools/gnulib-lib/safe-read.c
index dbb6338..3dde5b5 100644
--- a/gettext-tools/gnulib-lib/safe-read.c
+++ b/gettext-tools/gnulib-lib/safe-read.c
@@ -1,6 +1,6 @@
/* An interface to read and write that retries after interrupts.
- Copyright (C) 1993-1994, 1998, 2002-2006, 2009-2015 Free Software
+ Copyright (C) 1993-1994, 1998, 2002-2006, 2009-2016 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/safe-read.h b/gettext-tools/gnulib-lib/safe-read.h
index b5d408a..b99586a 100644
--- a/gettext-tools/gnulib-lib/safe-read.h
+++ b/gettext-tools/gnulib-lib/safe-read.h
@@ -1,5 +1,5 @@
/* An interface to read() that retries after interrupts.
- Copyright (C) 2002, 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 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 --git a/gettext-tools/gnulib-lib/safe-write.c b/gettext-tools/gnulib-lib/safe-write.c
index 4c178f5..acd7aee 100644
--- a/gettext-tools/gnulib-lib/safe-write.c
+++ b/gettext-tools/gnulib-lib/safe-write.c
@@ -1,5 +1,5 @@
/* An interface to write that retries after interrupts.
- 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 --git a/gettext-tools/gnulib-lib/safe-write.h b/gettext-tools/gnulib-lib/safe-write.h
index 86a32b2..65fa425 100644
--- a/gettext-tools/gnulib-lib/safe-write.h
+++ b/gettext-tools/gnulib-lib/safe-write.h
@@ -1,5 +1,5 @@
/* An interface to write() that retries after interrupts.
- 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 --git a/gettext-tools/gnulib-lib/sched.in.h b/gettext-tools/gnulib-lib/sched.in.h
index 92d6a4f..1c0fe59 100644
--- a/gettext-tools/gnulib-lib/sched.in.h
+++ b/gettext-tools/gnulib-lib/sched.in.h
@@ -1,5 +1,5 @@
/* Replacement <sched.h> for platforms that lack it.
- 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 --git a/gettext-tools/gnulib-lib/secure_getenv.c b/gettext-tools/gnulib-lib/secure_getenv.c
index 31aad1f..f359ab2 100644
--- a/gettext-tools/gnulib-lib/secure_getenv.c
+++ b/gettext-tools/gnulib-lib/secure_getenv.c
@@ -1,6 +1,6 @@
/* Look up an environment variable more securely.
- Copyright 2013-2015 Free Software Foundation, Inc.
+ Copyright 2013-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 --git a/gettext-tools/gnulib-lib/set-acl.c b/gettext-tools/gnulib-lib/set-acl.c
index da31750..fbb5c16 100644
--- a/gettext-tools/gnulib-lib/set-acl.c
+++ b/gettext-tools/gnulib-lib/set-acl.c
@@ -1,6 +1,6 @@
/* set-acl.c - set access control list equivalent to a mode
- Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 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 --git a/gettext-tools/gnulib-lib/set-permissions.c b/gettext-tools/gnulib-lib/set-permissions.c
index 8e6ecf3..2c77356 100644
--- a/gettext-tools/gnulib-lib/set-permissions.c
+++ b/gettext-tools/gnulib-lib/set-permissions.c
@@ -1,6 +1,6 @@
/* Set permissions of a file. -*- coding: utf-8 -*-
- Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 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
@@ -269,6 +269,7 @@ set_acls_from_mode (const char *name, int desc, mode_t mode, bool *must_chmod)
}
return -1;
}
+ return 0;
}
}
diff --git a/gettext-tools/gnulib-lib/setenv.c b/gettext-tools/gnulib-lib/setenv.c
index 6b16fd5..85c32cb 100644
--- a/gettext-tools/gnulib-lib/setenv.c
+++ b/gettext-tools/gnulib-lib/setenv.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1995-2003, 2005-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1995-2003, 2005-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 --git a/gettext-tools/gnulib-lib/setlocale.c b/gettext-tools/gnulib-lib/setlocale.c
index ed68ce2..7d366ed 100644
--- a/gettext-tools/gnulib-lib/setlocale.c
+++ b/gettext-tools/gnulib-lib/setlocale.c
@@ -1,5 +1,5 @@
/* Set the current locale. -*- coding: utf-8 -*-
- Copyright (C) 2009, 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009, 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
@@ -381,6 +381,7 @@ static const struct table_entry language_table[] =
{ "sq", "Albanian" },
{ "sr", "Serbian (Latin)" },
{ "sr@cyrillic", "SRB" }, /* Serbian (Cyrillic) */
+ { "sv", "Swedish" },
{ "sw", "Swahili" },
{ "syr", "Syriac" },
{ "ta", "Tamil" },
diff --git a/gettext-tools/gnulib-lib/sh-quote.c b/gettext-tools/gnulib-lib/sh-quote.c
index d684cef..43ce86a 100644
--- a/gettext-tools/gnulib-lib/sh-quote.c
+++ b/gettext-tools/gnulib-lib/sh-quote.c
@@ -1,5 +1,5 @@
/* Shell quoting.
- 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 <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/sh-quote.h b/gettext-tools/gnulib-lib/sh-quote.h
index 48ade84..1708d95 100644
--- a/gettext-tools/gnulib-lib/sh-quote.h
+++ b/gettext-tools/gnulib-lib/sh-quote.h
@@ -1,5 +1,5 @@
/* Shell quoting.
- Copyright (C) 2001-2002, 2004, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2004, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/sig-handler.h b/gettext-tools/gnulib-lib/sig-handler.h
index c814ed6..ad8c1dd 100644
--- a/gettext-tools/gnulib-lib/sig-handler.h
+++ b/gettext-tools/gnulib-lib/sig-handler.h
@@ -1,6 +1,6 @@
/* Convenience declarations when working with <signal.h>.
- 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 --git a/gettext-tools/gnulib-lib/sigaction.c b/gettext-tools/gnulib-lib/sigaction.c
index 9b2a089..529b612 100644
--- a/gettext-tools/gnulib-lib/sigaction.c
+++ b/gettext-tools/gnulib-lib/sigaction.c
@@ -1,5 +1,5 @@
/* POSIX compatible signal blocking.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
Written by Eric Blake <ebb9@byu.net>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/signal.in.h b/gettext-tools/gnulib-lib/signal.in.h
index 265b72a..ab0a049 100644
--- a/gettext-tools/gnulib-lib/signal.in.h
+++ b/gettext-tools/gnulib-lib/signal.in.h
@@ -1,6 +1,6 @@
/* A GNU-like <signal.h>.
- 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 --git a/gettext-tools/gnulib-lib/signbitd.c b/gettext-tools/gnulib-lib/signbitd.c
index 289b477..2de7ee6 100644
--- a/gettext-tools/gnulib-lib/signbitd.c
+++ b/gettext-tools/gnulib-lib/signbitd.c
@@ -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 --git a/gettext-tools/gnulib-lib/signbitf.c b/gettext-tools/gnulib-lib/signbitf.c
index d771fcc..e185971 100644
--- a/gettext-tools/gnulib-lib/signbitf.c
+++ b/gettext-tools/gnulib-lib/signbitf.c
@@ -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 --git a/gettext-tools/gnulib-lib/signbitl.c b/gettext-tools/gnulib-lib/signbitl.c
index 404304e..7dc0908 100644
--- a/gettext-tools/gnulib-lib/signbitl.c
+++ b/gettext-tools/gnulib-lib/signbitl.c
@@ -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 --git a/gettext-tools/gnulib-lib/sigprocmask.c b/gettext-tools/gnulib-lib/sigprocmask.c
index e29b012..fcbf032 100644
--- a/gettext-tools/gnulib-lib/sigprocmask.c
+++ b/gettext-tools/gnulib-lib/sigprocmask.c
@@ -1,5 +1,5 @@
/* POSIX compatible signal blocking.
- Copyright (C) 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/size_max.h b/gettext-tools/gnulib-lib/size_max.h
index 5a0568e..2f2792c 100644
--- a/gettext-tools/gnulib-lib/size_max.h
+++ b/gettext-tools/gnulib-lib/size_max.h
@@ -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 --git a/gettext-tools/gnulib-lib/snprintf.c b/gettext-tools/gnulib-lib/snprintf.c
index 11500ca..7cd89af 100644
--- a/gettext-tools/gnulib-lib/snprintf.c
+++ b/gettext-tools/gnulib-lib/snprintf.c
@@ -1,5 +1,5 @@
/* Formatted output to strings.
- Copyright (C) 2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006-2016 Free Software Foundation, Inc.
Written by Simon Josefsson and Paul Eggert.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/spawn-pipe.c b/gettext-tools/gnulib-lib/spawn-pipe.c
index a87844e..006fa8b 100644
--- a/gettext-tools/gnulib-lib/spawn-pipe.c
+++ b/gettext-tools/gnulib-lib/spawn-pipe.c
@@ -1,5 +1,5 @@
/* Creation of subprocesses, communicating via pipes.
- Copyright (C) 2001-2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2004, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
@@ -35,7 +35,8 @@
#define _(str) gettext (str)
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if (((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+ || defined __KLIBC__)
/* Native Windows API. */
# include <process.h>
@@ -116,7 +117,8 @@ create_pipe (const char *progname,
bool slave_process, bool exit_on_error,
int fd[2])
{
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if (((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+ || defined __KLIBC__)
/* Native Windows API.
This uses _pipe(), dup2(), and spawnv(). It could also be implemented
diff --git a/gettext-tools/gnulib-lib/spawn-pipe.h b/gettext-tools/gnulib-lib/spawn-pipe.h
index 569c768..96e7beb 100644
--- a/gettext-tools/gnulib-lib/spawn-pipe.h
+++ b/gettext-tools/gnulib-lib/spawn-pipe.h
@@ -1,5 +1,5 @@
/* Creation of subprocesses, communicating via pipes.
- Copyright (C) 2001-2003, 2006, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006, 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/spawn.in.h b/gettext-tools/gnulib-lib/spawn.in.h
index aa8222a..2f55098 100644
--- a/gettext-tools/gnulib-lib/spawn.in.h
+++ b/gettext-tools/gnulib-lib/spawn.in.h
@@ -1,5 +1,5 @@
/* Definitions for POSIX spawn interface.
- Copyright (C) 2000, 2003-2004, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2003-2004, 2008-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 --git a/gettext-tools/gnulib-lib/spawn_faction_addclose.c b/gettext-tools/gnulib-lib/spawn_faction_addclose.c
index ee833d6..05449f3 100644
--- a/gettext-tools/gnulib-lib/spawn_faction_addclose.c
+++ b/gettext-tools/gnulib-lib/spawn_faction_addclose.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/spawn_faction_adddup2.c b/gettext-tools/gnulib-lib/spawn_faction_adddup2.c
index 3687448..a2b325e 100644
--- a/gettext-tools/gnulib-lib/spawn_faction_adddup2.c
+++ b/gettext-tools/gnulib-lib/spawn_faction_adddup2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/spawn_faction_addopen.c b/gettext-tools/gnulib-lib/spawn_faction_addopen.c
index 4ecfd83..a29dd71 100644
--- a/gettext-tools/gnulib-lib/spawn_faction_addopen.c
+++ b/gettext-tools/gnulib-lib/spawn_faction_addopen.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/spawn_faction_destroy.c b/gettext-tools/gnulib-lib/spawn_faction_destroy.c
index c639478..642beb3 100644
--- a/gettext-tools/gnulib-lib/spawn_faction_destroy.c
+++ b/gettext-tools/gnulib-lib/spawn_faction_destroy.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/spawn_faction_init.c b/gettext-tools/gnulib-lib/spawn_faction_init.c
index c276913..a60dd8c 100644
--- a/gettext-tools/gnulib-lib/spawn_faction_init.c
+++ b/gettext-tools/gnulib-lib/spawn_faction_init.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/spawn_int.h b/gettext-tools/gnulib-lib/spawn_int.h
index 002d139..bf73566 100644
--- a/gettext-tools/gnulib-lib/spawn_int.h
+++ b/gettext-tools/gnulib-lib/spawn_int.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2008-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2008-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 --git a/gettext-tools/gnulib-lib/spawnattr_destroy.c b/gettext-tools/gnulib-lib/spawnattr_destroy.c
index 50c8549..f7e84a0 100644
--- a/gettext-tools/gnulib-lib/spawnattr_destroy.c
+++ b/gettext-tools/gnulib-lib/spawnattr_destroy.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/spawnattr_init.c b/gettext-tools/gnulib-lib/spawnattr_init.c
index 3e5dcdb..668a26a 100644
--- a/gettext-tools/gnulib-lib/spawnattr_init.c
+++ b/gettext-tools/gnulib-lib/spawnattr_init.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/spawnattr_setflags.c b/gettext-tools/gnulib-lib/spawnattr_setflags.c
index 0366575..97e4166 100644
--- a/gettext-tools/gnulib-lib/spawnattr_setflags.c
+++ b/gettext-tools/gnulib-lib/spawnattr_setflags.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2004, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2004, 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 --git a/gettext-tools/gnulib-lib/spawnattr_setsigmask.c b/gettext-tools/gnulib-lib/spawnattr_setsigmask.c
index 7831603..d9c6bd7 100644
--- a/gettext-tools/gnulib-lib/spawnattr_setsigmask.c
+++ b/gettext-tools/gnulib-lib/spawnattr_setsigmask.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/spawni.c b/gettext-tools/gnulib-lib/spawni.c
index 9b1b0b9..3451aa5 100644
--- a/gettext-tools/gnulib-lib/spawni.c
+++ b/gettext-tools/gnulib-lib/spawni.c
@@ -1,5 +1,5 @@
/* Guts of POSIX spawn interface. Generic POSIX.1 version.
- Copyright (C) 2000-2006, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000-2006, 2008-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 --git a/gettext-tools/gnulib-lib/spawnp.c b/gettext-tools/gnulib-lib/spawnp.c
index 6d27e49..68cabf2 100644
--- a/gettext-tools/gnulib-lib/spawnp.c
+++ b/gettext-tools/gnulib-lib/spawnp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 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 --git a/gettext-tools/gnulib-lib/stat.c b/gettext-tools/gnulib-lib/stat.c
index 2209826..62e9e0b 100644
--- a/gettext-tools/gnulib-lib/stat.c
+++ b/gettext-tools/gnulib-lib/stat.c
@@ -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 --git a/gettext-tools/gnulib-lib/stdarg.in.h b/gettext-tools/gnulib-lib/stdarg.in.h
index 5239f51..63371e2 100644
--- a/gettext-tools/gnulib-lib/stdarg.in.h
+++ b/gettext-tools/gnulib-lib/stdarg.in.h
@@ -1,5 +1,5 @@
/* Substitute for and wrapper around <stdarg.h>.
- 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 --git a/gettext-tools/gnulib-lib/stdbool.in.h b/gettext-tools/gnulib-lib/stdbool.in.h
index 64a1761..7ecf203 100644
--- a/gettext-tools/gnulib-lib/stdbool.in.h
+++ b/gettext-tools/gnulib-lib/stdbool.in.h
@@ -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 <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/stddef.in.h b/gettext-tools/gnulib-lib/stddef.in.h
index 698307b..f4c4a10 100644
--- a/gettext-tools/gnulib-lib/stddef.in.h
+++ b/gettext-tools/gnulib-lib/stddef.in.h
@@ -1,6 +1,6 @@
/* A substitute for POSIX 2008 <stddef.h>, 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
@@ -81,8 +81,10 @@
# define wchar_t int
#endif
-/* Some platforms lack max_align_t. */
-#if !@HAVE_MAX_ALIGN_T@
+/* Some platforms lack max_align_t. The check for _GCC_MAX_ALIGN_T is
+ a hack in case the configure-time test was done with g++ even though
+ we are currently compiling with gcc. */
+#if ! (@HAVE_MAX_ALIGN_T@ || defined _GCC_MAX_ALIGN_T)
/* On the x86, the maximum storage alignment of double, long, etc. is 4,
but GCC's C11 ABI for x86 says that max_align_t has an alignment of 8,
and the C11 standard allows this. Work around this problem by
diff --git a/gettext-tools/gnulib-lib/stdint.in.h b/gettext-tools/gnulib-lib/stdint.in.h
index 378de2e..cf65ec6 100644
--- a/gettext-tools/gnulib-lib/stdint.in.h
+++ b/gettext-tools/gnulib-lib/stdint.in.h
@@ -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.
@@ -118,15 +118,10 @@
picky compilers. */
#define _STDINT_MIN(signed, bits, zero) \
- ((signed) ? (- ((zero) + 1) << ((bits) ? (bits) - 1 : 0)) : (zero))
+ ((signed) ? ~ _STDINT_MAX (signed, bits, zero) : (zero))
#define _STDINT_MAX(signed, bits, zero) \
- ((signed) \
- ? ~ _STDINT_MIN (signed, bits, zero) \
- : /* The expression for the unsigned case. The subtraction of (signed) \
- is a nop in the unsigned case and avoids "signed integer overflow" \
- warnings in the signed case. */ \
- ((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1)
+ (((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1)
#if !GNULIB_defined_stdint_types
@@ -288,12 +283,17 @@ typedef gl_uint_fast32_t gl_uint_fast16_t;
/* 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 --git a/gettext-tools/gnulib-lib/stdio-write.c b/gettext-tools/gnulib-lib/stdio-write.c
index b913101..072e55b 100644
--- a/gettext-tools/gnulib-lib/stdio-write.c
+++ b/gettext-tools/gnulib-lib/stdio-write.c
@@ -1,5 +1,5 @@
/* POSIX compatible FILE stream write function.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/stdio.in.h b/gettext-tools/gnulib-lib/stdio.in.h
index ec43874..9b31365 100644
--- a/gettext-tools/gnulib-lib/stdio.in.h
+++ b/gettext-tools/gnulib-lib/stdio.in.h
@@ -1,6 +1,6 @@
/* A GNU-like <stdio.h>.
- 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 --git a/gettext-tools/gnulib-lib/stdlib.in.h b/gettext-tools/gnulib-lib/stdlib.in.h
index 428a119..70dc88d 100644
--- a/gettext-tools/gnulib-lib/stdlib.in.h
+++ b/gettext-tools/gnulib-lib/stdlib.in.h
@@ -1,6 +1,6 @@
/* A GNU-like <stdlib.h>.
- 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 --git a/gettext-tools/gnulib-lib/stpcpy.c b/gettext-tools/gnulib-lib/stpcpy.c
index 559d2f2..ec3996e 100644
--- a/gettext-tools/gnulib-lib/stpcpy.c
+++ b/gettext-tools/gnulib-lib/stpcpy.c
@@ -1,5 +1,5 @@
/* stpcpy.c -- copy a string and return pointer to end of new string
- Copyright (C) 1992, 1995, 1997-1998, 2006, 2009-2015 Free Software
+ Copyright (C) 1992, 1995, 1997-1998, 2006, 2009-2016 Free Software
Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
diff --git a/gettext-tools/gnulib-lib/stpncpy.c b/gettext-tools/gnulib-lib/stpncpy.c
index e72ea47..89d6321 100644
--- a/gettext-tools/gnulib-lib/stpncpy.c
+++ b/gettext-tools/gnulib-lib/stpncpy.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995-1997, 2002-2003, 2005-2007, 2009-2015 Free Software
+/* Copyright (C) 1993, 1995-1997, 2002-2003, 2005-2007, 2009-2016 Free Software
* Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
diff --git a/gettext-tools/gnulib-lib/str-kmp.h b/gettext-tools/gnulib-lib/str-kmp.h
index 66fcead..fcb2813 100644
--- a/gettext-tools/gnulib-lib/str-kmp.h
+++ b/gettext-tools/gnulib-lib/str-kmp.h
@@ -1,6 +1,6 @@
/* Substring search in a NUL terminated string of UNIT elements,
using the Knuth-Morris-Pratt algorithm.
- Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2005.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/str-two-way.h b/gettext-tools/gnulib-lib/str-two-way.h
index 6e10c8e..0fe3161 100644
--- a/gettext-tools/gnulib-lib/str-two-way.h
+++ b/gettext-tools/gnulib-lib/str-two-way.h
@@ -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 <ebb9@byu.net>, 2008.
diff --git a/gettext-tools/gnulib-lib/strchrnul.c b/gettext-tools/gnulib-lib/strchrnul.c
index 1000e83..1482a77 100644
--- a/gettext-tools/gnulib-lib/strchrnul.c
+++ b/gettext-tools/gnulib-lib/strchrnul.c
@@ -1,5 +1,5 @@
/* Searching in a string.
- Copyright (C) 2003, 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 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 --git a/gettext-tools/gnulib-lib/strcspn.c b/gettext-tools/gnulib-lib/strcspn.c
index 73bc5d0..0cd2dc7 100644
--- a/gettext-tools/gnulib-lib/strcspn.c
+++ b/gettext-tools/gnulib-lib/strcspn.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1994, 1996-1997, 2002-2003, 2005-2006, 2009-2015 Free
+/* Copyright (C) 1991, 1994, 1996-1997, 2002-2003, 2005-2006, 2009-2016 Free
* Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
diff --git a/gettext-tools/gnulib-lib/streq.h b/gettext-tools/gnulib-lib/streq.h
index 6107fc6..234f075 100644
--- a/gettext-tools/gnulib-lib/streq.h
+++ b/gettext-tools/gnulib-lib/streq.h
@@ -1,5 +1,5 @@
/* Optimized string comparison.
- Copyright (C) 2001-2002, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 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
diff --git a/gettext-tools/gnulib-lib/strerror-override.c b/gettext-tools/gnulib-lib/strerror-override.c
index 2bb4d74..9bc9b18 100644
--- a/gettext-tools/gnulib-lib/strerror-override.c
+++ b/gettext-tools/gnulib-lib/strerror-override.c
@@ -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 --git a/gettext-tools/gnulib-lib/strerror-override.h b/gettext-tools/gnulib-lib/strerror-override.h
index 7af36df..5264fd5 100644
--- a/gettext-tools/gnulib-lib/strerror-override.h
+++ b/gettext-tools/gnulib-lib/strerror-override.h
@@ -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 --git a/gettext-tools/gnulib-lib/strerror.c b/gettext-tools/gnulib-lib/strerror.c
index adba738..45c7633 100644
--- a/gettext-tools/gnulib-lib/strerror.c
+++ b/gettext-tools/gnulib-lib/strerror.c
@@ -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 --git a/gettext-tools/gnulib-lib/striconv.c b/gettext-tools/gnulib-lib/striconv.c
index 6f7dad8..0d9ccdc 100644
--- a/gettext-tools/gnulib-lib/striconv.c
+++ b/gettext-tools/gnulib-lib/striconv.c
@@ -1,5 +1,5 @@
/* Charset conversion.
- Copyright (C) 2001-2007, 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2007, 2010-2016 Free Software Foundation, Inc.
Written by Bruno Haible and Simon Josefsson.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/striconv.h b/gettext-tools/gnulib-lib/striconv.h
index 33cc212..e5217d7 100644
--- a/gettext-tools/gnulib-lib/striconv.h
+++ b/gettext-tools/gnulib-lib/striconv.h
@@ -1,5 +1,5 @@
/* Charset conversion.
- Copyright (C) 2001-2004, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2004, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible and Simon Josefsson.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/striconveh.c b/gettext-tools/gnulib-lib/striconveh.c
index 2a9a8f7..bc5608f 100644
--- a/gettext-tools/gnulib-lib/striconveh.c
+++ b/gettext-tools/gnulib-lib/striconveh.c
@@ -1,5 +1,5 @@
/* Character set conversion with error handling.
- Copyright (C) 2001-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2016 Free Software Foundation, Inc.
Written by Bruno Haible and Simon Josefsson.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/striconveh.h b/gettext-tools/gnulib-lib/striconveh.h
index 1e13af6..9e05d2f 100644
--- a/gettext-tools/gnulib-lib/striconveh.h
+++ b/gettext-tools/gnulib-lib/striconveh.h
@@ -1,5 +1,5 @@
/* Character set conversion with error handling.
- Copyright (C) 2001-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible and Simon Josefsson.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/striconveha.c b/gettext-tools/gnulib-lib/striconveha.c
index 4fadc17..d97de1b 100644
--- a/gettext-tools/gnulib-lib/striconveha.c
+++ b/gettext-tools/gnulib-lib/striconveha.c
@@ -1,5 +1,5 @@
/* Character set conversion with error handling and autodetection.
- Copyright (C) 2002, 2005, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2005, 2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/striconveha.h b/gettext-tools/gnulib-lib/striconveha.h
index a5b8824..73d1c9a 100644
--- a/gettext-tools/gnulib-lib/striconveha.h
+++ b/gettext-tools/gnulib-lib/striconveha.h
@@ -1,5 +1,5 @@
/* Character set conversion with error handling and autodetection.
- Copyright (C) 2002, 2005, 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2005, 2007-2016 Free Software Foundation, Inc.
Written by Bruno Haible.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/string.in.h b/gettext-tools/gnulib-lib/string.in.h
index 2abd6bc..7fb00c1 100644
--- a/gettext-tools/gnulib-lib/string.in.h
+++ b/gettext-tools/gnulib-lib/string.in.h
@@ -1,6 +1,6 @@
/* A GNU-like <string.h>.
- 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 --git a/gettext-tools/gnulib-lib/strnlen.c b/gettext-tools/gnulib-lib/strnlen.c
index 79e250c..1bd7936 100644
--- a/gettext-tools/gnulib-lib/strnlen.c
+++ b/gettext-tools/gnulib-lib/strnlen.c
@@ -1,5 +1,5 @@
/* Find the length of STRING, but scan at most MAXLEN characters.
- Copyright (C) 2005-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2007, 2009-2016 Free Software Foundation, Inc.
Written by Simon Josefsson.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/strnlen1.c b/gettext-tools/gnulib-lib/strnlen1.c
index 48272a8..f5e0ffc 100644
--- a/gettext-tools/gnulib-lib/strnlen1.c
+++ b/gettext-tools/gnulib-lib/strnlen1.c
@@ -1,5 +1,5 @@
/* Find the length of STRING + 1, but scan at most MAXLEN bytes.
- 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 --git a/gettext-tools/gnulib-lib/strnlen1.h b/gettext-tools/gnulib-lib/strnlen1.h
index 794e436..d3cd7c1 100644
--- a/gettext-tools/gnulib-lib/strnlen1.h
+++ b/gettext-tools/gnulib-lib/strnlen1.h
@@ -1,5 +1,5 @@
/* Find the length of STRING + 1, but scan at most MAXLEN bytes.
- 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 --git a/gettext-tools/gnulib-lib/strpbrk.c b/gettext-tools/gnulib-lib/strpbrk.c
index 0e360f9..0562544 100644
--- a/gettext-tools/gnulib-lib/strpbrk.c
+++ b/gettext-tools/gnulib-lib/strpbrk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006, 2009-2015 Free Software
+/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006, 2009-2016 Free Software
Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
diff --git a/gettext-tools/gnulib-lib/strstr.c b/gettext-tools/gnulib-lib/strstr.c
index fbc11a2..60cd3e3 100644
--- a/gettext-tools/gnulib-lib/strstr.c
+++ b/gettext-tools/gnulib-lib/strstr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1994, 1996-1998, 2000, 2004, 2007-2015 Free Software
+/* Copyright (C) 1991-1994, 1996-1998, 2000, 2004, 2007-2016 Free Software
Foundation, Inc.
This file is part of the GNU C Library.
diff --git a/gettext-tools/gnulib-lib/strtol.c b/gettext-tools/gnulib-lib/strtol.c
index 1bc1439..6ef8a96 100644
--- a/gettext-tools/gnulib-lib/strtol.c
+++ b/gettext-tools/gnulib-lib/strtol.c
@@ -1,6 +1,6 @@
/* Convert string representation of a number into an integer value.
- Copyright (C) 1991-1992, 1994-1999, 2003, 2005-2007, 2009-2015 Free Software
+ Copyright (C) 1991-1992, 1994-1999, 2003, 2005-2007, 2009-2016 Free Software
Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C
@@ -121,30 +121,19 @@
/* The extra casts in the following macros work around compiler bugs,
e.g., in Cray C 5.0.3.0. */
-/* True if negative values of the signed integer type T use two's
- complement, ones' complement, or signed magnitude representation,
- respectively. Much GNU code assumes two's complement, but some
- people like to be portable to all possible C hosts. */
-# define TYPE_TWOS_COMPLEMENT(t) ((t) ~ (t) 0 == (t) -1)
-# define TYPE_ONES_COMPLEMENT(t) ((t) ~ (t) 0 == 0)
-# define TYPE_SIGNED_MAGNITUDE(t) ((t) ~ (t) 0 < (t) -1)
-
/* True if the arithmetic type T is signed. */
# define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
-/* The maximum and minimum values for the integer type T. These
- macros have undefined behavior if T is signed and has padding bits.
- If this is a problem for you, please let us know how to fix it for
- your host. */
-# define TYPE_MINIMUM(t) \
- ((t) (! TYPE_SIGNED (t) \
- ? (t) 0 \
- : TYPE_SIGNED_MAGNITUDE (t) \
- ? ~ (t) 0 \
- : ~ TYPE_MAXIMUM (t)))
-# define TYPE_MAXIMUM(t) \
- ((t) (! TYPE_SIGNED (t) \
- ? (t) -1 \
+/* Minimum and maximum values for integer types.
+ These macros have undefined behavior for signed types that either
+ have padding bits or do not use two's complement. If this is a
+ problem for you, please let us know how to fix it for your host. */
+
+/* The maximum and minimum values for the integer type T. */
+# define TYPE_MINIMUM(t) ((t) ~ TYPE_MAXIMUM (t))
+# define TYPE_MAXIMUM(t) \
+ ((t) (! TYPE_SIGNED (t) \
+ ? (t) -1 \
: ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
# ifndef ULLONG_MAX
diff --git a/gettext-tools/gnulib-lib/strtoul.c b/gettext-tools/gnulib-lib/strtoul.c
index 2051777..6a5d4dd 100644
--- a/gettext-tools/gnulib-lib/strtoul.c
+++ b/gettext-tools/gnulib-lib/strtoul.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997, 2009-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 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 --git a/gettext-tools/gnulib-lib/styled-ostream.c b/gettext-tools/gnulib-lib/styled-ostream.c
index 43b2699..8a967a8 100644
--- a/gettext-tools/gnulib-lib/styled-ostream.c
+++ b/gettext-tools/gnulib-lib/styled-ostream.c
@@ -2,7 +2,7 @@
#line 1 "styled-ostream.oo.c"
/* Abstract output stream for CSS styled text.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/styled-ostream.h b/gettext-tools/gnulib-lib/styled-ostream.h
index 3fbc60f..3a2dc6d 100644
--- a/gettext-tools/gnulib-lib/styled-ostream.h
+++ b/gettext-tools/gnulib-lib/styled-ostream.h
@@ -2,7 +2,7 @@
#line 1 "styled-ostream.oo.h"
/* Abstract output stream for CSS styled text.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/styled-ostream.oo.c b/gettext-tools/gnulib-lib/styled-ostream.oo.c
index 03ecbc0..f8522c7 100644
--- a/gettext-tools/gnulib-lib/styled-ostream.oo.c
+++ b/gettext-tools/gnulib-lib/styled-ostream.oo.c
@@ -1,5 +1,5 @@
/* Abstract output stream for CSS styled text.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/styled-ostream.oo.h b/gettext-tools/gnulib-lib/styled-ostream.oo.h
index 4e9c8d0..b3c8980 100644
--- a/gettext-tools/gnulib-lib/styled-ostream.oo.h
+++ b/gettext-tools/gnulib-lib/styled-ostream.oo.h
@@ -1,5 +1,5 @@
/* Abstract output stream for CSS styled text.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/sys_select.in.h b/gettext-tools/gnulib-lib/sys_select.in.h
index fd7a291..9a2622f 100644
--- a/gettext-tools/gnulib-lib/sys_select.in.h
+++ b/gettext-tools/gnulib-lib/sys_select.in.h
@@ -1,5 +1,5 @@
/* Substitute for <sys/select.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
@@ -81,8 +81,9 @@
of 'struct timeval', and no definition of this type.
Also, Mac OS X, AIX, HP-UX, IRIX, Solaris, Interix declare select()
in <sys/time.h>.
- But avoid namespace pollution on glibc systems. */
-# ifndef __GLIBC__
+ But avoid namespace pollution on glibc systems and "unknown type
+ name" problems on Cygwin. */
+# if !(defined __GLIBC__ || defined __CYGWIN__)
# include <sys/time.h>
# endif
@@ -100,10 +101,11 @@
#endif
/* Get definition of 'sigset_t'.
- But avoid namespace pollution on glibc systems.
+ But avoid namespace pollution on glibc systems and "unknown type
+ name" problems on Cygwin.
Do this after the include_next (for the sake of OpenBSD 5.0) but before
the split double-inclusion guard (for the sake of Solaris). */
-#if !(defined __GLIBC__ && !defined __UCLIBC__)
+#if !((defined __GLIBC__ || defined __CYGWIN__) && !defined __UCLIBC__)
# include <signal.h>
#endif
@@ -289,12 +291,15 @@ _GL_WARN_ON_USE (pselect, "pselect is not portable - "
# define select rpl_select
# endif
_GL_FUNCDECL_RPL (select, int,
- (int, fd_set *, fd_set *, fd_set *, struct timeval *));
+ (int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
+ struct timeval *restrict));
_GL_CXXALIAS_RPL (select, int,
- (int, fd_set *, fd_set *, fd_set *, struct timeval *));
+ (int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
+ struct timeval *restrict));
# else
_GL_CXXALIAS_SYS (select, int,
- (int, fd_set *, fd_set *, fd_set *, struct timeval *));
+ (int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
+ struct timeval *restrict));
# endif
_GL_CXXALIASWARN (select);
#elif @HAVE_WINSOCK2_H@
diff --git a/gettext-tools/gnulib-lib/sys_stat.in.h b/gettext-tools/gnulib-lib/sys_stat.in.h
index 9f5e853..72d9537 100644
--- a/gettext-tools/gnulib-lib/sys_stat.in.h
+++ b/gettext-tools/gnulib-lib/sys_stat.in.h
@@ -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 --git a/gettext-tools/gnulib-lib/sys_time.in.h b/gettext-tools/gnulib-lib/sys_time.in.h
index c556c5d..1623a1d 100644
--- a/gettext-tools/gnulib-lib/sys_time.in.h
+++ b/gettext-tools/gnulib-lib/sys_time.in.h
@@ -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 --git a/gettext-tools/gnulib-lib/sys_types.in.h b/gettext-tools/gnulib-lib/sys_types.in.h
index 814bc17..8ab0545 100644
--- a/gettext-tools/gnulib-lib/sys_types.in.h
+++ b/gettext-tools/gnulib-lib/sys_types.in.h
@@ -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 --git a/gettext-tools/gnulib-lib/sys_wait.in.h b/gettext-tools/gnulib-lib/sys_wait.in.h
index 87d2282..3982b2b 100644
--- a/gettext-tools/gnulib-lib/sys_wait.in.h
+++ b/gettext-tools/gnulib-lib/sys_wait.in.h
@@ -1,5 +1,5 @@
/* A POSIX-like <sys/wait.h>.
- Copyright (C) 2001-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 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 --git a/gettext-tools/gnulib-lib/tempname.c b/gettext-tools/gnulib-lib/tempname.c
index 69c572f..b1e9880 100644
--- a/gettext-tools/gnulib-lib/tempname.c
+++ b/gettext-tools/gnulib-lib/tempname.c
@@ -1,6 +1,6 @@
/* tempname.c - generate the name of a temporary file.
- Copyright (C) 1991-2003, 2005-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1991-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 --git a/gettext-tools/gnulib-lib/tempname.h b/gettext-tools/gnulib-lib/tempname.h
index e609360..be01c51 100644
--- a/gettext-tools/gnulib-lib/tempname.h
+++ b/gettext-tools/gnulib-lib/tempname.h
@@ -1,6 +1,6 @@
/* Create a temporary file or directory.
- 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 --git a/gettext-tools/gnulib-lib/term-ostream.c b/gettext-tools/gnulib-lib/term-ostream.c
index a8d5d48..4a03686 100644
--- a/gettext-tools/gnulib-lib/term-ostream.c
+++ b/gettext-tools/gnulib-lib/term-ostream.c
@@ -2,7 +2,7 @@
#line 1 "term-ostream.oo.c"
/* Output stream for attributed text, producing ANSI escape sequences.
- Copyright (C) 2006-2008, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2008, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/term-ostream.h b/gettext-tools/gnulib-lib/term-ostream.h
index 1e697f2..f5ab2c6 100644
--- a/gettext-tools/gnulib-lib/term-ostream.h
+++ b/gettext-tools/gnulib-lib/term-ostream.h
@@ -2,7 +2,7 @@
#line 1 "term-ostream.oo.h"
/* Output stream for attributed text, producing ANSI escape sequences.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/term-ostream.oo.c b/gettext-tools/gnulib-lib/term-ostream.oo.c
index 243619a..165fc33 100644
--- a/gettext-tools/gnulib-lib/term-ostream.oo.c
+++ b/gettext-tools/gnulib-lib/term-ostream.oo.c
@@ -1,5 +1,5 @@
/* Output stream for attributed text, producing ANSI escape sequences.
- Copyright (C) 2006-2008, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2008, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/term-ostream.oo.h b/gettext-tools/gnulib-lib/term-ostream.oo.h
index 8883b8f..e3e1498 100644
--- a/gettext-tools/gnulib-lib/term-ostream.oo.h
+++ b/gettext-tools/gnulib-lib/term-ostream.oo.h
@@ -1,5 +1,5 @@
/* Output stream for attributed text, producing ANSI escape sequences.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/term-styled-ostream.c b/gettext-tools/gnulib-lib/term-styled-ostream.c
index 001197a..35dbd6a 100644
--- a/gettext-tools/gnulib-lib/term-styled-ostream.c
+++ b/gettext-tools/gnulib-lib/term-styled-ostream.c
@@ -2,7 +2,7 @@
#line 1 "term-styled-ostream.oo.c"
/* Output stream for CSS styled text, producing ANSI escape sequences.
- Copyright (C) 2006-2007, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/term-styled-ostream.h b/gettext-tools/gnulib-lib/term-styled-ostream.h
index e841f2c..d108883 100644
--- a/gettext-tools/gnulib-lib/term-styled-ostream.h
+++ b/gettext-tools/gnulib-lib/term-styled-ostream.h
@@ -2,7 +2,7 @@
#line 1 "term-styled-ostream.oo.h"
/* Output stream for CSS styled text, producing ANSI escape sequences.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/term-styled-ostream.oo.c b/gettext-tools/gnulib-lib/term-styled-ostream.oo.c
index 658574b..81a4074 100644
--- a/gettext-tools/gnulib-lib/term-styled-ostream.oo.c
+++ b/gettext-tools/gnulib-lib/term-styled-ostream.oo.c
@@ -1,5 +1,5 @@
/* Output stream for CSS styled text, producing ANSI escape sequences.
- Copyright (C) 2006-2007, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/term-styled-ostream.oo.h b/gettext-tools/gnulib-lib/term-styled-ostream.oo.h
index 05335ce..f9f84fd 100644
--- a/gettext-tools/gnulib-lib/term-styled-ostream.oo.h
+++ b/gettext-tools/gnulib-lib/term-styled-ostream.oo.h
@@ -1,5 +1,5 @@
/* Output stream for CSS styled text, producing ANSI escape sequences.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/terminfo.h b/gettext-tools/gnulib-lib/terminfo.h
index 6e412f0..da973fd 100644
--- a/gettext-tools/gnulib-lib/terminfo.h
+++ b/gettext-tools/gnulib-lib/terminfo.h
@@ -1,5 +1,5 @@
/* Information about terminal capabilities.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/time.in.h b/gettext-tools/gnulib-lib/time.in.h
index a90552c..865c114 100644
--- a/gettext-tools/gnulib-lib/time.in.h
+++ b/gettext-tools/gnulib-lib/time.in.h
@@ -1,6 +1,6 @@
/* A more-standard <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 --git a/gettext-tools/gnulib-lib/tmpdir.c b/gettext-tools/gnulib-lib/tmpdir.c
index ce39f21..1cc01fb 100644
--- a/gettext-tools/gnulib-lib/tmpdir.c
+++ b/gettext-tools/gnulib-lib/tmpdir.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2001-2002, 2006, 2009-2015 Free Software Foundation,
+/* Copyright (C) 1999, 2001-2002, 2006, 2009-2016 Free Software Foundation,
Inc.
This file is part of the GNU C Library.
diff --git a/gettext-tools/gnulib-lib/tmpdir.h b/gettext-tools/gnulib-lib/tmpdir.h
index d425bf4..ef615fc 100644
--- a/gettext-tools/gnulib-lib/tmpdir.h
+++ b/gettext-tools/gnulib-lib/tmpdir.h
@@ -1,5 +1,5 @@
/* Determine a temporary directory.
- Copyright (C) 2001-2002, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-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 --git a/gettext-tools/gnulib-lib/tparm.c b/gettext-tools/gnulib-lib/tparm.c
index 3cc7b8d..ee73726 100644
--- a/gettext-tools/gnulib-lib/tparm.c
+++ b/gettext-tools/gnulib-lib/tparm.c
@@ -1,5 +1,5 @@
/* Substitution of parameters in strings from terminal descriptions.
- Copyright (C) 2006, 2012, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2012, 2015-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 --git a/gettext-tools/gnulib-lib/tputs.c b/gettext-tools/gnulib-lib/tputs.c
index c7d226f..79b3772 100644
--- a/gettext-tools/gnulib-lib/tputs.c
+++ b/gettext-tools/gnulib-lib/tputs.c
@@ -1,5 +1,5 @@
/* Output of string from terminal descriptions.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2015-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 --git a/gettext-tools/gnulib-lib/trim.c b/gettext-tools/gnulib-lib/trim.c
index 369b20f..6f681a7 100644
--- a/gettext-tools/gnulib-lib/trim.c
+++ b/gettext-tools/gnulib-lib/trim.c
@@ -1,5 +1,5 @@
/* Removes leading and/or trailing whitespaces
- 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 --git a/gettext-tools/gnulib-lib/trim.h b/gettext-tools/gnulib-lib/trim.h
index 8a38a9f..01c22f2 100644
--- a/gettext-tools/gnulib-lib/trim.h
+++ b/gettext-tools/gnulib-lib/trim.h
@@ -1,5 +1,5 @@
/* Removes leading and/or trailing whitespaces
- 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 --git a/gettext-tools/gnulib-lib/uniconv.in.h b/gettext-tools/gnulib-lib/uniconv.in.h
index bca94ba..7c3b0c3 100644
--- a/gettext-tools/gnulib-lib/uniconv.in.h
+++ b/gettext-tools/gnulib-lib/uniconv.in.h
@@ -1,5 +1,5 @@
/* Conversions between Unicode and legacy encodings.
- Copyright (C) 2002, 2005, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 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
diff --git a/gettext-tools/gnulib-lib/uniconv/u8-conv-from-enc.c b/gettext-tools/gnulib-lib/uniconv/u8-conv-from-enc.c
index 3fdc8ca..a75001d 100644
--- a/gettext-tools/gnulib-lib/uniconv/u8-conv-from-enc.c
+++ b/gettext-tools/gnulib-lib/uniconv/u8-conv-from-enc.c
@@ -1,5 +1,5 @@
/* Conversion to UTF-8 from legacy encodings.
- Copyright (C) 2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 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
diff --git a/gettext-tools/gnulib-lib/unictype.in.h b/gettext-tools/gnulib-lib/unictype.in.h
index fdbfdd3..72b5f96 100644
--- a/gettext-tools/gnulib-lib/unictype.in.h
+++ b/gettext-tools/gnulib-lib/unictype.in.h
@@ -1,5 +1,5 @@
/* Unicode character classification and properties.
- Copyright (C) 2002, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 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
diff --git a/gettext-tools/gnulib-lib/unictype/bitmap.h b/gettext-tools/gnulib-lib/unictype/bitmap.h
index 19aea60..fa2f60e 100644
--- a/gettext-tools/gnulib-lib/unictype/bitmap.h
+++ b/gettext-tools/gnulib-lib/unictype/bitmap.h
@@ -1,5 +1,5 @@
/* Three-level bitmap lookup.
- Copyright (C) 2000-2002, 2005-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000-2002, 2005-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2000-2002.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unictype/ctype_space.c b/gettext-tools/gnulib-lib/unictype/ctype_space.c
index 7bca2ac..81b349a 100644
--- a/gettext-tools/gnulib-lib/unictype/ctype_space.c
+++ b/gettext-tools/gnulib-lib/unictype/ctype_space.c
@@ -1,5 +1,5 @@
/* ISO C <ctype.h> like properties of Unicode characters.
- Copyright (C) 2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unilbrk.in.h b/gettext-tools/gnulib-lib/unilbrk.in.h
index 0ff4556..da83e02 100644
--- a/gettext-tools/gnulib-lib/unilbrk.in.h
+++ b/gettext-tools/gnulib-lib/unilbrk.in.h
@@ -1,5 +1,5 @@
/* Line breaking of Unicode strings.
- Copyright (C) 2001-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unilbrk/lbrktables.c b/gettext-tools/gnulib-lib/unilbrk/lbrktables.c
index 81a77b4..44ca9ce 100644
--- a/gettext-tools/gnulib-lib/unilbrk/lbrktables.c
+++ b/gettext-tools/gnulib-lib/unilbrk/lbrktables.c
@@ -1,5 +1,5 @@
/* Line breaking auxiliary tables.
- Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unilbrk/lbrktables.h b/gettext-tools/gnulib-lib/unilbrk/lbrktables.h
index 42599ae..08fb533 100644
--- a/gettext-tools/gnulib-lib/unilbrk/lbrktables.h
+++ b/gettext-tools/gnulib-lib/unilbrk/lbrktables.h
@@ -1,5 +1,5 @@
/* Line breaking auxiliary tables.
- Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unilbrk/u8-possible-linebreaks.c b/gettext-tools/gnulib-lib/unilbrk/u8-possible-linebreaks.c
index e848a02..0e8ea6b 100644
--- a/gettext-tools/gnulib-lib/unilbrk/u8-possible-linebreaks.c
+++ b/gettext-tools/gnulib-lib/unilbrk/u8-possible-linebreaks.c
@@ -1,5 +1,5 @@
/* Line breaking of UTF-8 strings.
- Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unilbrk/u8-width-linebreaks.c b/gettext-tools/gnulib-lib/unilbrk/u8-width-linebreaks.c
index 1d95956..346fc52 100644
--- a/gettext-tools/gnulib-lib/unilbrk/u8-width-linebreaks.c
+++ b/gettext-tools/gnulib-lib/unilbrk/u8-width-linebreaks.c
@@ -1,5 +1,5 @@
/* Line breaking of UTF-8 strings.
- Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unilbrk/ulc-common.c b/gettext-tools/gnulib-lib/unilbrk/ulc-common.c
index 9fd2624..68704b3 100644
--- a/gettext-tools/gnulib-lib/unilbrk/ulc-common.c
+++ b/gettext-tools/gnulib-lib/unilbrk/ulc-common.c
@@ -1,5 +1,5 @@
/* Line breaking auxiliary functions.
- Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unilbrk/ulc-common.h b/gettext-tools/gnulib-lib/unilbrk/ulc-common.h
index 661270d..2a98ba2 100644
--- a/gettext-tools/gnulib-lib/unilbrk/ulc-common.h
+++ b/gettext-tools/gnulib-lib/unilbrk/ulc-common.h
@@ -1,5 +1,5 @@
/* Line breaking auxiliary functions.
- Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unilbrk/ulc-width-linebreaks.c b/gettext-tools/gnulib-lib/unilbrk/ulc-width-linebreaks.c
index 96f416e..4b1119d 100644
--- a/gettext-tools/gnulib-lib/unilbrk/ulc-width-linebreaks.c
+++ b/gettext-tools/gnulib-lib/unilbrk/ulc-width-linebreaks.c
@@ -1,5 +1,5 @@
/* Line breaking of strings.
- Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/uniname.in.h b/gettext-tools/gnulib-lib/uniname.in.h
index 082582c..8fd71e3 100644
--- a/gettext-tools/gnulib-lib/uniname.in.h
+++ b/gettext-tools/gnulib-lib/uniname.in.h
@@ -1,5 +1,5 @@
/* Association between Unicode characters and their names.
- Copyright (C) 2000-2002, 2005, 2007, 2009-2015 Free Software Foundation,
+ Copyright (C) 2000-2002, 2005, 2007, 2009-2016 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/uniname/uniname.c b/gettext-tools/gnulib-lib/uniname/uniname.c
index 8f9f1b4..5da6ced 100644
--- a/gettext-tools/gnulib-lib/uniname/uniname.c
+++ b/gettext-tools/gnulib-lib/uniname/uniname.c
@@ -1,5 +1,5 @@
/* Association between Unicode characters and their names.
- Copyright (C) 2000-2002, 2005-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000-2002, 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
diff --git a/gettext-tools/gnulib-lib/unistd--.h b/gettext-tools/gnulib-lib/unistd--.h
index ada1f6b..bd1d0fb 100644
--- a/gettext-tools/gnulib-lib/unistd--.h
+++ b/gettext-tools/gnulib-lib/unistd--.h
@@ -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 --git a/gettext-tools/gnulib-lib/unistd-safer.h b/gettext-tools/gnulib-lib/unistd-safer.h
index d4251b3..c8179ce 100644
--- a/gettext-tools/gnulib-lib/unistd-safer.h
+++ b/gettext-tools/gnulib-lib/unistd-safer.h
@@ -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 --git a/gettext-tools/gnulib-lib/unistd.in.h b/gettext-tools/gnulib-lib/unistd.in.h
index 93f1ed9..a9ac097 100644
--- a/gettext-tools/gnulib-lib/unistd.in.h
+++ b/gettext-tools/gnulib-lib/unistd.in.h
@@ -1,5 +1,5 @@
/* Substitute for and wrapper around <unistd.h>.
- 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 --git a/gettext-tools/gnulib-lib/unistr.in.h b/gettext-tools/gnulib-lib/unistr.in.h
index be158be..70aa9cb 100644
--- a/gettext-tools/gnulib-lib/unistr.in.h
+++ b/gettext-tools/gnulib-lib/unistr.in.h
@@ -1,5 +1,5 @@
/* Elementary Unicode string functions.
- Copyright (C) 2001-2002, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 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
diff --git a/gettext-tools/gnulib-lib/unistr/u16-mbtouc-aux.c b/gettext-tools/gnulib-lib/unistr/u16-mbtouc-aux.c
index 2e8487d..5e88e04 100644
--- a/gettext-tools/gnulib-lib/unistr/u16-mbtouc-aux.c
+++ b/gettext-tools/gnulib-lib/unistr/u16-mbtouc-aux.c
@@ -1,5 +1,5 @@
/* Conversion UTF-16 to UCS-4.
- Copyright (C) 2001-2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unistr/u16-mbtouc.c b/gettext-tools/gnulib-lib/unistr/u16-mbtouc.c
index 75a2521..00c1025 100644
--- a/gettext-tools/gnulib-lib/unistr/u16-mbtouc.c
+++ b/gettext-tools/gnulib-lib/unistr/u16-mbtouc.c
@@ -1,5 +1,5 @@
/* Look at first character in UTF-16 string.
- Copyright (C) 1999-2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1999-2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unistr/u8-check.c b/gettext-tools/gnulib-lib/unistr/u8-check.c
index 9c4a75c..786ebb5 100644
--- a/gettext-tools/gnulib-lib/unistr/u8-check.c
+++ b/gettext-tools/gnulib-lib/unistr/u8-check.c
@@ -1,5 +1,5 @@
/* Check UTF-8 string.
- Copyright (C) 2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unistr/u8-mblen.c b/gettext-tools/gnulib-lib/unistr/u8-mblen.c
index 32d960c..88b4cef 100644
--- a/gettext-tools/gnulib-lib/unistr/u8-mblen.c
+++ b/gettext-tools/gnulib-lib/unistr/u8-mblen.c
@@ -1,5 +1,5 @@
/* Look at first character in UTF-8 string.
- Copyright (C) 1999-2000, 2002, 2006-2007, 2009-2015 Free Software
+ Copyright (C) 1999-2000, 2002, 2006-2007, 2009-2016 Free Software
Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
diff --git a/gettext-tools/gnulib-lib/unistr/u8-mbtouc-aux.c b/gettext-tools/gnulib-lib/unistr/u8-mbtouc-aux.c
index a751844..ca3c3ab 100644
--- a/gettext-tools/gnulib-lib/unistr/u8-mbtouc-aux.c
+++ b/gettext-tools/gnulib-lib/unistr/u8-mbtouc-aux.c
@@ -1,5 +1,5 @@
/* Conversion UTF-8 to UCS-4.
- Copyright (C) 2001-2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe-aux.c b/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe-aux.c
index ae46311..2073d18 100644
--- a/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe-aux.c
+++ b/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe-aux.c
@@ -1,5 +1,5 @@
/* Conversion UTF-8 to UCS-4.
- Copyright (C) 2001-2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe.c b/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe.c
index e27dd69..04ed687 100644
--- a/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe.c
+++ b/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe.c
@@ -1,5 +1,5 @@
/* Look at first character in UTF-8 string.
- Copyright (C) 1999-2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1999-2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unistr/u8-mbtouc.c b/gettext-tools/gnulib-lib/unistr/u8-mbtouc.c
index 2e9aced..edae650 100644
--- a/gettext-tools/gnulib-lib/unistr/u8-mbtouc.c
+++ b/gettext-tools/gnulib-lib/unistr/u8-mbtouc.c
@@ -1,5 +1,5 @@
/* Look at first character in UTF-8 string.
- Copyright (C) 1999-2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1999-2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unistr/u8-mbtoucr.c b/gettext-tools/gnulib-lib/unistr/u8-mbtoucr.c
index 9cc1500..48f9ca3 100644
--- a/gettext-tools/gnulib-lib/unistr/u8-mbtoucr.c
+++ b/gettext-tools/gnulib-lib/unistr/u8-mbtoucr.c
@@ -1,5 +1,5 @@
/* Look at first character in UTF-8 string, returning an error code.
- Copyright (C) 1999-2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1999-2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unistr/u8-prev.c b/gettext-tools/gnulib-lib/unistr/u8-prev.c
index 20c8844..2fa94c9 100644
--- a/gettext-tools/gnulib-lib/unistr/u8-prev.c
+++ b/gettext-tools/gnulib-lib/unistr/u8-prev.c
@@ -1,5 +1,5 @@
/* Iterate over previous character in UTF-8 string.
- Copyright (C) 2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unistr/u8-uctomb-aux.c b/gettext-tools/gnulib-lib/unistr/u8-uctomb-aux.c
index 65445be..d5ff1d6 100644
--- a/gettext-tools/gnulib-lib/unistr/u8-uctomb-aux.c
+++ b/gettext-tools/gnulib-lib/unistr/u8-uctomb-aux.c
@@ -1,5 +1,5 @@
/* Conversion UCS-4 to UTF-8.
- Copyright (C) 2002, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unistr/u8-uctomb.c b/gettext-tools/gnulib-lib/unistr/u8-uctomb.c
index a8250f4..419a6b4 100644
--- a/gettext-tools/gnulib-lib/unistr/u8-uctomb.c
+++ b/gettext-tools/gnulib-lib/unistr/u8-uctomb.c
@@ -1,5 +1,5 @@
/* Store a character in UTF-8 string.
- Copyright (C) 2002, 2005-2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2005-2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unitypes.in.h b/gettext-tools/gnulib-lib/unitypes.in.h
index d3c47ae..c6ca0ba 100644
--- a/gettext-tools/gnulib-lib/unitypes.in.h
+++ b/gettext-tools/gnulib-lib/unitypes.in.h
@@ -1,5 +1,5 @@
/* Elementary types and macros for the GNU UniString library.
- Copyright (C) 2002, 2005-2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 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
diff --git a/gettext-tools/gnulib-lib/uniwidth.in.h b/gettext-tools/gnulib-lib/uniwidth.in.h
index 7694beb..0ab6d25 100644
--- a/gettext-tools/gnulib-lib/uniwidth.in.h
+++ b/gettext-tools/gnulib-lib/uniwidth.in.h
@@ -1,5 +1,5 @@
/* Display width functions.
- Copyright (C) 2001-2002, 2005, 2007, 2009-2015 Free Software Foundation,
+ Copyright (C) 2001-2002, 2005, 2007, 2009-2016 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/uniwidth/cjk.h b/gettext-tools/gnulib-lib/uniwidth/cjk.h
index cdd9a55..0eac6fe 100644
--- a/gettext-tools/gnulib-lib/uniwidth/cjk.h
+++ b/gettext-tools/gnulib-lib/uniwidth/cjk.h
@@ -1,5 +1,5 @@
/* Test for CJK encoding.
- Copyright (C) 2001-2002, 2005-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2005-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/uniwidth/width.c b/gettext-tools/gnulib-lib/uniwidth/width.c
index c7e03b2..bd3b3fc 100644
--- a/gettext-tools/gnulib-lib/uniwidth/width.c
+++ b/gettext-tools/gnulib-lib/uniwidth/width.c
@@ -1,5 +1,5 @@
/* Determine display width of Unicode character.
- Copyright (C) 2001-2002, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-lib/unlocked-io.h b/gettext-tools/gnulib-lib/unlocked-io.h
index 06ffac6..c0ece50 100644
--- a/gettext-tools/gnulib-lib/unlocked-io.h
+++ b/gettext-tools/gnulib-lib/unlocked-io.h
@@ -1,6 +1,6 @@
/* Prefer faster, non-thread-safe stdio functions if available.
- Copyright (C) 2001-2004, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2004, 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 --git a/gettext-tools/gnulib-lib/unsetenv.c b/gettext-tools/gnulib-lib/unsetenv.c
index 87f41d5..8368744 100644
--- a/gettext-tools/gnulib-lib/unsetenv.c
+++ b/gettext-tools/gnulib-lib/unsetenv.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1995-2002, 2005-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1995-2002, 2005-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 --git a/gettext-tools/gnulib-lib/vasnprintf.c b/gettext-tools/gnulib-lib/vasnprintf.c
index 88332f0..72bf3bc 100644
--- a/gettext-tools/gnulib-lib/vasnprintf.c
+++ b/gettext-tools/gnulib-lib/vasnprintf.c
@@ -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 --git a/gettext-tools/gnulib-lib/vasnprintf.h b/gettext-tools/gnulib-lib/vasnprintf.h
index 3494eef..8e9d84f 100644
--- a/gettext-tools/gnulib-lib/vasnprintf.h
+++ b/gettext-tools/gnulib-lib/vasnprintf.h
@@ -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 --git a/gettext-tools/gnulib-lib/vasprintf.c b/gettext-tools/gnulib-lib/vasprintf.c
index 5dd4abd..a5dc1be 100644
--- a/gettext-tools/gnulib-lib/vasprintf.c
+++ b/gettext-tools/gnulib-lib/vasprintf.c
@@ -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 --git a/gettext-tools/gnulib-lib/verify.h b/gettext-tools/gnulib-lib/verify.h
index 60eba49..2f43837 100644
--- a/gettext-tools/gnulib-lib/verify.h
+++ b/gettext-tools/gnulib-lib/verify.h
@@ -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 --git a/gettext-tools/gnulib-lib/vsnprintf.c b/gettext-tools/gnulib-lib/vsnprintf.c
index d2ebed9..4631b17 100644
--- a/gettext-tools/gnulib-lib/vsnprintf.c
+++ b/gettext-tools/gnulib-lib/vsnprintf.c
@@ -1,5 +1,5 @@
/* Formatted output to strings.
- Copyright (C) 2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006-2016 Free Software Foundation, Inc.
Written by Simon Josefsson and Yoann Vandoorselaere <yoann@prelude-ids.org>.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/w32spawn.h b/gettext-tools/gnulib-lib/w32spawn.h
index 4a21a4e..389054a 100644
--- a/gettext-tools/gnulib-lib/w32spawn.h
+++ b/gettext-tools/gnulib-lib/w32spawn.h
@@ -1,5 +1,5 @@
/* Auxiliary functions for the creation of subprocesses. Native Windows API.
- Copyright (C) 2001, 2003-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
@@ -15,9 +15,11 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#ifndef __KLIBC__
/* Get declarations of the native Windows API functions. */
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
+#endif
/* Get _open_osfhandle(). */
#include <io.h>
@@ -123,8 +125,13 @@ undup_safer_noinherit (int tempfd, int origfd)
- mingw programs that have a global variable 'int _CRT_glob = 0;',
- Cygwin programs, when invoked from a Cygwin program.
*/
-#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037*?"
-#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
+#ifndef __KLIBC__
+# define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037*?"
+# define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
+#else
+# define SHELL_SPECIAL_CHARS ""
+# define SHELL_SPACE_CHARS ""
+#endif
static char **
prepare_spawn (char **argv)
{
diff --git a/gettext-tools/gnulib-lib/wait-process.c b/gettext-tools/gnulib-lib/wait-process.c
index 5dd6f07..d081385 100644
--- a/gettext-tools/gnulib-lib/wait-process.c
+++ b/gettext-tools/gnulib-lib/wait-process.c
@@ -1,5 +1,5 @@
/* Waiting for a subprocess to finish.
- Copyright (C) 2001-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/wait-process.h b/gettext-tools/gnulib-lib/wait-process.h
index e453246..50dbb89 100644
--- a/gettext-tools/gnulib-lib/wait-process.h
+++ b/gettext-tools/gnulib-lib/wait-process.h
@@ -1,5 +1,5 @@
/* Waiting for a subprocess to finish.
- Copyright (C) 2001-2003, 2006, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006, 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/waitpid.c b/gettext-tools/gnulib-lib/waitpid.c
index 46a5d92..162ade8 100644
--- a/gettext-tools/gnulib-lib/waitpid.c
+++ b/gettext-tools/gnulib-lib/waitpid.c
@@ -1,5 +1,5 @@
/* Wait for process state change.
- Copyright (C) 2001-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 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 --git a/gettext-tools/gnulib-lib/wchar.in.h b/gettext-tools/gnulib-lib/wchar.in.h
index 684299f..755600f 100644
--- a/gettext-tools/gnulib-lib/wchar.in.h
+++ b/gettext-tools/gnulib-lib/wchar.in.h
@@ -1,6 +1,6 @@
/* A substitute for ISO C99 <wchar.h>, 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 @@ _GL_CXXALIAS_RPL (wcwidth, int, (wchar_t));
# 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 --git a/gettext-tools/gnulib-lib/wctype.in.h b/gettext-tools/gnulib-lib/wctype.in.h
index 9050b7e..3431854 100644
--- a/gettext-tools/gnulib-lib/wctype.in.h
+++ b/gettext-tools/gnulib-lib/wctype.in.h
@@ -1,6 +1,6 @@
/* A substitute for ISO C99 <wctype.h>, for platforms that lack it.
- 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 --git a/gettext-tools/gnulib-lib/wcwidth.c b/gettext-tools/gnulib-lib/wcwidth.c
index d2b7118..b94fad0 100644
--- a/gettext-tools/gnulib-lib/wcwidth.c
+++ b/gettext-tools/gnulib-lib/wcwidth.c
@@ -1,5 +1,5 @@
/* Determine the number of screen columns needed for a character.
- Copyright (C) 2006-2007, 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 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 --git a/gettext-tools/gnulib-lib/write.c b/gettext-tools/gnulib-lib/write.c
index ed2d3b7..8c048e7 100644
--- a/gettext-tools/gnulib-lib/write.c
+++ b/gettext-tools/gnulib-lib/write.c
@@ -1,5 +1,5 @@
/* POSIX compatible write() function.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xalloc.h b/gettext-tools/gnulib-lib/xalloc.h
index b261994..f4a329e 100644
--- a/gettext-tools/gnulib-lib/xalloc.h
+++ b/gettext-tools/gnulib-lib/xalloc.h
@@ -1,5 +1,5 @@
/* malloc with out of memory checking.
- Copyright (C) 2001-2004, 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2004, 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xasprintf.c b/gettext-tools/gnulib-lib/xasprintf.c
index f8eef97..e9e83ef 100644
--- a/gettext-tools/gnulib-lib/xasprintf.c
+++ b/gettext-tools/gnulib-lib/xasprintf.c
@@ -1,5 +1,5 @@
/* vasprintf and asprintf with out-of-memory checking.
- Copyright (C) 1999, 2002-2004, 2006, 2009-2015 Free Software Foundation,
+ Copyright (C) 1999, 2002-2004, 2006, 2009-2016 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xconcat-filename.c b/gettext-tools/gnulib-lib/xconcat-filename.c
index 10ebbea..7e4593e 100644
--- a/gettext-tools/gnulib-lib/xconcat-filename.c
+++ b/gettext-tools/gnulib-lib/xconcat-filename.c
@@ -1,5 +1,5 @@
/* Construct a full filename from a directory and a relative filename.
- Copyright (C) 2001-2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 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 the
diff --git a/gettext-tools/gnulib-lib/xerror.c b/gettext-tools/gnulib-lib/xerror.c
index 705b553..3c1e799 100644
--- a/gettext-tools/gnulib-lib/xerror.c
+++ b/gettext-tools/gnulib-lib/xerror.c
@@ -1,5 +1,5 @@
/* Multiline error-reporting functions.
- Copyright (C) 2001-2003, 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xerror.h b/gettext-tools/gnulib-lib/xerror.h
index fc8b163..d702c3a 100644
--- a/gettext-tools/gnulib-lib/xerror.h
+++ b/gettext-tools/gnulib-lib/xerror.h
@@ -1,5 +1,5 @@
/* Multiline error-reporting functions.
- Copyright (C) 2001-2003, 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006, 2015-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xmalloc.c b/gettext-tools/gnulib-lib/xmalloc.c
index 43dcb94..9d435a5 100644
--- a/gettext-tools/gnulib-lib/xmalloc.c
+++ b/gettext-tools/gnulib-lib/xmalloc.c
@@ -1,6 +1,6 @@
/* xmalloc.c -- malloc with out of memory checking
- Copyright (C) 1990-1996, 2000-2003, 2005-2007, 2012, 2015 Free
- Software Foundation, Inc.
+ Copyright (C) 1990-1996, 2000-2003, 2005-2007, 2012, 2015-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 --git a/gettext-tools/gnulib-lib/xmalloca.c b/gettext-tools/gnulib-lib/xmalloca.c
index 4fc7c8a..bcbed77 100644
--- a/gettext-tools/gnulib-lib/xmalloca.c
+++ b/gettext-tools/gnulib-lib/xmalloca.c
@@ -1,5 +1,5 @@
/* Safe automatic memory allocation with out of memory checking.
- 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 <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xmalloca.h b/gettext-tools/gnulib-lib/xmalloca.h
index c067c8a..f90fa9f 100644
--- a/gettext-tools/gnulib-lib/xmalloca.h
+++ b/gettext-tools/gnulib-lib/xmalloca.h
@@ -1,5 +1,5 @@
/* Safe automatic memory allocation with out of memory checking.
- Copyright (C) 2003, 2005, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005, 2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xmemdup0.c b/gettext-tools/gnulib-lib/xmemdup0.c
new file mode 100644
index 0000000..577f5f5
--- /dev/null
+++ b/gettext-tools/gnulib-lib/xmemdup0.c
@@ -0,0 +1,44 @@
+/* xmemdup0.c -- copy a block of arbitrary bytes, plus a trailing NUL
+
+ 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
+ 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 <http://www.gnu.org/licenses/>. */
+
+#include <config.h>
+
+#include "xmemdup0.h"
+#include "xalloc.h"
+
+#include <string.h>
+
+/* Clone an arbitrary block of bytes P of size S, with error checking,
+ and include a terminating NUL byte. P is of type 'void const *',
+ to make it easier to use this with other mem* functions that return
+ 'void *', but since appending a NUL byte only makes sense on bytes,
+ the return type is 'char *'.
+
+ The terminating NUL makes it safe to use strlen or rawmemchr to
+ check for embedded NUL; it also speeds up algorithms such as escape
+ sequence processing on arbitrary memory, by making it always safe
+ to read the byte after the escape character rather than having to
+ check if each escape character is the last byte in the object. */
+
+char *
+xmemdup0 (void const *p, size_t s)
+{
+ char *result = xcharalloc (s + 1);
+ memcpy (result, p, s);
+ result[s] = 0;
+ return result;
+}
diff --git a/gettext-tools/gnulib-lib/xmemdup0.h b/gettext-tools/gnulib-lib/xmemdup0.h
new file mode 100644
index 0000000..76c1dab
--- /dev/null
+++ b/gettext-tools/gnulib-lib/xmemdup0.h
@@ -0,0 +1,41 @@
+/* xmemdup0.h -- copy a block of arbitrary bytes, plus a trailing NUL
+
+ 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
+ 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 <http://www.gnu.org/licenses/>. */
+
+#ifndef XMEMDUP_H_
+# define XMEMDUP_H_
+
+# include <stddef.h>
+
+
+# ifdef __cplusplus
+extern "C" {
+# endif
+
+/* This function is always triggered when memory is exhausted.
+ It must be defined by the application, either explicitly
+ or by using gnulib's xalloc-die module. This is the
+ function to call when one wants the program to die because of a
+ memory allocation failure. */
+extern _Noreturn void xalloc_die (void);
+
+char *xmemdup0 (void const *p, size_t s);
+
+# ifdef __cplusplus
+}
+# endif
+
+#endif /* !XMEMDUP0_H_ */
diff --git a/gettext-tools/gnulib-lib/xreadlink.c b/gettext-tools/gnulib-lib/xreadlink.c
index 5082d0b..901f946 100644
--- a/gettext-tools/gnulib-lib/xreadlink.c
+++ b/gettext-tools/gnulib-lib/xreadlink.c
@@ -1,6 +1,6 @@
/* xreadlink.c -- readlink wrapper to return the link name in malloc'd storage
- Copyright (C) 2001, 2003-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001, 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 --git a/gettext-tools/gnulib-lib/xreadlink.h b/gettext-tools/gnulib-lib/xreadlink.h
index a970eb9..555c27d 100644
--- a/gettext-tools/gnulib-lib/xreadlink.h
+++ b/gettext-tools/gnulib-lib/xreadlink.h
@@ -1,6 +1,6 @@
/* Reading symbolic links without size limitation.
- Copyright (C) 2001, 2003-2004, 2007, 2009-2015 Free Software Foundation,
+ Copyright (C) 2001, 2003-2004, 2007, 2009-2016 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xsetenv.c b/gettext-tools/gnulib-lib/xsetenv.c
index eb38d04..11c90fa 100644
--- a/gettext-tools/gnulib-lib/xsetenv.c
+++ b/gettext-tools/gnulib-lib/xsetenv.c
@@ -1,5 +1,5 @@
/* Setting environment variables, with out-of-memory checking.
- Copyright (C) 2001-2002, 2005-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 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 --git a/gettext-tools/gnulib-lib/xsetenv.h b/gettext-tools/gnulib-lib/xsetenv.h
index 7d9d67c..b3b7a6b 100644
--- a/gettext-tools/gnulib-lib/xsetenv.h
+++ b/gettext-tools/gnulib-lib/xsetenv.h
@@ -1,5 +1,5 @@
/* Setting environment variables, with out-of-memory checking.
- Copyright (C) 2001-2002, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 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 --git a/gettext-tools/gnulib-lib/xsize.h b/gettext-tools/gnulib-lib/xsize.h
index b2a786a..202a87e 100644
--- a/gettext-tools/gnulib-lib/xsize.h
+++ b/gettext-tools/gnulib-lib/xsize.h
@@ -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 --git a/gettext-tools/gnulib-lib/xstrdup.c b/gettext-tools/gnulib-lib/xstrdup.c
index 7aa09dc..c7fbe14 100644
--- a/gettext-tools/gnulib-lib/xstrdup.c
+++ b/gettext-tools/gnulib-lib/xstrdup.c
@@ -1,5 +1,5 @@
/* xstrdup.c -- copy a string with out of memory checking
- Copyright (C) 1990, 1996, 2000-2003, 2005-2006, 2015 Free Software
+ Copyright (C) 1990, 1996, 2000-2003, 2005-2006, 2015-2016 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xstriconv.c b/gettext-tools/gnulib-lib/xstriconv.c
index d5e1951..2dbee18 100644
--- a/gettext-tools/gnulib-lib/xstriconv.c
+++ b/gettext-tools/gnulib-lib/xstriconv.c
@@ -1,5 +1,5 @@
/* Charset conversion with out-of-memory checking.
- 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.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xstriconv.h b/gettext-tools/gnulib-lib/xstriconv.h
index 6319989..61e7c75 100644
--- a/gettext-tools/gnulib-lib/xstriconv.h
+++ b/gettext-tools/gnulib-lib/xstriconv.h
@@ -1,5 +1,5 @@
/* Charset conversion with out-of-memory checking.
- Copyright (C) 2001-2004, 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2004, 2006-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible and Simon Josefsson.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xstriconveh.c b/gettext-tools/gnulib-lib/xstriconveh.c
index f47904a..c2c8521 100644
--- a/gettext-tools/gnulib-lib/xstriconveh.c
+++ b/gettext-tools/gnulib-lib/xstriconveh.c
@@ -1,5 +1,5 @@
/* Charset conversion with out-of-memory checking.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xstriconveh.h b/gettext-tools/gnulib-lib/xstriconveh.h
index 5438a75..53c7019 100644
--- a/gettext-tools/gnulib-lib/xstriconveh.h
+++ b/gettext-tools/gnulib-lib/xstriconveh.h
@@ -1,5 +1,5 @@
/* Charset conversion with out-of-memory checking.
- Copyright (C) 2001-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible and Simon Josefsson.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-lib/xvasprintf.c b/gettext-tools/gnulib-lib/xvasprintf.c
index 441ab59..9deaad0 100644
--- a/gettext-tools/gnulib-lib/xvasprintf.c
+++ b/gettext-tools/gnulib-lib/xvasprintf.c
@@ -1,5 +1,5 @@
/* vasprintf and asprintf with out-of-memory checking.
- Copyright (C) 1999, 2002-2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2002-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 --git a/gettext-tools/gnulib-lib/xvasprintf.h b/gettext-tools/gnulib-lib/xvasprintf.h
index 3b7f5ad..d62d7b7 100644
--- a/gettext-tools/gnulib-lib/xvasprintf.h
+++ b/gettext-tools/gnulib-lib/xvasprintf.h
@@ -1,5 +1,5 @@
/* vasprintf and asprintf with out-of-memory checking.
- Copyright (C) 2002-2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-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