Merge pull request #60 from goutnet/add-BUILD_TOOLS-option

adding customization for build
diff --git a/CMakeLists.txt b/CMakeLists.txt
index def2560..664a142 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,7 @@
 SET(PACKAGE_NAME ${PACKAGE})
 SET(PACKAGE_VERSION_MAJOR "1")
 SET(PACKAGE_VERSION_MINOR "5")
-SET(PACKAGE_VERSION_MICRO "1")
+SET(PACKAGE_VERSION_MICRO "1a")
 #SET(VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}")
 SET(VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_MICRO}")
 SET(PACKAGE_VERSION ${VERSION})
diff --git a/INSTALL.md b/INSTALL.md
index 5db156e..123371b 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -12,7 +12,7 @@
 listed in order of preference:
 
 - Apple's CommonCrypto (available on macOS and iOS)
-- [OpenSSL](https://www.openssl.org/)
+- [OpenSSL](https://www.openssl.org/) >= 1.0
 - [GnuTLS](https://www.gnutls.org/).
 
 If you don't want a library even if it is installed, you can
diff --git a/README.md b/README.md
index bd71cd6..678f7af 100644
--- a/README.md
+++ b/README.md
@@ -5,9 +5,13 @@
 Winzip AES and decryption of legacy PKware encrypted files is
 supported. The API is documented by man pages.
 
-For more information, take a look at the included man pages.  You can
-start with [libzip(3)](https://libzip.org/documentation/libzip.html), which lists
-all others.  Example source code is in the [examples](examples) and  [src](src) subdirectories.
+libzip is fully documented via man pages. HTML versions of the man
+pages are on [libzip.org](https://libzip.org/documentation/) and
+in the [man](man) directory. You can start with
+[libzip(3)](https://libzip.org/documentation/libzip.html), which
+lists
+all others. Example source code is in the [examples](examples) and
+[src](src) subdirectories.
 
 If you have developed an application using libzip, you can find out
 about API changes and how to adapt your code for them in the included
diff --git a/THANKS b/THANKS
index c80e660..719dca0 100644
--- a/THANKS
+++ b/THANKS
@@ -23,6 +23,7 @@
 David Demelier <demelier.david@gmail.com>
 Del Merritt <del@alum.mit.edu>
 Dmytro Rybachenko <atmoliton@gmail.com>
+Elvis Angelaccio
 Eun-cheol Joo
 François Simon <AT.GFI.Francois.SIMON@sesam-vitale.fr>
 Frederik Ramm <frederik@remote.org>
@@ -30,6 +31,7 @@
 HeeMyung
 Heiko Becker
 Heiko Hund <heiko@ist.eigentlich.net>
+Ilya Voronin
 Info-ZIP group
 Jan Weiß <jan@geheimwerk.de>
 Jay Freeman (saurik) <saurik@saurik.com>
diff --git a/TODO.md b/TODO.md
index 2a5bcf8..3a6c5c4 100644
--- a/TODO.md
+++ b/TODO.md
@@ -26,8 +26,6 @@
       - read/write: total byte count so far
 	  - state of source (opened, EOF reached, ...)
 
-* add license to generated documentation (man, html)
-
 # Later
 
 ## macOS / iOS framework
@@ -56,6 +54,7 @@
 
 ## Features
 
+* add seek support for AES-encrypted files
 * consistently use `_zip_crypto_clear()` for passwords
 * support setting extra fields from `zip_source`
   * introduce layers of extra fields:
diff --git a/cmake-config.h.in b/cmake-config.h.in
index 7e252b9..d1eb100 100644
--- a/cmake-config.h.in
+++ b/cmake-config.h.in
@@ -1,5 +1,10 @@
 #ifndef HAD_CONFIG_H
 #define HAD_CONFIG_H
+#if defined(__linux__)
+#ifndef _FILE_OFFSET_BITS
+#define _FILE_OFFSET_BITS 64
+#endif
+#endif
 #ifndef _HAD_ZIPCONF_H
 #include "zipconf.h"
 #endif
diff --git a/lib/zip_source_crc.c b/lib/zip_source_crc.c
index 8797dfe..6176b91 100644
--- a/lib/zip_source_crc.c
+++ b/lib/zip_source_crc.c
@@ -148,7 +148,6 @@
 	    st->comp_method = ZIP_CM_STORE;
 	    st->encryption_method = ZIP_EM_NONE;
 	    st->valid |= ZIP_STAT_SIZE | ZIP_STAT_CRC | ZIP_STAT_COMP_SIZE | ZIP_STAT_COMP_METHOD | ZIP_STAT_ENCRYPTION_METHOD;
-	    ;
 	}
 	return 0;
     }
diff --git a/lib/zip_source_seek.c b/lib/zip_source_seek.c
index aed53b8..4a71bfb 100644
--- a/lib/zip_source_seek.c
+++ b/lib/zip_source_seek.c
@@ -50,7 +50,12 @@
     args.offset = offset;
     args.whence = whence;
 
-    return (_zip_source_call(src, &args, sizeof(args), ZIP_SOURCE_SEEK) < 0 ? -1 : 0);
+    if (_zip_source_call(src, &args, sizeof(args), ZIP_SOURCE_SEEK) < 0) {
+	return -1;
+    }
+
+    src->eof = 0;
+    return 0;
 }
 
 
diff --git a/lib/zip_utf-8.c b/lib/zip_utf-8.c
index 8f02f88..0776294 100644
--- a/lib/zip_utf-8.c
+++ b/lib/zip_utf-8.c
@@ -39,7 +39,7 @@
 
 static const zip_uint16_t _cp437_to_unicode[256] = {
     /* 0x00 - 0x0F */
-    0x2007, 0x263A, 0x263B, 0x2665, 0x2666, 0x2663, 0x2660, 0x2022, 0x25D8, 0x25CB, 0x25D9, 0x2642, 0x2640, 0x266A, 0x266B, 0x263C,
+    0x0000, 0x263A, 0x263B, 0x2665, 0x2666, 0x2663, 0x2660, 0x2022, 0x25D8, 0x25CB, 0x25D9, 0x2642, 0x2640, 0x266A, 0x266B, 0x263C,
 
     /* 0x10 - 0x1F */
     0x25BA, 0x25C4, 0x2195, 0x203C, 0x00B6, 0x00A7, 0x25AC, 0x21A8, 0x2191, 0x2193, 0x2192, 0x2190, 0x221F, 0x2194, 0x25B2, 0x25BC,
diff --git a/man/ZIP_SOURCE_GET_ARGS.html b/man/ZIP_SOURCE_GET_ARGS.html
index 3a26273..ead9ad4 100644
--- a/man/ZIP_SOURCE_GET_ARGS.html
+++ b/man/ZIP_SOURCE_GET_ARGS.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   ZIP_SOURCE_GET_ARGS -- validate and cast arguments to source callback
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_GET_ARGS(3)</title>
 </head>
@@ -20,50 +46,57 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">ZIP_SOURCE_GET_ARGS</b> &#8212; <span class="Nd">validate and cast
-  arguments to source callback</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">ZIP_SOURCE_GET_ARGS</code> &#x2014;
+<div class="Nd" title="Nd">validate and cast arguments to source callback</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">type *</var>
+<var class="Ft" title="Ft">type *</var>
 <br/>
-<b class="Fn">ZIP_SOURCE_GET_ARGS</b>(<var class="Fa" style="white-space: nowrap;">type</var>,
-  <var class="Fa" style="white-space: nowrap;">void *data</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint64_t len</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_error_t *error</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">ZIP_SOURCE_GET_ARGS</b>() macro casts
-  <var class="Ar">data</var> to a pointer to <var class="Ar">type</var>.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-On success, <b class="Fn">ZIP_SOURCE_GET_ARGS</b>() returns
-  <var class="Ar">data</var>. In case of error, it returns
-  <code class="Dv">NULL</code> and sets <var class="Ar">error</var>.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">ZIP_SOURCE_GET_ARGS</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">len</var> is less than the size of
-      <var class="Ar">type</var></dd>
+<code class="Fn" title="Fn">ZIP_SOURCE_GET_ARGS</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">type</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">void *data</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  len</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
+  *error</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">ZIP_SOURCE_GET_ARGS</code>() macro casts
+  <var class="Ar" title="Ar">data</var> to a pointer to
+  <var class="Ar" title="Ar">type</var>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+On success, <code class="Fn" title="Fn">ZIP_SOURCE_GET_ARGS</code>() returns
+  <var class="Ar" title="Ar">data</var>. In case of error, it returns
+  <code class="Dv" title="Dv">NULL</code> and sets
+  <var class="Ar" title="Ar">error</var>.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">ZIP_SOURCE_GET_ARGS</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">len</var> is less than the size of
+      <var class="Ar" title="Ar">type</var></dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source_function.html">zip_source_function(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">ZIP_SOURCE_GET_ARGS</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_function.html">zip_source_function(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">ZIP_SOURCE_GET_ARGS</code>() was added in libzip
+  1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/ZIP_SOURCE_GET_ARGS.man b/man/ZIP_SOURCE_GET_ARGS.man
index 259acc2..0e23ebd 100644
--- a/man/ZIP_SOURCE_GET_ARGS.man
+++ b/man/ZIP_SOURCE_GET_ARGS.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" ZIP_SOURCE_GET_ARGS -- validate and cast arguments to source callback
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_GET_ARGS" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/libzip.html b/man/libzip.html
index a0be8a0..ec422d2 100644
--- a/man/libzip.html
+++ b/man/libzip.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   libzip.mdoc -- general overview of available functions
+   Copyright (C) 2005-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>LIBZIP(3)</title>
 </head>
@@ -20,147 +46,161 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">libzip</b> &#8212; <span class="Nd">library for manipulating zip
-  archives</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">libzip</code> &#x2014;
+<div class="Nd" title="Nd">library for manipulating zip archives</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-<b class="Nm">libzip</b> is a library for reading, creating, and modifying zip
-  archives.
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Nm" title="Nm">libzip</code> is a library for reading, creating,
+  and modifying zip archives.
 <div class="Pp"></div>
-The main design criteria for <b class="Nm">libzip</b> were:
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;">Do not create corrupt files,
-      even in case of errors.</li>
-  <li class="It-bullet" style="margin-top: 0.00em;">Do not delete data.</li>
-  <li class="It-bullet" style="margin-top: 0.00em;">Be efficient.</li>
+The main design criteria for <code class="Nm" title="Nm">libzip</code> were:
+<ul class="Bl-bullet Bl-compact">
+  <li>Do not create corrupt files, even in case of errors.</li>
+  <li>Do not delete data.</li>
+  <li>Be efficient.</li>
 </ul>
 <div class="Pp"></div>
-For this reason, when modifying zip archives, <b class="Nm">libzip</b> writes to
-  a temporary file and replaces the original zip archive atomically.
+For this reason, when modifying zip archives,
+  <code class="Nm" title="Nm">libzip</code> writes to a temporary file and
+  replaces the original zip archive atomically.
 <div class="Pp"></div>
 Below there are two sections listing functions: one for how to read from zip
   archives and one for how to create/modify them.
-<h1 class="Sh" id="READING_ZIP_ARCHIVES">READING ZIP ARCHIVES</h1>
-<h2 class="Ss" id="open_archive">open archive</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_open.html">zip_open(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_fdopen.html">zip_fdopen(3)</a></li>
+<h1 class="Sh" title="Sh" id="READING_ZIP_ARCHIVES"><a class="permalink" href="#READING_ZIP_ARCHIVES">READING
+  ZIP ARCHIVES</a></h1>
+<h2 class="Ss" title="Ss" id="open_archive"><a class="permalink" href="#open_archive">open
+  archive</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_open.html">zip_open(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_fdopen.html">zip_fdopen(3)</a></li>
 </ul>
-<h2 class="Ss" id="find_files">find files</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_name_locate.html">zip_name_locate(3)</a></li>
+<h2 class="Ss" title="Ss" id="find_files"><a class="permalink" href="#find_files">find
+  files</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_name_locate.html">zip_name_locate(3)</a></li>
 </ul>
-<h2 class="Ss" id="read_files">read files</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_fopen.html">zip_fopen(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_fopen_encrypted.html">zip_fopen_encrypted(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_fopen_index_encrypted.html">zip_fopen_index_encrypted(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_fread.html">zip_fread(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_fseek.html">zip_fseek(3)</a>
+<h2 class="Ss" title="Ss" id="read_files"><a class="permalink" href="#read_files">read
+  files</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_fopen_encrypted.html">zip_fopen_encrypted(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_fopen_index_encrypted.html">zip_fopen_index_encrypted(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_fread.html">zip_fread(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_fseek.html">zip_fseek(3)</a>
       (uncompressed files only)</li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_ftell.html">zip_ftell(3)</a>
+  <li><a class="Xr" title="Xr" href="zip_ftell.html">zip_ftell(3)</a>
       (uncompressed files only)</li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_fclose.html">zip_fclose(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_fclose.html">zip_fclose(3)</a></li>
 </ul>
-<h2 class="Ss" id="close_archive">close archive</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_close.html">zip_close(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_discard.html">zip_discard(3)</a></li>
+<h2 class="Ss" title="Ss" id="close_archive"><a class="permalink" href="#close_archive">close
+  archive</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_discard.html">zip_discard(3)</a></li>
 </ul>
-<h2 class="Ss" id="miscellaneous">miscellaneous</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_stat.html">zip_stat(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_get_comment.html">zip_file_get_comment(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_get_external_attributes.html">zip_file_get_external_attributes(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_get_archive_comment.html">zip_get_archive_comment(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_get_archive_flag.html">zip_get_archive_flag(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_get_name.html">zip_get_name(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_get_num_entries.html">zip_get_num_entries(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a></li>
+<h2 class="Ss" title="Ss" id="miscellaneous"><a class="permalink" href="#miscellaneous">miscellaneous</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_stat.html">zip_stat(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_get_comment.html">zip_file_get_comment(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_get_external_attributes.html">zip_file_get_external_attributes(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_get_archive_comment.html">zip_get_archive_comment(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_get_archive_flag.html">zip_get_archive_flag(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_get_name.html">zip_get_name(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_get_num_entries.html">zip_get_num_entries(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a></li>
 </ul>
-<h1 class="Sh" id="CREATING/MODIFYING_ZIP_ARCHIVES">CREATING/MODIFYING ZIP
-  ARCHIVES</h1>
-<h2 class="Ss" id="create/open_archive">create/open archive</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_open.html">zip_open(3)</a></li>
+<h1 class="Sh" title="Sh" id="CREATING/MODIFYING_ZIP_ARCHIVES"><a class="permalink" href="#CREATING/MODIFYING_ZIP_ARCHIVES">CREATING/MODIFYING
+  ZIP ARCHIVES</a></h1>
+<h2 class="Ss" title="Ss" id="create/open_archive"><a class="permalink" href="#create/open_archive">create/open
+  archive</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_open.html">zip_open(3)</a></li>
 </ul>
-<h2 class="Ss" id="add/change_files_and_directories">add/change files and
-  directories</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_dir_add.html">zip_dir_add(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_add.html">zip_file_add(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_replace.html">zip_file_replace(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_set_external_attributes.html">zip_file_set_external_attributes(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_set_encryption.html">zip_file_set_encryption(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_set_mtime.html">zip_file_set_mtime(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_set_file_compression.html">zip_set_file_compression(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_source_buffer.html">zip_source_buffer(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_source_file.html">zip_source_file(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_source_filep.html">zip_source_filep(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_source_free.html">zip_source_free(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_source_function.html">zip_source_function(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_source_zip.html">zip_source_zip(3)</a></li>
+<h2 class="Ss" title="Ss" id="add/change_files_and_directories"><a class="permalink" href="#add/change_files_and_directories">add/change
+  files and directories</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_dir_add.html">zip_dir_add(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_set_external_attributes.html">zip_file_set_external_attributes(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_set_encryption.html">zip_file_set_encryption(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_set_mtime.html">zip_file_set_mtime(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_set_file_compression.html">zip_set_file_compression(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_source_buffer.html">zip_source_buffer(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_source_file.html">zip_source_file(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_source_filep.html">zip_source_filep(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_source_free.html">zip_source_free(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_source_function.html">zip_source_function(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_source_zip.html">zip_source_zip(3)</a></li>
 </ul>
-<h2 class="Ss" id="rename_files">rename files</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_rename.html">zip_rename(3)</a></li>
+<h2 class="Ss" title="Ss" id="rename_files"><a class="permalink" href="#rename_files">rename
+  files</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_rename.html">zip_rename(3)</a></li>
 </ul>
-<h2 class="Ss" id="delete_files">delete files</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_delete.html">zip_delete(3)</a></li>
+<h2 class="Ss" title="Ss" id="delete_files"><a class="permalink" href="#delete_files">delete
+  files</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_delete.html">zip_delete(3)</a></li>
 </ul>
-<h2 class="Ss" id="revert_changes">revert changes</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_unchange.html">zip_unchange(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_unchange_all.html">zip_unchange_all(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_unchange_archive.html">zip_unchange_archive(3)</a></li>
+<h2 class="Ss" title="Ss" id="revert_changes"><a class="permalink" href="#revert_changes">revert
+  changes</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_unchange.html">zip_unchange(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_unchange_all.html">zip_unchange_all(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_unchange_archive.html">zip_unchange_archive(3)</a></li>
 </ul>
-<h2 class="Ss" id="read/modify_extra_fields">read/modify extra fields</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_extra_field_by_id.html">zip_file_extra_field_by_id(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_extra_field_delete.html">zip_file_extra_field_delete(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_extra_field_delete_by_id.html">zip_file_extra_field_delete_by_id(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_extra_field_get.html">zip_file_extra_field_get(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_extra_field_set.html">zip_file_extra_field_set(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_extra_fields_count.html">zip_file_extra_fields_count(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_extra_fields_count_by_id.html">zip_file_extra_fields_count_by_id(3)</a></li>
+<h2 class="Ss" title="Ss" id="read/modify_extra_fields"><a class="permalink" href="#read/modify_extra_fields">read/modify
+  extra fields</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_file_extra_field_by_id.html">zip_file_extra_field_by_id(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_extra_field_delete.html">zip_file_extra_field_delete(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_extra_field_delete_by_id.html">zip_file_extra_field_delete_by_id(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_extra_field_get.html">zip_file_extra_field_get(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_extra_field_set.html">zip_file_extra_field_set(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_extra_fields_count.html">zip_file_extra_fields_count(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_extra_fields_count_by_id.html">zip_file_extra_fields_count_by_id(3)</a></li>
 </ul>
-<h2 class="Ss" id="close_archive">close archive</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_close.html">zip_close(3)</a></li>
+<h2 class="Ss" title="Ss" id="close_archive"><a class="permalink" href="#close_archive">close
+  archive</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a></li>
 </ul>
-<h2 class="Ss" id="miscellaneous">miscellaneous</h2>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_libzip_version.html">zip_libzip_version(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_register_progress_callback_with_state.html">zip_register_progress_callback_with_state(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_set_archive_comment.html">zip_set_archive_comment(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_set_archive_flag.html">zip_set_archive_flag(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_source.html">zip_source(3)</a></li>
+<h2 class="Ss" title="Ss" id="miscellaneous"><a class="permalink" href="#miscellaneous">miscellaneous</a></h2>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_libzip_version.html">zip_libzip_version(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_register_progress_callback_with_state.html">zip_register_progress_callback_with_state(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_set_archive_comment.html">zip_set_archive_comment(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_set_archive_flag.html">zip_set_archive_flag(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a></li>
 </ul>
-<h1 class="Sh" id="ERROR_HANDLING">ERROR HANDLING</h1>
-<ul class="Bl-bullet">
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_error_to_str.html">zip_error_to_str(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_strerror.html">zip_strerror(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_file_strerror.html">zip_file_strerror(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_error_get.html">zip_error_get(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_error_get_sys_type.html">zip_error_get_sys_type(3)</a></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><a class="Xr" href="zip_errors.html">zip_errors(3)</a></li>
+<h1 class="Sh" title="Sh" id="ERROR_HANDLING"><a class="permalink" href="#ERROR_HANDLING">ERROR
+  HANDLING</a></h1>
+<ul class="Bl-bullet Bl-compact">
+  <li><a class="Xr" title="Xr" href="zip_error_strerror.html">zip_error_strerror(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_strerror.html">zip_strerror(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_file_strerror.html">zip_file_strerror(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_get_error.html">zip_get_error(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_error_init_with_code.html">zip_error_init_with_code(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_error_system_type.html">zip_error_system_type(3)</a></li>
+  <li><a class="Xr" title="Xr" href="zip_errors.html">zip_errors(3)</a></li>
 </ul>
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/libzip.man b/man/libzip.man
index d1a997d..0f847ac 100644
--- a/man/libzip.man
+++ b/man/libzip.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" libzip.mdoc -- general overview of available functions
+.\" Copyright (C) 2005-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "LIBZIP" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -232,7 +264,7 @@
 .SH "ERROR HANDLING"
 .TP 4n
 \fB\(bu\fR
-zip_error_to_str(3)
+zip_error_strerror(3)
 .PD 0
 .TP 4n
 \fB\(bu\fR
@@ -242,10 +274,13 @@
 zip_file_strerror(3)
 .TP 4n
 \fB\(bu\fR
-zip_error_get(3)
+zip_get_error(3)
 .TP 4n
 \fB\(bu\fR
-zip_error_get_sys_type(3)
+zip_error_init_with_code(3)
+.TP 4n
+\fB\(bu\fR
+zip_error_system_type(3)
 .TP 4n
 \fB\(bu\fR
 zip_errors(3)
diff --git a/man/libzip.mdoc b/man/libzip.mdoc
index 6c0a281..8fc1a65 100644
--- a/man/libzip.mdoc
+++ b/man/libzip.mdoc
@@ -216,15 +216,17 @@
 .Sh ERROR HANDLING
 .Bl -bullet -compact
 .It
-.Xr zip_error_to_str 3
+.Xr zip_error_strerror 3
 .It
 .Xr zip_strerror 3
 .It
 .Xr zip_file_strerror 3
 .It
-.Xr zip_error_get 3
+.Xr zip_get_error 3
 .It
-.Xr zip_error_get_sys_type 3
+.Xr zip_error_init_with_code 3
+.It
+.Xr zip_error_system_type 3
 .It
 .Xr zip_errors 3
 .El
diff --git a/man/zip_add.html b/man/zip_add.html
index 085c0cf..7b8ef6d 100644
--- a/man/zip_add.html
+++ b/man/zip_add.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_add.mdoc -- add files to zip archive
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ADD(3)</title>
 </head>
@@ -20,61 +46,71 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_add</b>, <b class="Nm">zip_replace</b> &#8212;
-  <span class="Nd">add file to zip archive or replace file in zip archive
-  (obsolete interface)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_add</code>,
+  <code class="Nm" title="Nm">zip_replace</code> &#x2014;
+<div class="Nd" title="Nd">add file to zip archive or replace file in zip
+  archive (obsolete interface)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_add</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *name</var>, <var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_add</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *name</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_replace</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_replace</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_add</b>() is the obsolete version of
-  <a class="Xr" href="zip_file_add.html">zip_file_add(3)</a>. It is the same as
-  calling <a class="Xr" href="zip_file_add.html">zip_file_add(3)</a> with an
-  empty <var class="Ar">flags</var> argument. Similarly, the
-  <b class="Fn">zip_replace</b>() function is the obsolete version of
-  <a class="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>. It is the
-  same as calling
-  <a class="Xr" href="zip_file_replace.html">zip_file_replace(3)</a> with an
-  empty <var class="Ar">flags</var> argument.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
-  <a class="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_add</b>() was added in libzip 0.6. In libzip 0.10 the return
-  type was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_int64_t</var>. It was deprecated in libzip 0.11, use
-  <b class="Fn">zip_file_add</b>() instead.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_add</code>() is the obsolete
+  version of
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>. It is
+  the same as calling
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a> with an
+  empty <var class="Ar" title="Ar">flags</var> argument. Similarly, the
+  <code class="Fn" title="Fn">zip_replace</code>() function is the obsolete
+  version of
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>.
+  It is the same as calling
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>
+  with an empty <var class="Ar" title="Ar">flags</var> argument.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_add</code>() was added in libzip 0.6. In libzip
+  0.10 the return type was changed from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_int64_t</var>. It was deprecated in libzip
+  0.11, use <code class="Fn" title="Fn">zip_file_add</code>() instead.
 <div class="Pp"></div>
-<b class="Fn">zip_replace</b>() was added in libzip 0.6. In libzip 0.10 the type
-  of <var class="Ar">index</var> was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_uint64_t</var>. It was deprecated in libzip 0.11, use
-  <b class="Fn">zip_file_replace</b>() instead.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Fn" title="Fn">zip_replace</code>() was added in libzip 0.6. In
+  libzip 0.10 the type of <var class="Ar" title="Ar">index</var> was changed
+  from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_uint64_t</var>. It was deprecated in libzip
+  0.11, use <code class="Fn" title="Fn">zip_file_replace</code>() instead.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_add.man b/man/zip_add.man
index 51301f4..451645f 100644
--- a/man/zip_add.man
+++ b/man/zip_add.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_add.mdoc -- add files to zip archive
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ADD" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_add_dir.html b/man/zip_add_dir.html
index da0fb8c..46cf777 100644
--- a/man/zip_add_dir.html
+++ b/man/zip_add_dir.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_add_dir.mdoc -- add directory to zip archive
+   Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ADD_DIR(3)</title>
 </head>
@@ -20,41 +46,47 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_add_dir</b> &#8212; <span class="Nd">add directory to zip
-  archive (obsolete interface)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_add_dir</code> &#x2014;
+<div class="Nd" title="Nd">add directory to zip archive (obsolete
+  interface)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_add_dir</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *name</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_add_dir</b>() is the obsolete version of
-  <a class="Xr" href="zip_dir_add.html">zip_dir_add(3)</a>. It is the same as
-  calling <a class="Xr" href="zip_dir_add.html">zip_dir_add(3)</a> with an empty
-  flags argument.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_dir_add.html">zip_dir_add(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_add_dir</b>() was added in libzip 0.8. In libzip 0.10 the
-  return type was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_int64_t</var>. It was deprecated in libzip 0.11, use
-  <b class="Fn">zip_dir_add</b>() instead.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Fn" title="Fn">zip_add_dir</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *name</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_add_dir</code>() is the obsolete
+  version of
+  <a class="Xr" title="Xr" href="zip_dir_add.html">zip_dir_add(3)</a>. It is the
+  same as calling
+  <a class="Xr" title="Xr" href="zip_dir_add.html">zip_dir_add(3)</a> with an
+  empty flags argument.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_dir_add.html">zip_dir_add(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_add_dir</code>() was added in libzip 0.8. In
+  libzip 0.10 the return type was changed from
+  <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_int64_t</var>. It was deprecated in libzip
+  0.11, use <code class="Fn" title="Fn">zip_dir_add</code>() instead.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_add_dir.man b/man/zip_add_dir.man
index b7b6665..90f313d 100644
--- a/man/zip_add_dir.man
+++ b/man/zip_add_dir.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_add_dir.mdoc -- add directory to zip archive
+.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ADD_DIR" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_close.html b/man/zip_close.html
index 7b9f05a..c280b7d 100644
--- a/man/zip_close.html
+++ b/man/zip_close.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_close.mdoc -- close zip archive
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_CLOSE(3)</title>
 </head>
@@ -20,104 +46,109 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_close</b> &#8212; <span class="Nd">close zip archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_close</code> &#x2014;
+<div class="Nd" title="Nd">close zip archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_close</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_close</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_close</b>() function writes any changes made to
-  <var class="Ar">archive</var> to disk. If <var class="Ar">archive</var>
-  contains no files, the file is completely removed (no empty archive is
-  written). If successful, <var class="Ar">archive</var> is freed. If writing
-  fails, <b class="Fn">zip_close</b>() fails; <var class="Ar">archive</var> is
-  left unchanged and must still be freed.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_close</code>() function writes any changes
+  made to <var class="Ar" title="Ar">archive</var> to disk. If
+  <var class="Ar" title="Ar">archive</var> contains no files, the file is
+  completely removed (no empty archive is written). If successful,
+  <var class="Ar" title="Ar">archive</var> is freed. If writing fails,
+  <code class="Fn" title="Fn">zip_close</code>() fails;
+  <var class="Ar" title="Ar">archive</var> is left unchanged and must still be
+  freed.
 <div class="Pp"></div>
 To close and free a zip archive without saving changes, use
-  <a class="Xr" href="zip_discard.html">zip_discard(3)</a>.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  <a class="Xr" title="Xr" href="zip_discard.html">zip_discard(3)</a>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error code in <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_close</b>() will fail if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_EOF</code>]</dt>
-  <dd class="It-tag">Unexpected end-of-file found while reading from a
-    file.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INTERNAL</code>]</dt>
-  <dd class="It-tag">The callback function of an added or replaced file returned
-      an error but failed to report which.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag">The <var class="Ar">path</var> argument is
-      <code class="Dv">NULL</code>.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_NOZIP</code>]</dt>
-  <dd class="It-tag">File is not a zip archive.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_READ</code>]</dt>
-  <dd class="It-tag">A file read failed.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_RENAME</code>]</dt>
-  <dd class="It-tag">A temporary file could not be renamed to its final
-    name.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_SEEK</code>]</dt>
-  <dd class="It-tag">A file seek failed.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_TMPOPEN</code>]</dt>
-  <dd class="It-tag">A temporary file could not be created.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_WRITE</code>]</dt>
-  <dd class="It-tag">A file write failed.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_ZLIB</code>]</dt>
-  <dd class="It-tag">An error occurred while (de)compressing a stream with
-      <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/zlib.html">zlib(3)</a>.</dd>
+  error code in <var class="Ar" title="Ar">archive</var> is set to indicate the
+  error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_close</code>() will fail if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_EOF"><code class="Er" title="Er" id="ZIP_ER_EOF">ZIP_ER_EOF</code></a>]</dt>
+  <dd>Unexpected end-of-file found while reading from a file.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INTERNAL"><code class="Er" title="Er" id="ZIP_ER_INTERNAL">ZIP_ER_INTERNAL</code></a>]</dt>
+  <dd>The callback function of an added or replaced file returned an error but
+      failed to report which.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd>The <var class="Ar" title="Ar">path</var> argument is
+      <code class="Dv" title="Dv">NULL</code>.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_NOZIP"><code class="Er" title="Er" id="ZIP_ER_NOZIP">ZIP_ER_NOZIP</code></a>]</dt>
+  <dd>File is not a zip archive.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_READ"><code class="Er" title="Er" id="ZIP_ER_READ">ZIP_ER_READ</code></a>]</dt>
+  <dd>A file read failed.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_RENAME"><code class="Er" title="Er" id="ZIP_ER_RENAME">ZIP_ER_RENAME</code></a>]</dt>
+  <dd>A temporary file could not be renamed to its final name.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_SEEK"><code class="Er" title="Er" id="ZIP_ER_SEEK">ZIP_ER_SEEK</code></a>]</dt>
+  <dd>A file seek failed.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_TMPOPEN"><code class="Er" title="Er" id="ZIP_ER_TMPOPEN">ZIP_ER_TMPOPEN</code></a>]</dt>
+  <dd>A temporary file could not be created.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_WRITE"><code class="Er" title="Er" id="ZIP_ER_WRITE">ZIP_ER_WRITE</code></a>]</dt>
+  <dd>A file write failed.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_ZLIB"><code class="Er" title="Er" id="ZIP_ER_ZLIB">ZIP_ER_ZLIB</code></a>]</dt>
+  <dd>An error occurred while (de)compressing a stream with
+      <a class="Xr" title="Xr" href="zlib.html">zlib(3)</a>.</dd>
 </dl>
 Additionally, any errors returned by the callback function for added or replaced
   files will be passed back.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_discard.html">zip_discard(3)</a>,
-  <a class="Xr" href="zip_error_get.html">zip_error_get(3)</a>,
-  <a class="Xr" href="zip_fdopen.html">zip_fdopen(3)</a>,
-  <a class="Xr" href="zip_open.html">zip_open(3)</a>,
-  <a class="Xr" href="zip_register_progress_callback_with_state.html">zip_register_progress_callback_with_state(3)</a>,
-  <a class="Xr" href="zip_strerror.html">zip_strerror(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_close</b>() was added in libzip 0.6.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_discard.html">zip_discard(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fdopen.html">zip_fdopen(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_error.html">zip_get_error(3)</a>,
+  <a class="Xr" title="Xr" href="zip_open.html">zip_open(3)</a>,
+  <a class="Xr" title="Xr" href="zip_register_progress_callback_with_state.html">zip_register_progress_callback_with_state(3)</a>,
+  <a class="Xr" title="Xr" href="zip_strerror.html">zip_strerror(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_close</code>() was added in libzip 0.6.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_close.man b/man/zip_close.man
index 0c4ef60..8f5aad8 100644
--- a/man/zip_close.man
+++ b/man/zip_close.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_close.mdoc -- close zip archive
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_CLOSE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -90,8 +122,8 @@
 .SH "SEE ALSO"
 libzip(3),
 zip_discard(3),
-zip_error_get(3),
 zip_fdopen(3),
+zip_get_error(3),
 zip_open(3),
 zip_register_progress_callback_with_state(3),
 zip_strerror(3)
diff --git a/man/zip_close.mdoc b/man/zip_close.mdoc
index 5a8450c..65e8059 100644
--- a/man/zip_close.mdoc
+++ b/man/zip_close.mdoc
@@ -104,8 +104,8 @@
 .Sh SEE ALSO
 .Xr libzip 3 ,
 .Xr zip_discard 3 ,
-.Xr zip_error_get 3 ,
 .Xr zip_fdopen 3 ,
+.Xr zip_get_error 3 ,
 .Xr zip_open 3 ,
 .Xr zip_register_progress_callback_with_state 3 ,
 .Xr zip_strerror 3
diff --git a/man/zip_delete.html b/man/zip_delete.html
index 74b537f..2836ed7 100644
--- a/man/zip_delete.html
+++ b/man/zip_delete.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_delete.mdoc -- delete files from zip archive
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_DELETE(3)</title>
 </head>
@@ -20,50 +46,56 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_delete</b> &#8212; <span class="Nd">delete file from zip
-  archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_delete</code> &#x2014;
+<div class="Nd" title="Nd">delete file from zip archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_delete</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
+<code class="Fn" title="Fn">zip_delete</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
   index</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The file at position <var class="Ar">index</var> in the zip archive
-  <var class="Ar">archive</var> is marked as deleted.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The file at position <var class="Ar" title="Ar">index</var> in the zip archive
+  <var class="Ar" title="Ar">archive</var> is marked as deleted.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error code in <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_delete</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>.</dd>
+  error code in <var class="Ar" title="Ar">archive</var> is set to indicate the
+  error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_delete</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_unchange.html">zip_unchange(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_delete</b>() was added in libzip 0.6. In libzip 0.10 the type
-  of <var class="Ar">index</var> was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_uint64_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_unchange.html">zip_unchange(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_delete</code>() was added in libzip 0.6. In
+  libzip 0.10 the type of <var class="Ar" title="Ar">index</var> was changed
+  from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_uint64_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_delete.man b/man/zip_delete.man
index 2a7404f..d607c1e 100644
--- a/man/zip_delete.man
+++ b/man/zip_delete.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_delete.mdoc -- delete files from zip archive
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_DELETE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_dir_add.html b/man/zip_dir_add.html
index 885e4c2..c8ff907 100644
--- a/man/zip_dir_add.html
+++ b/man/zip_dir_add.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_dir_add.mdoc -- add directory to zip archive
+   Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_DIR_ADD(3)</title>
 </head>
@@ -20,82 +46,86 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_dir_add</b> &#8212; <span class="Nd">add directory to zip
-  archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_dir_add</code> &#x2014;
+<div class="Nd" title="Nd">add directory to zip archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_dir_add</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *name</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_dir_add</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *name</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_dir_add</b>() adds a directory to a zip archive.
-  The argument <var class="Ar">archive</var> specifies the zip archive to which
-  the directory should be added. <var class="Ar">name</var> is the directory's
-  name in the zip archive. The <var class="Ar">flags</var> argument can be any
-  of:
-<dl class="Bl-tag" style="margin-left: 20.00ex;">
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_GUESS</code></dt>
-  <dd class="It-tag">Guess encoding of <var class="Ar">name</var>
-    (default).</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_UTF_8</code></dt>
-  <dd class="It-tag">Interpret <var class="Ar">name</var> as UTF-8.</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_CP437</code></dt>
-  <dd class="It-tag">Interpret <var class="Ar">name</var> as code page 437
-      (CP-437).</dd>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_dir_add</code>() adds a directory
+  to a zip archive. The argument <var class="Ar" title="Ar">archive</var>
+  specifies the zip archive to which the directory should be added.
+  <var class="Ar" title="Ar">name</var> is the directory's name in the zip
+  archive. The <var class="Ar" title="Ar">flags</var> argument can be any of:
+<dl class="Bl-tag" style="margin-left: 27.00ex;">
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_GUESS"><code class="Dv" title="Dv" id="ZIP_FL_ENC_GUESS">ZIP_FL_ENC_GUESS</code></a></dt>
+  <dd>Guess encoding of <var class="Ar" title="Ar">name</var> (default).</dd>
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_UTF_8"><code class="Dv" title="Dv" id="ZIP_FL_ENC_UTF_8">ZIP_FL_ENC_UTF_8</code></a></dt>
+  <dd>Interpret <var class="Ar" title="Ar">name</var> as UTF-8.</dd>
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_CP437"><code class="Dv" title="Dv" id="ZIP_FL_ENC_CP437">ZIP_FL_ENC_CP437</code></a></dt>
+  <dd>Interpret <var class="Ar" title="Ar">name</var> as code page 437
+    (CP-437).</dd>
 </dl>
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the index of the new entry in the archive is
   returned. Otherwise, -1 is returned and the error code in
-  <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_dir_add</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_EXISTS</code>]</dt>
-  <dd class="It-tag">There is already an entry called <var class="Ar">name</var>
-      in the archive.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">archive</var> or <var class="Ar">name</var>
-      are <code class="Dv">NULL</code>, or invalid UTF-8 encoded file
-    names.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
+  <var class="Ar" title="Ar">archive</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_dir_add</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_EXISTS"><code class="Er" title="Er" id="ZIP_ER_EXISTS">ZIP_ER_EXISTS</code></a>]</dt>
+  <dd>There is already an entry called <var class="Ar" title="Ar">name</var> in
+      the archive.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">archive</var> or
+      <var class="Ar" title="Ar">name</var> are
+      <code class="Dv" title="Dv">NULL</code>, or invalid UTF-8 encoded file
+      names.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_add.html">zip_add(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_dir_add</b>() was added in libzip 0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;
-<h1 class="Sh" id="CAVEATS">CAVEATS</h1>
-<b class="Fn">zip_dir_add</b>() does not look in the file system, it just
-  creates one entry in the archive for the provided name.</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_dir_add</code>() was added in libzip 0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;
+<h1 class="Sh" title="Sh" id="CAVEATS"><a class="permalink" href="#CAVEATS">CAVEATS</a></h1>
+<code class="Fn" title="Fn">zip_dir_add</code>() does not look in the file
+  system, it just creates one entry in the archive for the provided name.</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_dir_add.man b/man/zip_dir_add.man
index 951eac2..54ff27c 100644
--- a/man/zip_dir_add.man
+++ b/man/zip_dir_add.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_dir_add.mdoc -- add directory to zip archive
+.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_DIR_ADD" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -69,7 +101,7 @@
 Required memory could not be allocated.
 .SH "SEE ALSO"
 libzip(3),
-zip_add(3)
+zip_file_add(3)
 .SH "HISTORY"
 \fBzip_dir_add\fR()
 was added in libzip 0.11.
diff --git a/man/zip_dir_add.mdoc b/man/zip_dir_add.mdoc
index 82f3fb1..63300bf 100644
--- a/man/zip_dir_add.mdoc
+++ b/man/zip_dir_add.mdoc
@@ -93,7 +93,7 @@
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_add 3
+.Xr zip_file_add 3
 .Sh HISTORY
 .Fn zip_dir_add
 was added in libzip 0.11.
diff --git a/man/zip_discard.html b/man/zip_discard.html
index 36d34d9..cf530f6 100644
--- a/man/zip_discard.html
+++ b/man/zip_discard.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_discard.mdoc -- close zip archive and discard changes
+   Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_DISCARD(3)</title>
 </head>
@@ -20,36 +46,38 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_discard</b> &#8212; <span class="Nd">close zip archive and
-  discard changes</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_discard</code> &#x2014;
+<div class="Nd" title="Nd">close zip archive and discard changes</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_discard</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_discard</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_discard</b>() function closes
-  <var class="Ar">archive</var> and frees the memory allocated for it. Any
-  changes to the archive are not written to disk and discarded.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_close.html">zip_close(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_discard</b>() was added in libzip 0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_discard</code>() function closes
+  <var class="Ar" title="Ar">archive</var> and frees the memory allocated for
+  it. Any changes to the archive are not written to disk and discarded.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_discard</code>() was added in libzip 0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_discard.man b/man/zip_discard.man
index 57fb433..591f773 100644
--- a/man/zip_discard.man
+++ b/man/zip_discard.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_discard.mdoc -- close zip archive and discard changes
+.\" Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_DISCARD" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_clear.html b/man/zip_error_clear.html
index 1b42f12..afc3d67 100644
--- a/man/zip_error_clear.html
+++ b/man/zip_error_clear.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_clear.mdoc -- clear error state for archive or file
+   Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_CLEAR(3)</title>
 </head>
@@ -20,44 +46,48 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_clear</b>, <b class="Nm">zip_file_error_clear</b>
-  &#8212; <span class="Nd">clear error state for archive or file</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_clear</code>,
+  <code class="Nm" title="Nm">zip_file_error_clear</code> &#x2014;
+<div class="Nd" title="Nd">clear error state for archive or file</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_error_clear</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_error_clear</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>);
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_file_error_clear</b>(<var class="Fa" style="white-space: nowrap;">zip_file_t
+<code class="Fn" title="Fn">zip_file_error_clear</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_file_t
   *file</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_error_clear</b>() function clears the error state for the
-  zip archive <var class="Ar">archive</var>.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_error_clear</code>() function clears the
+  error state for the zip archive <var class="Ar" title="Ar">archive</var>.
 <div class="Pp"></div>
-The <b class="Fn">zip_file_error_clear</b>() function does the same for the zip
-  file <var class="Ar">file</var>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_get.html">zip_error_get(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_clear</b>() and <b class="Fn">zip_file_error_clear</b>()
-  were added in libzip 0.8.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+The <code class="Fn" title="Fn">zip_file_error_clear</code>() function does the
+  same for the zip file <var class="Ar" title="Ar">file</var>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_error.html">zip_get_error(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_clear</code>() and
+  <code class="Fn" title="Fn">zip_file_error_clear</code>() were added in libzip
+  0.8.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_clear.man b/man/zip_error_clear.man
index 0573ac3..5d0c796 100644
--- a/man/zip_error_clear.man
+++ b/man/zip_error_clear.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_clear.mdoc -- clear error state for archive or file
+.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_CLEAR" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -35,7 +67,7 @@
 \fIfile\fR.
 .SH "SEE ALSO"
 libzip(3),
-zip_error_get(3)
+zip_get_error(3)
 .SH "HISTORY"
 \fBzip_error_clear\fR()
 and
diff --git a/man/zip_error_clear.mdoc b/man/zip_error_clear.mdoc
index 82a8437..9fe306e 100644
--- a/man/zip_error_clear.mdoc
+++ b/man/zip_error_clear.mdoc
@@ -56,7 +56,7 @@
 .Ar file .
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_error_get 3
+.Xr zip_get_error 3
 .Sh HISTORY
 .Fn zip_error_clear
 and
diff --git a/man/zip_error_code_system.html b/man/zip_error_code_system.html
index 63d40fe..d2d48cb 100644
--- a/man/zip_error_code_system.html
+++ b/man/zip_error_code_system.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_code_system.mdoc -- get system error part of zip_error
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_CODE_SYSTEM(3)</title>
 </head>
@@ -20,38 +46,42 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_code_system</b> &#8212; <span class="Nd">get operating
-  system error part of zip_error</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_code_system</code> &#x2014;
+<div class="Nd" title="Nd">get operating system error part of zip_error</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_error_code_system</b>(<var class="Fa" style="white-space: nowrap;">const
+<code class="Fn" title="Fn">zip_error_code_system</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">const
   zip_error_t *ze</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_error_code_system</b>() function returns the system
-  specific part of the error from the zip_error error <var class="Ar">ze</var>.
-  For finding out what system reported the error, use
-  <a class="Xr" href="zip_error_system_type.html">zip_error_system_type(3)</a>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_code_zip.html">zip_error_code_zip(3)</a>,
-  <a class="Xr" href="zip_error_system_type.html">zip_error_system_type(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_code_system</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_error_code_system</code>() function returns
+  the system specific part of the error from the zip_error error
+  <var class="Ar" title="Ar">ze</var>. For finding out what system reported the
+  error, use
+  <a class="Xr" title="Xr" href="zip_error_system_type.html">zip_error_system_type(3)</a>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_code_zip.html">zip_error_code_zip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_system_type.html">zip_error_system_type(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_code_system</code>() was added in libzip
+  1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_code_system.man b/man/zip_error_code_system.man
index b7e8caa..4eb0cad 100644
--- a/man/zip_error_code_system.man
+++ b/man/zip_error_code_system.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_code_system.mdoc -- get system error part of zip_error
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_CODE_SYSTEM" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_code_zip.html b/man/zip_error_code_zip.html
index 71ea78a..8de9ae6 100644
--- a/man/zip_error_code_zip.html
+++ b/man/zip_error_code_zip.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_code_zip.mdoc -- get libzip error part of zip_error
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_CODE_ZIP(3)</title>
 </head>
@@ -20,35 +46,38 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_code_zip</b> &#8212; <span class="Nd">get libzip error
-  part of zip_error</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_code_zip</code> &#x2014;
+<div class="Nd" title="Nd">get libzip error part of zip_error</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_error_code_zip</b>(<var class="Fa" style="white-space: nowrap;">const
+<code class="Fn" title="Fn">zip_error_code_zip</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">const
   zip_error_t *ze</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_error_code_zip</b>() function returns the libzip specific
-  part of the error from the zip_error error <var class="Ar">ze</var>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_code_zip</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_error_code_zip</code>() function returns the
+  libzip specific part of the error from the zip_error error
+  <var class="Ar" title="Ar">ze</var>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_code_zip</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_code_zip.man b/man/zip_error_code_zip.man
index 8f4b5b1..2a53981 100644
--- a/man/zip_error_code_zip.man
+++ b/man/zip_error_code_zip.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_code_zip.mdoc -- get libzip error part of zip_error
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_CODE_ZIP" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_fini.html b/man/zip_error_fini.html
index 36e1ce1..627421a 100644
--- a/man/zip_error_fini.html
+++ b/man/zip_error_fini.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_fini.mdoc -- clean up zip_error
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_FINI(3)</title>
 </head>
@@ -20,35 +46,38 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_fini</b> &#8212; <span class="Nd">clean up zip_error
-  structure</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_fini</code> &#x2014;
+<div class="Nd" title="Nd">clean up zip_error structure</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_error_fini</b>(<var class="Fa" style="white-space: nowrap;">zip_error_t
+<code class="Fn" title="Fn">zip_error_fini</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
   *ze</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_error_fini</b>() function cleans up and frees internally
-  allocated memory of the zip_error pointed to by <var class="Ar">ze</var>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_init.html">zip_error_init(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_fini</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_error_fini</code>() function cleans up and
+  frees internally allocated memory of the zip_error pointed to by
+  <var class="Ar" title="Ar">ze</var>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_init.html">zip_error_init(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_fini</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_fini.man b/man/zip_error_fini.man
index bf5063d..2e4a1ae 100644
--- a/man/zip_error_fini.man
+++ b/man/zip_error_fini.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_fini.mdoc -- clean up zip_error
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_FINI" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_get.html b/man/zip_error_get.html
index a061235..c70a8eb 100644
--- a/man/zip_error_get.html
+++ b/man/zip_error_get.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_get.mdoc -- get error codes for archive or file
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_GET(3)</title>
 </head>
@@ -20,35 +46,40 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_get</b>, <b class="Nm">zip_file_error_get</b> &#8212;
-  <span class="Nd">get error codes for archive or file (obsolete
-  interface)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_get</code>,
+  <code class="Nm" title="Nm">zip_file_error_get</code> &#x2014;
+<div class="Nd" title="Nd">get error codes for archive or file (obsolete
+  interface)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_error_get</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">int *zep</var>,
-  <var class="Fa" style="white-space: nowrap;">int *sep</var>);
+<code class="Fn" title="Fn">zip_error_get</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  *zep</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  *sep</var>);
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_file_error_get</b>(<var class="Fa" style="white-space: nowrap;">zip_file_t
-  *file</var>, <var class="Fa" style="white-space: nowrap;">int *zep</var>,
-  <var class="Fa" style="white-space: nowrap;">int *sep</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The functions <b class="Fn">zip_error_get</b>() and
-  <b class="Fn">zip_file_error_get</b>() are deprecated. Use
-  <a class="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>,
-  <a class="Xr" href="zip_error_code_zip.html">zip_error_code_zip(3)</a>,
-  <a class="Xr" href="zip_file_get_error.html">zip_file_get_error(3)</a>, and
-  <a class="Xr" href="zip_get_error.html">zip_get_error(3)</a> instead.
+<code class="Fn" title="Fn">zip_file_error_get</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_file_t
+  *file</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  *zep</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  *sep</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The functions <code class="Fn" title="Fn">zip_error_get</code>() and
+  <code class="Fn" title="Fn">zip_file_error_get</code>() are deprecated. Use
+  <a class="Xr" title="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_code_zip.html">zip_error_code_zip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_get_error.html">zip_file_get_error(3)</a>,
+  and <a class="Xr" title="Xr" href="zip_get_error.html">zip_get_error(3)</a>
+  instead.
 <div class="Pp"></div>
-For <b class="Fn">zip_error_get</b>(), replace
+For <code class="Fn" title="Fn">zip_error_get</code>(), replace
 <div class="Pp"></div>
 <div class="Bd" style="margin-left: 5.00ex;">
 <pre class="Li">
@@ -66,7 +97,7 @@
 se = zip_error_code_system(error);
 </pre>
 </div>
-For <b class="Fn">zip_file_error_get</b>(), replace
+For <code class="Fn" title="Fn">zip_file_error_get</code>(), replace
 <div class="Pp"></div>
 <div class="Bd" style="margin-left: 5.00ex;">
 <pre class="Li">
@@ -84,31 +115,34 @@
 se = zip_error_code_system(error);
 </pre>
 </div>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>,
-  <a class="Xr" href="zip_error_code_zip.html">zip_error_code_zip(3)</a>,
-  <a class="Xr" href="zip_file_get_error.html">zip_file_get_error(3)</a>,
-  <a class="Xr" href="zip_get_error.html">zip_get_error(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_get</b>() was added in libzip 0.6. It was deprecated in
-  libzip 1.0, use <b class="Fn">zip_get_error</b>(),
-  <b class="Fn">zip_error_code_zip</b>(), /
-  <b class="Fn">zip_error_code_system</b>() instead.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_code_zip.html">zip_error_code_zip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_get_error.html">zip_file_get_error(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_error.html">zip_get_error(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_get</code>() was added in libzip 0.6. It
+  was deprecated in libzip 1.0, use
+  <code class="Fn" title="Fn">zip_get_error</code>(),
+  <code class="Fn" title="Fn">zip_error_code_zip</code>(), /
+  <code class="Fn" title="Fn">zip_error_code_system</code>() instead.
 <div class="Pp"></div>
-<b class="Fn">zip_file_error_get</b>() was added in libzip 0.6. It was
-  deprecated in libzip 1.0, use <b class="Fn">zip_file_get_error</b>(),
-  <b class="Fn">zip_error_code_zip</b>(), /
-  <b class="Fn">zip_error_code_system</b>() instead.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Fn" title="Fn">zip_file_error_get</code>() was added in libzip 0.6.
+  It was deprecated in libzip 1.0, use
+  <code class="Fn" title="Fn">zip_file_get_error</code>(),
+  <code class="Fn" title="Fn">zip_error_code_zip</code>(), /
+  <code class="Fn" title="Fn">zip_error_code_system</code>() instead.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_get.man b/man/zip_error_get.man
index c486936..43e2c06 100644
--- a/man/zip_error_get.man
+++ b/man/zip_error_get.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_get.mdoc -- get error codes for archive or file
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_GET" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_get_sys_type.html b/man/zip_error_get_sys_type.html
index 78c5ea2..e97fcab 100644
--- a/man/zip_error_get_sys_type.html
+++ b/man/zip_error_get_sys_type.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_get_sys_type.mdoc -- get type of error
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_GET_SYS_TYPE(3)</title>
 </head>
@@ -20,23 +46,26 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_get_sys_type</b> &#8212; <span class="Nd">get type of
-  system error code (obsolete interface)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_get_sys_type</code> &#x2014;
+<div class="Nd" title="Nd">get type of system error code (obsolete
+  interface)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_error_get_sys_type</b>(<var class="Fa" style="white-space: nowrap;">int
+<code class="Fn" title="Fn">zip_error_get_sys_type</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">int
   ze</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_error_get_sys_type</b>() is deprecated; use
-  <a class="Xr" href="zip_error_init_with_code.html">zip_error_init_with_code(3)</a>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_error_get_sys_type</code>() is
+  deprecated; use
+  <a class="Xr" title="Xr" href="zip_error_init_with_code.html">zip_error_init_with_code(3)</a>
   and
-  <a class="Xr" href="zip_error_system_type.html">zip_error_system_type(3)</a>
+  <a class="Xr" title="Xr" href="zip_error_system_type.html">zip_error_system_type(3)</a>
   instead.
 <div class="Pp"></div>
 Replace
@@ -55,23 +84,24 @@
 int i = zip_error_system_type(&amp;error);
 </pre>
 </div>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_init_with_code.html">zip_error_init_with_code(3)</a>,
-  <a class="Xr" href="zip_error_system_type.html">zip_error_system_type(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_get_sys_type</b>() was added in libzip 0.6. It was
-  deprecated in libzip 1.0, use <b class="Fn">zip_error_system_type</b>()
-  instead.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_init_with_code.html">zip_error_init_with_code(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_system_type.html">zip_error_system_type(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_get_sys_type</code>() was added in libzip
+  0.6. It was deprecated in libzip 1.0, use
+  <code class="Fn" title="Fn">zip_error_system_type</code>() instead.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_get_sys_type.man b/man/zip_error_get_sys_type.man
index 4ad9706..753a94c 100644
--- a/man/zip_error_get_sys_type.man
+++ b/man/zip_error_get_sys_type.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_get_sys_type.mdoc -- get type of error
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_GET_SYS_TYPE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_init.html b/man/zip_error_init.html
index 021ff85..abc047c 100644
--- a/man/zip_error_init.html
+++ b/man/zip_error_init.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_init.mdoc -- initialize zip_error
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_INIT(3)</title>
 </head>
@@ -20,47 +46,54 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_init</b>, <b class="Nm">zip_error_init_with_code</b>
-  &#8212; <span class="Nd">initialize zip_error structure</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_init</code>,
+  <code class="Nm" title="Nm">zip_error_init_with_code</code> &#x2014;
+<div class="Nd" title="Nd">initialize zip_error structure</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_error_init</b>(<var class="Fa" style="white-space: nowrap;">zip_error_t
+<code class="Fn" title="Fn">zip_error_init</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
   *error</var>);
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_error_init_with_code</b>(<var class="Fa" style="white-space: nowrap;">zip_error_t
-  *error</var>, <var class="Fa" style="white-space: nowrap;">int ze</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_error_init</b>() function initializes the zip_error
-  pointed to by <var class="Ar">error</var>. <var class="Ar">*error</var> must
-  be allocated before calling <b class="Fn">zip_error_init</b>().
+<code class="Fn" title="Fn">zip_error_init_with_code</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
+  *error</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  ze</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_error_init</code>() function initializes the
+  zip_error pointed to by <var class="Ar" title="Ar">error</var>.
+  <var class="Ar" title="Ar">*error</var> must be allocated before calling
+  <code class="Fn" title="Fn">zip_error_init</code>().
 <div class="Pp"></div>
-The <b class="Fn">zip_error_init_with_code</b>() function does the same, but
-  additionally sets the zip error code to <var class="Ar">ze</var> and sets the
-  system error code to the current <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/errno.html">errno(3)</a>
-  value, if appropriate.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_fini.html">zip_error_fini(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_init</b>() and
-  <b class="Fn">zip_error_init_with_code</b>() were added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+The <code class="Fn" title="Fn">zip_error_init_with_code</code>() function does
+  the same, but additionally sets the zip error code to
+  <var class="Ar" title="Ar">ze</var> and sets the system error code to the
+  current <a class="Xr" title="Xr" href="errno.html">errno(3)</a> value, if
+  appropriate.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_fini.html">zip_error_fini(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_init</code>() and
+  <code class="Fn" title="Fn">zip_error_init_with_code</code>() were added in
+  libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_init.man b/man/zip_error_init.man
index 9caf1d2..7623e98 100644
--- a/man/zip_error_init.man
+++ b/man/zip_error_init.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_init.mdoc -- initialize zip_error
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_INIT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_set.html b/man/zip_error_set.html
index d7ec9c2..deed849 100644
--- a/man/zip_error_set.html
+++ b/man/zip_error_set.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_set.mdoc -- set zip_error
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_SET(3)</title>
 </head>
@@ -20,41 +46,46 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_set</b> &#8212; <span class="Nd">fill in zip_error
-  structure</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_set</code> &#x2014;
+<div class="Nd" title="Nd">fill in zip_error structure</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_error_set</b>(<var class="Fa" style="white-space: nowrap;">zip_error_t
-  *ze</var>, <var class="Fa" style="white-space: nowrap;">int le</var>,
-  <var class="Fa" style="white-space: nowrap;">int se</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_error_set</b>() function sets the zip_error pointed to by
-  <var class="Ar">ze</var> to the libzip error code <var class="Ar">le</var> and
-  the system error code <var class="Ar">se</var>.
+<code class="Fn" title="Fn">zip_error_set</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
+  *ze</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  le</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  se</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_error_set</code>() function sets the
+  zip_error pointed to by <var class="Ar" title="Ar">ze</var> to the libzip
+  error code <var class="Ar" title="Ar">le</var> and the system error code
+  <var class="Ar" title="Ar">se</var>.
 <div class="Pp"></div>
-<var class="Ar">ze</var> must be allocated and initialized with
-  <a class="Xr" href="zip_error_fini.html">zip_error_fini(3)</a> before calling
-  <b class="Fn">zip_error</b>(<var class="Fa">set</var>).
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_init.html">zip_error_init(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_set</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<var class="Ar" title="Ar">ze</var> must be allocated and initialized with
+  <a class="Xr" title="Xr" href="zip_error_fini.html">zip_error_fini(3)</a>
+  before calling
+  <code class="Fn" title="Fn">zip_error</code>(<var class="Fa" title="Fa">set</var>).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_init.html">zip_error_init(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_set</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_set.man b/man/zip_error_set.man
index 35c46dd..250b97f 100644
--- a/man/zip_error_set.man
+++ b/man/zip_error_set.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_set.mdoc -- set zip_error
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_SET" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_strerror.html b/man/zip_error_strerror.html
index fab4b36..8db05d2 100644
--- a/man/zip_error_strerror.html
+++ b/man/zip_error_strerror.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_strerror.mdoc -- create human-readable version of zip_error
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_STRERROR(3)</title>
 </head>
@@ -20,39 +46,43 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_strerror</b> &#8212; <span class="Nd">create
-  human-readable string for zip_error</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_strerror</code> &#x2014;
+<div class="Nd" title="Nd">create human-readable string for zip_error</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">const char *</var>
+<var class="Ft" title="Ft">const char *</var>
 <br/>
-<b class="Fn">zip_error_strerror</b>(<var class="Fa" style="white-space: nowrap;">zip_error_t
+<code class="Fn" title="Fn">zip_error_strerror</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
   *ze</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_error_strerror</b>() function returns an error message
-  string corresponding to <var class="Ar">ze</var> like
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/strerror.html">strerror(3)</a>. This string will stay
-  valid until the next call to <b class="Fn">zip_error_strerror</b>() or until
-  <a class="Xr" href="zip_error_fini.html">zip_error_fini(3)</a> is called.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/strerror.html">strerror(3)</a>,
-  <a class="Xr" href="zip_error_fini.html">zip_error_fini(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_strerror</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_error_strerror</code>() function returns an
+  error message string corresponding to <var class="Ar" title="Ar">ze</var> like
+  <a class="Xr" title="Xr" href="strerror.html">strerror(3)</a>. This string
+  will stay valid until the next call to
+  <code class="Fn" title="Fn">zip_error_strerror</code>() or until
+  <a class="Xr" title="Xr" href="zip_error_fini.html">zip_error_fini(3)</a> is
+  called.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="strerror.html">strerror(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_fini.html">zip_error_fini(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_strerror</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_strerror.man b/man/zip_error_strerror.man
index ce47153..f1396ce 100644
--- a/man/zip_error_strerror.man
+++ b/man/zip_error_strerror.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_strerror.mdoc -- create human-readable version of zip_error
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_STRERROR" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_system_type.html b/man/zip_error_system_type.html
index 11be9f9..ddbdab6 100644
--- a/man/zip_error_system_type.html
+++ b/man/zip_error_system_type.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_system_type.mdoc -- return system type for error
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_SYSTEM_TYPE(3)</title>
 </head>
@@ -20,53 +46,57 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_system_type</b> &#8212; <span class="Nd">return type of
-  system error</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_system_type</code> &#x2014;
+<div class="Nd" title="Nd">return type of system error</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_error_system_type</b>(<var class="Fa" style="white-space: nowrap;">const
+<code class="Fn" title="Fn">zip_error_system_type</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">const
   zip_error_t *ze</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_error_system_type</b>() function returns the type of the
-  system specific part for the zip_error <var class="Ar">ze</var>. Currently,
-  the following system types are defined:
-<dl class="Bl-tag" style="margin-left: 11.00ex;">
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><code class="Dv">ZIP_ET_NONE</code></dt>
-  <dd class="It-tag">System specific part of <var class="Ar">ze</var> is
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_error_system_type</code>() function returns
+  the type of the system specific part for the zip_error
+  <var class="Ar" title="Ar">ze</var>. Currently, the following system types are
+  defined:
+<dl class="Bl-tag" style="margin-left: 16.20ex;">
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#ZIP_ET_NONE"><code class="Dv" title="Dv" id="ZIP_ET_NONE">ZIP_ET_NONE</code></a></dt>
+  <dd>System specific part of <var class="Ar" title="Ar">ze</var> is
     unused.</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><code class="Dv">ZIP_ET_SYS</code></dt>
-  <dd class="It-tag">System specific part of <var class="Ar">ze</var> is an
-      <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/errno.html">errno(2)</a>.</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><code class="Dv">ZIP_ET_ZLIB</code></dt>
-  <dd class="It-tag">System specific part of <var class="Ar">ze</var> is a
-      <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/zlib.html">zlib(3)</a> error.</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#ZIP_ET_SYS"><code class="Dv" title="Dv" id="ZIP_ET_SYS">ZIP_ET_SYS</code></a></dt>
+  <dd>System specific part of <var class="Ar" title="Ar">ze</var> is an
+      <a class="Xr" title="Xr" href="errno.html">errno(2)</a>.</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#ZIP_ET_ZLIB"><code class="Dv" title="Dv" id="ZIP_ET_ZLIB">ZIP_ET_ZLIB</code></a></dt>
+  <dd>System specific part of <var class="Ar" title="Ar">ze</var> is a
+      <a class="Xr" title="Xr" href="zlib.html">zlib(3)</a> error.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_system_type</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_system_type</code>() was added in libzip
+  1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_system_type.man b/man/zip_error_system_type.man
index d240a9e..0d55f4a 100644
--- a/man/zip_error_system_type.man
+++ b/man/zip_error_system_type.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_system_type.mdoc -- return system type for error
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_SYSTEM_TYPE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_to_data.html b/man/zip_error_to_data.html
index 8a6a0bb..cc10035 100644
--- a/man/zip_error_to_data.html
+++ b/man/zip_error_to_data.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_to_data.mdoc -- create error data for ZIP_SOURCE_ERROR
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_TO_DATA(3)</title>
 </head>
@@ -20,43 +46,49 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_to_data</b> &#8212; <span class="Nd">convert zip_error
-  to return value suitable for ZIP_SOURCE_ERROR</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_to_data</code> &#x2014;
+<div class="Nd" title="Nd">convert zip_error to return value suitable for
+  ZIP_SOURCE_ERROR</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_error_to_data</b>(<var class="Fa" style="white-space: nowrap;">const
-  zip_error_t *ze</var>, <var class="Fa" style="white-space: nowrap;">void
-  *data</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
+<code class="Fn" title="Fn">zip_error_to_data</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">const
+  zip_error_t *ze</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">void *data</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
   len</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-<b class="Fn">zip_error_to_data</b>() function converts the zip_error
-  <var class="Ar">ze</var> into data suitable as return value for
-  <code class="Dv">ZIP_SOURCE_ERROR</code>. The data is written into the buffer
-  <var class="Ar">data</var> of size <var class="Ar">len</var>. If the buffer is
-  not large enough to hold 2 ints, an error is returned.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-<b class="Fn">zip_error_to_data</b>() returns 2*(sizeof int) on success, and -1
-  on error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source_function.html">zip_source_function(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_to_data</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">zip_error_to_data</code>() function converts the
+  zip_error <var class="Ar" title="Ar">ze</var> into data suitable as return
+  value for <code class="Dv" title="Dv">ZIP_SOURCE_ERROR</code>. The data is
+  written into the buffer <var class="Ar" title="Ar">data</var> of size
+  <var class="Ar" title="Ar">len</var>. If the buffer is not large enough to
+  hold 2 ints, an error is returned.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+<code class="Fn" title="Fn">zip_error_to_data</code>() returns 2*(sizeof int) on
+  success, and -1 on error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_function.html">zip_source_function(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_to_data</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_to_data.man b/man/zip_error_to_data.man
index 546184c..f655129 100644
--- a/man/zip_error_to_data.man
+++ b/man/zip_error_to_data.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_to_data.mdoc -- create error data for ZIP_SOURCE_ERROR
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_TO_DATA" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_error_to_str.html b/man/zip_error_to_str.html
index c247295..680b8ff 100644
--- a/man/zip_error_to_str.html
+++ b/man/zip_error_to_str.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_error_to_str.mdoc -- get string representation of zip error code
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERROR_TO_STR(3)</title>
 </head>
@@ -20,24 +46,30 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_error_to_str</b> &#8212; <span class="Nd">get string
-  representation of zip error (obsolete interface)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_error_to_str</code> &#x2014;
+<div class="Nd" title="Nd">get string representation of zip error (obsolete
+  interface)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_error_to_str</b>(<var class="Fa" style="white-space: nowrap;">char
-  *buf</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  len</var>, <var class="Fa" style="white-space: nowrap;">int ze</var>,
-  <var class="Fa" style="white-space: nowrap;">int se</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_error_to_str</b>() is deprecated; use
-  <a class="Xr" href="zip_error_init_with_code.html">zip_error_init_with_code(3)</a>
-  and <a class="Xr" href="zip_error_strerror.html">zip_error_strerror(3)</a>
+<code class="Fn" title="Fn">zip_error_to_str</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">char
+  *buf</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  len</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  ze</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  se</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_error_to_str</code>() is
+  deprecated; use
+  <a class="Xr" title="Xr" href="zip_error_init_with_code.html">zip_error_init_with_code(3)</a>
+  and
+  <a class="Xr" title="Xr" href="zip_error_strerror.html">zip_error_strerror(3)</a>
   instead.
 <div class="Pp"></div>
 Replace
@@ -59,25 +91,27 @@
 zip_error_fini(&amp;error);
 </pre>
 </div>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_init_with_code.html">zip_error_init_with_code(3)</a>,
-  <a class="Xr" href="zip_error_strerror.html">zip_error_strerror(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_error_to_str</b>() was added in libzip 0.6. In libzip 0.10 the
-  type of <var class="Ar">len</var> was changed from
-  <var class="Vt">size_t</var> to <var class="Vt">zip_uint64_t</var>. It was
-  deprecated in libzip 1.0, use <b class="Fn">zip_error_init_with_code</b>() and
-  <b class="Fn">zip_error_strerror</b>() instead.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_init_with_code.html">zip_error_init_with_code(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_strerror.html">zip_error_strerror(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_error_to_str</code>() was added in libzip 0.6.
+  In libzip 0.10 the type of <var class="Ar" title="Ar">len</var> was changed
+  from <var class="Vt" title="Vt">size_t</var> to
+  <var class="Vt" title="Vt">zip_uint64_t</var>. It was deprecated in libzip
+  1.0, use <code class="Fn" title="Fn">zip_error_init_with_code</code>() and
+  <code class="Fn" title="Fn">zip_error_strerror</code>() instead.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_error_to_str.man b/man/zip_error_to_str.man
index 7067fe4..0db434a 100644
--- a/man/zip_error_to_str.man
+++ b/man/zip_error_to_str.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_error_to_str.mdoc -- get string representation of zip error code
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_ERROR_TO_STR" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_errors.html b/man/zip_errors.html
index f6240d5..bb96806 100644
--- a/man/zip_errors.html
+++ b/man/zip_errors.html
@@ -1,13 +1,42 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_errors.mdoc -- list of all libzip error codes
+   Copyright (C) 1999-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+  
+     This file was generated automatically by ./make_zip_errors.sh
+     from ./../lib/zip.h; make changes there.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_ERRORS(3)</title>
 </head>
@@ -20,154 +49,155 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_errors</b> &#8212; <span class="Nd">list of all libzip error
-  codes</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_errors</code> &#x2014;
+<div class="Nd" title="Nd">list of all libzip error codes</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
 The following error codes are used by libzip:
-<dl class="Bl-tag" style="margin-left: 24.00ex;">
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_CHANGED</code>]</dt>
-  <dd class="It-tag">Entry has been changed.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_CLOSE</code>]</dt>
-  <dd class="It-tag">Closing zip archive failed.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_COMPNOTSUPP</code>]</dt>
-  <dd class="It-tag">Compression method not supported.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_COMPRESSED_DATA</code>]</dt>
-  <dd class="It-tag">Compressed data invalid.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_CRC</code>]</dt>
-  <dd class="It-tag">CRC error.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_DELETED</code>]</dt>
-  <dd class="It-tag">Entry has been deleted.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_ENCRNOTSUPP</code>]</dt>
-  <dd class="It-tag">Encryption method not supported.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_EOF</code>]</dt>
-  <dd class="It-tag">Premature end of file.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_EXISTS</code>]</dt>
-  <dd class="It-tag">File already exists.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_INCONS</code>]</dt>
-  <dd class="It-tag">Zip archive inconsistent.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_INTERNAL</code>]</dt>
-  <dd class="It-tag">Internal error.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_INUSE</code>]</dt>
-  <dd class="It-tag">Resource still in use.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag">Invalid argument.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Malloc failure.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_MULTIDISK</code>]</dt>
-  <dd class="It-tag">Multi-disk zip archives not supported.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_NOENT</code>]</dt>
-  <dd class="It-tag">No such file.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_NOPASSWD</code>]</dt>
-  <dd class="It-tag">No password provided.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_NOZIP</code>]</dt>
-  <dd class="It-tag">Not a zip archive.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_OK</code>]</dt>
-  <dd class="It-tag">No error.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_OPEN</code>]</dt>
-  <dd class="It-tag">Can't open file.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_OPNOTSUPP</code>]</dt>
-  <dd class="It-tag">Operation not supported.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_RDONLY</code>]</dt>
-  <dd class="It-tag">Read-only archive.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_READ</code>]</dt>
-  <dd class="It-tag">Read error.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_REMOVE</code>]</dt>
-  <dd class="It-tag">Can't remove file.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_RENAME</code>]</dt>
-  <dd class="It-tag">Renaming temporary file failed.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_SEEK</code>]</dt>
-  <dd class="It-tag">Seek error.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_TELL</code>]</dt>
-  <dd class="It-tag">Tell error.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_TMPOPEN</code>]</dt>
-  <dd class="It-tag">Failure to create temporary file.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_WRITE</code>]</dt>
-  <dd class="It-tag">Write error.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_WRONGPASSWD</code>]</dt>
-  <dd class="It-tag">Wrong password provided.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_ZIPCLOSED</code>]</dt>
-  <dd class="It-tag">Containing zip archive was closed.</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -24.00ex;">[<code class="Er">ZIP_ER_ZLIB</code>]</dt>
-  <dd class="It-tag">Zlib error.</dd>
+<dl class="Bl-tag" style="margin-left: 31.80ex;">
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_CHANGED</code>]</dt>
+  <dd>Entry has been changed.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_CLOSE</code>]</dt>
+  <dd>Closing zip archive failed.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_COMPNOTSUPP</code>]</dt>
+  <dd>Compression method not supported.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_COMPRESSED_DATA</code>]</dt>
+  <dd>Compressed data invalid.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_CRC</code>]</dt>
+  <dd>CRC error.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_DELETED</code>]</dt>
+  <dd>Entry has been deleted.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_ENCRNOTSUPP</code>]</dt>
+  <dd>Encryption method not supported.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_EOF</code>]</dt>
+  <dd>Premature end of file.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_EXISTS</code>]</dt>
+  <dd>File already exists.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_INCONS</code>]</dt>
+  <dd>Zip archive inconsistent.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_INTERNAL</code>]</dt>
+  <dd>Internal error.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_INUSE</code>]</dt>
+  <dd>Resource still in use.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_INVAL</code>]</dt>
+  <dd>Invalid argument.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_MEMORY</code>]</dt>
+  <dd>Malloc failure.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_MULTIDISK</code>]</dt>
+  <dd>Multi-disk zip archives not supported.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_NOENT</code>]</dt>
+  <dd>No such file.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_NOPASSWD</code>]</dt>
+  <dd>No password provided.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_NOZIP</code>]</dt>
+  <dd>Not a zip archive.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_OK</code>]</dt>
+  <dd>No error.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_OPEN</code>]</dt>
+  <dd>Can't open file.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_OPNOTSUPP</code>]</dt>
+  <dd>Operation not supported.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_RDONLY</code>]</dt>
+  <dd>Read-only archive.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_READ</code>]</dt>
+  <dd>Read error.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_REMOVE</code>]</dt>
+  <dd>Can't remove file.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_RENAME</code>]</dt>
+  <dd>Renaming temporary file failed.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_SEEK</code>]</dt>
+  <dd>Seek error.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_TELL</code>]</dt>
+  <dd>Tell error.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_TMPOPEN</code>]</dt>
+  <dd>Failure to create temporary file.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_WRITE</code>]</dt>
+  <dd>Write error.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_WRONGPASSWD</code>]</dt>
+  <dd>Wrong password provided.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_ZIPCLOSED</code>]</dt>
+  <dd>Containing zip archive was closed.</dd>
+  <dt style="margin-left: -31.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -31.80ex;">[<code class="Er" title="Er">ZIP_ER_ZLIB</code>]</dt>
+  <dd>Zlib error.</dd>
 </dl>
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_errors.man b/man/zip_errors.man
index 714d4ae..6d9be86 100644
--- a/man/zip_errors.man
+++ b/man/zip_errors.man
@@ -1,3 +1,38 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_errors.mdoc -- list of all libzip error codes
+.\" Copyright (C) 1999-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"   This file was generated automatically by ./make_zip_errors.sh
+.\"   from ./../lib/zip.h; make changes there.
+.\"
 .TH "ZIP_ERRORS" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_fclose.html b/man/zip_fclose.html
index 201338a..db039d4 100644
--- a/man/zip_fclose.html
+++ b/man/zip_fclose.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_fclose.mdoc -- close file in zip archive
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FCLOSE(3)</title>
 </head>
@@ -20,39 +46,42 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_fclose</b> &#8212; <span class="Nd">close file in zip
-  archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_fclose</code> &#x2014;
+<div class="Nd" title="Nd">close file in zip archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_fclose</b>(<var class="Fa" style="white-space: nowrap;">zip_file_t
+<code class="Fn" title="Fn">zip_fclose</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_file_t
   *file</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_fclose</b>() function closes <var class="Ar">file</var>
-  and frees the memory allocated for it.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_fclose</code>() function closes
+  <var class="Ar" title="Ar">file</var> and frees the memory allocated for it.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, the error code is returned.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
-  <a class="Xr" href="zip_fread.html">zip_fread(3)</a>,
-  <a class="Xr" href="zip_fseek.html">zip_fseek(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_fclose</b>() was added in libzip 0.6.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fread.html">zip_fread(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fseek.html">zip_fseek(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_fclose</code>() was added in libzip 0.6.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_fclose.man b/man/zip_fclose.man
index d8ae594..977a7b7 100644
--- a/man/zip_fclose.man
+++ b/man/zip_fclose.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_fclose.mdoc -- close file in zip archive
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FCLOSE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_fdopen.html b/man/zip_fdopen.html
index eb534a9..fd7fd86 100644
--- a/man/zip_fdopen.html
+++ b/man/zip_fdopen.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_fdopen.mdoc -- open zip archive using existing file descriptor
+   Copyright (C) 2009-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FDOPEN(3)</title>
 </head>
@@ -20,108 +46,116 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_fdopen</b> &#8212; <span class="Nd">open zip archive using
-  open file descriptor</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_fdopen</code> &#x2014;
+<div class="Nd" title="Nd">open zip archive using open file descriptor</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_t *</var>
+<var class="Ft" title="Ft">zip_t *</var>
 <br/>
-<b class="Fn">zip_fdopen</b>(<var class="Fa" style="white-space: nowrap;">int
-  fd</var>, <var class="Fa" style="white-space: nowrap;">int flags</var>,
-  <var class="Fa" style="white-space: nowrap;">int *errorp</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The zip archive specified by the open file descriptor <var class="Ar">fd</var>
-  is opened and a pointer to a <var class="Ft">struct zip</var>, used to
-  manipulate the archive, is returned. In contrast to
-  <a class="Xr" href="zip_open.html">zip_open(3)</a>, using
-  <b class="Nm">zip_fdopen</b> the archive can only be opened in read-only mode.
-  The <var class="Ar">fd</var> argument may not be used any longer after calling
-  <b class="Nm">zip_fdopen</b>. The <var class="Fa">flags</var> are specified by
-  <i class="Em">or</i><span class="No">'ing</span> the following values, or 0
-  for none of them.
+<code class="Fn" title="Fn">zip_fdopen</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">int
+  fd</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  flags</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  *errorp</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The zip archive specified by the open file descriptor
+  <var class="Ar" title="Ar">fd</var> is opened and a pointer to a
+  <var class="Ft" title="Ft">struct zip</var>, used to manipulate the archive,
+  is returned. In contrast to
+  <a class="Xr" title="Xr" href="zip_open.html">zip_open(3)</a>, using
+  <code class="Nm" title="Nm">zip_fdopen</code> the archive can only be opened
+  in read-only mode. The <var class="Ar" title="Ar">fd</var> argument may not be
+  used any longer after calling <code class="Nm" title="Nm">zip_fdopen</code>.
+  The <var class="Fa" title="Fa">flags</var> are specified by
+  <i class="Em" title="Em">or</i><span class="No">'ing</span> the following
+  values, or 0 for none of them.
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 13.00ex;">
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_CHECKCONS</code></dt>
-  <dd class="It-tag">Perform additional stricter consistency checks on the
-      archive, and error if they fail.</dd>
+<dl class="Bl-tag" style="margin-left: 18.60ex;">
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_CHECKCONS"><code class="Dv" title="Dv" id="ZIP_CHECKCONS">ZIP_CHECKCONS</code></a></dt>
+  <dd>Perform additional stricter consistency checks on the archive, and error
+      if they fail.</dd>
 </dl>
 </div>
 <div class="Pp"></div>
-If an error occurs and <var class="Ar">errorp</var> is
-  <span class="No">non-</span><code class="Dv">NULL</code>, it will be set to
-  the corresponding error code.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-Upon successful completion <b class="Fn">zip_fdopen</b>() returns a
-  <var class="Ft">struct zip</var> pointer, and <var class="Ar">fd</var> should
-  not be used any longer, nor passed to
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/close.html">close(2)</a>. Otherwise,
-  <code class="Dv">NULL</code> is returned and <var class="Ar">*errorp</var> is
-  set to indicate the error. In the error case, <var class="Ar">fd</var> remains
-  unchanged.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-The file specified by <var class="Ar">fd</var> is prepared for use by
-  <a class="Xr" href="libzip.html">libzip(3)</a> unless:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INCONS</code>]</dt>
-  <dd class="It-tag">Inconsistencies were found in the file specified by
-      <var class="Ar">path</var>. This error is often caused by specifying
-      <code class="Dv">ZIP_CHECKCONS</code> but can also happen without it.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag">The <var class="Ar">flags</var> argument is invalid. Not
-      all <a class="Xr" href="zip_open.html">zip_open(3)</a> flags are allowed
-      for <b class="Nm">zip_fdopen</b>, see
-      <a class="Sx" href="#DESCRIPTION">DESCRIPTION</a>.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_NOZIP</code>]</dt>
-  <dd class="It-tag">The file specified by <var class="Ar">fd</var> is not a zip
+If an error occurs and <var class="Ar" title="Ar">errorp</var> is
+  <span class="No">non-</span><code class="Dv" title="Dv">NULL</code>, it will
+  be set to the corresponding error code.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Upon successful completion <code class="Fn" title="Fn">zip_fdopen</code>()
+  returns a <var class="Ft" title="Ft">struct zip</var> pointer, and
+  <var class="Ar" title="Ar">fd</var> should not be used any longer, nor passed
+  to <a class="Xr" title="Xr" href="close.html">close(2)</a>. Otherwise,
+  <code class="Dv" title="Dv">NULL</code> is returned and
+  <var class="Ar" title="Ar">*errorp</var> is set to indicate the error. In the
+  error case, <var class="Ar" title="Ar">fd</var> remains unchanged.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+The file specified by <var class="Ar" title="Ar">fd</var> is prepared for use by
+  <a class="Xr" title="Xr" href="libzip.html">libzip(3)</a> unless:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INCONS"><code class="Er" title="Er" id="ZIP_ER_INCONS">ZIP_ER_INCONS</code></a>]</dt>
+  <dd>Inconsistencies were found in the file specified by
+      <var class="Ar" title="Ar">path</var>. This error is often caused by
+      specifying <code class="Dv" title="Dv">ZIP_CHECKCONS</code> but can also
+      happen without it.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd>The <var class="Ar" title="Ar">flags</var> argument is invalid. Not all
+      <a class="Xr" title="Xr" href="zip_open.html">zip_open(3)</a> flags are
+      allowed for <code class="Nm" title="Nm">zip_fdopen</code>, see
+      <a class="Sx" title="Sx" href="#DESCRIPTION">DESCRIPTION</a>.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_NOZIP"><code class="Er" title="Er" id="ZIP_ER_NOZIP">ZIP_ER_NOZIP</code></a>]</dt>
+  <dd>The file specified by <var class="Ar" title="Ar">fd</var> is not a zip
       archive.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_OPEN</code>]</dt>
-  <dd class="It-tag">The file specified by <var class="Ar">fd</var> could not be
-      prepared for use by <a class="Xr" href="libzip.html">libzip(3)</a>.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_READ</code>]</dt>
-  <dd class="It-tag">A read error occurred; see <var class="Va">errno</var> for
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_OPEN"><code class="Er" title="Er" id="ZIP_ER_OPEN">ZIP_ER_OPEN</code></a>]</dt>
+  <dd>The file specified by <var class="Ar" title="Ar">fd</var> could not be
+      prepared for use by
+      <a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_READ"><code class="Er" title="Er" id="ZIP_ER_READ">ZIP_ER_READ</code></a>]</dt>
+  <dd>A read error occurred; see <var class="Va" title="Va">errno</var> for
       details.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_SEEK</code>]</dt>
-  <dd class="It-tag">The file specified by <var class="Ar">fd</var> does not
-      allow seeks.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_SEEK"><code class="Er" title="Er" id="ZIP_ER_SEEK">ZIP_ER_SEEK</code></a>]</dt>
+  <dd>The file specified by <var class="Ar" title="Ar">fd</var> does not allow
+      seeks.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_close.html">zip_close(3)</a>,
-  <a class="Xr" href="zip_error_to_str.html">zip_error_to_str(3)</a>,
-  <a class="Xr" href="zip_open.html">zip_open(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_fdopen</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_strerror.html">zip_error_strerror(3)</a>,
+  <a class="Xr" title="Xr" href="zip_open.html">zip_open(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_fdopen</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_fdopen.man b/man/zip_fdopen.man
index 92e0b6d..2654e1b 100644
--- a/man/zip_fdopen.man
+++ b/man/zip_fdopen.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_fdopen.mdoc -- open zip archive using existing file descriptor
+.\" Copyright (C) 2009-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FDOPEN" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -115,7 +147,7 @@
 .SH "SEE ALSO"
 libzip(3),
 zip_close(3),
-zip_error_to_str(3),
+zip_error_strerror(3),
 zip_open(3)
 .SH "HISTORY"
 \fBzip_fdopen\fR()
diff --git a/man/zip_fdopen.mdoc b/man/zip_fdopen.mdoc
index 3e2672c..56d117a 100644
--- a/man/zip_fdopen.mdoc
+++ b/man/zip_fdopen.mdoc
@@ -135,7 +135,7 @@
 .Sh SEE ALSO
 .Xr libzip 3 ,
 .Xr zip_close 3 ,
-.Xr zip_error_to_str 3 ,
+.Xr zip_error_strerror 3 ,
 .Xr zip_open 3
 .Sh HISTORY
 .Fn zip_fdopen
diff --git a/man/zip_file_add.html b/man/zip_file_add.html
index c780083..17d7dbe 100644
--- a/man/zip_file_add.html
+++ b/man/zip_file_add.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_add.mdoc -- add files to zip archive
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_ADD(3)</title>
 </head>
@@ -20,125 +46,142 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_add</b>, <b class="Nm">zip_file_replace</b> &#8212;
-  <span class="Nd">add file to zip archive or replace file in zip archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_add</code>,
+  <code class="Nm" title="Nm">zip_file_replace</code> &#x2014;
+<div class="Nd" title="Nd">add file to zip archive or replace file in zip
+  archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_file_add</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *name</var>, <var class="Fa" style="white-space: nowrap;">zip_source_t
-  *source</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_file_add</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *name</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
+  *source</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_file_replace</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_source_t
-  *source</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_file_replace</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
+  *source</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_file_add</b>() adds a file to a zip archive,
-  while <b class="Fn">zip_file_replace</b>() replaces an existing file in a zip
-  archive. The argument <var class="Ar">archive</var> specifies the zip archive
-  to which the file should be added. <var class="Ar">name</var> is the file's
-  name in the zip archive (for <b class="Fn">zip_file_add</b>()), while
-  <var class="Ar">index</var> specifies which file should be replaced (for
-  <b class="Fn">zip_file_replace</b>()). The <var class="Ar">flags</var>
-  argument can be any combination of <code class="Dv">ZIP_FL_OVERWRITE</code>
-  with one of <code class="Dv">ZIP_FL_ENC_*</code>:
-<dl class="Bl-tag" style="margin-left: 20.00ex;">
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_OVERWRITE</code></dt>
-  <dd class="It-tag">Overwrite any existing file of the same name. For
-      <b class="Nm">zip_file_add</b> only.</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_GUESS</code></dt>
-  <dd class="It-tag">Guess encoding of <var class="Ar">name</var>
-    (default).</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_UTF_8</code></dt>
-  <dd class="It-tag">Interpret <var class="Ar">name</var> as UTF-8.</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_CP437</code></dt>
-  <dd class="It-tag">Interpret <var class="Ar">name</var> as code page 437
-      (CP-437).</dd>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_file_add</code>() adds a file to a
+  zip archive, while <code class="Fn" title="Fn">zip_file_replace</code>()
+  replaces an existing file in a zip archive. The argument
+  <var class="Ar" title="Ar">archive</var> specifies the zip archive to which
+  the file should be added. <var class="Ar" title="Ar">name</var> is the file's
+  name in the zip archive (for
+  <code class="Fn" title="Fn">zip_file_add</code>()), while
+  <var class="Ar" title="Ar">index</var> specifies which file should be replaced
+  (for <code class="Fn" title="Fn">zip_file_replace</code>()). The
+  <var class="Ar" title="Ar">flags</var> argument can be any combination of
+  <code class="Dv" title="Dv">ZIP_FL_OVERWRITE</code> with one of
+  <code class="Dv" title="Dv">ZIP_FL_ENC_*</code>:
+<dl class="Bl-tag" style="margin-left: 27.00ex;">
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_OVERWRITE"><code class="Dv" title="Dv" id="ZIP_FL_OVERWRITE">ZIP_FL_OVERWRITE</code></a></dt>
+  <dd>Overwrite any existing file of the same name. For
+      <code class="Nm" title="Nm">zip_file_add</code> only.</dd>
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_GUESS"><code class="Dv" title="Dv" id="ZIP_FL_ENC_GUESS">ZIP_FL_ENC_GUESS</code></a></dt>
+  <dd>Guess encoding of <var class="Ar" title="Ar">name</var> (default).</dd>
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_UTF_8"><code class="Dv" title="Dv" id="ZIP_FL_ENC_UTF_8">ZIP_FL_ENC_UTF_8</code></a></dt>
+  <dd>Interpret <var class="Ar" title="Ar">name</var> as UTF-8.</dd>
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_CP437"><code class="Dv" title="Dv" id="ZIP_FL_ENC_CP437">ZIP_FL_ENC_CP437</code></a></dt>
+  <dd>Interpret <var class="Ar" title="Ar">name</var> as code page 437
+    (CP-437).</dd>
 </dl>
-The data is obtained from the <var class="Ar">source</var> argument, see
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>.
+The data is obtained from the <var class="Ar" title="Ar">source</var> argument,
+  see <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>.
 <div class="Pp"></div>
-<i class="Em">NOTE</i>:
-  <a class="Xr" href="zip_source_free.html">zip_source_free(3)</a> should not be
-  called on a <var class="Ar">source</var> after it was used successfully in a
-  <b class="Nm">zip_file_add</b> or <b class="Nm">zip_file_replace</b> call.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-Upon successful completion, <b class="Fn">zip_file_add</b>() returns the index
-  of the new file in the archive, and <b class="Fn">zip_file_replace</b>()
-  returns 0. Otherwise, -1 is returned and the error code in
-  <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="EXAMPLES">EXAMPLES</h1>
+<i class="Em" title="Em">NOTE</i>:
+  <a class="Xr" title="Xr" href="zip_source_free.html">zip_source_free(3)</a>
+  should not be called on a <var class="Ar" title="Ar">source</var> after it was
+  used successfully in a <code class="Nm" title="Nm">zip_file_add</code> or
+  <code class="Nm" title="Nm">zip_file_replace</code> call.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Upon successful completion, <code class="Fn" title="Fn">zip_file_add</code>()
+  returns the index of the new file in the archive, and
+  <code class="Fn" title="Fn">zip_file_replace</code>() returns 0. Otherwise, -1
+  is returned and the error code in <var class="Ar" title="Ar">archive</var> is
+  set to indicate the error.
+<h1 class="Sh" title="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
 <div class="Bd" style="margin-left: 5.00ex;">
 <pre class="Li">
 zip_source_t *s; 
-const char buf=&quot;teststring&quot;; 
+const char *buf=&quot;teststring&quot;; 
  
-if ((s=zip_source_buffer(archive, buffer, sizeof(buf), 0)) == NULL || 
+if ((s=zip_source_buffer(archive, buf, sizeof(buf), 0)) == NULL || 
     zip_file_add(archive, name, s, ZIP_FL_ENC_UTF_8) &lt; 0) { 
     zip_source_free(s); 
     printf(&quot;error adding file: %s\n&quot;, zip_strerror(archive)); 
 }
 </pre>
 </div>
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_add</b>() and <b class="Fn">zip_file_replace</b>() fail
-  if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_EXISTS</code>]</dt>
-  <dd class="It-tag">There is already a file called <var class="Ar">name</var>
-      in the archive. (Only applies to <b class="Fn">zip_file_add</b>(), and
-      only if <code class="Dv">ZIP_FL_OVERWRITE</code> is not provided).</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">source</var> or <var class="Ar">name</var>
-      are <code class="Dv">NULL</code>, or <var class="Ar">index</var> is
-      invalid.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_RDONLY</code>]</dt>
-  <dd class="It-tag">Archive was opened in read-only mode.</dd>
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_add</code>() and
+  <code class="Fn" title="Fn">zip_file_replace</code>() fail if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_EXISTS"><code class="Er" title="Er" id="ZIP_ER_EXISTS">ZIP_ER_EXISTS</code></a>]</dt>
+  <dd>There is already a file called <var class="Ar" title="Ar">name</var> in
+      the archive. (Only applies to
+      <code class="Fn" title="Fn">zip_file_add</code>(), and only if
+      <code class="Dv" title="Dv">ZIP_FL_OVERWRITE</code> is not provided).</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">source</var> or
+      <var class="Ar" title="Ar">name</var> are
+      <code class="Dv" title="Dv">NULL</code>, or
+      <var class="Ar" title="Ar">index</var> is invalid.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_RDONLY"><code class="Er" title="Er" id="ZIP_ER_RDONLY">ZIP_ER_RDONLY</code></a>]</dt>
+  <dd>Archive was opened in read-only mode.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_add</b>() and <b class="Fn">zip_file_replace</b>() were
-  added in libzip 0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_add</code>() and
+  <code class="Fn" title="Fn">zip_file_replace</code>() were added in libzip
+  0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_add.man b/man/zip_file_add.man
index 1eb9ecf..8d0672f 100644
--- a/man/zip_file_add.man
+++ b/man/zip_file_add.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_add.mdoc -- add files to zip archive
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_ADD" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -96,9 +128,9 @@
 .nf
 .RS 6n
 zip_source_t *s;
-const char buf="teststring";
+const char *buf="teststring";
 
-if ((s=zip_source_buffer(archive, buffer, sizeof(buf), 0)) == NULL ||
+if ((s=zip_source_buffer(archive, buf, sizeof(buf), 0)) == NULL ||
     zip_file_add(archive, name, s, ZIP_FL_ENC_UTF_8) < 0) {
     zip_source_free(s);
     printf("error adding file: %s\en", zip_strerror(archive));
diff --git a/man/zip_file_add.mdoc b/man/zip_file_add.mdoc
index 5600cc3..6f74230 100644
--- a/man/zip_file_add.mdoc
+++ b/man/zip_file_add.mdoc
@@ -111,10 +111,10 @@
 .Sh EXAMPLES
 .Bd -literal -offset indent
 zip_source_t *s;
-const char buf="teststring";
+const char *buf="teststring";
 
-if ((s=zip_source_buffer(archive, buffer, sizeof(buf), 0)) == NULL ||
-    zip_file_add(archive, name, s, ZIP_FL_ENC_UTF_8) \*[Lt] 0) {
+if ((s=zip_source_buffer(archive, buf, sizeof(buf), 0)) == NULL ||
+    zip_file_add(archive, name, s, ZIP_FL_ENC_UTF_8) < 0) {
     zip_source_free(s);
     printf("error adding file: %s\en", zip_strerror(archive));
 }
diff --git a/man/zip_file_extra_field_delete.html b/man/zip_file_extra_field_delete.html
index f5ee307..3fa6675 100644
--- a/man/zip_file_extra_field_delete.html
+++ b/man/zip_file_extra_field_delete.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_extra_field_delete.mdoc -- delete extra field for file in zip
+   Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_EXTRA_FIELD_DELETE(3)</title>
 </head>
@@ -20,102 +46,117 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_extra_field_delete</b>,
-  <b class="Nm">zip_file_extra_field_delete_by_id</b> &#8212;
-  <span class="Nd">delete extra field for file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_extra_field_delete</code>,
+  <code class="Nm" title="Nm">zip_file_extra_field_delete_by_id</code> &#x2014;
+<div class="Nd" title="Nd">delete extra field for file in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_file_extra_field_delete</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_uint16_t
+<code class="Fn" title="Fn">zip_file_extra_field_delete</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
   extra_field_index</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_flags_t flags</var>);
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>);
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_file_extra_field_delete_by_id</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_uint16_t
+<code class="Fn" title="Fn">zip_file_extra_field_delete_by_id</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
   extra_field_id</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint16_t
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
   extra_field_index</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_flags_t flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_file_extra_field_delete</b>() function deletes the extra
-  field with index <var class="Ar">extra_field_index</var> for the file at
-  position <var class="Ar">index</var> in the zip archive.
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_file_extra_field_delete</code>() function
+  deletes the extra field with index
+  <var class="Ar" title="Ar">extra_field_index</var> for the file at position
+  <var class="Ar" title="Ar">index</var> in the zip archive.
 <div class="Pp"></div>
-If <var class="Ar">extra_field_index</var> is
-  <code class="Dv">ZIP_EXTRA_FIELD_ALL</code>, then all extra fields will be
-  deleted.
+If <var class="Ar" title="Ar">extra_field_index</var> is
+  <code class="Dv" title="Dv">ZIP_EXTRA_FIELD_ALL</code>, then all extra fields
+  will be deleted.
 <div class="Pp"></div>
-The following <var class="Ar">flags</var> are supported:
+The following <var class="Ar" title="Ar">flags</var> are supported:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 16.00ex;">
-  <dt class="It-tag" style="margin-left: -16.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;"><code class="Dv">ZIP_FL_CENTRAL</code></dt>
-  <dd class="It-tag">Delete extra fields from the archive's central
-    directory.</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;"><code class="Dv">ZIP_FL_LOCAL</code></dt>
-  <dd class="It-tag">Delete extra fields from the local file headers.</dd>
+<dl class="Bl-tag" style="margin-left: 22.20ex;">
+  <dt style="margin-left: -22.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -22.20ex;"><a class="permalink" href="#ZIP_FL_CENTRAL"><code class="Dv" title="Dv" id="ZIP_FL_CENTRAL">ZIP_FL_CENTRAL</code></a></dt>
+  <dd>Delete extra fields from the archive's central directory.</dd>
+  <dt style="margin-left: -22.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -22.20ex;"><a class="permalink" href="#ZIP_FL_LOCAL"><code class="Dv" title="Dv" id="ZIP_FL_LOCAL">ZIP_FL_LOCAL</code></a></dt>
+  <dd>Delete extra fields from the local file headers.</dd>
 </dl>
 </div>
 <div class="Pp"></div>
-The <b class="Fn">zip_file_extra_field_delete_by_id</b>() function deletes the
-  extra field with ID (two-byte signature) <var class="Ar">extra_field_id</var>
-  and index <var class="Ar">extra_field_index</var> (in other words, the
-  <var class="Ar">extra_field_index</var><span class="No">'th</span> extra field
-  with ID <var class="Ar">extra_field_id</var>) The other arguments are the same
-  as for <b class="Fn">zip_file_extra_field_delete</b>()
-  (<code class="Dv">ZIP_EXTRA_FIELD_ALL</code> will delete all extra fields of
-  the specified ID).
+The <code class="Fn" title="Fn">zip_file_extra_field_delete_by_id</code>()
+  function deletes the extra field with ID (two-byte signature)
+  <var class="Ar" title="Ar">extra_field_id</var> and index
+  <var class="Ar" title="Ar">extra_field_index</var> (in other words, the
+  <var class="Ar" title="Ar">extra_field_index</var><span class="No">'th</span>
+  extra field with ID <var class="Ar" title="Ar">extra_field_id</var>) The other
+  arguments are the same as for
+  <code class="Fn" title="Fn">zip_file_extra_field_delete</code>()
+  (<code class="Dv" title="Dv">ZIP_EXTRA_FIELD_ALL</code> will delete all extra
+  fields of the specified ID).
 <div class="Pp"></div>
 Please note that due to the library design, the index of an extra field may be
   different between central directory and local file headers. For this reason,
-  it is not allowed to specify both <code class="Dv">ZIP_FL_CENTRAL</code> and
-  <code class="Dv">ZIP_FL_LOCAL</code> in <var class="Ar">flags</var>, except
-  when deleting all extra fields (i.e., <var class="Ar">extra_field_index</var>
-  being <code class="Dv">ZIP_EXTRA_FIELD_ALL</code>).
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  it is not allowed to specify both
+  <code class="Dv" title="Dv">ZIP_FL_CENTRAL</code> and
+  <code class="Dv" title="Dv">ZIP_FL_LOCAL</code> in
+  <var class="Ar" title="Ar">flags</var>, except when deleting all extra fields
+  (i.e., <var class="Ar" title="Ar">extra_field_index</var> being
+  <code class="Dv" title="Dv">ZIP_EXTRA_FIELD_ALL</code>).
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error code in <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_extra_field_delete</b>() and
-  <b class="Fn">zip_file_extra_field_delete_by_id</b>() fail if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_NOENT</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>.</dd>
+  error code in <var class="Ar" title="Ar">archive</var> is set to indicate the
+  error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_extra_field_delete</code>() and
+  <code class="Fn" title="Fn">zip_file_extra_field_delete_by_id</code>() fail
+  if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_NOENT"><code class="Er" title="Er" id="ZIP_ER_NOENT">ZIP_ER_NOENT</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_extra_field_get.html">zip_file_extra_field_get(3)</a>,
-  <a class="Xr" href="zip_file_extra_field_set.html">zip_file_extra_field_set(3)</a>,
-  <a class="Xr" href="zip_file_extra_fields_count.html">zip_file_extra_fields_count(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_extra_field_delete</b>() and
-  <b class="Fn">zip_file_extra_field_delete_by_id</b>() were added in libzip
-  0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_field_get.html">zip_file_extra_field_get(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_field_set.html">zip_file_extra_field_set(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_fields_count.html">zip_file_extra_fields_count(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_extra_field_delete</code>() and
+  <code class="Fn" title="Fn">zip_file_extra_field_delete_by_id</code>() were
+  added in libzip 0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_extra_field_delete.man b/man/zip_file_extra_field_delete.man
index 69d67c8..ccc5071 100644
--- a/man/zip_file_extra_field_delete.man
+++ b/man/zip_file_extra_field_delete.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_extra_field_delete.mdoc -- delete extra field for file in zip
+.\" Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_EXTRA_FIELD_DELETE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_extra_field_get.html b/man/zip_file_extra_field_get.html
index 01fbb22..b1c6246 100644
--- a/man/zip_file_extra_field_get.html
+++ b/man/zip_file_extra_field_get.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_extra_field_get.mdoc -- get extra field for file in zip
+   Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_EXTRA_FIELD_GET(3)</title>
 </head>
@@ -20,118 +46,135 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_extra_field_get</b>,
-  <b class="Nm">zip_file_extra_field_get_by_id</b> &#8212; <span class="Nd">get
-  extra field for file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_extra_field_get</code>,
+  <code class="Nm" title="Nm">zip_file_extra_field_get_by_id</code> &#x2014;
+<div class="Nd" title="Nd">get extra field for file in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">const zip_uint8_t *</var>
+<var class="Ft" title="Ft">const zip_uint8_t *</var>
 <br/>
-<b class="Fn">zip_file_extra_field_get</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_uint16_t
+<code class="Fn" title="Fn">zip_file_extra_field_get</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
   extra_field_index</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint16_t *idp</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint16_t *lenp</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_flags_t flags</var>);
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
+  *idp</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
+  *lenp</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>);
 <div class="Pp"></div>
-<var class="Ft">const zip_uint8_t *</var>
+<var class="Ft" title="Ft">const zip_uint8_t *</var>
 <br/>
-<b class="Fn">zip_file_extra_field_get_by_id</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_uint16_t
+<code class="Fn" title="Fn">zip_file_extra_field_get_by_id</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
   extra_field_id</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint16_t
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
   extra_field_index</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint16_t *lenp</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_flags_t flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_file_extra_field_get</b>() function returns the extra
-  field with index <var class="Ar">extra_field_index</var> for the file at
-  position <var class="Ar">index</var> in the zip archive. This pointer should
-  not be modified or <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html">free(3)</a>'d, and becomes
-  invalid when <var class="Ar">archive</var> is closed. If
-  <var class="Ar">idp</var> is not <code class="Dv">NULL</code>, the integer to
-  which it points will be set to the ID (two-byte signature) of the selected
-  extra field. If <var class="Ar">lenp</var> is not
-  <code class="Dv">NULL</code>, the integer to which it points will be set to
-  the length of the extra field. Generally speaking, <var class="Ar">lenp</var>
-  and <var class="Ar">idp</var> should be passed since only the extra field data
-  is returned (i.e., neither the ID nor the length, if the
-  <var class="Ar">idp</var> and <var class="Ar">lenp</var> arguments are not
-  provided).
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
+  *lenp</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_file_extra_field_get</code>() function
+  returns the extra field with index
+  <var class="Ar" title="Ar">extra_field_index</var> for the file at position
+  <var class="Ar" title="Ar">index</var> in the zip archive. This pointer should
+  not be modified or <a class="Xr" title="Xr" href="free.html">free(3)</a>'d,
+  and becomes invalid when <var class="Ar" title="Ar">archive</var> is closed.
+  If <var class="Ar" title="Ar">idp</var> is not
+  <code class="Dv" title="Dv">NULL</code>, the integer to which it points will
+  be set to the ID (two-byte signature) of the selected extra field. If
+  <var class="Ar" title="Ar">lenp</var> is not
+  <code class="Dv" title="Dv">NULL</code>, the integer to which it points will
+  be set to the length of the extra field. Generally speaking,
+  <var class="Ar" title="Ar">lenp</var> and <var class="Ar" title="Ar">idp</var>
+  should be passed since only the extra field data is returned (i.e., neither
+  the ID nor the length, if the <var class="Ar" title="Ar">idp</var> and
+  <var class="Ar" title="Ar">lenp</var> arguments are not provided).
 <div class="Pp"></div>
-The following <var class="Ar">flags</var> are supported:
+The following <var class="Ar" title="Ar">flags</var> are supported:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 18.00ex;">
-  <dt class="It-tag" style="margin-left: -18.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -18.00ex;"><code class="Dv">ZIP_FL_CENTRAL</code></dt>
-  <dd class="It-tag">Return extra fields from the archive's central
-    directory.</dd>
-  <dt class="It-tag" style="margin-left: -18.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -18.00ex;"><code class="Dv">ZIP_FL_LOCAL</code></dt>
-  <dd class="It-tag">Return extra fields from the local file headers.</dd>
-  <dt class="It-tag" style="margin-left: -18.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -18.00ex;"><code class="Dv">ZIP_FL_UNCHANGED</code></dt>
-  <dd class="It-tag">Return the original unchanged extra fields, ignoring any
-      changes made.</dd>
+<dl class="Bl-tag" style="margin-left: 24.60ex;">
+  <dt style="margin-left: -24.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -24.60ex;"><a class="permalink" href="#ZIP_FL_CENTRAL"><code class="Dv" title="Dv" id="ZIP_FL_CENTRAL">ZIP_FL_CENTRAL</code></a></dt>
+  <dd>Return extra fields from the archive's central directory.</dd>
+  <dt style="margin-left: -24.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -24.60ex;"><a class="permalink" href="#ZIP_FL_LOCAL"><code class="Dv" title="Dv" id="ZIP_FL_LOCAL">ZIP_FL_LOCAL</code></a></dt>
+  <dd>Return extra fields from the local file headers.</dd>
+  <dt style="margin-left: -24.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -24.60ex;"><a class="permalink" href="#ZIP_FL_UNCHANGED"><code class="Dv" title="Dv" id="ZIP_FL_UNCHANGED">ZIP_FL_UNCHANGED</code></a></dt>
+  <dd>Return the original unchanged extra fields, ignoring any changes
+    made.</dd>
 </dl>
 </div>
 <div class="Pp"></div>
-The <b class="Fn">zip_file_extra_field_get_by_id</b>() function returns the
-  extra field with ID (two-byte signature) <var class="Ar">extra_field_id</var>
-  and index <var class="Ar">extra_field_index</var> (in other words, the
-  <var class="Ar">extra_field_index</var><span class="No">'th</span> extra field
-  with ID <var class="Ar">extra_field_id</var>) The other arguments are the same
-  as for <b class="Fn">zip_file_extra_field_get</b>().
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+The <code class="Fn" title="Fn">zip_file_extra_field_get_by_id</code>() function
+  returns the extra field with ID (two-byte signature)
+  <var class="Ar" title="Ar">extra_field_id</var> and index
+  <var class="Ar" title="Ar">extra_field_index</var> (in other words, the
+  <var class="Ar" title="Ar">extra_field_index</var><span class="No">'th</span>
+  extra field with ID <var class="Ar" title="Ar">extra_field_id</var>) The other
+  arguments are the same as for
+  <code class="Fn" title="Fn">zip_file_extra_field_get</code>().
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, a pointer to an extra field is returned, or
-  <code class="Dv">NULL</code> if there is no extra field with that
-  <var class="Ar">extra_field_index</var> for the file with index
-  <var class="Ar">index</var>. In case of an error, <code class="Dv">NULL</code>
-  is returned and the error code in <var class="Ar">archive</var> is set to
-  indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_extra_field_get</b>() and
-  <b class="Fn">zip_file_extra_field_get_by_id</b>() fail if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_NOENT</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>, or <var class="Ar">extra_field_index</var>
-      is not a valid extra file index (for ID
-      <var class="Ar">extra_field_id</var>).</dd>
+  <code class="Dv" title="Dv">NULL</code> if there is no extra field with that
+  <var class="Ar" title="Ar">extra_field_index</var> for the file with index
+  <var class="Ar" title="Ar">index</var>. In case of an error,
+  <code class="Dv" title="Dv">NULL</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_extra_field_get</code>() and
+  <code class="Fn" title="Fn">zip_file_extra_field_get_by_id</code>() fail if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_NOENT"><code class="Er" title="Er" id="ZIP_ER_NOENT">ZIP_ER_NOENT</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>, or
+      <var class="Ar" title="Ar">extra_field_index</var> is not a valid extra
+      file index (for ID <var class="Ar" title="Ar">extra_field_id</var>).</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_extra_field_delete.html">zip_file_extra_field_delete(3)</a>,
-  <a class="Xr" href="zip_file_extra_field_set.html">zip_file_extra_field_set(3)</a>,
-  <a class="Xr" href="zip_file_extra_fields_count.html">zip_file_extra_fields_count(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_extra_field_get</b>() and
-  <b class="Fn">zip_file_extra_field_get_by_id</b>() were added in libzip 0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;
-<h1 class="Sh" id="CAVEATS">CAVEATS</h1>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_field_delete.html">zip_file_extra_field_delete(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_field_set.html">zip_file_extra_field_set(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_fields_count.html">zip_file_extra_fields_count(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_extra_field_get</code>() and
+  <code class="Fn" title="Fn">zip_file_extra_field_get_by_id</code>() were added
+  in libzip 0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;
+<h1 class="Sh" title="Sh" id="CAVEATS"><a class="permalink" href="#CAVEATS">CAVEATS</a></h1>
 Please note that the extra field IDs 0x0001 (ZIP64 extension), 0x6375 (Infozip
   UTF-8 comment), and 0x7075 (Infozip UTF-8 file name) can not be read using
-  <b class="Fn">zip_file_extra_field_get</b>() since they are used by
-  <a class="Xr" href="libzip.html">libzip(3)</a> internally.</div>
+  <code class="Fn" title="Fn">zip_file_extra_field_get</code>() since they are
+  used by <a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>
+  internally.</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_extra_field_get.man b/man/zip_file_extra_field_get.man
index 049dc1e..39c5428 100644
--- a/man/zip_file_extra_field_get.man
+++ b/man/zip_file_extra_field_get.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_extra_field_get.mdoc -- get extra field for file in zip
+.\" Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_EXTRA_FIELD_GET" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_extra_field_set.html b/man/zip_file_extra_field_set.html
index cb43b49..c17faba 100644
--- a/man/zip_file_extra_field_set.html
+++ b/man/zip_file_extra_field_set.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_extra_field_set.mdoc -- set extra field for file in zip
+   Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_EXTRA_FIELD_SET(3)</title>
 </head>
@@ -20,92 +46,104 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_extra_field_set</b> &#8212; <span class="Nd">set extra
-  field for file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_extra_field_set</code> &#x2014;
+<div class="Nd" title="Nd">set extra field for file in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_file_extra_field_set</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_uint16_t
+<code class="Fn" title="Fn">zip_file_extra_field_set</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
   extra_field_id</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint16_t
-  extra_field_index</var>, <var class="Fa" style="white-space: nowrap;">const
-  zip_uint8_t *extra_field_data</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint16_t len</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_flags_t flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_file_extra_field_set</b>() function sets the extra field
-  with ID (two-byte signature) <var class="Ar">extra_field_id</var> and index
-  <var class="Ar">extra_field_index</var> for the file at position
-  <var class="Ar">index</var> in the zip archive. The extra field's data will be
-  set to <var class="Ar">extra_field_data</var> and length
-  <var class="Ar">len</var>. If a new entry shall be appended, set
-  <var class="Ar">extra_field_index</var> to
-  <code class="Dv">ZIP_EXTRA_FIELD_NEW</code>.
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
+  extra_field_index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">const zip_uint8_t
+  *extra_field_data</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
+  len</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_file_extra_field_set</code>() function sets
+  the extra field with ID (two-byte signature)
+  <var class="Ar" title="Ar">extra_field_id</var> and index
+  <var class="Ar" title="Ar">extra_field_index</var> for the file at position
+  <var class="Ar" title="Ar">index</var> in the zip archive. The extra field's
+  data will be set to <var class="Ar" title="Ar">extra_field_data</var> and
+  length <var class="Ar" title="Ar">len</var>. If a new entry shall be appended,
+  set <var class="Ar" title="Ar">extra_field_index</var> to
+  <code class="Dv" title="Dv">ZIP_EXTRA_FIELD_NEW</code>.
 <div class="Pp"></div>
-At least one of the following <var class="Ar">flags</var> must be set:
+At least one of the following <var class="Ar" title="Ar">flags</var> must be
+  set:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 16.00ex;">
-  <dt class="It-tag" style="margin-left: -16.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;"><code class="Dv">ZIP_FL_CENTRAL</code></dt>
-  <dd class="It-tag">Set extra field in the archive's central directory.</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;"><code class="Dv">ZIP_FL_LOCAL</code></dt>
-  <dd class="It-tag">Set extra field in the local file headers.</dd>
+<dl class="Bl-tag" style="margin-left: 22.20ex;">
+  <dt style="margin-left: -22.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -22.20ex;"><a class="permalink" href="#ZIP_FL_CENTRAL"><code class="Dv" title="Dv" id="ZIP_FL_CENTRAL">ZIP_FL_CENTRAL</code></a></dt>
+  <dd>Set extra field in the archive's central directory.</dd>
+  <dt style="margin-left: -22.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -22.20ex;"><a class="permalink" href="#ZIP_FL_LOCAL"><code class="Dv" title="Dv" id="ZIP_FL_LOCAL">ZIP_FL_LOCAL</code></a></dt>
+  <dd>Set extra field in the local file headers.</dd>
 </dl>
 </div>
 <div class="Pp"></div>
 Please note that the extra field IDs 0x0001 (ZIP64 extension), 0x6375 (Infozip
   UTF-8 comment), and 0x7075 (Infozip UTF-8 file name) can not be set using
-  <b class="Fn">zip_file_extra_field_set</b>() since they are set by
-  <a class="Xr" href="libzip.html">libzip(3)</a> automatically when needed.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  <code class="Fn" title="Fn">zip_file_extra_field_set</code>() since they are
+  set by <a class="Xr" title="Xr" href="libzip.html">libzip(3)</a> automatically
+  when needed.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error code in <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_extra_field_set</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag">The extra field size is too large (ID and length need 4
-      bytes; the maximum length of all extra fields for one file combined is
-      65536 bytes). This error also occurs if
-      <var class="Ar">extra_field_index</var> is too large.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_NOENT</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>.</dd>
+  error code in <var class="Ar" title="Ar">archive</var> is set to indicate the
+  error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_extra_field_set</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd>The extra field size is too large (ID and length need 4 bytes; the maximum
+      length of all extra fields for one file combined is 65536 bytes). This
+      error also occurs if <var class="Ar" title="Ar">extra_field_index</var> is
+      too large.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_NOENT"><code class="Er" title="Er" id="ZIP_ER_NOENT">ZIP_ER_NOENT</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_extra_field_delete.html">zip_file_extra_field_delete(3)</a>,
-  <a class="Xr" href="zip_file_extra_field_get.html">zip_file_extra_field_get(3)</a>,
-  <a class="Xr" href="zip_file_extra_fields_count.html">zip_file_extra_fields_count(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_extra_field_set</b>() was added in libzip 0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_field_delete.html">zip_file_extra_field_delete(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_field_get.html">zip_file_extra_field_get(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_fields_count.html">zip_file_extra_fields_count(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_extra_field_set</code>() was added in
+  libzip 0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_extra_field_set.man b/man/zip_file_extra_field_set.man
index 11089b9..3db94fe 100644
--- a/man/zip_file_extra_field_set.man
+++ b/man/zip_file_extra_field_set.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_extra_field_set.mdoc -- set extra field for file in zip
+.\" Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_EXTRA_FIELD_SET" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_extra_fields_count.html b/man/zip_file_extra_fields_count.html
index d37b7e8..5ba9163 100644
--- a/man/zip_file_extra_fields_count.html
+++ b/man/zip_file_extra_fields_count.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_extra_fields_count.mdoc -- count extra field for file in zip
+   Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_EXTRA_FIELDS_COUNT(3)</title>
 </head>
@@ -20,97 +46,105 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_extra_fields_count</b>,
-  <b class="Nm">zip_file_extra_fields_count_by_id</b> &#8212;
-  <span class="Nd">count extra fields for file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_extra_fields_count</code>,
+  <code class="Nm" title="Nm">zip_file_extra_fields_count_by_id</code> &#x2014;
+<div class="Nd" title="Nd">count extra fields for file in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int16_t</var>
+<var class="Ft" title="Ft">zip_int16_t</var>
 <br/>
-<b class="Fn">zip_file_extra_fields_count</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_file_extra_fields_count</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_int16_t</var>
+<var class="Ft" title="Ft">zip_int16_t</var>
 <br/>
-<b class="Fn">zip_file_extra_fields_count_by_id</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_uint16_t
-  extra_field_id</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_file_extra_fields_count_by_id</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
+  extra_field_id</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_file_extra_fields_count</b>() function counts the extra
-  fields for the file at position <var class="Ar">index</var> in the zip
-  archive.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_file_extra_fields_count</code>() function
+  counts the extra fields for the file at position
+  <var class="Ar" title="Ar">index</var> in the zip archive.
 <div class="Pp"></div>
-The following <var class="Ar">flags</var> are supported:
+The following <var class="Ar" title="Ar">flags</var> are supported:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 16.00ex;">
-  <dt class="It-tag" style="margin-left: -16.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;"><code class="Dv">ZIP_FL_CENTRAL</code></dt>
-  <dd class="It-tag">Count extra fields from the archive's central
-    directory.</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;"><code class="Dv">ZIP_FL_LOCAL</code></dt>
-  <dd class="It-tag">Count extra fields from the local file headers.</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -16.00ex;"><code class="Dv">ZIP_FL_UNCHANGED</code></dt>
-  <dd class="It-tag">Count the original unchanged extra fields, ignoring any
-      changes made.</dd>
+<dl class="Bl-tag" style="margin-left: 22.20ex;">
+  <dt style="margin-left: -22.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -22.20ex;"><a class="permalink" href="#ZIP_FL_CENTRAL"><code class="Dv" title="Dv" id="ZIP_FL_CENTRAL">ZIP_FL_CENTRAL</code></a></dt>
+  <dd>Count extra fields from the archive's central directory.</dd>
+  <dt style="margin-left: -22.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -22.20ex;"><a class="permalink" href="#ZIP_FL_LOCAL"><code class="Dv" title="Dv" id="ZIP_FL_LOCAL">ZIP_FL_LOCAL</code></a></dt>
+  <dd>Count extra fields from the local file headers.</dd>
+  <dt style="margin-left: -22.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -22.20ex;"><a class="permalink" href="#ZIP_FL_UNCHANGED"><code class="Dv" title="Dv" id="ZIP_FL_UNCHANGED">ZIP_FL_UNCHANGED</code></a></dt>
+  <dd>Count the original unchanged extra fields, ignoring any changes made.</dd>
 </dl>
 </div>
 <div class="Pp"></div>
-The <b class="Fn">zip_file_extra_fields_count_by_id</b>() function counts the
-  extra fields with ID (two-byte signature)
-  <var class="Ar">extra_field_id</var>. The other arguments are the same as for
-  <b class="Fn">zip_file_extra_fields_count</b>().
+The <code class="Fn" title="Fn">zip_file_extra_fields_count_by_id</code>()
+  function counts the extra fields with ID (two-byte signature)
+  <var class="Ar" title="Ar">extra_field_id</var>. The other arguments are the
+  same as for <code class="Fn" title="Fn">zip_file_extra_fields_count</code>().
 <div class="Pp"></div>
 Extra fields that are the same in the central directory and the local file
   header are merged into one. Therefore, the counts with
-  <code class="Dv">ZIP_FL_CENTRAL</code> and
-  <code class="Dv">ZIP_FL_LOCAL</code> do not need to add up to the same value
-  as when given <code class="Dv">ZIP_FL_CENTRAL|ZIP_FL_LOCAL</code> at the same
+  <code class="Dv" title="Dv">ZIP_FL_CENTRAL</code> and
+  <code class="Dv" title="Dv">ZIP_FL_LOCAL</code> do not need to add up to the
+  same value as when given
+  <code class="Dv" title="Dv">ZIP_FL_CENTRAL|ZIP_FL_LOCAL</code> at the same
   time.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the requested number of extra fields is returned.
-  Otherwise, -1 is returned and the error code in <var class="Ar">archive</var>
-  is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_extra_fields_count</b>() and
-  <b class="Fn">zip_file_extra_fields_count_by_id</b>() fail if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_NOENT</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>.</dd>
+  Otherwise, -1 is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_extra_fields_count</code>() and
+  <code class="Fn" title="Fn">zip_file_extra_fields_count_by_id</code>() fail
+  if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_NOENT"><code class="Er" title="Er" id="ZIP_ER_NOENT">ZIP_ER_NOENT</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_extra_field_delete.html">zip_file_extra_field_delete(3)</a>,
-  <a class="Xr" href="zip_file_extra_field_get.html">zip_file_extra_field_get(3)</a>,
-  <a class="Xr" href="zip_file_extra_field_set.html">zip_file_extra_field_set(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_extra_fields_count</b>() and
-  <b class="Fn">zip_file_extra_fields_count_by_id</b>() were added in libzip
-  0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_field_delete.html">zip_file_extra_field_delete(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_field_get.html">zip_file_extra_field_get(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_extra_field_set.html">zip_file_extra_field_set(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_extra_fields_count</code>() and
+  <code class="Fn" title="Fn">zip_file_extra_fields_count_by_id</code>() were
+  added in libzip 0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_extra_fields_count.man b/man/zip_file_extra_fields_count.man
index b6a054c..35a85e1 100644
--- a/man/zip_file_extra_fields_count.man
+++ b/man/zip_file_extra_fields_count.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_extra_fields_count.mdoc -- count extra field for file in zip
+.\" Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_EXTRA_FIELDS_COUNT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_get_comment.html b/man/zip_file_get_comment.html
index 643647a..f649a30 100644
--- a/man/zip_file_get_comment.html
+++ b/man/zip_file_get_comment.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_get_comment.mdoc -- get comment for file in zip
+   Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_GET_COMMENT(3)</title>
 </head>
@@ -20,85 +46,94 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_get_comment</b> &#8212; <span class="Nd">get comment for
-  file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_get_comment</code> &#x2014;
+<div class="Nd" title="Nd">get comment for file in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">const char *</var>
+<var class="Ft" title="Ft">const char *</var>
 <br/>
-<b class="Fn">zip_file_get_comment</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_uint32_t
-  *lenp</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_file_get_comment</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint32_t
+  *lenp</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_file_get_comment</b>() function returns the comment for
-  the file at position <var class="Ar">index</var> in the zip archive. The name
-  is in UTF-8 encoding unless <code class="Dv">ZIP_FL_ENC_RAW</code> was
-  specified (see below). This pointer should not be modified or
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html">free(3)</a>'d, and becomes invalid when
-  <var class="Ar">archive</var> is closed. If <var class="Ar">lenp</var> is not
-  <code class="Dv">NULL</code>, the integer to which it points will be set to
-  the length of the comment. If <var class="Ar">flags</var> is set to
-  <code class="Dv">ZIP_FL_UNCHANGED</code>, the original unchanged comment is
-  returned.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_file_get_comment</code>() function returns
+  the comment for the file at position <var class="Ar" title="Ar">index</var> in
+  the zip archive. The name is in UTF-8 encoding unless
+  <code class="Dv" title="Dv">ZIP_FL_ENC_RAW</code> was specified (see below).
+  This pointer should not be modified or
+  <a class="Xr" title="Xr" href="free.html">free(3)</a>'d, and becomes invalid
+  when <var class="Ar" title="Ar">archive</var> is closed. If
+  <var class="Ar" title="Ar">lenp</var> is not
+  <code class="Dv" title="Dv">NULL</code>, the integer to which it points will
+  be set to the length of the comment. If <var class="Ar" title="Ar">flags</var>
+  is set to <code class="Dv" title="Dv">ZIP_FL_UNCHANGED</code>, the original
+  unchanged comment is returned.
 <div class="Pp"></div>
-Additionally, the following <var class="Ar">flags</var> are supported:
+Additionally, the following <var class="Ar" title="Ar">flags</var> are
+  supported:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 19.00ex;">
-  <dt class="It-tag" style="margin-left: -19.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;"><code class="Dv">ZIP_FL_ENC_RAW</code></dt>
-  <dd class="It-tag">Return the unmodified comment as it is in the ZIP
-    archive.</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;"><code class="Dv">ZIP_FL_ENC_GUESS</code></dt>
-  <dd class="It-tag">(Default.) Guess the encoding of the comment in the ZIP
-      archive and convert it to UTF-8, if necessary.</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;"><code class="Dv">ZIP_FL_ENC_STRICT</code></dt>
-  <dd class="It-tag">Follow the ZIP specification for file names and extend it
-      to file comments, expecting them to be encoded in CP-437 in the ZIP
-      archive (except if it is a UTF-8 comment from the special extra field).
-      Convert it to UTF-8.</dd>
+<dl class="Bl-tag" style="margin-left: 25.80ex;">
+  <dt style="margin-left: -25.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -25.80ex;"><a class="permalink" href="#ZIP_FL_ENC_RAW"><code class="Dv" title="Dv" id="ZIP_FL_ENC_RAW">ZIP_FL_ENC_RAW</code></a></dt>
+  <dd>Return the unmodified comment as it is in the ZIP archive.</dd>
+  <dt style="margin-left: -25.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -25.80ex;"><a class="permalink" href="#ZIP_FL_ENC_GUESS"><code class="Dv" title="Dv" id="ZIP_FL_ENC_GUESS">ZIP_FL_ENC_GUESS</code></a></dt>
+  <dd>(Default.) Guess the encoding of the comment in the ZIP archive and
+      convert it to UTF-8, if necessary.</dd>
+  <dt style="margin-left: -25.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -25.80ex;"><a class="permalink" href="#ZIP_FL_ENC_STRICT"><code class="Dv" title="Dv" id="ZIP_FL_ENC_STRICT">ZIP_FL_ENC_STRICT</code></a></dt>
+  <dd>Follow the ZIP specification for file names and extend it to file
+      comments, expecting them to be encoded in CP-437 in the ZIP archive
+      (except if it is a UTF-8 comment from the special extra field). Convert it
+      to UTF-8.</dd>
 </dl>
 </div>
-<i class="Em">Note</i>: ASCII is a subset of both CP-437 and UTF-8.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<i class="Em" title="Em">Note</i>: ASCII is a subset of both CP-437 and UTF-8.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, a pointer to the comment is returned, or
-  <code class="Dv">NULL</code> if there is no comment. In case of an error,
-  <code class="Dv">NULL</code> is returned and the error code in
-  <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_get_comment</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>.</dd>
+  <code class="Dv" title="Dv">NULL</code> if there is no comment. In case of an
+  error, <code class="Dv" title="Dv">NULL</code> is returned and the error code
+  in <var class="Ar" title="Ar">archive</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_get_comment</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a>,
-  <a class="Xr" href="zip_get_archive_comment.html">zip_get_archive_comment(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_get_comment</b>() was added in libzip 0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_archive_comment.html">zip_get_archive_comment(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_get_comment</code>() was added in libzip
+  0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_get_comment.man b/man/zip_file_get_comment.man
index b9eebb3..248f4f6 100644
--- a/man/zip_file_get_comment.man
+++ b/man/zip_file_get_comment.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_get_comment.mdoc -- get comment for file in zip
+.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_GET_COMMENT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_get_error.html b/man/zip_file_get_error.html
index 1df71f8..1db7bd6 100644
--- a/man/zip_file_get_error.html
+++ b/man/zip_file_get_error.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_get_error.mdoc -- extract zip_error from zip_file
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_GET_ERROR(3)</title>
 </head>
@@ -20,34 +46,36 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_get_error</b> &#8212; <span class="Nd">extract zip_error
-  from zip_file</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_get_error</code> &#x2014;
+<div class="Nd" title="Nd">extract zip_error from zip_file</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_error_t *</var>
+<var class="Ft" title="Ft">zip_error_t *</var>
 <br/>
-<b class="Fn">zip_file_get_error</b>(<var class="Fa" style="white-space: nowrap;">zip_file_t
+<code class="Fn" title="Fn">zip_file_get_error</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_file_t
   *zf</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-<b class="Fn">zip_file_get_error</b>() function returns the zip_error associated
-  with the zip_file <var class="Ar">zf</var>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_get_error</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">zip_file_get_error</code>() function returns the
+  zip_error associated with the zip_file <var class="Ar" title="Ar">zf</var>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_get_error</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_get_error.man b/man/zip_file_get_error.man
index 6d96e8d..d364ac0 100644
--- a/man/zip_file_get_error.man
+++ b/man/zip_file_get_error.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_get_error.mdoc -- extract zip_error from zip_file
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_GET_ERROR" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_get_external_attributes.html b/man/zip_file_get_external_attributes.html
index 8843c83..72f922f 100644
--- a/man/zip_file_get_external_attributes.html
+++ b/man/zip_file_get_external_attributes.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_get_external_attributes.mdoc -- get external attributes for file in zip
+   Copyright (C) 2013-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_GET_EXTERNAL_ATTRIBUTES(3)</title>
 </head>
@@ -20,66 +46,75 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_get_external_attributes</b> &#8212; <span class="Nd">get
-  external attributes for file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_get_external_attributes</code> &#x2014;
+<div class="Nd" title="Nd">get external attributes for file in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_file_get_external_attributes</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
-  flags</var>, <var class="Fa" style="white-space: nowrap;">zip_uint8_t
-  *opsys</var>, <var class="Fa" style="white-space: nowrap;">zip_uint32_t
+<code class="Fn" title="Fn">zip_file_get_external_attributes</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint8_t
+  *opsys</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint32_t
   *attributes</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_file_get_external_attributes</b>() function returns the
-  operating system and external attributes for the file at position
-  <var class="Ar">index</var> in the zip archive. The external attributes
-  usually contain the operating system-specific file permissions. If
-  <var class="Ar">flags</var> is set to
-  <code class="Dv">ZIP_FL_UNCHANGED</code>, the original unchanged values are
-  returned. If <var class="Ar">opsys</var> or <var class="Ar">attributes</var>
-  are <code class="Dv">NULL</code>, they are not filled in.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_file_get_external_attributes</code>()
+  function returns the operating system and external attributes for the file at
+  position <var class="Ar" title="Ar">index</var> in the zip archive. The
+  external attributes usually contain the operating system-specific file
+  permissions. If <var class="Ar" title="Ar">flags</var> is set to
+  <code class="Dv" title="Dv">ZIP_FL_UNCHANGED</code>, the original unchanged
+  values are returned. If <var class="Ar" title="Ar">opsys</var> or
+  <var class="Ar" title="Ar">attributes</var> are
+  <code class="Dv" title="Dv">NULL</code>, they are not filled in.
 <div class="Pp"></div>
 The following operating systems are defined by the zip specification:
-<ul class="Bl-item" style="margin-left: 6.00ex;">
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_ACORN_RISC</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_ALTERNATE_MVS</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_AMIGA</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_ATARI_ST</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_BEOS</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_CPM</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_DOS</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_MACINTOSH</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_MVS</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_OPENVMS</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_OS_2</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_OS_400</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_OS_X</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_TANDEM</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_UNIX</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_VFAT</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_VM_CMS</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_VSE</code></li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_WINDOWS_NTFS</code>
-      (uncommon, use <code class="Dv">ZIP_OPSYS_DOS</code> instead)</li>
-  <li class="It-item" style="margin-top: 0.00em;"><code class="Dv">ZIP_OPSYS_Z_SYSTEM</code></li>
+<ul class="Bl-item Bl-compact" style="margin-left: 6.00ex;">
+  <li><a class="permalink" href="#ZIP_OPSYS_ACORN_RISC"><code class="Dv" title="Dv" id="ZIP_OPSYS_ACORN_RISC">ZIP_OPSYS_ACORN_RISC</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_ALTERNATE_MVS"><code class="Dv" title="Dv" id="ZIP_OPSYS_ALTERNATE_MVS">ZIP_OPSYS_ALTERNATE_MVS</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_AMIGA"><code class="Dv" title="Dv" id="ZIP_OPSYS_AMIGA">ZIP_OPSYS_AMIGA</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_ATARI_ST"><code class="Dv" title="Dv" id="ZIP_OPSYS_ATARI_ST">ZIP_OPSYS_ATARI_ST</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_BEOS"><code class="Dv" title="Dv" id="ZIP_OPSYS_BEOS">ZIP_OPSYS_BEOS</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_CPM"><code class="Dv" title="Dv" id="ZIP_OPSYS_CPM">ZIP_OPSYS_CPM</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_DOS"><code class="Dv" title="Dv" id="ZIP_OPSYS_DOS">ZIP_OPSYS_DOS</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_MACINTOSH"><code class="Dv" title="Dv" id="ZIP_OPSYS_MACINTOSH">ZIP_OPSYS_MACINTOSH</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_MVS"><code class="Dv" title="Dv" id="ZIP_OPSYS_MVS">ZIP_OPSYS_MVS</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_OPENVMS"><code class="Dv" title="Dv" id="ZIP_OPSYS_OPENVMS">ZIP_OPSYS_OPENVMS</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_OS_2"><code class="Dv" title="Dv" id="ZIP_OPSYS_OS_2">ZIP_OPSYS_OS_2</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_OS_400"><code class="Dv" title="Dv" id="ZIP_OPSYS_OS_400">ZIP_OPSYS_OS_400</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_OS_X"><code class="Dv" title="Dv" id="ZIP_OPSYS_OS_X">ZIP_OPSYS_OS_X</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_TANDEM"><code class="Dv" title="Dv" id="ZIP_OPSYS_TANDEM">ZIP_OPSYS_TANDEM</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_UNIX"><code class="Dv" title="Dv" id="ZIP_OPSYS_UNIX">ZIP_OPSYS_UNIX</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_VFAT"><code class="Dv" title="Dv" id="ZIP_OPSYS_VFAT">ZIP_OPSYS_VFAT</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_VM_CMS"><code class="Dv" title="Dv" id="ZIP_OPSYS_VM_CMS">ZIP_OPSYS_VM_CMS</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_VSE"><code class="Dv" title="Dv" id="ZIP_OPSYS_VSE">ZIP_OPSYS_VSE</code></a></li>
+  <li><a class="permalink" href="#ZIP_OPSYS_WINDOWS_NTFS"><code class="Dv" title="Dv" id="ZIP_OPSYS_WINDOWS_NTFS">ZIP_OPSYS_WINDOWS_NTFS</code></a>
+      (uncommon, use <code class="Dv" title="Dv">ZIP_OPSYS_DOS</code>
+    instead)</li>
+  <li><a class="permalink" href="#ZIP_OPSYS_Z_SYSTEM"><code class="Dv" title="Dv" id="ZIP_OPSYS_Z_SYSTEM">ZIP_OPSYS_Z_SYSTEM</code></a></li>
 </ul>
 <div class="Pp"></div>
 The defines above follow the PKWARE Inc. Appnote; please note that the InfoZIP
   Appnote has a slightly different mapping.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, 0 is returned. In case of an error,
-  <code class="Dv">-1</code> is returned and the error code in
-  <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="EXAMPLES">EXAMPLES</h1>
-The following code can be used to expand <var class="Ar">attributes</var> if the
-  operating system is <code class="Dv">ZIP_OPSYS_DOS</code>.
+  <code class="Dv" title="Dv">-1</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
+The following code can be used to expand
+  <var class="Ar" title="Ar">attributes</var> if the operating system is
+  <code class="Dv" title="Dv">ZIP_OPSYS_DOS</code>.
 <div class="Pp"></div>
 <div class="Bd" style="margin-left: 0.00ex;">
 <pre class="Li">
@@ -102,29 +137,31 @@
 }
 </pre>
 </div>
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_get_external_attributes</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>.</dd>
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_get_external_attributes</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_set_external_attributes.html">zip_file_set_external_attributes(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_get_external_attributes</b>() was added in libzip 0.11.2.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_set_external_attributes.html">zip_file_set_external_attributes(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_get_external_attributes</code>() was added
+  in libzip 0.11.2.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_get_external_attributes.man b/man/zip_file_get_external_attributes.man
index 0c4801e..acd3fbb 100644
--- a/man/zip_file_get_external_attributes.man
+++ b/man/zip_file_get_external_attributes.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_get_external_attributes.mdoc -- get external attributes for file in zip
+.\" Copyright (C) 2013-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_GET_EXTERNAL_ATTRIBUTES" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_rename.html b/man/zip_file_rename.html
index e836c05..70130c4 100644
--- a/man/zip_file_rename.html
+++ b/man/zip_file_rename.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_rename.mdoc -- rename file in zip archive
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_RENAME(3)</title>
 </head>
@@ -20,80 +46,85 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_rename</b> &#8212; <span class="Nd">rename file in zip
-  archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_rename</code> &#x2014;
+<div class="Nd" title="Nd">rename file in zip archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_file_rename</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *name</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_file_rename</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *name</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The file at position <var class="Ar">index</var> in the zip archive
-  <var class="Ar">archive</var> is renamed to <var class="Ar">name</var>. The
-  <var class="Ar">flags</var> argument can be any of:
-<dl class="Bl-tag" style="margin-left: 20.00ex;">
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_GUESS</code></dt>
-  <dd class="It-tag">Guess encoding of <var class="Ar">name</var>
-    (default).</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_UTF_8</code></dt>
-  <dd class="It-tag">Interpret <var class="Ar">name</var> as UTF-8.</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_CP437</code></dt>
-  <dd class="It-tag">Interpret <var class="Ar">name</var> as code page 437
-      (CP-437).</dd>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The file at position <var class="Ar" title="Ar">index</var> in the zip archive
+  <var class="Ar" title="Ar">archive</var> is renamed to
+  <var class="Ar" title="Ar">name</var>. The
+  <var class="Ar" title="Ar">flags</var> argument can be any of:
+<dl class="Bl-tag" style="margin-left: 27.00ex;">
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_GUESS"><code class="Dv" title="Dv" id="ZIP_FL_ENC_GUESS">ZIP_FL_ENC_GUESS</code></a></dt>
+  <dd>Guess encoding of <var class="Ar" title="Ar">name</var> (default).</dd>
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_UTF_8"><code class="Dv" title="Dv" id="ZIP_FL_ENC_UTF_8">ZIP_FL_ENC_UTF_8</code></a></dt>
+  <dd>Interpret <var class="Ar" title="Ar">name</var> as UTF-8.</dd>
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_CP437"><code class="Dv" title="Dv" id="ZIP_FL_ENC_CP437">ZIP_FL_ENC_CP437</code></a></dt>
+  <dd>Interpret <var class="Ar" title="Ar">name</var> as code page 437
+    (CP-437).</dd>
 </dl>
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error code in <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_rename</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_DELETED</code>]</dt>
-  <dd class="It-tag">The file to be renamed has been deleted from the
-    archive.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_EXISTS</code>]</dt>
-  <dd class="It-tag">There is already a file called <var class="Ar">name</var>
-      in the archive.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>, <var class="Ar">name is</var>
-      <code class="Dv">NULL</code>, the empty string, or not a valid UTF-8
-      encoded string. Also a file cannot be renamed to a directory or vice
-      versa. Directories are denoted by a trailing slash.</dd>
+  error code in <var class="Ar" title="Ar">archive</var> is set to indicate the
+  error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_rename</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_DELETED"><code class="Er" title="Er" id="ZIP_ER_DELETED">ZIP_ER_DELETED</code></a>]</dt>
+  <dd>The file to be renamed has been deleted from the archive.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_EXISTS"><code class="Er" title="Er" id="ZIP_ER_EXISTS">ZIP_ER_EXISTS</code></a>]</dt>
+  <dd>There is already a file called <var class="Ar" title="Ar">name</var> in
+      the archive.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>, <var class="Ar" title="Ar">name
+      is</var> <code class="Dv" title="Dv">NULL</code>, the empty string, or not
+      a valid UTF-8 encoded string. Also a file cannot be renamed to a directory
+      or vice versa. Directories are denoted by a trailing slash.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_unchange.html">zip_unchange(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_rename</b>() was added in libzip 0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_unchange.html">zip_unchange(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_rename</code>() was added in libzip 0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_rename.man b/man/zip_file_rename.man
index 9f4cd07..ade5197 100644
--- a/man/zip_file_rename.man
+++ b/man/zip_file_rename.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_rename.mdoc -- rename file in zip archive
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_RENAME" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -46,7 +78,7 @@
 \fIarchive\fR
 is set to indicate the error.
 .SH "ERRORS"
-\fBzip_rename\fR()
+\fBzip_file_rename\fR()
 fails if:
 .TP 19n
 [\fRZIP_ER_DELETED\fR]
diff --git a/man/zip_file_rename.mdoc b/man/zip_file_rename.mdoc
index 0694588..5447cc8 100644
--- a/man/zip_file_rename.mdoc
+++ b/man/zip_file_rename.mdoc
@@ -71,7 +71,7 @@
 .Ar archive
 is set to indicate the error.
 .Sh ERRORS
-.Fn zip_rename
+.Fn zip_file_rename
 fails if:
 .Bl -tag -width Er
 .It Bq Er ZIP_ER_DELETED
diff --git a/man/zip_file_set_comment.html b/man/zip_file_set_comment.html
index e68ddea..5d1f13b 100644
--- a/man/zip_file_set_comment.html
+++ b/man/zip_file_set_comment.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_set_comment.mdoc -- set comment for file in zip
+   Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_SET_COMMENT(3)</title>
 </head>
@@ -20,85 +46,94 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_set_comment</b> &#8212; <span class="Nd">set comment for
-  file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_set_comment</code> &#x2014;
+<div class="Nd" title="Nd">set comment for file in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_file_set_comment</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *comment</var>, <var class="Fa" style="white-space: nowrap;">zip_uint16_t
-  len</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_file_set_comment</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *comment</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
+  len</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_file_set_comment</b>() function sets the comment for the
-  file at position <var class="Ar">index</var> in the zip archive to
-  <var class="Ar">comment</var> of length <var class="Ar">len</var>. If
-  <var class="Ar">comment</var> is <code class="Dv">NULL</code> and
-  <var class="Ar">len</var> is 0, the file comment will be removed. The
-  <var class="Ar">flags</var> argument can be any of:
-<dl class="Bl-tag" style="margin-left: 20.00ex;">
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_GUESS</code></dt>
-  <dd class="It-tag">Guess encoding of <var class="Ar">comment</var>
-    (default).</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_UTF_8</code></dt>
-  <dd class="It-tag">Interpret <var class="Ar">comment</var> as UTF-8.</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;"><code class="Dv">ZIP_FL_ENC_CP437</code></dt>
-  <dd class="It-tag">Interpret <var class="Ar">comment</var> as code page 437
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_file_set_comment</code>() function sets the
+  comment for the file at position <var class="Ar" title="Ar">index</var> in the
+  zip archive to <var class="Ar" title="Ar">comment</var> of length
+  <var class="Ar" title="Ar">len</var>. If
+  <var class="Ar" title="Ar">comment</var> is
+  <code class="Dv" title="Dv">NULL</code> and
+  <var class="Ar" title="Ar">len</var> is 0, the file comment will be removed.
+  The <var class="Ar" title="Ar">flags</var> argument can be any of:
+<dl class="Bl-tag" style="margin-left: 27.00ex;">
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_GUESS"><code class="Dv" title="Dv" id="ZIP_FL_ENC_GUESS">ZIP_FL_ENC_GUESS</code></a></dt>
+  <dd>Guess encoding of <var class="Ar" title="Ar">comment</var> (default).</dd>
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_UTF_8"><code class="Dv" title="Dv" id="ZIP_FL_ENC_UTF_8">ZIP_FL_ENC_UTF_8</code></a></dt>
+  <dd>Interpret <var class="Ar" title="Ar">comment</var> as UTF-8.</dd>
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;"><a class="permalink" href="#ZIP_FL_ENC_CP437"><code class="Dv" title="Dv" id="ZIP_FL_ENC_CP437">ZIP_FL_ENC_CP437</code></a></dt>
+  <dd>Interpret <var class="Ar" title="Ar">comment</var> as code page 437
       (CP-437).</dd>
 </dl>
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">archive</var> is set to indicate the
-  error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_set_comment</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>, or <var class="Ar">len</var> is less than 0
-      or longer than the maximum comment length in a zip file (65535), or
-      <var class="Ar">comment</var> is not a valid UTF-8 encoded string.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_RDONLY</code>]</dt>
-  <dd class="It-tag">The <var class="Ar">archive</var> was opened in read-only
-      mode.</dd>
+  error information in <var class="Ar" title="Ar">archive</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_set_comment</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>, or
+      <var class="Ar" title="Ar">len</var> is less than 0 or longer than the
+      maximum comment length in a zip file (65535), or
+      <var class="Ar" title="Ar">comment</var> is not a valid UTF-8 encoded
+      string.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_RDONLY"><code class="Er" title="Er" id="ZIP_ER_RDONLY">ZIP_ER_RDONLY</code></a>]</dt>
+  <dd>The <var class="Ar" title="Ar">archive</var> was opened in read-only
+    mode.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_get_comment.html">zip_file_get_comment(3)</a>,
-  <a class="Xr" href="zip_get_archive_comment.html">zip_get_archive_comment(3)</a>,
-  <a class="Xr" href="zip_set_archive_comment.html">zip_set_archive_comment(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_set_comment</b>() was added in libzip 0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_get_comment.html">zip_file_get_comment(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_archive_comment.html">zip_get_archive_comment(3)</a>,
+  <a class="Xr" title="Xr" href="zip_set_archive_comment.html">zip_set_archive_comment(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_set_comment</code>() was added in libzip
+  0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_set_comment.man b/man/zip_file_set_comment.man
index 5966e48..b1425ca 100644
--- a/man/zip_file_set_comment.man
+++ b/man/zip_file_set_comment.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_set_comment.mdoc -- set comment for file in zip
+.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_SET_COMMENT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_set_encryption.html b/man/zip_file_set_encryption.html
index 922923c..f946f2e 100644
--- a/man/zip_file_set_encryption.html
+++ b/man/zip_file_set_encryption.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_set_encryption.mdoc -- set encryption method for file
+   Copyright (C) 2016-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_SET_ENCRYPTION(3)</title>
 </head>
@@ -20,96 +46,104 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_set_encryption</b> &#8212; <span class="Nd">set
-  encryption method for file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_set_encryption</code> &#x2014;
+<div class="Nd" title="Nd">set encryption method for file in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_file_set_encryption</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_uint16_t
-  method</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *password</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_file_set_encryption</b>() function sets the encryption
-  method for the file at position <var class="Ar">index</var> in the zip archive
-  to <var class="Ar">method</var> using the password
-  <var class="Ar">password</var>. The <var class="Ar">method</var> is the same
-  as returned by <a class="Xr" href="zip_stat.html">zip_stat(3)</a>. For the
-  <var class="Ar">method</var> argument, currently only the following values are
-  supported:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;"><code class="Dv">ZIP_EM_NONE</code></dt>
-  <dd class="It-tag">No encryption.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;"><code class="Dv">ZIP_EM_AES_128</code></dt>
-  <dd class="It-tag">Winzip AES-128 encryption.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;"><code class="Dv">ZIP_EM_AES_192</code></dt>
-  <dd class="It-tag">Winzip AES-192 encryption.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;"><code class="Dv">ZIP_EM_AES_256</code></dt>
-  <dd class="It-tag">Winzip AES-256 encryption.</dd>
+<code class="Fn" title="Fn">zip_file_set_encryption</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
+  method</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *password</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_file_set_encryption</code>() function sets
+  the encryption method for the file at position
+  <var class="Ar" title="Ar">index</var> in the zip archive to
+  <var class="Ar" title="Ar">method</var> using the password
+  <var class="Ar" title="Ar">password</var>. The
+  <var class="Ar" title="Ar">method</var> is the same as returned by
+  <a class="Xr" title="Xr" href="zip_stat.html">zip_stat(3)</a>. For the
+  <var class="Ar" title="Ar">method</var> argument, currently only the following
+  values are supported:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;"><a class="permalink" href="#ZIP_EM_NONE"><code class="Dv" title="Dv" id="ZIP_EM_NONE">ZIP_EM_NONE</code></a></dt>
+  <dd>No encryption.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;"><a class="permalink" href="#ZIP_EM_AES_128"><code class="Dv" title="Dv" id="ZIP_EM_AES_128">ZIP_EM_AES_128</code></a></dt>
+  <dd>Winzip AES-128 encryption.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;"><a class="permalink" href="#ZIP_EM_AES_192"><code class="Dv" title="Dv" id="ZIP_EM_AES_192">ZIP_EM_AES_192</code></a></dt>
+  <dd>Winzip AES-192 encryption.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;"><a class="permalink" href="#ZIP_EM_AES_256"><code class="Dv" title="Dv" id="ZIP_EM_AES_256">ZIP_EM_AES_256</code></a></dt>
+  <dd>Winzip AES-256 encryption.</dd>
 </dl>
 <div class="Pp"></div>
-If <var class="Ar">password</var> is <code class="Dv">NULL</code>, the default
-  password provided by
-  <a class="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a>
+If <var class="Ar" title="Ar">password</var> is
+  <code class="Dv" title="Dv">NULL</code>, the default password provided by
+  <a class="Xr" title="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a>
   is used.
 <div class="Pp"></div>
 The current encryption method for a file in a zip archive can be determined
-  using <a class="Xr" href="zip_stat.html">zip_stat(3)</a>.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  using <a class="Xr" title="Xr" href="zip_stat.html">zip_stat(3)</a>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">archive</var> is set to indicate the
-  error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_set_encryption</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_ENCRNOTSUPP</code>]</dt>
-  <dd class="It-tag">Unsupported compression method requested.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>, or the argument combination is
-    invalid.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_RDONLY</code>]</dt>
-  <dd class="It-tag">Read-only zip file, no changes allowed.</dd>
+  error information in <var class="Ar" title="Ar">archive</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_set_encryption</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_ENCRNOTSUPP"><code class="Er" title="Er" id="ZIP_ER_ENCRNOTSUPP">ZIP_ER_ENCRNOTSUPP</code></a>]</dt>
+  <dd>Unsupported compression method requested.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>, or the argument combination is
+      invalid.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_RDONLY"><code class="Er" title="Er" id="ZIP_ER_RDONLY">ZIP_ER_RDONLY</code></a>]</dt>
+  <dd>Read-only zip file, no changes allowed.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a>,
-  <a class="Xr" href="zip_stat.html">zip_stat(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_set_encryption</b>() was added in libzip 1.2.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a>,
+  <a class="Xr" title="Xr" href="zip_stat.html">zip_stat(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_set_encryption</code>() was added in libzip
+  1.2.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_set_encryption.man b/man/zip_file_set_encryption.man
index 1372144..d82e28e 100644
--- a/man/zip_file_set_encryption.man
+++ b/man/zip_file_set_encryption.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_set_encryption.mdoc -- set encryption method for file
+.\" Copyright (C) 2016-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_SET_ENCRYPTION" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_set_external_attributes.html b/man/zip_file_set_external_attributes.html
index 97c721d..146f75b 100644
--- a/man/zip_file_set_external_attributes.html
+++ b/man/zip_file_set_external_attributes.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_set_external_attributes.mdoc -- set external attributes for file in zip
+   Copyright (C) 2013-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_SET_EXTERNAL_ATTRIBUTES(3)</title>
 </head>
@@ -20,66 +46,74 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_set_external_attributes</b> &#8212; <span class="Nd">set
-  external attributes for file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_set_external_attributes</code> &#x2014;
+<div class="Nd" title="Nd">set external attributes for file in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_file_set_external_attributes</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
-  flags</var>, <var class="Fa" style="white-space: nowrap;">zip_uint8_t
-  opsys</var>, <var class="Fa" style="white-space: nowrap;">zip_uint32_t
+<code class="Fn" title="Fn">zip_file_set_external_attributes</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint8_t
+  opsys</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint32_t
   attributes</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_file_set_external_attributes</b>() function sets the
-  operating system and external attributes for the file at position
-  <var class="Ar">index</var> in the zip archive. Currently, no
-  <var class="Ar">flags</var> are supported.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_file_set_external_attributes</code>()
+  function sets the operating system and external attributes for the file at
+  position <var class="Ar" title="Ar">index</var> in the zip archive. Currently,
+  no <var class="Ar" title="Ar">flags</var> are supported.
 <div class="Pp"></div>
-For a list of known <var class="Ar">opsys</var> values, see
-  <a class="Xr" href="zip_file_get_external_attributes.html">zip_file_get_external_attributes(3)</a>.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+For a list of known <var class="Ar" title="Ar">opsys</var> values, see
+  <a class="Xr" title="Xr" href="zip_file_get_external_attributes.html">zip_file_get_external_attributes(3)</a>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">archive</var> is set to indicate the
-  error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_set_external_attributes</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_RDONLY</code>]</dt>
-  <dd class="It-tag">The <var class="Ar">archive</var> was opened in read-only
-      mode.</dd>
+  error information in <var class="Ar" title="Ar">archive</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_set_external_attributes</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_RDONLY"><code class="Er" title="Er" id="ZIP_ER_RDONLY">ZIP_ER_RDONLY</code></a>]</dt>
+  <dd>The <var class="Ar" title="Ar">archive</var> was opened in read-only
+    mode.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_get_external_attributes.html">zip_file_get_external_attributes(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_set_external_attributes</b>() was added in libzip 0.11.2.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_get_external_attributes.html">zip_file_get_external_attributes(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_set_external_attributes</code>() was added
+  in libzip 0.11.2.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_set_external_attributes.man b/man/zip_file_set_external_attributes.man
index e36b96f..76c375e 100644
--- a/man/zip_file_set_external_attributes.man
+++ b/man/zip_file_set_external_attributes.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_set_external_attributes.mdoc -- set external attributes for file in zip
+.\" Copyright (C) 2013-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_SET_EXTERNAL_ATTRIBUTES" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_set_mtime.html b/man/zip_file_set_mtime.html
index fa9a247..2854d3f 100644
--- a/man/zip_file_set_mtime.html
+++ b/man/zip_file_set_mtime.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_set_mtime.mdoc -- set mtime for file in zip
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_SET_MTIME(3)</title>
 </head>
@@ -20,61 +46,69 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_set_mtime</b> &#8212; <span class="Nd">set last
-  modification time (mtime) for file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_set_mtime</code> &#x2014;
+<div class="Nd" title="Nd">set last modification time (mtime) for file in
+  zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_file_set_mtime</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">time_t mtime</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_flags_t flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_file_set_mtime</b>() function sets the last modification
-  time (mtime) for the file at position <var class="Ar">index</var> in the zip
-  archive to <var class="Ar">mtime</var>. Currently, no support for any
-  <var class="Ar">flags</var> is implemented.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<code class="Fn" title="Fn">zip_file_set_mtime</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">time_t
+  mtime</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_file_set_mtime</code>() function sets the
+  last modification time (mtime) for the file at position
+  <var class="Ar" title="Ar">index</var> in the zip archive to
+  <var class="Ar" title="Ar">mtime</var>. Currently, no support for any
+  <var class="Ar" title="Ar">flags</var> is implemented.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">archive</var> is set to indicate the
-  error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_file_set_mtime</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_RDONLY</code>]</dt>
-  <dd class="It-tag">The <var class="Ar">archive</var> was opened in read-only
-      mode.</dd>
+  error information in <var class="Ar" title="Ar">archive</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_file_set_mtime</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_RDONLY"><code class="Er" title="Er" id="ZIP_ER_RDONLY">ZIP_ER_RDONLY</code></a>]</dt>
+  <dd>The <var class="Ar" title="Ar">archive</var> was opened in read-only
+    mode.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_stat.html">zip_stat(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_set_mtime</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_stat.html">zip_stat(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_set_mtime</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_set_mtime.man b/man/zip_file_set_mtime.man
index a2e8c81..aa2e52f 100644
--- a/man/zip_file_set_mtime.man
+++ b/man/zip_file_set_mtime.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_set_mtime.mdoc -- set mtime for file in zip
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_SET_MTIME" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_file_strerror.html b/man/zip_file_strerror.html
index ed5930c..3ab840e 100644
--- a/man/zip_file_strerror.html
+++ b/man/zip_file_strerror.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_file_strerror.mdoc -- get string representation for a zip error
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FILE_STRERROR(3)</title>
 </head>
@@ -20,50 +46,58 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_file_strerror</b>, <b class="Nm">zip_strerror</b> &#8212;
-  <span class="Nd">get string representation for a zip error</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_file_strerror</code>,
+  <code class="Nm" title="Nm">zip_strerror</code> &#x2014;
+<div class="Nd" title="Nd">get string representation for a zip error</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">const char *</var>
+<var class="Ft" title="Ft">const char *</var>
 <br/>
-<b class="Fn">zip_file_strerror</b>(<var class="Fa" style="white-space: nowrap;">zip_file_t
+<code class="Fn" title="Fn">zip_file_strerror</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_file_t
   *file</var>);
 <div class="Pp"></div>
-<var class="Ft">const char *</var>
+<var class="Ft" title="Ft">const char *</var>
 <br/>
-<b class="Fn">zip_strerror</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_strerror</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_strerror</b>() function returns a string describing the
-  last error for the zip archive <var class="Ar">archive</var>, while the
-  <b class="Fn">zip_file_strerror</b>() function does the same for a zip file
-  <var class="Ar">file</var> (one file in an archive). The returned string must
-  not be modified or freed, and becomes invalid when
-  <var class="Ar">archive</var> or <var class="Ar">file</var>, respectively, is
-  closed or on the next call to <b class="Fn">zip_strerror</b>() or
-  <b class="Fn">zip_file_strerror</b>(), respectively, for the same archive.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-<b class="Fn">zip_file_strerror</b>() and <b class="Fn">zip_strerror</b>()
-  return a pointer to the error string.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_to_str.html">zip_error_to_str(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_file_strerror</b>() and <b class="Fn">zip_strerror</b>() were
-  added in libzip 0.6.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_strerror</code>() function returns a string
+  describing the last error for the zip archive
+  <var class="Ar" title="Ar">archive</var>, while the
+  <code class="Fn" title="Fn">zip_file_strerror</code>() function does the same
+  for a zip file <var class="Ar" title="Ar">file</var> (one file in an archive).
+  The returned string must not be modified or freed, and becomes invalid when
+  <var class="Ar" title="Ar">archive</var> or
+  <var class="Ar" title="Ar">file</var>, respectively, is closed or on the next
+  call to <code class="Fn" title="Fn">zip_strerror</code>() or
+  <code class="Fn" title="Fn">zip_file_strerror</code>(), respectively, for the
+  same archive.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+<code class="Fn" title="Fn">zip_file_strerror</code>() and
+  <code class="Fn" title="Fn">zip_strerror</code>() return a pointer to the
+  error string.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_strerror.html">zip_error_strerror(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_file_strerror</code>() and
+  <code class="Fn" title="Fn">zip_strerror</code>() were added in libzip 0.6.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_file_strerror.man b/man/zip_file_strerror.man
index cc595ed..44e9f03 100644
--- a/man/zip_file_strerror.man
+++ b/man/zip_file_strerror.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_file_strerror.mdoc -- get string representation for a zip error
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FILE_STRERROR" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -51,7 +83,7 @@
 return a pointer to the error string.
 .SH "SEE ALSO"
 libzip(3),
-zip_error_to_str(3)
+zip_error_strerror(3)
 .SH "HISTORY"
 \fBzip_file_strerror\fR()
 and
diff --git a/man/zip_file_strerror.mdoc b/man/zip_file_strerror.mdoc
index 0efab60..4114fee 100644
--- a/man/zip_file_strerror.mdoc
+++ b/man/zip_file_strerror.mdoc
@@ -72,7 +72,7 @@
 return a pointer to the error string.
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_error_to_str 3
+.Xr zip_error_strerror 3
 .Sh HISTORY
 .Fn zip_file_strerror
 and
diff --git a/man/zip_fopen.html b/man/zip_fopen.html
index ec0daf3..62fd646 100644
--- a/man/zip_fopen.html
+++ b/man/zip_fopen.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_fopen.mdoc -- open file in zip archive for reading
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FOPEN(3)</title>
 </head>
@@ -20,131 +46,142 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_fopen</b>, <b class="Nm">zip_fopen_index</b> &#8212;
-  <span class="Nd">open file in zip archive for reading</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_fopen</code>,
+  <code class="Nm" title="Nm">zip_fopen_index</code> &#x2014;
+<div class="Nd" title="Nd">open file in zip archive for reading</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_file_t *</var>
+<var class="Ft" title="Ft">zip_file_t *</var>
 <br/>
-<b class="Fn">zip_fopen</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *fname</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_fopen</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *fname</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_file_t *</var>
+<var class="Ft" title="Ft">zip_file_t *</var>
 <br/>
-<b class="Fn">zip_fopen_index</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_fopen_index</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_fopen</b>() function opens the file name
-  <var class="Ar">fname</var> in <var class="Ar">archive</var>. The
-  <var class="Ar">flags</var> argument specifies how the name lookup should be
-  done, according to the values are described in
-  <a class="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>. Also, the
-  following values may be <i class="Em">or</i><span class="No">'ed</span> to it.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_fopen</code>() function opens the file name
+  <var class="Ar" title="Ar">fname</var> in
+  <var class="Ar" title="Ar">archive</var>. The
+  <var class="Ar" title="Ar">flags</var> argument specifies how the name lookup
+  should be done, according to the values are described in
+  <a class="Xr" title="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>.
+  Also, the following values may be
+  <i class="Em" title="Em">or</i><span class="No">'ed</span> to it.
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;"><code class="Dv">ZIP_FL_COMPRESSED</code></dt>
-  <dd class="It-tag">Read the compressed data. Otherwise the data is
-      uncompressed by <b class="Fn">zip_fread</b>().</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;"><code class="Dv">ZIP_FL_UNCHANGED</code></dt>
-  <dd class="It-tag">Read the original data from the zip archive, ignoring any
-      changes made to the file.</dd>
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;"><a class="permalink" href="#ZIP_FL_COMPRESSED"><code class="Dv" title="Dv" id="ZIP_FL_COMPRESSED">ZIP_FL_COMPRESSED</code></a></dt>
+  <dd>Read the compressed data. Otherwise the data is uncompressed by
+      <code class="Fn" title="Fn">zip_fread</code>().</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;"><a class="permalink" href="#ZIP_FL_UNCHANGED"><code class="Dv" title="Dv" id="ZIP_FL_UNCHANGED">ZIP_FL_UNCHANGED</code></a></dt>
+  <dd>Read the original data from the zip archive, ignoring any changes made to
+      the file.</dd>
 </dl>
 </div>
 <div class="Pp"></div>
-The <b class="Fn">zip_fopen_index</b>() function opens the file at position
-  <var class="Ar">index</var>.
+The <code class="Fn" title="Fn">zip_fopen_index</code>() function opens the file
+  at position <var class="Ar" title="Ar">index</var>.
 <div class="Pp"></div>
 If encrypted data is encountered, the functions call
-  <a class="Xr" href="zip_fopen_encrypted.html">zip_fopen_encrypted(3)</a> or
-  <a class="Xr" href="zip_fopen_index_encrypted.html">zip_fopen_index_encrypted(3)</a>
+  <a class="Xr" title="Xr" href="zip_fopen_encrypted.html">zip_fopen_encrypted(3)</a>
+  or
+  <a class="Xr" title="Xr" href="zip_fopen_index_encrypted.html">zip_fopen_index_encrypted(3)</a>
   respectively, using the default password set with
-  <a class="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a>.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-Upon successful completion, a <var class="Ft">struct zip_file</var> pointer is
-  returned. Otherwise, <code class="Dv">NULL</code> is returned and the error
-  code in <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_CHANGED</code>]</dt>
-  <dd class="It-tag">The file data has been changed.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_COMPNOTSUPP</code>]</dt>
-  <dd class="It-tag">The compression method used is not supported.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_ENCRNOTSUPP</code>]</dt>
-  <dd class="It-tag">The encryption method used is not supported.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_NOPASSWD</code>]</dt>
-  <dd class="It-tag">The file is encrypted, but no password has been
-    provided.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_READ</code>]</dt>
-  <dd class="It-tag">A file read error occurred.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_SEEK</code>]</dt>
-  <dd class="It-tag">A file seek error occurred.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_WRONGPASSWD</code>]</dt>
-  <dd class="It-tag">The provided password does not match the password used for
-      encryption. Note that some incorrect passwords are not detected by the
-      check done by <b class="Fn">zip_fopen</b>().</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_ZLIB</code>]</dt>
-  <dd class="It-tag">Initializing the zlib stream failed.</dd>
+  <a class="Xr" title="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Upon successful completion, a <var class="Ft" title="Ft">struct zip_file</var>
+  pointer is returned. Otherwise, <code class="Dv" title="Dv">NULL</code> is
+  returned and the error code in <var class="Ar" title="Ar">archive</var> is set
+  to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_CHANGED"><code class="Er" title="Er" id="ZIP_ER_CHANGED">ZIP_ER_CHANGED</code></a>]</dt>
+  <dd>The file data has been changed.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_COMPNOTSUPP"><code class="Er" title="Er" id="ZIP_ER_COMPNOTSUPP">ZIP_ER_COMPNOTSUPP</code></a>]</dt>
+  <dd>The compression method used is not supported.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_ENCRNOTSUPP"><code class="Er" title="Er" id="ZIP_ER_ENCRNOTSUPP">ZIP_ER_ENCRNOTSUPP</code></a>]</dt>
+  <dd>The encryption method used is not supported.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_NOPASSWD"><code class="Er" title="Er" id="ZIP_ER_NOPASSWD">ZIP_ER_NOPASSWD</code></a>]</dt>
+  <dd>The file is encrypted, but no password has been provided.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_READ"><code class="Er" title="Er" id="ZIP_ER_READ">ZIP_ER_READ</code></a>]</dt>
+  <dd>A file read error occurred.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_SEEK"><code class="Er" title="Er" id="ZIP_ER_SEEK">ZIP_ER_SEEK</code></a>]</dt>
+  <dd>A file seek error occurred.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_WRONGPASSWD"><code class="Er" title="Er" id="ZIP_ER_WRONGPASSWD">ZIP_ER_WRONGPASSWD</code></a>]</dt>
+  <dd>The provided password does not match the password used for encryption.
+      Note that some incorrect passwords are not detected by the check done by
+      <code class="Fn" title="Fn">zip_fopen</code>().</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_ZLIB"><code class="Er" title="Er" id="ZIP_ER_ZLIB">ZIP_ER_ZLIB</code></a>]</dt>
+  <dd>Initializing the zlib stream failed.</dd>
 </dl>
 <div class="Pp"></div>
-The function <b class="Fn">zip_fopen</b>() may also fail and set
-  <var class="Va">zip_err</var> for any of the errors specified for the routine
-  <a class="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>.
+The function <code class="Fn" title="Fn">zip_fopen</code>() may also fail and
+  set <var class="Va" title="Va">zip_err</var> for any of the errors specified
+  for the routine
+  <a class="Xr" title="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>.
 <div class="Pp"></div>
-The function <b class="Fn">zip_fopen_index</b>() may also fail with
-  <code class="Er">ZIP_ER_INVAL</code> if <var class="Ar">index</var> is
-  invalid.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_fclose.html">zip_fclose(3)</a>,
-  <a class="Xr" href="zip_fread.html">zip_fread(3)</a>,
-  <a class="Xr" href="zip_fseek.html">zip_fseek(3)</a>,
-  <a class="Xr" href="zip_get_num_entries.html">zip_get_num_entries(3)</a>,
-  <a class="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>,
-  <a class="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_fopen</b>() and <b class="Fn">zip_fopen_index</b>() were added
-  in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+The function <code class="Fn" title="Fn">zip_fopen_index</code>() may also fail
+  with <code class="Er" title="Er">ZIP_ER_INVAL</code> if
+  <var class="Ar" title="Ar">index</var> is invalid.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fclose.html">zip_fclose(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fread.html">zip_fread(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fseek.html">zip_fseek(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_num_entries.html">zip_get_num_entries(3)</a>,
+  <a class="Xr" title="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>,
+  <a class="Xr" title="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_fopen</code>() and
+  <code class="Fn" title="Fn">zip_fopen_index</code>() were added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_fopen.man b/man/zip_fopen.man
index 1572068..95e0100 100644
--- a/man/zip_fopen.man
+++ b/man/zip_fopen.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_fopen.mdoc -- open file in zip archive for reading
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FOPEN" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_fopen_encrypted.html b/man/zip_fopen_encrypted.html
index 5663376..e1b68bc 100644
--- a/man/zip_fopen_encrypted.html
+++ b/man/zip_fopen_encrypted.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_fopen_encrypted.mdoc -- open encrypted file in zip archive for reading
+   Copyright (C) 2011-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FOPEN_ENCRYPTED(3)</title>
 </head>
@@ -20,82 +46,93 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_fopen_encrypted</b>,
-  <b class="Nm">zip_fopen_index_encrypted</b> &#8212; <span class="Nd">open
-  encrypted file in zip archive for reading</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_fopen_encrypted</code>,
+  <code class="Nm" title="Nm">zip_fopen_index_encrypted</code> &#x2014;
+<div class="Nd" title="Nd">open encrypted file in zip archive for reading</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_file_t *</var>
+<var class="Ft" title="Ft">zip_file_t *</var>
 <br/>
-<b class="Fn">zip_fopen_encrypted</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *fname</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
-  flags</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *password</var>);
+<code class="Fn" title="Fn">zip_fopen_encrypted</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *fname</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *password</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_file_t *</var>
+<var class="Ft" title="Ft">zip_file_t *</var>
 <br/>
-<b class="Fn">zip_fopen_index_encrypted</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
-  flags</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *password</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_fopen_encrypted</b>() function opens the encrypted file
-  name <var class="Ar">fname</var> in <var class="Ar">archive</var> using the
-  password given in the <var class="Ar">password</var> argument. The
-  <var class="Ar">flags</var> argument are the same as for
-  <a class="Xr" href="zip_fopen.html">zip_fopen(3)</a>.
+<code class="Fn" title="Fn">zip_fopen_index_encrypted</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *password</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_fopen_encrypted</code>() function opens the
+  encrypted file name <var class="Ar" title="Ar">fname</var> in
+  <var class="Ar" title="Ar">archive</var> using the password given in the
+  <var class="Ar" title="Ar">password</var> argument. The
+  <var class="Ar" title="Ar">flags</var> argument are the same as for
+  <a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a>.
 <div class="Pp"></div>
-The <b class="Fn">zip_fopen_index_encrypted</b>() function opens the file at
-  position <var class="Ar">index</var>, see
-  <a class="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a>. These
-  functions are called automatically by
-  <a class="Xr" href="zip_fopen.html">zip_fopen(3)</a>; you only need to call
-  them if you want to specify a non-default password (see
-  <a class="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a>).
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-Upon successful completion, a <var class="Ft">struct zip_file</var> pointer is
-  returned. Otherwise, <code class="Dv">NULL</code> is returned and the error
-  code in <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<dl class="Bl-tag" style="margin-left: 20.00ex;">
-  <dt class="It-tag" style="margin-left: -20.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -20.00ex;">[<code class="Er">ZIP_ER_NOPASSWD</code>]</dt>
-  <dd class="It-tag">No password was provided.</dd>
+The <code class="Fn" title="Fn">zip_fopen_index_encrypted</code>() function
+  opens the file at position <var class="Ar" title="Ar">index</var>, see
+  <a class="Xr" title="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a>.
+  These functions are called automatically by
+  <a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a>; you only need
+  to call them if you want to specify a non-default password (see
+  <a class="Xr" title="Xr" href="zip_set_default_password.html">zip_set_default_password(3)</a>).
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Upon successful completion, a <var class="Ft" title="Ft">struct zip_file</var>
+  pointer is returned. Otherwise, <code class="Dv" title="Dv">NULL</code> is
+  returned and the error code in <var class="Ar" title="Ar">archive</var> is set
+  to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<dl class="Bl-tag" style="margin-left: 27.00ex;">
+  <dt style="margin-left: -27.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -27.00ex;">[<a class="permalink" href="#ZIP_ER_NOPASSWD"><code class="Er" title="Er" id="ZIP_ER_NOPASSWD">ZIP_ER_NOPASSWD</code></a>]</dt>
+  <dd>No password was provided.</dd>
 </dl>
 <div class="Pp"></div>
-The function <b class="Fn">zip_fopen_encrypted</b>() may also fail and set
-  <var class="Va">zip_err</var> for any of the errors specified for the routine
-  <a class="Xr" href="zip_fopen.html">zip_fopen(3)</a>.
+The function <code class="Fn" title="Fn">zip_fopen_encrypted</code>() may also
+  fail and set <var class="Va" title="Va">zip_err</var> for any of the errors
+  specified for the routine
+  <a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a>.
 <div class="Pp"></div>
-The function <b class="Fn">zip_fopen_index_encrypted</b>() may also fail and set
-  <var class="Va">zip_err</var> for any of the errors specified for the routine
-  <a class="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_fclose.html">zip_fclose(3)</a>,
-  <a class="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
-  <a class="Xr" href="zip_fread.html">zip_fread(3)</a>,
-  <a class="Xr" href="zip_get_num_entries.html">zip_get_num_entries(3)</a>,
-  <a class="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_fopen_encrypted</b>() and
-  <b class="Fn">zip_fopen_index_encrypted</b>() were added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+The function <code class="Fn" title="Fn">zip_fopen_index_encrypted</code>() may
+  also fail and set <var class="Va" title="Va">zip_err</var> for any of the
+  errors specified for the routine
+  <a class="Xr" title="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fclose.html">zip_fclose(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fread.html">zip_fread(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_num_entries.html">zip_get_num_entries(3)</a>,
+  <a class="Xr" title="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_fopen_encrypted</code>() and
+  <code class="Fn" title="Fn">zip_fopen_index_encrypted</code>() were added in
+  libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_fopen_encrypted.man b/man/zip_fopen_encrypted.man
index 138b595..872a3c8 100644
--- a/man/zip_fopen_encrypted.man
+++ b/man/zip_fopen_encrypted.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_fopen_encrypted.mdoc -- open encrypted file in zip archive for reading
+.\" Copyright (C) 2011-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FOPEN_ENCRYPTED" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_fread.html b/man/zip_fread.html
index 2fe42fb..8c3142e 100644
--- a/man/zip_fread.html
+++ b/man/zip_fread.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_fread.mdoc -- read from file
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FREAD(3)</title>
 </head>
@@ -20,45 +46,54 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_fread</b> &#8212; <span class="Nd">read from file</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_fread</code> &#x2014;
+<div class="Nd" title="Nd">read from file</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_fread</b>(<var class="Fa" style="white-space: nowrap;">zip_file_t
-  *file</var>, <var class="Fa" style="white-space: nowrap;">void *buf</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint64_t nbytes</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_fread</b>() function reads at most
-  <var class="Ar">nbytes</var> bytes from <var class="Ar">file</var> into
-  <var class="Ar">buf</var>.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<code class="Fn" title="Fn">zip_fread</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_file_t
+  *file</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *buf</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  nbytes</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_fread</code>() function reads at most
+  <var class="Ar" title="Ar">nbytes</var> bytes from
+  <var class="Ar" title="Ar">file</var> into
+  <var class="Ar" title="Ar">buf</var>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 If successful, the number of bytes actually read is returned. Otherwise, -1 is
   returned.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_fclose.html">zip_fclose(3)</a>,
-  <a class="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
-  <a class="Xr" href="zip_fseek.html">zip_fseek(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_fread</b>() was added in libzip 0.6. In libzip 0.10 the return
-  type was changed from <var class="Vt">ssize_t</var> to
-  <var class="Vt">zip_int64_t</var>. In libzip 0.10 the type of
-  <var class="Ar">nbytes</var> was changed from <var class="Vt">size_t</var> to
-  <var class="Vt">zip_uint64_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fclose.html">zip_fclose(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fseek.html">zip_fseek(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_fread</code>() was added in libzip 0.6. In
+  libzip 0.10 the return type was changed from
+  <var class="Vt" title="Vt">ssize_t</var> to
+  <var class="Vt" title="Vt">zip_int64_t</var>. In libzip 0.10 the type of
+  <var class="Ar" title="Ar">nbytes</var> was changed from
+  <var class="Vt" title="Vt">size_t</var> to
+  <var class="Vt" title="Vt">zip_uint64_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_fread.man b/man/zip_fread.man
index c07f47e..d0eb517 100644
--- a/man/zip_fread.man
+++ b/man/zip_fread.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_fread.mdoc -- read from file
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FREAD" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_fseek.html b/man/zip_fseek.html
index efa3d1e..d8eab7b 100644
--- a/man/zip_fseek.html
+++ b/man/zip_fseek.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_fseek.mdoc -- seek in file
+   Copyright (C) 2016-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FSEEK(3)</title>
 </head>
@@ -20,44 +46,52 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_fseek</b> &#8212; <span class="Nd">seek in file</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_fseek</code> &#x2014;
+<div class="Nd" title="Nd">seek in file</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int8_t</var>
+<var class="Ft" title="Ft">zip_int8_t</var>
 <br/>
-<b class="Fn">zip_fseek</b>(<var class="Fa" style="white-space: nowrap;">zip_file_t
-  *file</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
-  offset</var>, <var class="Fa" style="white-space: nowrap;">int whence</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_fseek</b>() function seeks to the specified
-  <var class="Ar">offset</var> relative to <var class="Ar">whence</var>, just
-  like <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/fseek.html">fseek(3)</a>.
+<code class="Fn" title="Fn">zip_fseek</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_file_t
+  *file</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t
+  offset</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  whence</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_fseek</code>() function seeks to the
+  specified <var class="Ar" title="Ar">offset</var> relative to
+  <var class="Ar" title="Ar">whence</var>, just like
+  <a class="Xr" title="Xr" href="fseek.html">fseek(3)</a>.
 <div class="Pp"></div>
-<b class="Nm">zip_fseek</b> only works on uncompressed (stored) data. When
-  called on compressed data it will return an error.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-If successful, <b class="Nm">zip_fseek</b> returns 0. Otherwise, -1 is returned.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_fclose.html">zip_fclose(3)</a>,
-  <a class="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
-  <a class="Xr" href="zip_fread.html">zip_fread(3)</a>,
-  <a class="Xr" href="zip_ftell.html">zip_ftell(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_fseek</b>() was added in libzip 1.2.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Nm" title="Nm">zip_fseek</code> only works on uncompressed (stored)
+  data. When called on compressed data it will return an error.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+If successful, <code class="Nm" title="Nm">zip_fseek</code> returns 0.
+  Otherwise, -1 is returned.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fclose.html">zip_fclose(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fread.html">zip_fread(3)</a>,
+  <a class="Xr" title="Xr" href="zip_ftell.html">zip_ftell(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_fseek</code>() was added in libzip 1.2.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_fseek.man b/man/zip_fseek.man
index 0aa5d4f..d69e0e6 100644
--- a/man/zip_fseek.man
+++ b/man/zip_fseek.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_fseek.mdoc -- seek in file
+.\" Copyright (C) 2016-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FSEEK" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_ftell.html b/man/zip_ftell.html
index 09ed325..26f3e44 100644
--- a/man/zip_ftell.html
+++ b/man/zip_ftell.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_ftell.mdoc -- tell position in file
+   Copyright (C) 2016-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_FTELL(3)</title>
 </head>
@@ -20,44 +46,47 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_ftell</b> &#8212; <span class="Nd">tell position in
-  file</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_ftell</code> &#x2014;
+<div class="Nd" title="Nd">tell position in file</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_ftell</b>(<var class="Fa" style="white-space: nowrap;">zip_file_t
+<code class="Fn" title="Fn">zip_ftell</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_file_t
   *file</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_ftell</b>() function reports the current offset in the
-  file.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_ftell</code>() function reports the current
+  offset in the file.
 <div class="Pp"></div>
-<b class="Nm">zip_ftell</b> only works on uncompressed (stored) data. When
-  called on compressed data it will return an error.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-If successful, <b class="Nm">zip_ftell</b> returns the current file position.
-  Otherwise, -1 is returned.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_fclose.html">zip_fclose(3)</a>,
-  <a class="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
-  <a class="Xr" href="zip_fread.html">zip_fread(3)</a>,
-  <a class="Xr" href="zip_fseek.html">zip_fseek(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_ftell</b>() was added in libzip 1.2.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Nm" title="Nm">zip_ftell</code> only works on uncompressed (stored)
+  data. When called on compressed data it will return an error.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+If successful, <code class="Nm" title="Nm">zip_ftell</code> returns the current
+  file position. Otherwise, -1 is returned.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fclose.html">zip_fclose(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fread.html">zip_fread(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fseek.html">zip_fseek(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_ftell</code>() was added in libzip 1.2.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_ftell.man b/man/zip_ftell.man
index 7951ba3..9f87de8 100644
--- a/man/zip_ftell.man
+++ b/man/zip_ftell.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_ftell.mdoc -- tell position in file
+.\" Copyright (C) 2016-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_FTELL" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_get_archive_comment.html b/man/zip_get_archive_comment.html
index aca7e63..b0df85c 100644
--- a/man/zip_get_archive_comment.html
+++ b/man/zip_get_archive_comment.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_get_archive_comment.mdoc -- get zip archive comment
+   Copyright (C) 2006-2018 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_GET_ARCHIVE_COMMENT(3)</title>
 </head>
@@ -20,72 +46,79 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_get_archive_comment</b> &#8212; <span class="Nd">get zip
-  archive comment</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_get_archive_comment</code> &#x2014;
+<div class="Nd" title="Nd">get zip archive comment</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">const char *</var>
+<var class="Ft" title="Ft">const char *</var>
 <br/>
-<b class="Fn">zip_get_archive_comment</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">int *lenp</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_flags_t flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_get_archive_comment</b>() function returns the comment for
-  the entire zip archive. The name is in UTF-8 encoding unless
-  <code class="Dv">ZIP_FL_ENC_RAW</code> was specified (see below). This pointer
-  should not be modified or <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html">free(3)</a>'d, and
-  becomes invalid when <var class="Ar">archive</var> is closed. If
-  <var class="Ar">lenp</var> is not <code class="Dv">NULL</code>, the integer to
-  which it points will be set to the length of the comment. If
-  <var class="Ar">flags</var> is set to
-  <code class="Dv">ZIP_FL_UNCHANGED</code>, the original unchanged comment is
-  returned.
+<code class="Fn" title="Fn">zip_get_archive_comment</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  *lenp</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_get_archive_comment</code>() function
+  returns the comment for the entire zip archive. The return value is in UTF-8
+  encoding unless <code class="Dv" title="Dv">ZIP_FL_ENC_RAW</code> was
+  specified (see below). This pointer should not be modified or
+  <a class="Xr" title="Xr" href="free.html">free(3)</a>'d, and becomes invalid
+  when <var class="Ar" title="Ar">archive</var> is closed. If
+  <var class="Ar" title="Ar">lenp</var> is not
+  <code class="Dv" title="Dv">NULL</code>, the integer to which it points will
+  be set to the length of the comment. If <var class="Ar" title="Ar">flags</var>
+  is set to <code class="Dv" title="Dv">ZIP_FL_UNCHANGED</code>, the original
+  unchanged comment is returned.
 <div class="Pp"></div>
-Additionally, the following <var class="Ar">flags</var> are supported:
+Additionally, the following <var class="Ar" title="Ar">flags</var> are
+  supported:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 19.00ex;">
-  <dt class="It-tag" style="margin-left: -19.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;"><code class="Dv">ZIP_FL_ENC_RAW</code></dt>
-  <dd class="It-tag">Return the unmodified archive comment as it is in the ZIP
-      archive.</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;"><code class="Dv">ZIP_FL_ENC_GUESS</code></dt>
-  <dd class="It-tag">(Default.) Guess the encoding of the archive comment in the
-      ZIP archive and convert it to UTF-8, if necessary.</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;"><code class="Dv">ZIP_FL_ENC_STRICT</code></dt>
-  <dd class="It-tag">Follow the ZIP specification for file names and extend it
-      to the archive comment, thus also expecting it in CP-437 encoding. Convert
-      it to UTF-8.</dd>
+<dl class="Bl-tag" style="margin-left: 25.80ex;">
+  <dt style="margin-left: -25.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -25.80ex;"><a class="permalink" href="#ZIP_FL_ENC_RAW"><code class="Dv" title="Dv" id="ZIP_FL_ENC_RAW">ZIP_FL_ENC_RAW</code></a></dt>
+  <dd>Return the unmodified archive comment as it is in the ZIP archive.</dd>
+  <dt style="margin-left: -25.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -25.80ex;"><a class="permalink" href="#ZIP_FL_ENC_GUESS"><code class="Dv" title="Dv" id="ZIP_FL_ENC_GUESS">ZIP_FL_ENC_GUESS</code></a></dt>
+  <dd>(Default.) Guess the encoding of the archive comment in the ZIP archive
+      and convert it to UTF-8, if necessary.</dd>
+  <dt style="margin-left: -25.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -25.80ex;"><a class="permalink" href="#ZIP_FL_ENC_STRICT"><code class="Dv" title="Dv" id="ZIP_FL_ENC_STRICT">ZIP_FL_ENC_STRICT</code></a></dt>
+  <dd>Follow the ZIP specification for file names and extend it to the archive
+      comment, thus also expecting it in CP-437 encoding. Convert it to
+    UTF-8.</dd>
 </dl>
 </div>
-<i class="Em">Note</i>: ASCII is a subset of both CP-437 and UTF-8.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<i class="Em" title="Em">Note</i>: ASCII is a subset of both CP-437 and UTF-8.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, a pointer to the comment is returned, or
-  <code class="Dv">NULL</code> if there is no comment.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_get_file_comment.html">zip_get_file_comment(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_get_archive_comment</b>() was added in libzip 0.7. In libzip
-  0.11 the type of <var class="Ar">flags</var> was changed from
-  <var class="Vt">int</var> to <var class="Vt">zip_flags_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  <code class="Dv" title="Dv">NULL</code> if there is no comment.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_get_comment.html">zip_file_get_comment(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_get_archive_comment</code>() was added in libzip
+  0.7. In libzip 0.11 the type of <var class="Ar" title="Ar">flags</var> was
+  changed from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_flags_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
-    <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-date">July 22, 2018</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_get_archive_comment.man b/man/zip_get_archive_comment.man
index 54b5682..8cdfa30 100644
--- a/man/zip_get_archive_comment.man
+++ b/man/zip_get_archive_comment.man
@@ -1,4 +1,36 @@
-.TH "ZIP_GET_ARCHIVE_COMMENT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_get_archive_comment.mdoc -- get zip archive comment
+.\" Copyright (C) 2006-2018 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.TH "ZIP_GET_ARCHIVE_COMMENT" "3" "July 22, 2018" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
 .SH "NAME"
@@ -19,7 +51,7 @@
 The
 \fBzip_get_archive_comment\fR()
 function returns the comment for the entire zip archive.
-The name is in UTF-8 encoding unless
+The return value is in UTF-8 encoding unless
 \fRZIP_FL_ENC_RAW\fR
 was specified (see below).
 This pointer should not be modified or
@@ -66,7 +98,7 @@
 if there is no comment.
 .SH "SEE ALSO"
 libzip(3),
-zip_get_file_comment(3)
+zip_file_get_comment(3)
 .SH "HISTORY"
 \fBzip_get_archive_comment\fR()
 was added in libzip 0.7.
diff --git a/man/zip_get_archive_comment.mdoc b/man/zip_get_archive_comment.mdoc
index f142f39..ce9a01b 100644
--- a/man/zip_get_archive_comment.mdoc
+++ b/man/zip_get_archive_comment.mdoc
@@ -1,5 +1,5 @@
 .\" zip_get_archive_comment.mdoc -- get zip archive comment
-.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\" Copyright (C) 2006-2018 Dieter Baron and Thomas Klausner
 .\"
 .\" This file is part of libzip, a library to manipulate ZIP archives.
 .\" The authors can be contacted at <libzip@nih.at>
@@ -29,7 +29,7 @@
 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 18, 2017
+.Dd July 22, 2018
 .Dt ZIP_GET_ARCHIVE_COMMENT 3
 .Os
 .Sh NAME
@@ -45,7 +45,7 @@
 The
 .Fn zip_get_archive_comment
 function returns the comment for the entire zip archive.
-The name is in UTF-8 encoding unless
+The return value is in UTF-8 encoding unless
 .Dv ZIP_FL_ENC_RAW
 was specified (see below).
 This pointer should not be modified or
@@ -94,7 +94,7 @@
 .\" is set to indicate the error.
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_get_file_comment 3
+.Xr zip_file_get_comment 3
 .Sh HISTORY
 .Fn zip_get_archive_comment
 was added in libzip 0.7.
diff --git a/man/zip_get_archive_flag.html b/man/zip_get_archive_flag.html
index d70f754..c0f247d 100644
--- a/man/zip_get_archive_flag.html
+++ b/man/zip_get_archive_flag.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_get_archive_flag.mdoc -- get comment for file in zip
+   Copyright (C) 2008-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_GET_ARCHIVE_FLAG(3)</title>
 </head>
@@ -20,57 +46,66 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_get_archive_flag</b> &#8212; <span class="Nd">get status flags
-  for zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_get_archive_flag</code> &#x2014;
+<div class="Nd" title="Nd">get status flags for zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_get_archive_flag</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
-  flag</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_get_archive_flag</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flag</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_get_archive_flag</b>() function returns if the flag
-  <var class="Ar">flag</var> is set for the archive
-  <var class="Ar">archive</var>. The archive flags might have been changed with
-  <b class="Fn">zip_set_archive_flag</b>(); if <var class="Ar">flags</var> is
-  set to <code class="Dv">ZIP_FL_UNCHANGED</code>, the original unchanged flags
-  are tested.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_get_archive_flag</code>() function returns
+  if the flag <var class="Ar" title="Ar">flag</var> is set for the archive
+  <var class="Ar" title="Ar">archive</var>. The archive flags might have been
+  changed with <code class="Fn" title="Fn">zip_set_archive_flag</code>(); if
+  <var class="Ar" title="Ar">flags</var> is set to
+  <code class="Dv" title="Dv">ZIP_FL_UNCHANGED</code>, the original unchanged
+  flags are tested.
 <div class="Pp"></div>
 Supported flags are:
-<dl class="Bl-tag" style="margin-left: 18.00ex;">
-  <dt class="It-tag" style="margin-left: -18.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -18.00ex;"><code class="Dv">ZIP_AFL_RDONLY</code></dt>
-  <dd class="It-tag">The archive is read-only.</dd>
+<dl class="Bl-tag" style="margin-left: 24.60ex;">
+  <dt style="margin-left: -24.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -24.60ex;"><a class="permalink" href="#ZIP_AFL_RDONLY"><code class="Dv" title="Dv" id="ZIP_AFL_RDONLY">ZIP_AFL_RDONLY</code></a></dt>
+  <dd>The archive is read-only.</dd>
 </dl>
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-<b class="Fn">zip_get_archive_flag</b>() returns 1 if <var class="Ar">flag</var>
-  is set for <var class="Ar">archive</var>, 0 if not, and -1 if an error
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+<code class="Fn" title="Fn">zip_get_archive_flag</code>() returns 1 if
+  <var class="Ar" title="Ar">flag</var> is set for
+  <var class="Ar" title="Ar">archive</var>, 0 if not, and -1 if an error
   occurred.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_set_archive_flag.html">zip_set_archive_flag(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_get_archive_flag</b>() was added in libzip 0.9. In libzip 0.11
-  the type of <var class="Ar">flag</var> was changed from
-  <var class="Vt">int</var> to <var class="Vt">zip_flags_t m</var> and the type
-  of <var class="Ar">flags</var> was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_flags_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_set_archive_flag.html">zip_set_archive_flag(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_get_archive_flag</code>() was added in libzip
+  0.9. In libzip 0.11 the type of <var class="Ar" title="Ar">flag</var> was
+  changed from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_flags_t m</var> and the type of
+  <var class="Ar" title="Ar">flags</var> was changed from
+  <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_flags_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_get_archive_flag.man b/man/zip_get_archive_flag.man
index f611a50..4f9d08b 100644
--- a/man/zip_get_archive_flag.man
+++ b/man/zip_get_archive_flag.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_get_archive_flag.mdoc -- get comment for file in zip
+.\" Copyright (C) 2008-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_GET_ARCHIVE_FLAG" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_get_error.html b/man/zip_get_error.html
index b9c941b..9756b5b 100644
--- a/man/zip_get_error.html
+++ b/man/zip_get_error.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_get_error.mdoc -- get zip_error for archive
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_GET_ERROR(3)</title>
 </head>
@@ -20,36 +46,38 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_get_error</b> &#8212; <span class="Nd">get zip error for
-  archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_get_error</code> &#x2014;
+<div class="Nd" title="Nd">get zip error for archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_error_t *</var>
+<var class="Ft" title="Ft">zip_error_t *</var>
 <br/>
-<b class="Fn">zip_get_error</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_get_error</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_get_error</b>() function returns the zip error for the zip
-  archive <var class="Ar">archive</var>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>,
-  <a class="Xr" href="zip_error_code_zip.html">zip_error_code_zip(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_get_error</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_get_error</code>() function returns the zip
+  error for the zip archive <var class="Ar" title="Ar">archive</var>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_code_zip.html">zip_error_code_zip(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_get_error</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_get_error.man b/man/zip_get_error.man
index 2dddb7f..9cddbc2 100644
--- a/man/zip_get_error.man
+++ b/man/zip_get_error.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_get_error.mdoc -- get zip_error for archive
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_GET_ERROR" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_get_file_comment.html b/man/zip_get_file_comment.html
index 1fa85a4..be26243 100644
--- a/man/zip_get_file_comment.html
+++ b/man/zip_get_file_comment.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_get_file_comment.mdoc -- get comment for file in zip
+   Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_GET_FILE_COMMENT(3)</title>
 </head>
@@ -20,43 +46,50 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_get_file_comment</b> &#8212; <span class="Nd">get comment for
-  file in zip (obsolete interface)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_get_file_comment</code> &#x2014;
+<div class="Nd" title="Nd">get comment for file in zip (obsolete
+  interface)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">const char *</var>
+<var class="Ft" title="Ft">const char *</var>
 <br/>
-<b class="Fn">zip_get_file_comment</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">int *lenp</var>,
-  <var class="Fa" style="white-space: nowrap;">int flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_get_file_comment</b>() function is the obsolete version of
-  <a class="Xr" href="zip_file_get_comment.html">zip_file_get_comment(3)</a>.
-  The only differences are the types of the <var class="Ar">lenp</var> and
-  <var class="Ar">flags</var> arguments.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_get_comment.html">zip_file_get_comment(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_get_file_comment</b>() was added in libzip 0.7. In libzip 0.10
-  the type of <var class="Ar">index</var> was changed from
-  <var class="Vt">int</var> to <var class="Vt">zip_uint64_t</var>. It was
-  deprecated in libzip 0.11, use <b class="Fn">zip_file_get_comment</b>()
-  instead.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Fn" title="Fn">zip_get_file_comment</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  *lenp</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  flags</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_get_file_comment</code>() function is the
+  obsolete version of
+  <a class="Xr" title="Xr" href="zip_file_get_comment.html">zip_file_get_comment(3)</a>.
+  The only differences are the types of the
+  <var class="Ar" title="Ar">lenp</var> and
+  <var class="Ar" title="Ar">flags</var> arguments.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_get_comment.html">zip_file_get_comment(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_get_file_comment</code>() was added in libzip
+  0.7. In libzip 0.10 the type of <var class="Ar" title="Ar">index</var> was
+  changed from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_uint64_t</var>. It was deprecated in libzip
+  0.11, use <code class="Fn" title="Fn">zip_file_get_comment</code>() instead.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_get_file_comment.man b/man/zip_get_file_comment.man
index 8a71818..011871d 100644
--- a/man/zip_get_file_comment.man
+++ b/man/zip_get_file_comment.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_get_file_comment.mdoc -- get comment for file in zip
+.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_GET_FILE_COMMENT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_get_name.html b/man/zip_get_name.html
index 0786b65..3abb964 100644
--- a/man/zip_get_name.html
+++ b/man/zip_get_name.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_get_name.mdoc -- get name of file by index
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_GET_NAME(3)</title>
 </head>
@@ -20,94 +46,103 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_get_name</b> &#8212; <span class="Nd">get name of file by
-  index</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_get_name</code> &#x2014;
+<div class="Nd" title="Nd">get name of file by index</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">const char *</var>
+<var class="Ft" title="Ft">const char *</var>
 <br/>
-<b class="Fn">zip_get_name</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_get_name</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_get_name</b>() function returns the name of the file at
-  position <var class="Ar">index</var> in <var class="Ar">archive</var>. The
-  name is in UTF-8 encoding unless <code class="Dv">ZIP_FL_ENC_RAW</code> was
-  specified (see below).
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_get_name</code>() function returns the name
+  of the file at position <var class="Ar" title="Ar">index</var> in
+  <var class="Ar" title="Ar">archive</var>. The name is in UTF-8 encoding unless
+  <code class="Dv" title="Dv">ZIP_FL_ENC_RAW</code> was specified (see below).
 <div class="Pp"></div>
-If <var class="Ar">flags</var> is set to
-  <code class="Dv">ZIP_FL_UNCHANGED</code>, the original unchanged filename is
-  returned. The returned string must not be modified or freed, and becomes
-  invalid when <var class="Ar">archive</var> is closed.
+If <var class="Ar" title="Ar">flags</var> is set to
+  <code class="Dv" title="Dv">ZIP_FL_UNCHANGED</code>, the original unchanged
+  filename is returned. The returned string must not be modified or freed, and
+  becomes invalid when <var class="Ar" title="Ar">archive</var> is closed.
 <div class="Pp"></div>
-Additionally, the following <var class="Ar">flags</var> are supported:
+Additionally, the following <var class="Ar" title="Ar">flags</var> are
+  supported:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 19.00ex;">
-  <dt class="It-tag" style="margin-left: -19.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;"><code class="Dv">ZIP_FL_ENC_RAW</code></dt>
-  <dd class="It-tag">Return the unmodified names as it is in the ZIP
-    archive.</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;"><code class="Dv">ZIP_FL_ENC_GUESS</code></dt>
-  <dd class="It-tag">(Default.) Guess the encoding of the name in the ZIP
-      archive and convert it to UTF-8, if necessary.</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -19.00ex;"><code class="Dv">ZIP_FL_ENC_STRICT</code></dt>
-  <dd class="It-tag">Follow the ZIP specification and expect CP-437 encoded
-      names in the ZIP archive (except if they are explicitly marked as UTF-8).
-      Convert it to UTF-8.</dd>
+<dl class="Bl-tag" style="margin-left: 25.80ex;">
+  <dt style="margin-left: -25.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -25.80ex;"><a class="permalink" href="#ZIP_FL_ENC_RAW"><code class="Dv" title="Dv" id="ZIP_FL_ENC_RAW">ZIP_FL_ENC_RAW</code></a></dt>
+  <dd>Return the unmodified names as it is in the ZIP archive.</dd>
+  <dt style="margin-left: -25.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -25.80ex;"><a class="permalink" href="#ZIP_FL_ENC_GUESS"><code class="Dv" title="Dv" id="ZIP_FL_ENC_GUESS">ZIP_FL_ENC_GUESS</code></a></dt>
+  <dd>(Default.) Guess the encoding of the name in the ZIP archive and convert
+      it to UTF-8, if necessary.</dd>
+  <dt style="margin-left: -25.80ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -25.80ex;"><a class="permalink" href="#ZIP_FL_ENC_STRICT"><code class="Dv" title="Dv" id="ZIP_FL_ENC_STRICT">ZIP_FL_ENC_STRICT</code></a></dt>
+  <dd>Follow the ZIP specification and expect CP-437 encoded names in the ZIP
+      archive (except if they are explicitly marked as UTF-8). Convert it to
+      UTF-8.</dd>
 </dl>
 </div>
-<i class="Em">Note</i>: ASCII is a subset of both CP-437 and UTF-8.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<i class="Em" title="Em">Note</i>: ASCII is a subset of both CP-437 and UTF-8.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, a pointer to the name is returned. Otherwise,
-  <code class="Dv">NULL</code> and the error code in
-  <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_get_name</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_DELETED</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> refers to a file that has been
-      deleted (see <a class="Xr" href="zip_delete.html">zip_delete(3)</a>).</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>, or <var class="Ar">index</var> points to an
-      added file and <code class="Dv">ZIP_FL_UNCHANGED</code> is set.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
+  <code class="Dv" title="Dv">NULL</code> and the error code in
+  <var class="Ar" title="Ar">archive</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_get_name</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_DELETED"><code class="Er" title="Er" id="ZIP_ER_DELETED">ZIP_ER_DELETED</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> refers to a file that has been
+      deleted (see
+      <a class="Xr" title="Xr" href="zip_delete.html">zip_delete(3)</a>).</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>, or
+      <var class="Ar" title="Ar">index</var> points to an added file and
+      <code class="Dv" title="Dv">ZIP_FL_UNCHANGED</code> is set.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_get_name</b>() was added in libzip 0.6. In libzip 0.10 the
-  type of <var class="Ar">index</var> was changed from <var class="Vt">int</var>
-  to <var class="Vt">zip_uint64_t</var>. In libzip 0.11 the type of
-  <var class="Ar">flags</var> was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_flags_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_get_name</code>() was added in libzip 0.6. In
+  libzip 0.10 the type of <var class="Ar" title="Ar">index</var> was changed
+  from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_uint64_t</var>. In libzip 0.11 the type of
+  <var class="Ar" title="Ar">flags</var> was changed from
+  <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_flags_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_get_name.man b/man/zip_get_name.man
index 8fd6c2d..a83ca8e 100644
--- a/man/zip_get_name.man
+++ b/man/zip_get_name.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_get_name.mdoc -- get name of file by index
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_GET_NAME" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_get_num_entries.html b/man/zip_get_num_entries.html
index 93e5101..11ef3be 100644
--- a/man/zip_get_num_entries.html
+++ b/man/zip_get_num_entries.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_get_num_entries.mdoc -- get number of files in archive
+   Copyright (C) 2011-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_GET_NUM_ENTRIES(3)</title>
 </head>
@@ -20,47 +46,54 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_get_num_entries</b> &#8212; <span class="Nd">get number of
-  files in archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_get_num_entries</code> &#x2014;
+<div class="Nd" title="Nd">get number of files in archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_get_num_entries</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_get_num_entries</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_get_num_entries</b>() function returns the number of files
-  in <var class="Ar">archive</var>. If <var class="Ar">flags</var> is set to
-  <code class="Dv">ZIP_FL_UNCHANGED</code>, the original number of entries is
-  returned.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-<b class="Fn">zip_get_num_entries</b>() returns the number of files in the zip
-  archive, or -1 if <var class="Ar">archive</var> is
-  <code class="Dv">NULL</code>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a>,
-  <a class="Xr" href="zip_stat_index.html">zip_stat_index(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_get_num_entries</b>() was added in libzip 0.10. In libzip 0.11
-  the return type was changed from <var class="Vt">zip_uint64_t</var> to
-  <var class="Vt">zip_int64_t</var>. In libzip 0.11 the type of
-  <var class="Ar">flags</var> was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_flags_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_get_num_entries</code>() function returns
+  the number of files in <var class="Ar" title="Ar">archive</var>. If
+  <var class="Ar" title="Ar">flags</var> is set to
+  <code class="Dv" title="Dv">ZIP_FL_UNCHANGED</code>, the original number of
+  entries is returned.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+<code class="Fn" title="Fn">zip_get_num_entries</code>() returns the number of
+  files in the zip archive, or -1 if <var class="Ar" title="Ar">archive</var> is
+  <code class="Dv" title="Dv">NULL</code>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a>,
+  <a class="Xr" title="Xr" href="zip_stat_index.html">zip_stat_index(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_get_num_entries</code>() was added in libzip
+  0.10. In libzip 0.11 the return type was changed from
+  <var class="Vt" title="Vt">zip_uint64_t</var> to
+  <var class="Vt" title="Vt">zip_int64_t</var>. In libzip 0.11 the type of
+  <var class="Ar" title="Ar">flags</var> was changed from
+  <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_flags_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_get_num_entries.man b/man/zip_get_num_entries.man
index b1f5d92..f33f6ec 100644
--- a/man/zip_get_num_entries.man
+++ b/man/zip_get_num_entries.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_get_num_entries.mdoc -- get number of files in archive
+.\" Copyright (C) 2011-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_GET_NUM_ENTRIES" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_get_num_files.html b/man/zip_get_num_files.html
index 2775331..488dfe7 100644
--- a/man/zip_get_num_files.html
+++ b/man/zip_get_num_files.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_get_num_files.mdoc -- get number of files in archive
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_GET_NUM_FILES(3)</title>
 </head>
@@ -20,46 +46,52 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_get_num_files</b> &#8212; <span class="Nd">get number of files
-  in archive (obsolete interface)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_get_num_files</code> &#x2014;
+<div class="Nd" title="Nd">get number of files in archive (obsolete
+  interface)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_get_num_files</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_get_num_files</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-<i class="Em">This function is deprecated</i>. <i class="Em">Use</i>
-  <a class="Xr" href="zip_get_num_entries.html">zip_get_num_entries(3)</a>
-  <i class="Em">instead</i>.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<i class="Em" title="Em">This function is deprecated</i>.
+  <i class="Em" title="Em">Use</i>
+  <a class="Xr" title="Xr" href="zip_get_num_entries.html">zip_get_num_entries(3)</a>
+  <i class="Em" title="Em">instead</i>.
 <div class="Pp"></div>
-The <b class="Fn">zip_get_num_files</b>() function returns the number of files
-  in <var class="Ar">archive</var>.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-<b class="Fn">zip_get_num_files</b>() returns the number of files in the zip
-  archive, or -1 if <var class="Ar">archive</var> is
-  <code class="Dv">NULL</code>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a>,
-  <a class="Xr" href="zip_stat_index.html">zip_stat_index(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_get_num_files</b>() was added in libzip 0.6. It was deprecated
-  in libzip 0.11, use
-  <b class="Fn">zip_get_num_entries</b>(<var class="Fa">instead</var>) instead.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+The <code class="Fn" title="Fn">zip_get_num_files</code>() function returns the
+  number of files in <var class="Ar" title="Ar">archive</var>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+<code class="Fn" title="Fn">zip_get_num_files</code>() returns the number of
+  files in the zip archive, or -1 if <var class="Ar" title="Ar">archive</var> is
+  <code class="Dv" title="Dv">NULL</code>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a>,
+  <a class="Xr" title="Xr" href="zip_stat_index.html">zip_stat_index(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_get_num_files</code>() was added in libzip 0.6.
+  It was deprecated in libzip 0.11, use
+  <code class="Fn" title="Fn">zip_get_num_entries</code>(<var class="Fa" title="Fa">instead</var>)
+  instead.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_get_num_files.man b/man/zip_get_num_files.man
index e14f1b0..0760eed 100644
--- a/man/zip_get_num_files.man
+++ b/man/zip_get_num_files.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_get_num_files.mdoc -- get number of files in archive
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_GET_NUM_FILES" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_libzip_version.html b/man/zip_libzip_version.html
index 93de93f..467fc18 100644
--- a/man/zip_libzip_version.html
+++ b/man/zip_libzip_version.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_libzip_version.mdoc -- return run-time version of library
+   Copyright (C) 2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_LIBZIP_VERSION(3)</title>
 </head>
@@ -20,37 +46,42 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_libzip_version</b> &#8212; <span class="Nd">return run-time
-  version of library</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_libzip_version</code> &#x2014;
+<div class="Nd" title="Nd">return run-time version of library</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">const char *</var>
+<var class="Ft" title="Ft">const char *</var>
 <br/>
-<b class="Fn">zip_libzip_version</b>(<var class="Fa" style="white-space: nowrap;">void</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-<b class="Nm">zip_libzip_version</b> returns the version number of the library
-  as string in the format &#8220;$MAJOR.$MINOR.$MICRO$SUFFIX&#8221; where
-  <var class="Ar">$MAJOR</var> is the major version,
-  <var class="Ar">$MINOR</var> the minor, <var class="Ar">$MICRO</var> the
-  micro, and <var class="Ar">$SUFFIX</var> a suffix that's only set for
+<code class="Fn" title="Fn">zip_libzip_version</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">void</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Nm" title="Nm">zip_libzip_version</code> returns the version number
+  of the library as string in the format
+  &#x201C;$MAJOR.$MINOR.$MICRO$SUFFIX&#x201D; where
+  <var class="Ar" title="Ar">$MAJOR</var> is the major version,
+  <var class="Ar" title="Ar">$MINOR</var> the minor,
+  <var class="Ar" title="Ar">$MICRO</var> the micro, and
+  <var class="Ar" title="Ar">$SUFFIX</var> a suffix that's only set for
   development versions.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_libzip_version</b>() was added in libzip 1.3.1.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_libzip_version</code>() was added in libzip
+  1.3.1.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_libzip_version.man b/man/zip_libzip_version.man
index 6628436..3b2bcee 100644
--- a/man/zip_libzip_version.man
+++ b/man/zip_libzip_version.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_libzip_version.mdoc -- return run-time version of library
+.\" Copyright (C) 2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_LIBZIP_VERSION" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_name_locate.html b/man/zip_name_locate.html
index c89c7fe..2d9246e 100644
--- a/man/zip_name_locate.html
+++ b/man/zip_name_locate.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_name_locate.mdoc -- get index of file by name
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_NAME_LOCATE(3)</title>
 </head>
@@ -20,99 +46,107 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_name_locate</b> &#8212; <span class="Nd">get index of file by
-  name</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_name_locate</code> &#x2014;
+<div class="Nd" title="Nd">get index of file by name</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_name_locate</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *fname</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
+<code class="Fn" title="Fn">zip_name_locate</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *fname</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
   flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_name_locate</b>() function returns the index of the file
-  named <var class="Ar">fname</var> in <var class="Ar">archive</var>. If
-  <var class="Ar">archive</var> does not contain a file with that name, -1 is
-  returned. The <var class="Fa">flags</var> are specified by
-  <i class="Em">or</i><span class="No">'ing</span> the following values, or 0
-  for none of them.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_name_locate</code>() function returns the
+  index of the file named <var class="Ar" title="Ar">fname</var> in
+  <var class="Ar" title="Ar">archive</var>. If
+  <var class="Ar" title="Ar">archive</var> does not contain a file with that
+  name, -1 is returned. The <var class="Fa" title="Fa">flags</var> are specified
+  by <i class="Em" title="Em">or</i><span class="No">'ing</span> the following
+  values, or 0 for none of them.
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 13.00ex;">
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_FL_NOCASE</code></dt>
-  <dd class="It-tag">Ignore case distinctions. (Will only work well if the file
-      names are ASCII.) With this flag, <b class="Fn">zip_name_locate</b>() will
-      be slow for archives with many files.</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_FL_NODIR</code></dt>
-  <dd class="It-tag">Ignore directory part of file name in archive. With this
-      flag, <b class="Fn">zip_name_locate</b>() will be slow for archives with
-      many files.</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_FL_ENC_RAW</code></dt>
-  <dd class="It-tag">Compare against the unmodified names as it is in the ZIP
-      archive.</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_FL_ENC_GUESS</code></dt>
-  <dd class="It-tag">(Default.) Guess the encoding of the name in the ZIP
-      archive and convert it to UTF-8, if necessary, before comparing.</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_FL_ENC_STRICT</code></dt>
-  <dd class="It-tag">Follow the ZIP specification and expect CP-437 encoded
-      names in the ZIP archive (except if they are explicitly marked as UTF-8).
-      Convert it to UTF-8 before comparing.</dd>
+<dl class="Bl-tag" style="margin-left: 18.60ex;">
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_FL_NOCASE"><code class="Dv" title="Dv" id="ZIP_FL_NOCASE">ZIP_FL_NOCASE</code></a></dt>
+  <dd>Ignore case distinctions. (Will only work well if the file names are
+      ASCII.) With this flag,
+      <code class="Fn" title="Fn">zip_name_locate</code>() will be slow for
+      archives with many files.</dd>
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_FL_NODIR"><code class="Dv" title="Dv" id="ZIP_FL_NODIR">ZIP_FL_NODIR</code></a></dt>
+  <dd>Ignore directory part of file name in archive. With this flag,
+      <code class="Fn" title="Fn">zip_name_locate</code>() will be slow for
+      archives with many files.</dd>
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_FL_ENC_RAW"><code class="Dv" title="Dv" id="ZIP_FL_ENC_RAW">ZIP_FL_ENC_RAW</code></a></dt>
+  <dd>Compare against the unmodified names as it is in the ZIP archive.</dd>
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_FL_ENC_GUESS"><code class="Dv" title="Dv" id="ZIP_FL_ENC_GUESS">ZIP_FL_ENC_GUESS</code></a></dt>
+  <dd>(Default.) Guess the encoding of the name in the ZIP archive and convert
+      it to UTF-8, if necessary, before comparing.</dd>
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_FL_ENC_STRICT"><code class="Dv" title="Dv" id="ZIP_FL_ENC_STRICT">ZIP_FL_ENC_STRICT</code></a></dt>
+  <dd>Follow the ZIP specification and expect CP-437 encoded names in the ZIP
+      archive (except if they are explicitly marked as UTF-8). Convert it to
+      UTF-8 before comparing.</dd>
 </dl>
 </div>
-<i class="Em">Note</i>: ASCII is a subset of both CP-437 and UTF-8.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-<b class="Fn">zip_name_locate</b>() returns the index of the file named
-  <var class="Ar">fname</var> or -1, if <var class="Ar">archive</var> does not
-  contain an entry of that name.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_name_locate</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag">One of the arguments is invalid.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_NOENT</code>]</dt>
-  <dd class="It-tag">No entry of the name <var class="Ar">fname</var> is found
-      in the archive.</dd>
+<i class="Em" title="Em">Note</i>: ASCII is a subset of both CP-437 and UTF-8.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+<code class="Fn" title="Fn">zip_name_locate</code>() returns the index of the
+  file named <var class="Ar" title="Ar">fname</var> or -1, if
+  <var class="Ar" title="Ar">archive</var> does not contain an entry of that
+  name.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_name_locate</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd>One of the arguments is invalid.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_NOENT"><code class="Er" title="Er" id="ZIP_ER_NOENT">ZIP_ER_NOENT</code></a>]</dt>
+  <dd>No entry of the name <var class="Ar" title="Ar">fname</var> is found in
+      the archive.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_get_name.html">zip_get_name(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_name_locate</b>() was added in libzip 0.6. In libzip 0.11 the
-  return type was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_int64_t</var>. In libzip 0.11 the type of
-  <var class="Ar">flags</var> was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_flags_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_name.html">zip_get_name(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_name_locate</code>() was added in libzip 0.6. In
+  libzip 0.11 the return type was changed from
+  <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_int64_t</var>. In libzip 0.11 the type of
+  <var class="Ar" title="Ar">flags</var> was changed from
+  <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_flags_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_name_locate.man b/man/zip_name_locate.man
index 5480e87..c8acfae 100644
--- a/man/zip_name_locate.man
+++ b/man/zip_name_locate.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_name_locate.mdoc -- get index of file by name
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_NAME_LOCATE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_open.html b/man/zip_open.html
index 639c2a4..4f92c15 100644
--- a/man/zip_open.html
+++ b/man/zip_open.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_open.mdoc -- open zip archive
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_OPEN(3)</title>
 </head>
@@ -20,139 +46,151 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_open</b>, <b class="Nm">zip_open_from_source</b> &#8212;
-  <span class="Nd">open zip archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_open</code>,
+  <code class="Nm" title="Nm">zip_open_from_source</code> &#x2014;
+<div class="Nd" title="Nd">open zip archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_t *</var>
+<var class="Ft" title="Ft">zip_t *</var>
 <br/>
-<b class="Fn">zip_open</b>(<var class="Fa" style="white-space: nowrap;">const
-  char *path</var>, <var class="Fa" style="white-space: nowrap;">int
-  flags</var>, <var class="Fa" style="white-space: nowrap;">int *errorp</var>);
+<code class="Fn" title="Fn">zip_open</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *path</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  flags</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  *errorp</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_t *</var>
+<var class="Ft" title="Ft">zip_t *</var>
 <br/>
-<b class="Fn">zip_open_from_source</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
-  *zs</var>, <var class="Fa" style="white-space: nowrap;">int flags</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_error_t *ze</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_open</b>() function opens the zip archive specified by
-  <var class="Ar">path</var> and returns a pointer to a <var class="Ft">struct
-  zip</var>, used to manipulate the archive. The <var class="Fa">flags</var> are
-  specified by <i class="Em">or</i><span class="No">'ing</span> the following
+<code class="Fn" title="Fn">zip_open_from_source</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
+  *zs</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  flags</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
+  *ze</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_open</code>() function opens the zip archive
+  specified by <var class="Ar" title="Ar">path</var> and returns a pointer to a
+  <var class="Ft" title="Ft">struct zip</var>, used to manipulate the archive.
+  The <var class="Fa" title="Fa">flags</var> are specified by
+  <i class="Em" title="Em">or</i><span class="No">'ing</span> the following
   values, or 0 for none of them.
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 13.00ex;">
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_CHECKCONS</code></dt>
-  <dd class="It-tag">Perform additional stricter consistency checks on the
-      archive, and error if they fail.</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_CREATE</code></dt>
-  <dd class="It-tag">Create the archive if it does not exist.</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_EXCL</code></dt>
-  <dd class="It-tag">Error if archive already exists.</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_TRUNCATE</code></dt>
-  <dd class="It-tag">If archive exists, ignore its current contents. In other
-      words, handle it the same way as an empty archive.</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -13.00ex;"><code class="Dv">ZIP_RDONLY</code></dt>
-  <dd class="It-tag">Open archive in read-only mode.</dd>
+<dl class="Bl-tag" style="margin-left: 18.60ex;">
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_CHECKCONS"><code class="Dv" title="Dv" id="ZIP_CHECKCONS">ZIP_CHECKCONS</code></a></dt>
+  <dd>Perform additional stricter consistency checks on the archive, and error
+      if they fail.</dd>
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_CREATE"><code class="Dv" title="Dv" id="ZIP_CREATE">ZIP_CREATE</code></a></dt>
+  <dd>Create the archive if it does not exist.</dd>
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_EXCL"><code class="Dv" title="Dv" id="ZIP_EXCL">ZIP_EXCL</code></a></dt>
+  <dd>Error if archive already exists.</dd>
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_TRUNCATE"><code class="Dv" title="Dv" id="ZIP_TRUNCATE">ZIP_TRUNCATE</code></a></dt>
+  <dd>If archive exists, ignore its current contents. In other words, handle it
+      the same way as an empty archive.</dd>
+  <dt style="margin-left: -18.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -18.60ex;"><a class="permalink" href="#ZIP_RDONLY"><code class="Dv" title="Dv" id="ZIP_RDONLY">ZIP_RDONLY</code></a></dt>
+  <dd>Open archive in read-only mode.</dd>
 </dl>
 </div>
 <div class="Pp"></div>
-If an error occurs and <var class="Ar">errorp</var> is
-  non-<code class="Dv">NULL</code>, it will be set to the corresponding error
-  code.
+If an error occurs and <var class="Ar" title="Ar">errorp</var> is
+  non-<code class="Dv" title="Dv">NULL</code>, it will be set to the
+  corresponding error code.
 <div class="Pp"></div>
-The <b class="Fn">zip_open_from_source</b>() function opens a zip archive
-  encapsulated by the zip_source <var class="Fa">zs</var> using the provided
-  <var class="Fa">flags</var>. In case of error, the zip_error
-  <var class="Fa">ze</var> is filled in.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-Upon successful completion <b class="Fn">zip_open</b>() and
-  <b class="Fn">zip_open_from_source</b>() return a <var class="Ft">struct
-  zip</var> pointer. Otherwise, <code class="Dv">NULL</code> is returned and
-  <b class="Fn">zip_open</b>() sets <var class="Ar">*errorp</var> to indicate
-  the error, while <b class="Fn">zip_open_from</b>(<var class="Fa">source</var>)
-  sets <var class="Ar">ze</var> to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-The archive specified by <var class="Ar">path</var> is opened unless:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_EXISTS</code>]</dt>
-  <dd class="It-tag">The file specified by <var class="Ar">path</var> exists and
-      <code class="Dv">ZIP_EXCL</code> is set.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INCONS</code>]</dt>
-  <dd class="It-tag">Inconsistencies were found in the file specified by
-      <var class="Ar">path</var>. This error is often caused by specifying
-      <code class="Dv">ZIP_CHECKCONS</code> but can also happen without it.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag">The <var class="Ar">path</var> argument is
-      <code class="Dv">NULL</code>.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_NOENT</code>]</dt>
-  <dd class="It-tag">The file specified by <var class="Ar">path</var> does not
-      exist and <code class="Dv">ZIP_CREATE</code> is not set.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_NOZIP</code>]</dt>
-  <dd class="It-tag">The file specified by <var class="Ar">path</var> is not a
-      zip archive.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_OPEN</code>]</dt>
-  <dd class="It-tag">The file specified by <var class="Ar">path</var> could not
-      be opened.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_READ</code>]</dt>
-  <dd class="It-tag">A read error occurred; see <var class="Va">errno</var> for
+The <code class="Fn" title="Fn">zip_open_from_source</code>() function opens a
+  zip archive encapsulated by the zip_source <var class="Fa" title="Fa">zs</var>
+  using the provided <var class="Fa" title="Fa">flags</var>. In case of error,
+  the zip_error <var class="Fa" title="Fa">ze</var> is filled in.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Upon successful completion <code class="Fn" title="Fn">zip_open</code>() and
+  <code class="Fn" title="Fn">zip_open_from_source</code>() return a
+  <var class="Ft" title="Ft">struct zip</var> pointer. Otherwise,
+  <code class="Dv" title="Dv">NULL</code> is returned and
+  <code class="Fn" title="Fn">zip_open</code>() sets
+  <var class="Ar" title="Ar">*errorp</var> to indicate the error, while
+  <code class="Fn" title="Fn">zip_open_from</code>(<var class="Fa" title="Fa">source</var>)
+  sets <var class="Ar" title="Ar">ze</var> to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+The archive specified by <var class="Ar" title="Ar">path</var> is opened unless:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_EXISTS"><code class="Er" title="Er" id="ZIP_ER_EXISTS">ZIP_ER_EXISTS</code></a>]</dt>
+  <dd>The file specified by <var class="Ar" title="Ar">path</var> exists and
+      <code class="Dv" title="Dv">ZIP_EXCL</code> is set.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INCONS"><code class="Er" title="Er" id="ZIP_ER_INCONS">ZIP_ER_INCONS</code></a>]</dt>
+  <dd>Inconsistencies were found in the file specified by
+      <var class="Ar" title="Ar">path</var>. This error is often caused by
+      specifying <code class="Dv" title="Dv">ZIP_CHECKCONS</code> but can also
+      happen without it.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd>The <var class="Ar" title="Ar">path</var> argument is
+      <code class="Dv" title="Dv">NULL</code>.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_NOENT"><code class="Er" title="Er" id="ZIP_ER_NOENT">ZIP_ER_NOENT</code></a>]</dt>
+  <dd>The file specified by <var class="Ar" title="Ar">path</var> does not exist
+      and <code class="Dv" title="Dv">ZIP_CREATE</code> is not set.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_NOZIP"><code class="Er" title="Er" id="ZIP_ER_NOZIP">ZIP_ER_NOZIP</code></a>]</dt>
+  <dd>The file specified by <var class="Ar" title="Ar">path</var> is not a zip
+      archive.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_OPEN"><code class="Er" title="Er" id="ZIP_ER_OPEN">ZIP_ER_OPEN</code></a>]</dt>
+  <dd>The file specified by <var class="Ar" title="Ar">path</var> could not be
+      opened.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_READ"><code class="Er" title="Er" id="ZIP_ER_READ">ZIP_ER_READ</code></a>]</dt>
+  <dd>A read error occurred; see <var class="Va" title="Va">errno</var> for
       details.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_SEEK</code>]</dt>
-  <dd class="It-tag">The file specified by <var class="Ar">path</var> does not
-      allow seeks.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_SEEK"><code class="Er" title="Er" id="ZIP_ER_SEEK">ZIP_ER_SEEK</code></a>]</dt>
+  <dd>The file specified by <var class="Ar" title="Ar">path</var> does not allow
+      seeks.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_close.html">zip_close(3)</a>,
-  <a class="Xr" href="zip_error_to_str.html">zip_error_to_str(3)</a>,
-  <a class="Xr" href="zip_fdopen.html">zip_fdopen(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_open</b>() and <b class="Fn">zip_open_from_source</b>() were
-  added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_strerror.html">zip_error_strerror(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fdopen.html">zip_fdopen(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_open</code>() and
+  <code class="Fn" title="Fn">zip_open_from_source</code>() were added in libzip
+  1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_open.man b/man/zip_open.man
index 3a6051f..b477ced 100644
--- a/man/zip_open.man
+++ b/man/zip_open.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_open.mdoc -- open zip archive
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_OPEN" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -147,7 +179,7 @@
 .SH "SEE ALSO"
 libzip(3),
 zip_close(3),
-zip_error_to_str(3),
+zip_error_strerror(3),
 zip_fdopen(3)
 .SH "HISTORY"
 \fBzip_open\fR()
diff --git a/man/zip_open.mdoc b/man/zip_open.mdoc
index 5aa2752..da13f25 100644
--- a/man/zip_open.mdoc
+++ b/man/zip_open.mdoc
@@ -156,7 +156,7 @@
 .Sh SEE ALSO
 .Xr libzip 3 ,
 .Xr zip_close 3 ,
-.Xr zip_error_to_str 3 ,
+.Xr zip_error_strerror 3 ,
 .Xr zip_fdopen 3
 .Sh HISTORY
 .Fn zip_open
diff --git a/man/zip_register_progress_callback.html b/man/zip_register_progress_callback.html
index 5b7cc7c..a2601a9 100644
--- a/man/zip_register_progress_callback.html
+++ b/man/zip_register_progress_callback.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_register_progress_callback.mdoc -- provide updates during zip_close
+   Copyright (C) 2016-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_REGISTER_PROGRESS_CALLBACK(3)</title>
 </head>
@@ -20,50 +46,56 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_register_progress_callback</b> &#8212;
-  <span class="Nd">provide updates during zip_close (obsolete interface)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_register_progress_callback</code> &#x2014;
+<div class="Nd" title="Nd">provide updates during zip_close (obsolete
+  interface)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Vt">typedef void (*zip_progress_callback_t)(double);</var>
+<var class="Vt" title="Vt">typedef void
+  (*zip_progress_callback_t)(double);</var>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_register_progress_callback</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_register_progress_callback</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_progress_callback_t
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_progress_callback_t
   progress_callback</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_register_progress_callback</b>() is the obsolete
-  version of
-  <a class="Xr" href="zip_register_progress_callback_with_state.html">zip_register_progress_callback_with_state(3)</a>.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_register_progress_callback</code>()
+  is the obsolete version of
+  <a class="Xr" title="Xr" href="zip_register_progress_callback_with_state.html">zip_register_progress_callback_with_state(3)</a>.
 <div class="Pp"></div>
-The <b class="Fn">zip_register_progress_callback</b>() function registers a
-  callback function <var class="Ar">progress_callback</var> for the zip archive
-  <var class="Ar">archive</var>. This function is called during
-  <a class="Xr" href="zip_close.html">zip_close(3)</a> after every zip archive
-  entry that's completely written to disk. The value is a
-  <var class="Vt">double</var> in the range from 0.0 to 1.0. This can be used to
-  provide progress indicators for user interfaces.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_close.html">zip_close(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_register_progress_callback</b>() was added in libzip 1.2.0. It
-  was deprecated in libzip 1.3.0, use
-  <b class="Fn">zip_register_progress_callback_with_state</b>() instead.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+The <code class="Fn" title="Fn">zip_register_progress_callback</code>() function
+  registers a callback function
+  <var class="Ar" title="Ar">progress_callback</var> for the zip archive
+  <var class="Ar" title="Ar">archive</var>. This function is called during
+  <a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a> after every
+  zip archive entry that's completely written to disk. The value is a
+  <var class="Vt" title="Vt">double</var> in the range from 0.0 to 1.0. This can
+  be used to provide progress indicators for user interfaces.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_register_progress_callback</code>() was added in
+  libzip 1.2.0. It was deprecated in libzip 1.3.0, use
+  <code class="Fn" title="Fn">zip_register_progress_callback_with_state</code>()
+  instead.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_register_progress_callback.man b/man/zip_register_progress_callback.man
index 28d5c9a..3d0e5b9 100644
--- a/man/zip_register_progress_callback.man
+++ b/man/zip_register_progress_callback.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_register_progress_callback.mdoc -- provide updates during zip_close
+.\" Copyright (C) 2016-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_REGISTER_PROGRESS_CALLBACK" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_register_progress_callback_with_state.html b/man/zip_register_progress_callback_with_state.html
index a3ff7f5..023a4da 100644
--- a/man/zip_register_progress_callback_with_state.html
+++ b/man/zip_register_progress_callback_with_state.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_register_progress_callback_with_state.mdoc -- provide updates during zip_close
+   Copyright (C) 2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_REGISTER_PROGRESS_CALLBACK_WITH_STATE(3)</title>
 </head>
@@ -20,58 +46,65 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_register_progress_callback_with_state</b> &#8212;
-  <span class="Nd">provide updates during zip_close</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_register_progress_callback_with_state</code>
+  &#x2014;
+<div class="Nd" title="Nd">provide updates during zip_close</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Vt">typedef void (*zip_progress_callback)(zip_t *, double, void
-  *);</var>
+<var class="Vt" title="Vt">typedef void (*zip_progress_callback)(zip_t *,
+  double, void *);</var>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_register_progress_callback_with_state</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">double
+<code class="Fn" title="Fn">zip_register_progress_callback_with_state</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">double
   precision</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_progress_callback
-  callback</var>, <var class="Fa" style="white-space: nowrap;">void
-  (*ud_free)(void *)</var>, <var class="Fa" style="white-space: nowrap;">void
-  *ud</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_register_progress_callback_with_state</b>() function
-  registers a callback function <var class="Ar">callback</var> for the zip
-  archive <var class="Ar">archive</var>. The <var class="Ar">precision</var>
-  argument is a double in the range from 0.00 to 1.0 that defines the smallest
-  change for which the callback should be called (to avoid too frequent calls).
-  The <var class="Ar">ud_free</var> function is called during cleanup for
-  deleting the userdata supplied in <var class="Ar">ud</var>.
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_progress_callback
+  callback</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  (*ud_free)(void *)</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">void *ud</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The
+  <code class="Fn" title="Fn">zip_register_progress_callback_with_state</code>()
+  function registers a callback function
+  <var class="Ar" title="Ar">callback</var> for the zip archive
+  <var class="Ar" title="Ar">archive</var>. The
+  <var class="Ar" title="Ar">precision</var> argument is a double in the range
+  from 0.00 to 1.0 that defines the smallest change for which the callback
+  should be called (to avoid too frequent calls). The
+  <var class="Ar" title="Ar">ud_free</var> function is called during cleanup for
+  deleting the userdata supplied in <var class="Ar" title="Ar">ud</var>.
 <div class="Pp"></div>
 The callback function is called during
-  <a class="Xr" href="zip_close.html">zip_close(3)</a> in regular intervals
-  (after every zip archive entry that's completely written to disk, and while
-  writing data for entries) with zip archive <var class="Ar">archive</var>, the
-  current progression state as a <var class="Vt">double</var>, and the
-  user-provided user-data <var class="Ar">ud</var> as arguments. The progression
-  state is a <var class="Vt">double</var> in the range from 0.0 to 1.0. This can
+  <a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a> in regular
+  intervals (after every zip archive entry that's completely written to disk,
+  and while writing data for entries) with zip archive
+  <var class="Ar" title="Ar">archive</var>, the current progression state as a
+  <var class="Vt" title="Vt">double</var>, and the user-provided user-data
+  <var class="Ar" title="Ar">ud</var> as arguments. The progression state is a
+  <var class="Vt" title="Vt">double</var> in the range from 0.0 to 1.0. This can
   be used to provide progress indicators for user interfaces.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_close.html">zip_close(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_register_progress_callback_with_state</b>() was added in
-  libzip 1.3.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_register_progress_callback_with_state</code>()
+  was added in libzip 1.3.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_register_progress_callback_with_state.man b/man/zip_register_progress_callback_with_state.man
index b1c95d2..f24905b 100644
--- a/man/zip_register_progress_callback_with_state.man
+++ b/man/zip_register_progress_callback_with_state.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_register_progress_callback_with_state.mdoc -- provide updates during zip_close
+.\" Copyright (C) 2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_REGISTER_PROGRESS_CALLBACK_WITH_STATE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_rename.html b/man/zip_rename.html
index 7143ef6..17fe502 100644
--- a/man/zip_rename.html
+++ b/man/zip_rename.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_rename.mdoc -- rename file in zip archive
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_RENAME(3)</title>
 </head>
@@ -20,43 +46,47 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_rename</b> &#8212; <span class="Nd">rename file in zip archive
-  (obsolete interface)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_rename</code> &#x2014;
+<div class="Nd" title="Nd">rename file in zip archive (obsolete interface)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_rename</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *name</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-<b class="Fn">zip_rename</b>() is the obsolete version of
-  <a class="Xr" href="zip_file_rename.html">zip_file_rename(3)</a>. It is the
-  same as calling
-  <a class="Xr" href="zip_file_rename.html">zip_file_rename(3)</a> with an empty
-  flags argument.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_rename.html">zip_file_rename(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_rename</b>() was added in libzip 0.6. In libzip 0.10 the type
-  of <var class="Ar">index</var> was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_uint64_t</var>. It was deprecated in libzip 0.11, use
-  <b class="Fn">zip_file_rename</b>() instead.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Fn" title="Fn">zip_rename</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *name</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">zip_rename</code>() is the obsolete version of
+  <a class="Xr" title="Xr" href="zip_file_rename.html">zip_file_rename(3)</a>.
+  It is the same as calling
+  <a class="Xr" title="Xr" href="zip_file_rename.html">zip_file_rename(3)</a>
+  with an empty flags argument.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_rename.html">zip_file_rename(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_rename</code>() was added in libzip 0.6. In
+  libzip 0.10 the type of <var class="Ar" title="Ar">index</var> was changed
+  from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_uint64_t</var>. It was deprecated in libzip
+  0.11, use <code class="Fn" title="Fn">zip_file_rename</code>() instead.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_rename.man b/man/zip_rename.man
index 7979dab..ea8b8c0 100644
--- a/man/zip_rename.man
+++ b/man/zip_rename.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_rename.mdoc -- rename file in zip archive
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_RENAME" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_set_archive_comment.html b/man/zip_set_archive_comment.html
index 412f3e3..5853218 100644
--- a/man/zip_set_archive_comment.html
+++ b/man/zip_set_archive_comment.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_set_archive_comment.mdoc -- set zip archive comment
+   Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SET_ARCHIVE_COMMENT(3)</title>
 </head>
@@ -20,62 +46,70 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_set_archive_comment</b> &#8212; <span class="Nd">set zip
-  archive comment</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_set_archive_comment</code> &#x2014;
+<div class="Nd" title="Nd">set zip archive comment</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_set_archive_comment</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *comment</var>, <var class="Fa" style="white-space: nowrap;">zip_uint16_t
+<code class="Fn" title="Fn">zip_set_archive_comment</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *comment</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint16_t
   len</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_set_archive_comment</b>() function sets the comment for
-  the entire zip archive. If <var class="Ar">comment</var> is
-  <code class="Dv">NULL</code> and <var class="Ar">len</var> is 0, the archive
-  comment will be removed. <var class="Ar">comment</var> must be encoded in
-  ASCII or UTF-8.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_set_archive_comment</code>() function sets
+  the comment for the entire zip archive. If
+  <var class="Ar" title="Ar">comment</var> is
+  <code class="Dv" title="Dv">NULL</code> and
+  <var class="Ar" title="Ar">len</var> is 0, the archive comment will be
+  removed. <var class="Ar" title="Ar">comment</var> must be encoded in ASCII or
+  UTF-8.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">archive</var> is set to indicate the
-  error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_set_archive_comment</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">len</var> is less than 0 or longer than the
+  error information in <var class="Ar" title="Ar">archive</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_set_archive_comment</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">len</var> is less than 0 or longer than the
       maximum comment length in a zip file (65535), or
-      <var class="Ar">comment</var> is not a valid UTF-8 encoded string.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
+      <var class="Ar" title="Ar">comment</var> is not a valid UTF-8 encoded
+      string.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_get_archive_comment.html">zip_get_archive_comment(3)</a>,
-  <a class="Xr" href="zip_get_file_comment.html">zip_get_file_comment(3)</a>,
-  <a class="Xr" href="zip_set_file_comment.html">zip_set_file_comment(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_set_archive_comment</b>() was added in libzip 0.7. In libzip
-  0.11 the type of <var class="Ar">len</var> was changed from
-  <var class="Vt">int</var> to <var class="Vt">zip_uint16_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_get_comment.html">zip_file_get_comment(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_archive_comment.html">zip_get_archive_comment(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_set_archive_comment</code>() was added in libzip
+  0.7. In libzip 0.11 the type of <var class="Ar" title="Ar">len</var> was
+  changed from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_uint16_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_set_archive_comment.man b/man/zip_set_archive_comment.man
index 0213535..645c212 100644
--- a/man/zip_set_archive_comment.man
+++ b/man/zip_set_archive_comment.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_set_archive_comment.mdoc -- set zip archive comment
+.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SET_ARCHIVE_COMMENT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -48,9 +80,9 @@
 Required memory could not be allocated.
 .SH "SEE ALSO"
 libzip(3),
-zip_get_archive_comment(3),
-zip_get_file_comment(3),
-zip_set_file_comment(3)
+zip_file_get_comment(3),
+zip_file_set_comment(3),
+zip_get_archive_comment(3)
 .SH "HISTORY"
 \fBzip_set_archive_comment\fR()
 was added in libzip 0.7.
diff --git a/man/zip_set_archive_comment.mdoc b/man/zip_set_archive_comment.mdoc
index 900dbbc..354a63f 100644
--- a/man/zip_set_archive_comment.mdoc
+++ b/man/zip_set_archive_comment.mdoc
@@ -74,9 +74,9 @@
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_get_archive_comment 3 ,
-.Xr zip_get_file_comment 3 ,
-.Xr zip_set_file_comment 3
+.Xr zip_file_get_comment 3 ,
+.Xr zip_file_set_comment 3 ,
+.Xr zip_get_archive_comment 3
 .Sh HISTORY
 .Fn zip_set_archive_comment
 was added in libzip 0.7.
diff --git a/man/zip_set_archive_flag.html b/man/zip_set_archive_flag.html
index aaefc65..a876f80 100644
--- a/man/zip_set_archive_flag.html
+++ b/man/zip_set_archive_flag.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_set_archive_flag.mdoc -- set zip archive flag
+   Copyright (C) 2008-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SET_ARCHIVE_FLAG(3)</title>
 </head>
@@ -20,43 +46,50 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_set_archive_flag</b> &#8212; <span class="Nd">set zip archive
-  flag</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_set_archive_flag</code> &#x2014;
+<div class="Nd" title="Nd">set zip archive flag</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_set_archive_flag</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
-  flag</var>, <var class="Fa" style="white-space: nowrap;">int value</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_set_archive_flag</b>() function sets the flag
-  <var class="Ar">flag</var> for the archive <var class="Ar">archive</var> to
-  the value <var class="Ar">value</var>.
+<code class="Fn" title="Fn">zip_set_archive_flag</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flag</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  value</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_set_archive_flag</code>() function sets the
+  flag <var class="Ar" title="Ar">flag</var> for the archive
+  <var class="Ar" title="Ar">archive</var> to the value
+  <var class="Ar" title="Ar">value</var>.
 <div class="Pp"></div>
 Currently there are no supported flags.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned, and -1 if an error occurred.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_get_archive_flag.html">zip_get_archive_flag(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_set_archive_flag</b>() was added in libzip 0.9. In libzip 0.11
-  the type of <var class="Ar">flag</var> was changed from
-  <var class="Vt">int</var> to <var class="Vt">zip_flags_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_archive_flag.html">zip_get_archive_flag(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_set_archive_flag</code>() was added in libzip
+  0.9. In libzip 0.11 the type of <var class="Ar" title="Ar">flag</var> was
+  changed from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_flags_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_set_archive_flag.man b/man/zip_set_archive_flag.man
index 7ea03c6..0cacf4c 100644
--- a/man/zip_set_archive_flag.man
+++ b/man/zip_set_archive_flag.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_set_archive_flag.mdoc -- set zip archive flag
+.\" Copyright (C) 2008-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SET_ARCHIVE_FLAG" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_set_default_password.html b/man/zip_set_default_password.html
index cfe93b0..fba4ccc 100644
--- a/man/zip_set_default_password.html
+++ b/man/zip_set_default_password.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_set_default_password.mdoc -- set default password for zip
+   Copyright (C) 2011-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SET_DEFAULT_PASSWORD(3)</title>
 </head>
@@ -20,56 +46,60 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_set_default_password</b> &#8212; <span class="Nd">set default
-  password for encrypted files in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_set_default_password</code> &#x2014;
+<div class="Nd" title="Nd">set default password for encrypted files in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_set_default_password</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *password</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_set_default_password</b>() function sets the default
-  password used when accessing encrypted files. If
-  <var class="Ar">password</var> is <code class="Dv">NULL</code>, the default
-  password is unset.
+<code class="Fn" title="Fn">zip_set_default_password</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *password</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_set_default_password</code>() function sets
+  the default password used when accessing encrypted files. If
+  <var class="Ar" title="Ar">password</var> is
+  <code class="Dv" title="Dv">NULL</code>, the default password is unset.
 <div class="Pp"></div>
 If you prefer a different password for single files, use
-  <a class="Xr" href="zip_fopen_encrypted.html">zip_fopen_encrypted(3)</a>
-  instead of <a class="Xr" href="zip_fopen.html">zip_fopen(3)</a>. Usually,
-  however, the same password is used for every file in an zip archive.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  <a class="Xr" title="Xr" href="zip_fopen_encrypted.html">zip_fopen_encrypted(3)</a>
+  instead of <a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a>.
+  Usually, however, the same password is used for every file in an zip archive.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">archive</var> is set to indicate the
-  error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_set_default_password</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
+  error information in <var class="Ar" title="Ar">archive</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_set_default_password</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
-  <a class="Xr" href="zip_fopen_encrypted.html">zip_fopen_encrypted(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_set_default_password</b>() was added in libzip 0.10.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fopen.html">zip_fopen(3)</a>,
+  <a class="Xr" title="Xr" href="zip_fopen_encrypted.html">zip_fopen_encrypted(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_set_default_password</code>() was added in
+  libzip 0.10.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_set_default_password.man b/man/zip_set_default_password.man
index 94b98b4..7104bb3 100644
--- a/man/zip_set_default_password.man
+++ b/man/zip_set_default_password.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_set_default_password.mdoc -- set default password for zip
+.\" Copyright (C) 2011-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SET_DEFAULT_PASSWORD" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_set_file_comment.html b/man/zip_set_file_comment.html
index bd04753..46c845b 100644
--- a/man/zip_set_file_comment.html
+++ b/man/zip_set_file_comment.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_set_file_comment.mdoc -- set comment for file in zip
+   Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SET_FILE_COMMENT(3)</title>
 </head>
@@ -20,46 +46,53 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_set_file_comment</b> &#8212; <span class="Nd">set comment for
-  file in zip (obsolete interface)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_set_file_comment</code> &#x2014;
+<div class="Nd" title="Nd">set comment for file in zip (obsolete
+  interface)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_set_file_comment</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *comment</var>, <var class="Fa" style="white-space: nowrap;">int len</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_set_file_comment</b>() function is the obsolete version of
-  <a class="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a>.
-  The only differences are the type of the <var class="Ar">len</var> argument
-  and the additional <var class="Ar">flags</var> argument.
-  <b class="Fn">zip_set_file_comment</b>() is the same as calling
-  <a class="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a>
-  with an empty <var class="Ar">flags</var> argument.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_set_file_comment</b>() was added in libzip 0.7. In libzip 0.10
-  the type of <var class="Ar">index</var> was changed from
-  <var class="Vt">int</var> to <var class="Vt">zip_uint64_t</var>. It was
-  deprecated in libzip 0.11, use <b class="Fn">zip_file_set_comment</b>()
-  instead.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Fn" title="Fn">zip_set_file_comment</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *comment</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">int len</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_set_file_comment</code>() function is the
+  obsolete version of
+  <a class="Xr" title="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a>.
+  The only differences are the type of the <var class="Ar" title="Ar">len</var>
+  argument and the additional <var class="Ar" title="Ar">flags</var> argument.
+  <code class="Fn" title="Fn">zip_set_file_comment</code>() is the same as
+  calling
+  <a class="Xr" title="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a>
+  with an empty <var class="Ar" title="Ar">flags</var> argument.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_set_comment.html">zip_file_set_comment(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_set_file_comment</code>() was added in libzip
+  0.7. In libzip 0.10 the type of <var class="Ar" title="Ar">index</var> was
+  changed from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_uint64_t</var>. It was deprecated in libzip
+  0.11, use <code class="Fn" title="Fn">zip_file_set_comment</code>() instead.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_set_file_comment.man b/man/zip_set_file_comment.man
index 41d7748..2ba8a7c 100644
--- a/man/zip_set_file_comment.man
+++ b/man/zip_set_file_comment.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_set_file_comment.mdoc -- set comment for file in zip
+.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SET_FILE_COMMENT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_set_file_compression.html b/man/zip_set_file_compression.html
index f1d6232..f9129be 100644
--- a/man/zip_set_file_compression.html
+++ b/man/zip_set_file_compression.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_set_file_compression.mdoc -- set compression method and its flags
+   Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP files.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SET_FILE_COMPRESSION(3)</title>
 </head>
@@ -20,98 +46,107 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_set_file_compression</b> &#8212; <span class="Nd">set
-  compression method for file in zip</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_set_file_compression</code> &#x2014;
+<div class="Nd" title="Nd">set compression method for file in zip</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_set_file_compression</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_int32_t
-  comp</var>, <var class="Fa" style="white-space: nowrap;">zip_uint32_t
+<code class="Fn" title="Fn">zip_set_file_compression</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int32_t
+  comp</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint32_t
   comp_flags</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_set_file_compression</b>() function sets the compression
-  method for the file at position <var class="Ar">index</var> in the zip archive
-  to <var class="Ar">comp</var> with the compression method specific
-  <var class="Ar">comp_flags</var>. The <var class="Ar">comp</var> is the same
-  as returned by <a class="Xr" href="zip_stat.html">zip_stat(3)</a>. For the
-  <var class="Ar">comp</var> argument, currently only the following values are
-  supported:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;"><code class="Dv">ZIP_CM_DEFAULT</code></dt>
-  <dd class="It-tag">default compression; currently the same as
-      <code class="Dv">ZIP_CM_DEFLATE</code>.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;"><code class="Dv">ZIP_CM_STORE</code></dt>
-  <dd class="It-tag">Store the file uncompressed.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;"><code class="Dv">ZIP_CM_BZIP2</code></dt>
-  <dd class="It-tag">Compress the file using the
-      <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/bzip2.html">bzip2(1)</a> algorithm.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;"><code class="Dv">ZIP_CM_DEFLATE</code></dt>
-  <dd class="It-tag">Deflate the file with the
-      <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/zlib.html">zlib(3)</a> algorithm and default
-    options</dd>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_set_file_compression</code>() function sets
+  the compression method for the file at position
+  <var class="Ar" title="Ar">index</var> in the zip archive to
+  <var class="Ar" title="Ar">comp</var> with the compression method specific
+  <var class="Ar" title="Ar">comp_flags</var>. The
+  <var class="Ar" title="Ar">comp</var> is the same as returned by
+  <a class="Xr" title="Xr" href="zip_stat.html">zip_stat(3)</a>. For the
+  <var class="Ar" title="Ar">comp</var> argument, currently only the following
+  values are supported:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;"><a class="permalink" href="#ZIP_CM_DEFAULT"><code class="Dv" title="Dv" id="ZIP_CM_DEFAULT">ZIP_CM_DEFAULT</code></a></dt>
+  <dd>default compression; currently the same as
+      <code class="Dv" title="Dv">ZIP_CM_DEFLATE</code>.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;"><a class="permalink" href="#ZIP_CM_STORE"><code class="Dv" title="Dv" id="ZIP_CM_STORE">ZIP_CM_STORE</code></a></dt>
+  <dd>Store the file uncompressed.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;"><a class="permalink" href="#ZIP_CM_BZIP2"><code class="Dv" title="Dv" id="ZIP_CM_BZIP2">ZIP_CM_BZIP2</code></a></dt>
+  <dd>Compress the file using the
+      <a class="Xr" title="Xr" href="bzip2.html">bzip2(1)</a> algorithm.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;"><a class="permalink" href="#ZIP_CM_DEFLATE"><code class="Dv" title="Dv" id="ZIP_CM_DEFLATE">ZIP_CM_DEFLATE</code></a></dt>
+  <dd>Deflate the file with the
+      <a class="Xr" title="Xr" href="zlib.html">zlib(3)</a> algorithm and
+      default options</dd>
 </dl>
 <div class="Pp"></div>
-<i class="Em">NOTE</i>: Only the deflate and store methods can be assumed to be
-  universally supported.
+<i class="Em" title="Em">NOTE</i>: Only the deflate and store methods can be
+  assumed to be universally supported.
 <div class="Pp"></div>
-The <var class="Ar">comp_flags</var> argument defines the compression level, 1
-  being fastest compression and 9 highest. Allowed values are 0 (which uses the
-  default compression for the algorithm) and 1-9, other values are undefined.
-  Further compression method specific flags might be added over time.
+The <var class="Ar" title="Ar">comp_flags</var> argument defines the compression
+  level, 1 being fastest compression and 9 highest. Allowed values are 0 (which
+  uses the default compression for the algorithm) and 1-9, other values are
+  undefined. Further compression method specific flags might be added over time.
 <div class="Pp"></div>
 The current compression method for a file in a zip archive can be determined
-  using <a class="Xr" href="zip_stat.html">zip_stat(3)</a>.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  using <a class="Xr" title="Xr" href="zip_stat.html">zip_stat(3)</a>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">archive</var> is set to indicate the
-  error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_set_file_compression</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_COMPNOTSUPP</code>]</dt>
-  <dd class="It-tag">Unsupported compression method requested.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">archive</var>, or the argument combination is
-    invalid.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_RDONLY</code>]</dt>
-  <dd class="It-tag">Read-only zip file, no changes allowed.</dd>
+  error information in <var class="Ar" title="Ar">archive</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_set_file_compression</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_COMPNOTSUPP"><code class="Er" title="Er" id="ZIP_ER_COMPNOTSUPP">ZIP_ER_COMPNOTSUPP</code></a>]</dt>
+  <dd>Unsupported compression method requested.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">archive</var>, or the argument combination is
+      invalid.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_RDONLY"><code class="Er" title="Er" id="ZIP_ER_RDONLY">ZIP_ER_RDONLY</code></a>]</dt>
+  <dd>Read-only zip file, no changes allowed.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_stat.html">zip_stat(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_set_file_compression</b>() was added in libzip 0.11.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_stat.html">zip_stat(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_set_file_compression</code>() was added in
+  libzip 0.11.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_set_file_compression.man b/man/zip_set_file_compression.man
index 6265071..32f044f 100644
--- a/man/zip_set_file_compression.man
+++ b/man/zip_set_file_compression.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_set_file_compression.mdoc -- set compression method and its flags
+.\" Copyright (C) 2012-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP files.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SET_FILE_COMPRESSION" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source.html b/man/zip_source.html
index ee47581..d8f202a 100644
--- a/man/zip_source.html
+++ b/man/zip_source.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source.mdoc -- description of zip data source
+   Copyright (C) 2014-2016 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE(3)</title>
 </head>
@@ -20,58 +46,61 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source</b> &#8212; <span class="Nd">zip data source
-  structure</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source</code> &#x2014;
+<div class="Nd" title="Nd">zip data source structure</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Vt">zip_source_t *zs</var>;
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-A <var class="Vt">struct zip_source</var> is a data source used by
-  <a class="Xr" href="libzip.html">libzip(3)</a> for adding or replacing file
-  contents for a file in a zip archive. If the source supports seeking, it can
-  also be used to open zip archives from. It is created by calling one of
-  <a class="Xr" href="zip_source_buffer.html">zip_source_buffer(3)</a>,
-  <a class="Xr" href="zip_source_buffer_create.html">zip_source_buffer_create(3)</a>,
-  <a class="Xr" href="zip_source_file.html">zip_source_file(3)</a>,
-  <a class="Xr" href="zip_source_file_create.html">zip_source_file_create(3)</a>,
-  <a class="Xr" href="zip_source_filep.html">zip_source_filep(3)</a>,
-  <a class="Xr" href="zip_source_filep_create.html">zip_source_filep_create(3)</a>,
-  <a class="Xr" href="zip_source_function.html">zip_source_function(3)</a>,
-  <a class="Xr" href="zip_source_function_create.html">zip_source_function_create(3)</a>,
-  or <a class="Xr" href="zip_source_zip.html">zip_source_zip(3)</a>.
-  <var class="Vt">zip_source_t</var> is reference counted, and created with a
-  reference count of 1.
-  <a class="Xr" href="zip_open_from_source.html">zip_open_from_source(3)</a>,
-  <a class="Xr" href="zip_file_add.html">zip_file_add(3)</a>, and
-  <a class="Xr" href="zip_file_replace.html">zip_file_replace(3)</a> will
-  decrement the reference count of the <var class="Vt">zip_source_t</var> when
-  they are done using it, so
-  <a class="Xr" href="zip_source_free.html">zip_source_free(3)</a> only needs to
-  be called when these functions return an error. Use
-  <a class="Xr" href="zip_source_keep.html">zip_source_keep(3)</a> to increase
-  the reference count, for example if you need the source after
-  <a class="Xr" href="zip_close.html">zip_close(3)</a>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source_buffer.html">zip_source_buffer(3)</a>,
-  <a class="Xr" href="zip_source_file.html">zip_source_file(3)</a>,
-  <a class="Xr" href="zip_source_filep.html">zip_source_filep(3)</a>,
-  <a class="Xr" href="zip_source_free.html">zip_source_free(3)</a>,
-  <a class="Xr" href="zip_source_function.html">zip_source_function(3)</a>,
-  <a class="Xr" href="zip_source_zip.html">zip_source_zip(3)</a>
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<var class="Vt" title="Vt">zip_source_t *zs</var>;
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+A <var class="Vt" title="Vt">struct zip_source</var> is a data source used by
+  <a class="Xr" title="Xr" href="libzip.html">libzip(3)</a> for adding or
+  replacing file contents for a file in a zip archive. If the source supports
+  seeking, it can also be used to open zip archives from. It is created by
+  calling one of
+  <a class="Xr" title="Xr" href="zip_source_buffer.html">zip_source_buffer(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_buffer_create.html">zip_source_buffer_create(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_file.html">zip_source_file(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_file_create.html">zip_source_file_create(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_filep.html">zip_source_filep(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_filep_create.html">zip_source_filep_create(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_function.html">zip_source_function(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_function_create.html">zip_source_function_create(3)</a>,
+  or <a class="Xr" title="Xr" href="zip_source_zip.html">zip_source_zip(3)</a>.
+  <var class="Vt" title="Vt">zip_source_t</var> is reference counted, and
+  created with a reference count of 1.
+  <a class="Xr" title="Xr" href="zip_open_from_source.html">zip_open_from_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>, and
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>
+  will decrement the reference count of the
+  <var class="Vt" title="Vt">zip_source_t</var> when they are done using it, so
+  <a class="Xr" title="Xr" href="zip_source_free.html">zip_source_free(3)</a>
+  only needs to be called when these functions return an error. Use
+  <a class="Xr" title="Xr" href="zip_source_keep.html">zip_source_keep(3)</a> to
+  increase the reference count, for example if you need the source after
+  <a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_buffer.html">zip_source_buffer(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_file.html">zip_source_file(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_filep.html">zip_source_filep(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_free.html">zip_source_free(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_function.html">zip_source_function(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_zip.html">zip_source_zip(3)</a>
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source.man b/man/zip_source.man
index bf590d7..5e32794 100644
--- a/man/zip_source.man
+++ b/man/zip_source.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source.mdoc -- description of zip data source
+.\" Copyright (C) 2014-2016 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_begin_write.html b/man/zip_source_begin_write.html
index 26c539d..339ab9a 100644
--- a/man/zip_source_begin_write.html
+++ b/man/zip_source_begin_write.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_begin_write.mdoc -- prepare zip source for writing
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_BEGIN_WRITE(3)</title>
 </head>
@@ -20,60 +46,67 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_begin_write</b>,
-  <b class="Nm">zip_source_begin_write_cloning</b> &#8212;
-  <span class="Nd">prepare zip source for writing</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_begin_write</code>,
+  <code class="Nm" title="Nm">zip_source_begin_write_cloning</code> &#x2014;
+<div class="Nd" title="Nd">prepare zip source for writing</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_source_begin_write</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_begin_write</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_source_begin_write_cloning</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
-  *source</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
+<code class="Fn" title="Fn">zip_source_begin_write_cloning</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
+  *source</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
   offset</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The functions <b class="Fn">zip_source_begin_write</b>() and
-  <b class="Fn">zip_source_begin_write_cloning</b>() prepare
-  <var class="Fa">source</var> for writing. Usually this involves creating
-  temporary files or allocating buffers.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The functions <code class="Fn" title="Fn">zip_source_begin_write</code>() and
+  <code class="Fn" title="Fn">zip_source_begin_write_cloning</code>() prepare
+  <var class="Fa" title="Fa">source</var> for writing. Usually this involves
+  creating temporary files or allocating buffers.
 <div class="Pp"></div>
-<b class="Fn">zip_source_begin_write_cloning</b>() preserves the first
-  <var class="Ar">offset</var> bytes of the original file. This is done
-  efficiently, and writes to <var class="Ar">source</var> won't overwrite the
-  original data until <b class="Fn">zip_commit_write</b>() is called.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<code class="Fn" title="Fn">zip_source_begin_write_cloning</code>() preserves
+  the first <var class="Ar" title="Ar">offset</var> bytes of the original file.
+  This is done efficiently, and writes to
+  <var class="Ar" title="Ar">source</var> won't overwrite the original data
+  until <code class="Fn" title="Fn">zip_commit_write</code>() is called.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">source</var> is set to indicate the
-  error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_commit_write.html">zip_source_commit_write(3)</a>,
-  <a class="Xr" href="zip_source_rollback_write.html">zip_source_rollback_write(3)</a>,
-  <a class="Xr" href="zip_source_seek_write.html">zip_source_seek_write(3)</a>,
-  <a class="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>,
-  <a class="Xr" href="zip_source_write.html">zip_source_write(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_begin_write</b>() was added in libzip 1.0.
+  error information in <var class="Ar" title="Ar">source</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_commit_write.html">zip_source_commit_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_rollback_write.html">zip_source_rollback_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_seek_write.html">zip_source_seek_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_write.html">zip_source_write(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_begin_write</code>() was added in libzip
+  1.0.
 <div class="Pp"></div>
-<b class="Fn">zip_source_begin_write_cloning</b>() was added in libzip 1.4.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Fn" title="Fn">zip_source_begin_write_cloning</code>() was added in
+  libzip 1.4.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_begin_write.man b/man/zip_source_begin_write.man
index a40937c..a0a21c5 100644
--- a/man/zip_source_begin_write.man
+++ b/man/zip_source_begin_write.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_begin_write.mdoc -- prepare zip source for writing
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_BEGIN_WRITE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_buffer.html b/man/zip_source_buffer.html
index 7cf0431..7322d16 100644
--- a/man/zip_source_buffer.html
+++ b/man/zip_source_buffer.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_buffer.mdoc -- create zip data source from buffer
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_BUFFER(3)</title>
 </head>
@@ -20,73 +46,85 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_buffer</b>, <b class="Nm">zip_source_buffer_create</b>
-  &#8212; <span class="Nd">create zip data source from buffer</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_buffer</code>,
+  <code class="Nm" title="Nm">zip_source_buffer_create</code> &#x2014;
+<div class="Nd" title="Nd">create zip data source from buffer</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_buffer</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const void
-  *data</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  len</var>, <var class="Fa" style="white-space: nowrap;">int freep</var>);
+<code class="Fn" title="Fn">zip_source_buffer</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  void *data</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  len</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  freep</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_buffer_create</b>(<var class="Fa" style="white-space: nowrap;">const
-  void *data</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  len</var>, <var class="Fa" style="white-space: nowrap;">int freep</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_error_t *error</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The functions <b class="Fn">zip_source_buffer</b>() and
-  <b class="Fn">zip_source_buffer_create</b>() create a zip source from the
-  buffer <var class="Ar">data</var> of size <var class="Ar">len</var>. If
-  <var class="Ar">freep</var> is non-zero, the buffer will be freed when it is
-  no longer needed. <var class="Ar">data</var> must remain valid for the
-  lifetime of the created source.
+<code class="Fn" title="Fn">zip_source_buffer_create</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">const
+  void *data</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  len</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  freep</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
+  *error</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The functions <code class="Fn" title="Fn">zip_source_buffer</code>() and
+  <code class="Fn" title="Fn">zip_source_buffer_create</code>() create a zip
+  source from the buffer <var class="Ar" title="Ar">data</var> of size
+  <var class="Ar" title="Ar">len</var>. If
+  <var class="Ar" title="Ar">freep</var> is non-zero, the buffer will be freed
+  when it is no longer needed. <var class="Ar" title="Ar">data</var> must remain
+  valid for the lifetime of the created source.
 <div class="Pp"></div>
 The source can be used to open a zip archive from.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the created source is returned. Otherwise,
-  <code class="Dv">NULL</code> is returned and the error code in
-  <var class="Ar">archive</var> or <var class="Ar">error</var> is set to
-  indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_source_buffer</b>() and
-  <b class="Fn">zip_source_buffer_create</b>() fail if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">len</var> is greater than zero and
-      <var class="Ar">data</var> is <code class="Dv">NULL</code>.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
+  <code class="Dv" title="Dv">NULL</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> or
+  <var class="Ar" title="Ar">error</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_source_buffer</code>() and
+  <code class="Fn" title="Fn">zip_source_buffer_create</code>() fail if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">len</var> is greater than zero and
+      <var class="Ar" title="Ar">data</var> is
+      <code class="Dv" title="Dv">NULL</code>.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_add.html">zip_add(3)</a>,
-  <a class="Xr" href="zip_open_from_source.html">zip_open_from_source(3)</a>,
-  <a class="Xr" href="zip_replace.html">zip_replace(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_buffer</b>() and
-  <b class="Fn">zip_source_buffer_create</b>() were added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>,
+  <a class="Xr" title="Xr" href="zip_open_from_source.html">zip_open_from_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_buffer</code>() and
+  <code class="Fn" title="Fn">zip_source_buffer_create</code>() were added in
+  libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_buffer.man b/man/zip_source_buffer.man
index be95aa8..dda753b 100644
--- a/man/zip_source_buffer.man
+++ b/man/zip_source_buffer.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_buffer.mdoc -- create zip data source from buffer
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_BUFFER" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -65,9 +97,9 @@
 Required memory could not be allocated.
 .SH "SEE ALSO"
 libzip(3),
-zip_add(3),
+zip_file_add(3),
+zip_file_replace(3),
 zip_open_from_source(3),
-zip_replace(3),
 zip_source(3)
 .SH "HISTORY"
 \fBzip_source_buffer\fR()
diff --git a/man/zip_source_buffer.mdoc b/man/zip_source_buffer.mdoc
index e2be448..cb42b27 100644
--- a/man/zip_source_buffer.mdoc
+++ b/man/zip_source_buffer.mdoc
@@ -86,9 +86,9 @@
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_add 3 ,
+.Xr zip_file_add 3 ,
+.Xr zip_file_replace 3 ,
 .Xr zip_open_from_source 3 ,
-.Xr zip_replace 3 ,
 .Xr zip_source 3
 .Sh HISTORY
 .Fn zip_source_buffer
diff --git a/man/zip_source_buffer_fragment.html b/man/zip_source_buffer_fragment.html
index 0bbd921..d13f041 100644
--- a/man/zip_source_buffer_fragment.html
+++ b/man/zip_source_buffer_fragment.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_buffer_fragment.mdoc -- create zip data source from multiple buffers
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_BUFFER_FRAGMENT(3)</title>
 </head>
@@ -20,37 +46,43 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_buffer_fragment</b>,
-  <b class="Nm">zip_source_buffer_fragment_create</b> &#8212;
-  <span class="Nd">create zip data source from multiple buffer</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_buffer_fragment</code>,
+  <code class="Nm" title="Nm">zip_source_buffer_fragment_create</code> &#x2014;
+<div class="Nd" title="Nd">create zip data source from multiple buffer</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_buffer_fragment</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_source_buffer_fragment</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_buffer_fragment_t
-  *fragments</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  nfragments</var>, <var class="Fa" style="white-space: nowrap;">int
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_buffer_fragment_t
+  *fragments</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  nfragments</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
   freep</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_buffer_fragment_create</b>(<var class="Fa" style="white-space: nowrap;">zip_buffer_fragment_t
-  *fragments</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  nfragments</var>, <var class="Fa" style="white-space: nowrap;">int
-  freep</var>, <var class="Fa" style="white-space: nowrap;">zip_error_t
+<code class="Fn" title="Fn">zip_source_buffer_fragment_create</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_buffer_fragment_t
+  *fragments</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  nfragments</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  freep</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
   *error</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The functions <b class="Fn">zip_source_buffer_fragment</b>() and
-  <b class="Fn">zip_source_buffer_fragment_create</b>() create a zip source from
-  the data in <var class="Ar">fragments</var>. <var class="Ar">nfragments</var>
-  specifies the number of fragments. If <var class="Ar">freep</var> is non-zero,
-  the data will be freed when it is no longer needed.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The functions <code class="Fn" title="Fn">zip_source_buffer_fragment</code>()
+  and <code class="Fn" title="Fn">zip_source_buffer_fragment_create</code>()
+  create a zip source from the data in
+  <var class="Ar" title="Ar">fragments</var>.
+  <var class="Ar" title="Ar">nfragments</var> specifies the number of fragments.
+  If <var class="Ar" title="Ar">freep</var> is non-zero, the data will be freed
+  when it is no longer needed.
 <div class="Pp"></div>
 <div class="Bd" style="margin-left: 0.00ex;">
 <pre class="Li">
@@ -61,49 +93,53 @@
 </pre>
 </div>
 <div class="Pp"></div>
-The data <var class="Ar">fragments</var> point to must remain valid for the
-  lifetime of the created source. <var class="Ar">fragments</var> itself can be
-  discarded once the source is created.
+The data <var class="Ar" title="Ar">fragments</var> point to must remain valid
+  for the lifetime of the created source.
+  <var class="Ar" title="Ar">fragments</var> itself can be discarded once the
+  source is created.
 <div class="Pp"></div>
 The source can be used to open a zip archive from.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the created source is returned. Otherwise,
-  <code class="Dv">NULL</code> is returned and the error code in
-  <var class="Ar">archive</var> or <var class="Ar">error</var> is set to
-  indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_source_buffer</b>() and
-  <b class="Fn">zip_source_buffer_create</b>() fail if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">nfragments</var> is greater than zero and
-      <var class="Ar">fragments</var> is <code class="Dv">NULL</code>.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
+  <code class="Dv" title="Dv">NULL</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> or
+  <var class="Ar" title="Ar">error</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_source_buffer</code>() and
+  <code class="Fn" title="Fn">zip_source_buffer_create</code>() fail if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">nfragments</var> is greater than zero and
+      <var class="Ar" title="Ar">fragments</var> is
+      <code class="Dv" title="Dv">NULL</code>.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_add.html">zip_add(3)</a>,
-  <a class="Xr" href="zip_open_from_source.html">zip_open_from_source(3)</a>,
-  <a class="Xr" href="zip_replace.html">zip_replace(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_buffer_fragment</b>() and
-  <b class="Fn">zip_source_buffer_fragment_create</b>() were added in libzip
-  1.4.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>,
+  <a class="Xr" title="Xr" href="zip_open_from_source.html">zip_open_from_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_buffer_fragment</code>() and
+  <code class="Fn" title="Fn">zip_source_buffer_fragment_create</code>() were
+  added in libzip 1.4.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_buffer_fragment.man b/man/zip_source_buffer_fragment.man
index 18fc92d..244cecf 100644
--- a/man/zip_source_buffer_fragment.man
+++ b/man/zip_source_buffer_fragment.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_buffer_fragment.mdoc -- create zip data source from multiple buffers
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_BUFFER_FRAGMENT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -78,9 +110,9 @@
 Required memory could not be allocated.
 .SH "SEE ALSO"
 libzip(3),
-zip_add(3),
+zip_file_add(3),
+zip_file_replace(3),
 zip_open_from_source(3),
-zip_replace(3),
 zip_source(3)
 .SH "HISTORY"
 \fBzip_source_buffer_fragment\fR()
diff --git a/man/zip_source_buffer_fragment.mdoc b/man/zip_source_buffer_fragment.mdoc
index c8d2a25..a31da8b 100644
--- a/man/zip_source_buffer_fragment.mdoc
+++ b/man/zip_source_buffer_fragment.mdoc
@@ -96,9 +96,9 @@
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_add 3 ,
+.Xr zip_file_add 3 ,
+.Xr zip_file_replace 3 ,
 .Xr zip_open_from_source 3 ,
-.Xr zip_replace 3 ,
 .Xr zip_source 3
 .Sh HISTORY
 .Fn zip_source_buffer_fragment
diff --git a/man/zip_source_close.html b/man/zip_source_close.html
index 0a62d99..453c373 100644
--- a/man/zip_source_close.html
+++ b/man/zip_source_close.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_close.mdoc -- close zip source (open for reading)
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_CLOSE(3)</title>
 </head>
@@ -20,41 +46,45 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_close</b> &#8212; <span class="Nd">open zip_source
-  (which was open for reading)</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_close</code> &#x2014;
+<div class="Nd" title="Nd">open zip_source (which was open for reading)</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_source_close</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_close</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_close</b>() closes
-  <var class="Fa">source</var>, indicating that no more data will be read.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_close</code>() closes
+  <var class="Fa" title="Fa">source</var>, indicating that no more data will be
+  read.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">source</var> is set to indicate the
-  error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_free.html">zip_source_free(3)</a>,
-  <a class="Xr" href="zip_source_open.html">zip_source_open(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_close</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  error information in <var class="Ar" title="Ar">source</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_free.html">zip_source_free(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_open.html">zip_source_open(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_close</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_close.man b/man/zip_source_close.man
index 50a2c2b..283e93b 100644
--- a/man/zip_source_close.man
+++ b/man/zip_source_close.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_close.mdoc -- close zip source (open for reading)
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_CLOSE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_commit_write.html b/man/zip_source_commit_write.html
index c9460eb..c1d2146 100644
--- a/man/zip_source_commit_write.html
+++ b/man/zip_source_commit_write.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_commit_write.mdoc -- finalize changes to zip source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_COMMIT_WRITE(3)</title>
 </head>
@@ -20,45 +46,49 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_commit_write</b> &#8212; <span class="Nd">finalize
-  changes to zip source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_commit_write</code> &#x2014;
+<div class="Nd" title="Nd">finalize changes to zip source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_source_commit_write</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_commit_write</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_commit_write</b>() finishes writing data
-  to <var class="Fa">source</var> and replaces the original with the newly
-  written data.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_commit_write</code>()
+  finishes writing data to <var class="Fa" title="Fa">source</var> and replaces
+  the original with the newly written data.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">source</var> is set to indicate the
-  error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
-  <a class="Xr" href="zip_source_rollback_write.html">zip_source_rollback_write(3)</a>,
-  <a class="Xr" href="zip_source_seek_write.html">zip_source_seek_write(3)</a>,
-  <a class="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>,
-  <a class="Xr" href="zip_source_write.html">zip_source_write(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_commit_write</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  error information in <var class="Ar" title="Ar">source</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_rollback_write.html">zip_source_rollback_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_seek_write.html">zip_source_seek_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_write.html">zip_source_write(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_commit_write</code>() was added in libzip
+  1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_commit_write.man b/man/zip_source_commit_write.man
index d1ebcf6..2df6abb 100644
--- a/man/zip_source_commit_write.man
+++ b/man/zip_source_commit_write.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_commit_write.mdoc -- finalize changes to zip source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_COMMIT_WRITE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_error.html b/man/zip_source_error.html
index ef98360..8addcb3 100644
--- a/man/zip_source_error.html
+++ b/man/zip_source_error.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_error.mdoc -- get zip_error for data source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_ERROR(3)</title>
 </head>
@@ -20,36 +46,38 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_error</b> &#8212; <span class="Nd">get zip error for
-  data source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_error</code> &#x2014;
+<div class="Nd" title="Nd">get zip error for data source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_error_t *</var>
+<var class="Ft" title="Ft">zip_error_t *</var>
 <br/>
-<b class="Fn">zip_source_error</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_error</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_source_error</b>() function returns the zip error for the
-  data source <var class="Ar">source</var>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>,
-  <a class="Xr" href="zip_error_code_zip.html">zip_error_code_zip(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_error</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_source_error</code>() function returns the
+  zip error for the data source <var class="Ar" title="Ar">source</var>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_code_system.html">zip_error_code_system(3)</a>,
+  <a class="Xr" title="Xr" href="zip_error_code_zip.html">zip_error_code_zip(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_error</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_error.man b/man/zip_source_error.man
index 1ffe434..62e7544 100644
--- a/man/zip_source_error.man
+++ b/man/zip_source_error.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_error.mdoc -- get zip_error for data source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_ERROR" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_file.html b/man/zip_source_file.html
index f152901..b4fc8bb 100644
--- a/man/zip_source_file.html
+++ b/man/zip_source_file.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_file.mdoc -- create data source from a file
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_FILE(3)</title>
 </head>
@@ -20,81 +46,93 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_file</b>, <b class="Nm">zip_source_file_create</b>
-  &#8212; <span class="Nd">create data source from a file</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_file</code>,
+  <code class="Nm" title="Nm">zip_source_file_create</code> &#x2014;
+<div class="Nd" title="Nd">create data source from a file</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_file</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *fname</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  start</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
+<code class="Fn" title="Fn">zip_source_file</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *fname</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t
   len</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_file_create</b>(<var class="Fa" style="white-space: nowrap;">const
-  char *fname</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  start</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
-  len</var>, <var class="Fa" style="white-space: nowrap;">zip_error_t
+<code class="Fn" title="Fn">zip_source_file_create</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *fname</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t len</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
   *error</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The functions <b class="Fn">zip_source_file</b>() and
-  <b class="Fn">zip_source_file_create</b>() create a zip source from a file.
-  They open <var class="Ar">fname</var> and read <var class="Ar">len</var> bytes
-  from offset <var class="Ar">start</var> from it. If <var class="Ar">len</var>
-  is 0 or -1, the whole file (starting from <var class="Ar">start</var>) is
-  used.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The functions <code class="Fn" title="Fn">zip_source_file</code>() and
+  <code class="Fn" title="Fn">zip_source_file_create</code>() create a zip
+  source from a file. They open <var class="Ar" title="Ar">fname</var> and read
+  <var class="Ar" title="Ar">len</var> bytes from offset
+  <var class="Ar" title="Ar">start</var> from it. If
+  <var class="Ar" title="Ar">len</var> is 0 or -1, the whole file (starting from
+  <var class="Ar" title="Ar">start</var>) is used.
 <div class="Pp"></div>
 If the file supports seek, the source can be used to open a zip archive from.
 <div class="Pp"></div>
 The file is opened and read when the data from the source is used, usually by
-  <b class="Fn">zip_close</b>() or <b class="Fn">zip_open_from_source</b>().
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  <code class="Fn" title="Fn">zip_close</code>() or
+  <code class="Fn" title="Fn">zip_open_from_source</code>().
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the created source is returned. Otherwise,
-  <code class="Dv">NULL</code> is returned and the error code in
-  <var class="Ar">archive</var> or <var class="Ar">error</var> is set to
-  indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_source_file</b>() and
-  <b class="Fn">zip_source_file_create</b>() fail if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">fname</var>, <var class="Ar">start</var>,
-      or <var class="Ar">len</var> are invalid.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_OPEN</code>]</dt>
-  <dd class="It-tag">Opening <var class="Ar">fname</var> failed.</dd>
+  <code class="Dv" title="Dv">NULL</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> or
+  <var class="Ar" title="Ar">error</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_source_file</code>() and
+  <code class="Fn" title="Fn">zip_source_file_create</code>() fail if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">fname</var>,
+      <var class="Ar" title="Ar">start</var>, or
+      <var class="Ar" title="Ar">len</var> are invalid.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_OPEN"><code class="Er" title="Er" id="ZIP_ER_OPEN">ZIP_ER_OPEN</code></a>]</dt>
+  <dd>Opening <var class="Ar" title="Ar">fname</var> failed.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_add.html">zip_add(3)</a>,
-  <a class="Xr" href="zip_replace.html">zip_replace(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_file</b>() and
-  <b class="Fn">zip_source_file_create</b>() were added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_file</code>() and
+  <code class="Fn" title="Fn">zip_source_file_create</code>() were added in
+  libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_file.man b/man/zip_source_file.man
index e251140..9245301 100644
--- a/man/zip_source_file.man
+++ b/man/zip_source_file.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_file.mdoc -- create data source from a file
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_FILE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -79,8 +111,8 @@
 failed.
 .SH "SEE ALSO"
 libzip(3),
-zip_add(3),
-zip_replace(3),
+zip_file_add(3),
+zip_file_replace(3),
 zip_source(3)
 .SH "HISTORY"
 \fBzip_source_file\fR()
diff --git a/man/zip_source_file.mdoc b/man/zip_source_file.mdoc
index 35c9b34..dc817c9 100644
--- a/man/zip_source_file.mdoc
+++ b/man/zip_source_file.mdoc
@@ -99,8 +99,8 @@
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_add 3 ,
-.Xr zip_replace 3 ,
+.Xr zip_file_add 3 ,
+.Xr zip_file_replace 3 ,
 .Xr zip_source 3
 .Sh HISTORY
 .Fn zip_source_file
diff --git a/man/zip_source_filep.html b/man/zip_source_filep.html
index 67da4fb..dac26b6 100644
--- a/man/zip_source_filep.html
+++ b/man/zip_source_filep.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_filep.mdoc -- create data source from a file stream
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_FILEP(3)</title>
 </head>
@@ -20,76 +46,88 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_filep</b>, <b class="Nm">zip_source_filep_create</b>
-  &#8212; <span class="Nd">create data source from FILE *</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_filep</code>,
+  <code class="Nm" title="Nm">zip_source_filep_create</code> &#x2014;
+<div class="Nd" title="Nd">create data source from FILE *</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_filep</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">FILE *file</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint64_t start</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_int64_t len</var>);
+<code class="Fn" title="Fn">zip_source_filep</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">FILE
+  *file</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t
+  len</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_filep_create</b>(<var class="Fa" style="white-space: nowrap;">FILE
-  *file</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  start</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
-  len</var>, <var class="Fa" style="white-space: nowrap;">zip_error_t
+<code class="Fn" title="Fn">zip_source_filep_create</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">FILE
+  *file</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t len</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
   *error</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The functions <b class="Fn">zip_source_filep</b>() and
-  <b class="Fn">zip_source_filep_create</b>() create a zip source from a file
-  stream. They read <var class="Ar">len</var> bytes from offset
-  <var class="Ar">start</var> from the open file stream
-  <var class="Ar">file</var>. If <var class="Ar">len</var> is 0 or -1, the whole
-  file (starting from <var class="Ar">start</var>) is used.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The functions <code class="Fn" title="Fn">zip_source_filep</code>() and
+  <code class="Fn" title="Fn">zip_source_filep_create</code>() create a zip
+  source from a file stream. They read <var class="Ar" title="Ar">len</var>
+  bytes from offset <var class="Ar" title="Ar">start</var> from the open file
+  stream <var class="Ar" title="Ar">file</var>. If
+  <var class="Ar" title="Ar">len</var> is 0 or -1, the whole file (starting from
+  <var class="Ar" title="Ar">start</var>) is used.
 <div class="Pp"></div>
 If the file stream supports seeking, the source can be used to open a read-only
   zip archive from.
 <div class="Pp"></div>
 The file stream is closed when the source is being freed, usually by
-  <a class="Xr" href="zip_close.html">zip_close(3)</a>.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  <a class="Xr" title="Xr" href="zip_close.html">zip_close(3)</a>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the created source is returned. Otherwise,
-  <code class="Dv">NULL</code> is returned and the error code in
-  <var class="Ar">archive</var> or <var class="Ar">error</var> is set to
-  indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_source_filep</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">file</var>, <var class="Ar">start</var>, or
-      <var class="Ar">len</var> are invalid.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
+  <code class="Dv" title="Dv">NULL</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> or
+  <var class="Ar" title="Ar">error</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_source_filep</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">file</var>,
+      <var class="Ar" title="Ar">start</var>, or
+      <var class="Ar" title="Ar">len</var> are invalid.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_add.html">zip_add(3)</a>,
-  <a class="Xr" href="zip_replace.html">zip_replace(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_filep</b>() and
-  <b class="Fn">zip_source_filep_create</b>() were added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_filep</code>() and
+  <code class="Fn" title="Fn">zip_source_filep_create</code>() were added in
+  libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_filep.man b/man/zip_source_filep.man
index 191c7ee..d7f4b6b 100644
--- a/man/zip_source_filep.man
+++ b/man/zip_source_filep.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_filep.mdoc -- create data source from a file stream
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_FILEP" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -71,8 +103,8 @@
 Required memory could not be allocated.
 .SH "SEE ALSO"
 libzip(3),
-zip_add(3),
-zip_replace(3),
+zip_file_add(3),
+zip_file_replace(3),
 zip_source(3)
 .SH "HISTORY"
 \fBzip_source_filep\fR()
diff --git a/man/zip_source_filep.mdoc b/man/zip_source_filep.mdoc
index d8f5b92..115fc1a 100644
--- a/man/zip_source_filep.mdoc
+++ b/man/zip_source_filep.mdoc
@@ -92,8 +92,8 @@
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_add 3 ,
-.Xr zip_replace 3 ,
+.Xr zip_file_add 3 ,
+.Xr zip_file_replace 3 ,
 .Xr zip_source 3
 .Sh HISTORY
 .Fn zip_source_filep
diff --git a/man/zip_source_free.html b/man/zip_source_free.html
index 54c52bf..eedad8a 100644
--- a/man/zip_source_free.html
+++ b/man/zip_source_free.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_free.mdoc -- free zip data source
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_FREE(3)</title>
 </head>
@@ -20,44 +46,47 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_free</b> &#8212; <span class="Nd">free zip data
-  source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_free</code> &#x2014;
+<div class="Nd" title="Nd">free zip data source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_source_free</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_free</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_free</b>() decrements the reference count
-  of <var class="Ar">source</var> and frees it if the reference count drops to
-  0. If <var class="Ar">source</var> is <code class="Dv">NULL</code>, it does
-  nothing.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_free</code>() decrements the
+  reference count of <var class="Ar" title="Ar">source</var> and frees it if the
+  reference count drops to 0. If <var class="Ar" title="Ar">source</var> is
+  <code class="Dv" title="Dv">NULL</code>, it does nothing.
 <div class="Pp"></div>
-<i class="Em">NOTE</i>: This function should not be called on a
-  <var class="Ar">source</var> after it was used successfully in a
-  <a class="Xr" href="zip_open_from_source.html">zip_open_from_source(3)</a>,
-  <a class="Xr" href="zip_file_add.html">zip_file_add(3)</a>, or
-  <a class="Xr" href="zip_file_replace.html">zip_file_replace(3)</a> call.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_keep.html">zip_source_keep(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_free</b>() was added in libzip 0.6.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<i class="Em" title="Em">NOTE</i>: This function should not be called on a
+  <var class="Ar" title="Ar">source</var> after it was used successfully in a
+  <a class="Xr" title="Xr" href="zip_open_from_source.html">zip_open_from_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>, or
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>
+  call.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_keep.html">zip_source_keep(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_free</code>() was added in libzip 0.6.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_free.man b/man/zip_source_free.man
index db3ad44..5f79671 100644
--- a/man/zip_source_free.man
+++ b/man/zip_source_free.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_free.mdoc -- free zip data source
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_FREE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_function.html b/man/zip_source_function.html
index 7f50206..0554c6e 100644
--- a/man/zip_source_function.html
+++ b/man/zip_source_function.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_function.mdoc -- create data source from function
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_FUNCTION(3)</title>
 </head>
@@ -20,125 +46,134 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_function</b>,
-  <b class="Nm">zip_source_function_create</b> &#8212; <span class="Nd">create
-  data source from function</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_function</code>,
+  <code class="Nm" title="Nm">zip_source_function_create</code> &#x2014;
+<div class="Nd" title="Nd">create data source from function</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_function</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_source_function</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_source_callback fn</var>,
-  <var class="Fa" style="white-space: nowrap;">void *userdata</var>);
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_callback
+  fn</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *userdata</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_function_create</b>(<var class="Fa" style="white-space: nowrap;">zip_source_callback
-  fn</var>, <var class="Fa" style="white-space: nowrap;">void *userdata</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_error_t *error</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The functions <b class="Fn">zip_source_function</b>() and
-  <b class="Fn">zip_source_function_create</b>() creates a zip source from the
-  user-provided function <var class="Ar">fn</var>, which must be of the
-  following type:
+<code class="Fn" title="Fn">zip_source_function_create</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_callback
+  fn</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *userdata</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
+  *error</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The functions <code class="Fn" title="Fn">zip_source_function</code>() and
+  <code class="Fn" title="Fn">zip_source_function_create</code>() creates a zip
+  source from the user-provided function <var class="Ar" title="Ar">fn</var>,
+  which must be of the following type:
 <div class="Pp"></div>
-<var class="Ft">typedef zip_int64_t</var>
-  <b class="Fn">(*zip_source_callback)</b>(<var class="Fa">void *userdata</var>,
-  <var class="Fa">void *data</var>, <var class="Fa">zip_uint64_t len</var>,
-  <var class="Fa">zip_source_cmd_t cmd</var>);
+<var class="Ft" title="Ft">typedef zip_int64_t</var>
+  <code class="Fn" title="Fn">(*zip_source_callback)</code>(<var class="Fa" title="Fa">void
+  *userdata</var>, <var class="Fa" title="Fa">void *data</var>,
+  <var class="Fa" title="Fa">zip_uint64_t len</var>,
+  <var class="Fa" title="Fa">zip_source_cmd_t cmd</var>);
 <div class="Pp"></div>
-<var class="Ar">archive</var> or <var class="Ar">error</var> are used for
-  reporting errors and can be <code class="Dv">NULL</code>.
+<var class="Ar" title="Ar">archive</var> or
+  <var class="Ar" title="Ar">error</var> are used for reporting errors and can
+  be <code class="Dv" title="Dv">NULL</code>.
 <div class="Pp"></div>
 When called by the library, the first argument is the
-  <var class="Ar">userdata</var> argument supplied to the function. The next two
-  arguments are a buffer <var class="Ar">data</var> of size
-  <var class="Ar">len</var> when data is passed in or expected to be returned,
-  or else <code class="Dv">NULL</code> and 0. The last argument,
-  <var class="Ar">cmd</var>, specifies which action the function should perform.
+  <var class="Ar" title="Ar">userdata</var> argument supplied to the function.
+  The next two arguments are a buffer <var class="Ar" title="Ar">data</var> of
+  size <var class="Ar" title="Ar">len</var> when data is passed in or expected
+  to be returned, or else <code class="Dv" title="Dv">NULL</code> and 0. The
+  last argument, <var class="Ar" title="Ar">cmd</var>, specifies which action
+  the function should perform.
 <div class="Pp"></div>
 Depending on the uses, there are three useful sets of commands to be supported
-  by a <b class="Fn">zip_source_callback</b>():
-<dl class="Bl-tag" style="margin-left: 22.00ex;">
-  <dt class="It-tag" style="margin-left: -22.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -22.00ex;">read source</dt>
-  <dd class="It-tag">Providing streamed data (for file data added to archives).
-      Must support <code class="Dv">ZIP_SOURCE_OPEN</code>,
-      <code class="Dv">ZIP_SOURCE_READ</code>,
-      <code class="Dv">ZIP_SOURCE_CLOSE</code>,
-      <code class="Dv">ZIP_SOURCE_STAT</code>, and
-      <code class="Dv">ZIP_SOURCE_ERROR</code>.</dd>
-  <dt class="It-tag" style="margin-left: -22.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -22.00ex;">seekable read source</dt>
-  <dd class="It-tag">Same as previous, but from a source allowing reading from
-      arbitrary offsets (also for read-only zip archive). Must additionally
-      support <code class="Dv">ZIP_SOURCE_SEEK</code>,
-      <code class="Dv">ZIP_SOURCE_TELL</code>, and
-      <code class="Dv">ZIP_SOURCE_SUPPORTS</code>.</dd>
-  <dt class="It-tag" style="margin-left: -22.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -22.00ex;">read/write source</dt>
-  <dd class="It-tag">Same as previous, but additionally allowing writing (also
-      for writable zip archives). Must additionally support
-      <code class="Dv">ZIP_SOURCE_BEGIN_WRITE</code>,
-      <code class="Dv">ZIP_SOURCE_COMMIT_WRITE</code>,
-      <code class="Dv">ZIP_SOURCE_ROLLBACK_WRITE</code>,
-      <code class="Dv">ZIP_SOURCE_SEEK_WRITE</code>,
-      <code class="Dv">ZIP_SOURCE_TELL_WRITE</code>, and
-      <code class="Dv">ZIP_SOURCE_REMOVE</code>.</dd>
+  by a <code class="Fn" title="Fn">zip_source_callback</code>():
+<dl class="Bl-tag" style="margin-left: 29.40ex;">
+  <dt style="margin-left: -29.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -29.40ex;">read source</dt>
+  <dd>Providing streamed data (for file data added to archives). Must support
+      <code class="Dv" title="Dv">ZIP_SOURCE_OPEN</code>,
+      <code class="Dv" title="Dv">ZIP_SOURCE_READ</code>,
+      <code class="Dv" title="Dv">ZIP_SOURCE_CLOSE</code>,
+      <code class="Dv" title="Dv">ZIP_SOURCE_STAT</code>, and
+      <code class="Dv" title="Dv">ZIP_SOURCE_ERROR</code>.</dd>
+  <dt style="margin-left: -29.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -29.40ex;">seekable read source</dt>
+  <dd>Same as previous, but from a source allowing reading from arbitrary
+      offsets (also for read-only zip archive). Must additionally support
+      <code class="Dv" title="Dv">ZIP_SOURCE_SEEK</code>,
+      <code class="Dv" title="Dv">ZIP_SOURCE_TELL</code>, and
+      <code class="Dv" title="Dv">ZIP_SOURCE_SUPPORTS</code>.</dd>
+  <dt style="margin-left: -29.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -29.40ex;">read/write source</dt>
+  <dd>Same as previous, but additionally allowing writing (also for writable zip
+      archives). Must additionally support
+      <code class="Dv" title="Dv">ZIP_SOURCE_BEGIN_WRITE</code>,
+      <code class="Dv" title="Dv">ZIP_SOURCE_COMMIT_WRITE</code>,
+      <code class="Dv" title="Dv">ZIP_SOURCE_ROLLBACK_WRITE</code>,
+      <code class="Dv" title="Dv">ZIP_SOURCE_SEEK_WRITE</code>,
+      <code class="Dv" title="Dv">ZIP_SOURCE_TELL_WRITE</code>, and
+      <code class="Dv" title="Dv">ZIP_SOURCE_REMOVE</code>.</dd>
 </dl>
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_BEGIN_WRITE</code></h2>
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_BEGIN_WRITE</code></h2>
 Prepare the source for writing. Use this to create any temporary file(s).
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_BEGIN_WRITE_CLONING</code></h2>
-Prepare the source for writing, keeping the first <var class="Ar">len</var>
-  bytes of the original file. Only implement this command if it is more
-  efficient than copying the data, and if it does not destructively overwrite
-  the original file (you still have to be able to execute
-  <code class="Dv">ZIP_SOURCE_ROLLBACK_WRITE</code>).
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_BEGIN_WRITE_CLONING</code></h2>
+Prepare the source for writing, keeping the first
+  <var class="Ar" title="Ar">len</var> bytes of the original file. Only
+  implement this command if it is more efficient than copying the data, and if
+  it does not destructively overwrite the original file (you still have to be
+  able to execute <code class="Dv" title="Dv">ZIP_SOURCE_ROLLBACK_WRITE</code>).
 <div class="Pp"></div>
-The next write should happen at byte <var class="Ar">offset</var>.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_CLOSE</code></h2>
+The next write should happen at byte <var class="Ar" title="Ar">offset</var>.
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_CLOSE</code></h2>
 Reading is done.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_COMMIT_WRITE</code></h2>
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_COMMIT_WRITE</code></h2>
 Finish writing to the source. Replace the original data with the newly written
   data. Clean up temporary files or internal buffers. Subsequently opening and
   reading from the source should return the newly written data.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_ERROR</code></h2>
-Get error information. <var class="Ar">data</var> points to an array of two
-  ints, which should be filled with the libzip error code and the corresponding
-  system error code for the error that occurred. See
-  <a class="Xr" href="zip_errors.html">zip_errors(3)</a> for details on the
-  error codes. If the source stores error information in a zip_error_t, use
-  <a class="Xr" href="zip_error_to_data.html">zip_error_to_data(3)</a> and
-  return its return value. Otherwise, return 2 * sizeof(int).
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_FREE</code></h2>
-Clean up and free all resources, including <var class="Ar">userdata</var>. The
-  callback function will not be called again.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_OPEN</code></h2>
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_ERROR</code></h2>
+Get error information. <var class="Ar" title="Ar">data</var> points to an array
+  of two ints, which should be filled with the libzip error code and the
+  corresponding system error code for the error that occurred. See
+  <a class="Xr" title="Xr" href="zip_errors.html">zip_errors(3)</a> for details
+  on the error codes. If the source stores error information in a zip_error_t,
+  use
+  <a class="Xr" title="Xr" href="zip_error_to_data.html">zip_error_to_data(3)</a>
+  and return its return value. Otherwise, return 2 * sizeof(int).
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_FREE</code></h2>
+Clean up and free all resources, including
+  <var class="Ar" title="Ar">userdata</var>. The callback function will not be
+  called again.
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_OPEN</code></h2>
 Prepare for reading.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_READ</code></h2>
-Read data into the buffer <var class="Ar">data</var> of size
-  <var class="Ar">len</var>. Return the number of bytes placed into
-  <var class="Ar">data</var> on success, and zero for end-of-file.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_REMOVE</code></h2>
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_READ</code></h2>
+Read data into the buffer <var class="Ar" title="Ar">data</var> of size
+  <var class="Ar" title="Ar">len</var>. Return the number of bytes placed into
+  <var class="Ar" title="Ar">data</var> on success, and zero for end-of-file.
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_REMOVE</code></h2>
 Remove the underlying file. This is called if a zip archive is empty when
   closed.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_ROLLBACK_WRITE</code></h2>
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_ROLLBACK_WRITE</code></h2>
 Abort writing to the source. Discard written data. Clean up temporary files or
   internal buffers. Subsequently opening and reading from the source should
   return the original data.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_SEEK</code></h2>
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_SEEK</code></h2>
 Specify position to read next byte from, like
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/fseek.html">fseek(3)</a>. Use
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/ZIP_SOURCE_GET_ARGS.html">ZIP_SOURCE_GET_ARGS(3)</a> to
-  decode the arguments into the following struct:
+  <a class="Xr" title="Xr" href="fseek.html">fseek(3)</a>. Use
+  <a class="Xr" title="Xr" href="ZIP_SOURCE_GET_ARGS.html">ZIP_SOURCE_GET_ARGS(3)</a>
+  to decode the arguments into the following struct:
 <div class="Pp"></div>
 <div class="Bd" style="margin-left: 0.00ex;">
 <pre class="Li">
@@ -150,115 +185,127 @@
 </div>
 <div class="Pp"></div>
 If the size of the source's data is known, use
-  <a class="Xr" href="zip_source_seek_compute_offset.html">zip_source_seek_compute_offset(3)</a>
+  <a class="Xr" title="Xr" href="zip_source_seek_compute_offset.html">zip_source_seek_compute_offset(3)</a>
   to validate the arguments and compute the new offset.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_SEEK_WRITE</code></h2>
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_SEEK_WRITE</code></h2>
 Specify position to write next byte to, like
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/fseek.html">fseek(3)</a>. See
-  <code class="Dv">ZIP_SOURCE_SEEK</code> for details.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_STAT</code></h2>
-Get meta information for the input data. <var class="Ar">data</var> points to an
-  allocated <var class="Vt">struct zip_stat</var>, which should be initialized
-  using <a class="Xr" href="zip_stat_init.html">zip_stat_init(3)</a> and then
-  filled in.
+  <a class="Xr" title="Xr" href="fseek.html">fseek(3)</a>. See
+  <code class="Dv" title="Dv">ZIP_SOURCE_SEEK</code> for details.
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_STAT</code></h2>
+Get meta information for the input data. <var class="Ar" title="Ar">data</var>
+  points to an allocated <var class="Vt" title="Vt">struct zip_stat</var>, which
+  should be initialized using
+  <a class="Xr" title="Xr" href="zip_stat_init.html">zip_stat_init(3)</a> and
+  then filled in.
 <div class="Pp"></div>
 For uncompressed, unencrypted data, all information is optional. However, fill
   in as much information as is readily available.
 <div class="Pp"></div>
-If the data is compressed, <code class="Dv">ZIP_STAT_COMP_METHOD</code>,
-  <code class="Dv">ZIP_STAT_SIZE</code>, and
-  <code class="Dv">ZIP_STAT_CRC</code> must be filled in.
+If the data is compressed,
+  <code class="Dv" title="Dv">ZIP_STAT_COMP_METHOD</code>,
+  <code class="Dv" title="Dv">ZIP_STAT_SIZE</code>, and
+  <code class="Dv" title="Dv">ZIP_STAT_CRC</code> must be filled in.
 <div class="Pp"></div>
-If the data is encrypted, <code class="Dv">ZIP_STAT_ENCRYPTION_METHOD</code>,
-  <code class="Dv">ZIP_STAT_COMP_METHOD</code>,
-  <code class="Dv">ZIP_STAT_SIZE</code>, and
-  <code class="Dv">ZIP_STAT_CRC</code> must be filled in.
+If the data is encrypted,
+  <code class="Dv" title="Dv">ZIP_STAT_ENCRYPTION_METHOD</code>,
+  <code class="Dv" title="Dv">ZIP_STAT_COMP_METHOD</code>,
+  <code class="Dv" title="Dv">ZIP_STAT_SIZE</code>, and
+  <code class="Dv" title="Dv">ZIP_STAT_CRC</code> must be filled in.
 <div class="Pp"></div>
 Information only available after the source has been read (e.g., size) can be
-  omitted in an earlier call. <i class="Em">NOTE</i>:
-  <b class="Fn">zip_source_function</b>() may be called with this argument even
-  after being called with <code class="Dv">ZIP_SOURCE_CLOSE</code>.
+  omitted in an earlier call. <i class="Em" title="Em">NOTE</i>:
+  <code class="Fn" title="Fn">zip_source_function</code>() may be called with
+  this argument even after being called with
+  <code class="Dv" title="Dv">ZIP_SOURCE_CLOSE</code>.
 <div class="Pp"></div>
 Return sizeof(struct zip_stat) on success.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_SUPPORTS</code></h2>
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_SUPPORTS</code></h2>
 Return bitmap specifying which commands are supported. Use
-  <a class="Xr" href="zip_source_make_command_bitmap.html">zip_source_make_command_bitmap(3)</a>.
+  <a class="Xr" title="Xr" href="zip_source_make_command_bitmap.html">zip_source_make_command_bitmap(3)</a>.
   If this command is not implemented, the source is assumed to be a read source
   without seek support.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_TELL</code></h2>
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_TELL</code></h2>
 Return the current read offset in the source, like
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/ftell.html">ftell(3)</a>.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_TELL_WRITE</code></h2>
+  <a class="Xr" title="Xr" href="ftell.html">ftell(3)</a>.
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_TELL_WRITE</code></h2>
 Return the current write offset in the source, like
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/ftell.html">ftell(3)</a>.
-<h2 class="Ss"><code class="Dv">ZIP_SOURCE_WRITE</code></h2>
+  <a class="Xr" title="Xr" href="ftell.html">ftell(3)</a>.
+<h2 class="Ss" title="Ss"><code class="Dv" title="Dv">ZIP_SOURCE_WRITE</code></h2>
 Write data to the source. Return number of bytes written.
-<h2 class="Ss" id="Return_Values">Return Values</h2>
-Commands should return -1 on error. <code class="Dv">ZIP_SOURCE_ERROR</code>
-  will be called to retrieve the error code. On success, commands return 0,
-  unless specified otherwise in the description above.
-<h2 class="Ss" id="Calling_Conventions">Calling Conventions</h2>
-The library will always issue <code class="Dv">ZIP_SOURCE_OPEN</code> before
-  issuing <code class="Dv">ZIP_SOURCE_READ</code>,
-  <code class="Dv">ZIP_SOURCE_SEEK</code>, or
-  <code class="Dv">ZIP_SOURCE_TELL</code>. When it no longer wishes to read from
-  this source, it will issue <code class="Dv">ZIP_SOURCE_CLOSE</code>. If the
-  library wishes to read the data again, it will issue
-  <code class="Dv">ZIP_SOURCE_OPEN</code> a second time. If the function is
-  unable to provide the data again, it should return -1.
+<h2 class="Ss" title="Ss" id="Return_Values"><a class="permalink" href="#Return_Values">Return
+  Values</a></h2>
+Commands should return -1 on error.
+  <code class="Dv" title="Dv">ZIP_SOURCE_ERROR</code> will be called to retrieve
+  the error code. On success, commands return 0, unless specified otherwise in
+  the description above.
+<h2 class="Ss" title="Ss" id="Calling_Conventions"><a class="permalink" href="#Calling_Conventions">Calling
+  Conventions</a></h2>
+The library will always issue <code class="Dv" title="Dv">ZIP_SOURCE_OPEN</code>
+  before issuing <code class="Dv" title="Dv">ZIP_SOURCE_READ</code>,
+  <code class="Dv" title="Dv">ZIP_SOURCE_SEEK</code>, or
+  <code class="Dv" title="Dv">ZIP_SOURCE_TELL</code>. When it no longer wishes
+  to read from this source, it will issue
+  <code class="Dv" title="Dv">ZIP_SOURCE_CLOSE</code>. If the library wishes to
+  read the data again, it will issue
+  <code class="Dv" title="Dv">ZIP_SOURCE_OPEN</code> a second time. If the
+  function is unable to provide the data again, it should return -1.
 <div class="Pp"></div>
-<code class="Dv">ZIP_SOURCE_BEGIN_WRITE</code> or
-  <code class="Dv">ZIP_SOURCE_BEGIN_WRITE_CLONING</code> will be called before
-  <code class="Dv">ZIP_SOURCE_WRITE</code>,
-  <code class="Dv">ZIP_SOURCE_SEEK_WRITE</code>, or
-  <code class="Dv">ZIP_SOURCE_TELL_WRITE</code>. When writing is complete,
-  either <code class="Dv">ZIP_SOURCE_COMMIT_WRITE</code> or
-  <code class="Dv">ZIP_SOURCE_ROLLBACK_WRITE</code> will be called.
+<code class="Dv" title="Dv">ZIP_SOURCE_BEGIN_WRITE</code> or
+  <code class="Dv" title="Dv">ZIP_SOURCE_BEGIN_WRITE_CLONING</code> will be
+  called before <code class="Dv" title="Dv">ZIP_SOURCE_WRITE</code>,
+  <code class="Dv" title="Dv">ZIP_SOURCE_SEEK_WRITE</code>, or
+  <code class="Dv" title="Dv">ZIP_SOURCE_TELL_WRITE</code>. When writing is
+  complete, either <code class="Dv" title="Dv">ZIP_SOURCE_COMMIT_WRITE</code> or
+  <code class="Dv" title="Dv">ZIP_SOURCE_ROLLBACK_WRITE</code> will be called.
 <div class="Pp"></div>
-<code class="Dv">ZIP_SOURCE_STAT</code> can be issued at any time.
+<code class="Dv" title="Dv">ZIP_SOURCE_STAT</code> can be issued at any time.
 <div class="Pp"></div>
-<code class="Dv">ZIP_SOURCE_ERROR</code> will only be issued in response to the
-  function returning -1.
+<code class="Dv" title="Dv">ZIP_SOURCE_ERROR</code> will only be issued in
+  response to the function returning -1.
 <div class="Pp"></div>
-<code class="Dv">ZIP_SOURCE_FREE</code> will be the last command issued; if
-  <code class="Dv">ZIP_SOURCE_OPEN</code> was called and succeeded,
-  <code class="Dv">ZIP_SOURCE_CLOSE</code> will be called before
-  <code class="Dv">ZIP_SOURCE_FREE</code>, and similarly for
-  <code class="Dv">ZIP_SOURCE_BEGIN_WRITE</code> or
-  <code class="Dv">ZIP_SOURCE_BEGIN_WRITE_CLONING</code> and
-  <code class="Dv">ZIP_SOURCE_COMMIT_WRITE</code> or
-  <code class="Dv">ZIP_SOURCE_ROLLBACK_WRITE</code>.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<code class="Dv" title="Dv">ZIP_SOURCE_FREE</code> will be the last command
+  issued; if <code class="Dv" title="Dv">ZIP_SOURCE_OPEN</code> was called and
+  succeeded, <code class="Dv" title="Dv">ZIP_SOURCE_CLOSE</code> will be called
+  before <code class="Dv" title="Dv">ZIP_SOURCE_FREE</code>, and similarly for
+  <code class="Dv" title="Dv">ZIP_SOURCE_BEGIN_WRITE</code> or
+  <code class="Dv" title="Dv">ZIP_SOURCE_BEGIN_WRITE_CLONING</code> and
+  <code class="Dv" title="Dv">ZIP_SOURCE_COMMIT_WRITE</code> or
+  <code class="Dv" title="Dv">ZIP_SOURCE_ROLLBACK_WRITE</code>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the created source is returned. Otherwise,
-  <code class="Dv">NULL</code> is returned and the error code in
-  <var class="Ar">archive</var> or <var class="Ar">error</var> is set to
-  indicate the error (unless it is <code class="Dv">NULL</code>).
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_source_function</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
+  <code class="Dv" title="Dv">NULL</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> or
+  <var class="Ar" title="Ar">error</var> is set to indicate the error (unless it
+  is <code class="Dv" title="Dv">NULL</code>).
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_source_function</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_add.html">zip_add(3)</a>,
-  <a class="Xr" href="zip_replace.html">zip_replace(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_stat_init.html">zip_stat_init(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_function</b>() and
-  <b class="Fn">zip_source_function_create</b>() were added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_stat_init.html">zip_stat_init(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_function</code>() and
+  <code class="Fn" title="Fn">zip_source_function_create</code>() were added in
+  libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_function.man b/man/zip_source_function.man
index b167e83..d6b6eeb 100644
--- a/man/zip_source_function.man
+++ b/man/zip_source_function.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_function.mdoc -- create data source from function
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_FUNCTION" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -299,8 +331,8 @@
 Required memory could not be allocated.
 .SH "SEE ALSO"
 libzip(3),
-zip_add(3),
-zip_replace(3),
+zip_file_add(3),
+zip_file_replace(3),
 zip_source(3),
 zip_stat_init(3)
 .SH "HISTORY"
diff --git a/man/zip_source_function.mdoc b/man/zip_source_function.mdoc
index 6c4683d..74d9af8 100644
--- a/man/zip_source_function.mdoc
+++ b/man/zip_source_function.mdoc
@@ -200,7 +200,7 @@
 and then filled in.
 .Pp
 For uncompressed, unencrypted data, all information is optional.
-However, fill in as much information as is readily available. 
+However, fill in as much information as is readily available.
 .Pp
 If the data is compressed,
 .Dv ZIP_STAT_COMP_METHOD ,
@@ -319,8 +319,8 @@
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_add 3 ,
-.Xr zip_replace 3 ,
+.Xr zip_file_add 3 ,
+.Xr zip_file_replace 3 ,
 .Xr zip_source 3 ,
 .Xr zip_stat_init 3
 .Sh HISTORY
diff --git a/man/zip_source_is_deleted.html b/man/zip_source_is_deleted.html
index e8d576e..69c41ab 100644
--- a/man/zip_source_is_deleted.html
+++ b/man/zip_source_is_deleted.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_is_deleted.mdoc -- check if zip source is deleted
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_IS_DELETED(3)</title>
 </head>
@@ -20,39 +46,43 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_is_deleted</b> &#8212; <span class="Nd">check if
-  zip_source is deleted</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_is_deleted</code> &#x2014;
+<div class="Nd" title="Nd">check if zip_source is deleted</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_source_is_deleted</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_is_deleted</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_is_deleted</b>() returns whether the
-  zip_source was deleted. This can for example happen when all entries are
-  removed from a zip archive.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-<b class="Fn">zip_source_is_deleted</b>() returns 1 if the zip_source is deleted
-  and 0 otherwise.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_is_deleted</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_is_deleted</code>() returns
+  whether the zip_source was deleted. This can for example happen when all
+  entries are removed from a zip archive.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+<code class="Fn" title="Fn">zip_source_is_deleted</code>() returns 1 if the
+  zip_source is deleted and 0 otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_is_deleted</code>() was added in libzip
+  1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_is_deleted.man b/man/zip_source_is_deleted.man
index 133f68e..89dab74 100644
--- a/man/zip_source_is_deleted.man
+++ b/man/zip_source_is_deleted.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_is_deleted.mdoc -- check if zip source is deleted
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_IS_DELETED" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_keep.html b/man/zip_source_keep.html
index 6e6cd09..24588e7 100644
--- a/man/zip_source_keep.html
+++ b/man/zip_source_keep.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_keep.mdoc -- increment reference count of zip data source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_KEEP(3)</title>
 </head>
@@ -20,36 +46,38 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_keep</b> &#8212; <span class="Nd">increment reference
-  count of zip data source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_keep</code> &#x2014;
+<div class="Nd" title="Nd">increment reference count of zip data source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_source_keep</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_keep</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_keep</b>() increments the reference count
-  of <var class="Ar">source</var>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_free.html">zip_source_free(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_keep</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_keep</code>() increments the
+  reference count of <var class="Ar" title="Ar">source</var>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_free.html">zip_source_free(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_keep</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_keep.man b/man/zip_source_keep.man
index 6a324f8..488673c 100644
--- a/man/zip_source_keep.man
+++ b/man/zip_source_keep.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_keep.mdoc -- increment reference count of zip data source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_KEEP" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_make_command_bitmap.html b/man/zip_source_make_command_bitmap.html
index 1f356ad..2e4de76 100644
--- a/man/zip_source_make_command_bitmap.html
+++ b/man/zip_source_make_command_bitmap.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_make_command_bitmap -- create bitmap of supported source operations
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_MAKE_COMMAND_BITMAP(3)</title>
 </head>
@@ -20,37 +46,41 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_make_command_bitmap</b> &#8212; <span class="Nd">create
-  bitmap of supported source operations</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_make_command_bitmap</code> &#x2014;
+<div class="Nd" title="Nd">create bitmap of supported source operations</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_source_make_command_bitmap</b>(<var class="Fa" style="white-space: nowrap;">zip_source_cmd_t
-  command</var>, <var class="Fa" style="white-space: nowrap;">...</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_source_make_command_bitmap</b>() function returns a bitmap
-  of source commands suitable as return value for
-  <code class="Dv">ZIP_SOURCE_SUPPORTS</code>. It includes all the commands from
-  the argument list, which must be terminated by -1.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source_function.html">zip_source_function(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_make_command_bitmap</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Fn" title="Fn">zip_source_make_command_bitmap</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_cmd_t
+  command</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">...</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_source_make_command_bitmap</code>() function
+  returns a bitmap of source commands suitable as return value for
+  <code class="Dv" title="Dv">ZIP_SOURCE_SUPPORTS</code>. It includes all the
+  commands from the argument list, which must be terminated by -1.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_function.html">zip_source_function(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_make_command_bitmap</code>() was added in
+  libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_make_command_bitmap.man b/man/zip_source_make_command_bitmap.man
index b618e44..3dc3ed5 100644
--- a/man/zip_source_make_command_bitmap.man
+++ b/man/zip_source_make_command_bitmap.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_make_command_bitmap -- create bitmap of supported source operations
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_MAKE_COMMAND_BITMAP" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_open.html b/man/zip_source_open.html
index 8a18acc..834032c 100644
--- a/man/zip_source_open.html
+++ b/man/zip_source_open.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_open.mdoc -- open zip source for reading
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_OPEN(3)</title>
 </head>
@@ -20,44 +46,47 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_open</b> &#8212; <span class="Nd">open zip_source for
-  reading</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_open</code> &#x2014;
+<div class="Nd" title="Nd">open zip_source for reading</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_source_open</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_open</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_open</b>() opens
-  <var class="Fa">source</var> for reading.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_open</code>() opens
+  <var class="Fa" title="Fa">source</var> for reading.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">source</var> is set to indicate the
-  error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
-  <a class="Xr" href="zip_source_close.html">zip_source_close(3)</a>,
-  <a class="Xr" href="zip_source_read.html">zip_source_read(3)</a>,
-  <a class="Xr" href="zip_source_seek.html">zip_source_seek(3)</a>,
-  <a class="Xr" href="zip_source_tell.html">zip_source_tell(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_open</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  error information in <var class="Ar" title="Ar">source</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_close.html">zip_source_close(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_read.html">zip_source_read(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_seek.html">zip_source_seek(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_tell.html">zip_source_tell(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_open</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_open.man b/man/zip_source_open.man
index 57fb326..dc337ba 100644
--- a/man/zip_source_open.man
+++ b/man/zip_source_open.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_open.mdoc -- open zip source for reading
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_OPEN" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_read.html b/man/zip_source_read.html
index 0e96b77..7aa97b4 100644
--- a/man/zip_source_read.html
+++ b/man/zip_source_read.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_read.mdoc -- read data from zip source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_READ(3)</title>
 </head>
@@ -20,48 +46,56 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_read</b> &#8212; <span class="Nd">read data from zip
-  source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_read</code> &#x2014;
+<div class="Nd" title="Nd">read data from zip source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_source_read</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
-  *source</var>, <var class="Fa" style="white-space: nowrap;">void *data</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint64_t len</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_read</b>() reads up to
-  <var class="Ar">len</var> bytes of data from <var class="Ar">source</var> at
-  the current read offset into the buffer <var class="Ar">data</var>.
+<code class="Fn" title="Fn">zip_source_read</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
+  *source</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *data</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  len</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_read</code>() reads up to
+  <var class="Ar" title="Ar">len</var> bytes of data from
+  <var class="Ar" title="Ar">source</var> at the current read offset into the
+  buffer <var class="Ar" title="Ar">data</var>.
 <div class="Pp"></div>
-The zip source <var class="Ar">source</var> has to be opened for reading by
-  calling <a class="Xr" href="zip_source_open.html">zip_source_open(3)</a>
+The zip source <var class="Ar" title="Ar">source</var> has to be opened for
+  reading by calling
+  <a class="Xr" title="Xr" href="zip_source_open.html">zip_source_open(3)</a>
   first.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion the number of bytes read is returned. Upon reading
   end-of-file, zero is returned. Otherwise, -1 is returned and the error
-  information in <var class="Ar">source</var> is set to indicate the error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_seek.html">zip_source_seek(3)</a>,
-  <a class="Xr" href="zip_source_tell.html">zip_source_tell(3)</a>,
-  <a class="Xr" href="zip_source_write.html">zip_source_write(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_read</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  information in <var class="Ar" title="Ar">source</var> is set to indicate the
+  error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_seek.html">zip_source_seek(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_tell.html">zip_source_tell(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_write.html">zip_source_write(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_read</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_read.man b/man/zip_source_read.man
index e22dea5..78ea1bf 100644
--- a/man/zip_source_read.man
+++ b/man/zip_source_read.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_read.mdoc -- read data from zip source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_READ" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_rollback_write.html b/man/zip_source_rollback_write.html
index 0659346..446f4ef 100644
--- a/man/zip_source_rollback_write.html
+++ b/man/zip_source_rollback_write.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_rollback_write.mdoc -- undo changes to zip source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_ROLLBACK_WRITE(3)</title>
 </head>
@@ -20,46 +46,51 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_rollback_write</b> &#8212; <span class="Nd">undo
-  changes to zip source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_rollback_write</code> &#x2014;
+<div class="Nd" title="Nd">undo changes to zip source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_source_rollback_write</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_rollback_write</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_rollback_write</b>() reverts changes
-  written to <var class="Fa">source</var>, restoring the data before
-  <a class="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_rollback_write</code>()
+  reverts changes written to <var class="Fa" title="Fa">source</var>, restoring
+  the data before
+  <a class="Xr" title="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>
   was called. Usually this removes temporary files or frees buffers.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">source</var> is set to indicate the
-  error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
-  <a class="Xr" href="zip_source_commit_write.html">zip_source_commit_write(3)</a>,
-  <a class="Xr" href="zip_source_seek_write.html">zip_source_seek_write(3)</a>,
-  <a class="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>,
-  <a class="Xr" href="zip_source_write.html">zip_source_write(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_rollback_write</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  error information in <var class="Ar" title="Ar">source</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_commit_write.html">zip_source_commit_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_seek_write.html">zip_source_seek_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_write.html">zip_source_write(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_rollback_write</code>() was added in
+  libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_rollback_write.man b/man/zip_source_rollback_write.man
index c1d61ed..1665dbe 100644
--- a/man/zip_source_rollback_write.man
+++ b/man/zip_source_rollback_write.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_rollback_write.mdoc -- undo changes to zip source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_ROLLBACK_WRITE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_seek.html b/man/zip_source_seek.html
index 8b8e1e3..835a971 100644
--- a/man/zip_source_seek.html
+++ b/man/zip_source_seek.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_seek.mdoc -- set read offset in source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_SEEK(3)</title>
 </head>
@@ -20,61 +46,66 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_seek</b> &#8212; <span class="Nd">set read offset in
-  zip source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_seek</code> &#x2014;
+<div class="Nd" title="Nd">set read offset in zip source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_source_seek</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
-  *source</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
-  offset</var>, <var class="Fa" style="white-space: nowrap;">int whence</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_seek</b>() sets the current read offset
-  for <var class="Fa">source</var>. Just like in
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/fseek.html">fseek(3)</a>, depending on the
-  <var class="Ar">whence</var> argument, the <var class="Ar">offset</var> is
-  counted relative from:
+<code class="Fn" title="Fn">zip_source_seek</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
+  *source</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t
+  offset</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  whence</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_seek</code>() sets the
+  current read offset for <var class="Fa" title="Fa">source</var>. Just like in
+  <a class="Xr" title="Xr" href="fseek.html">fseek(3)</a>, depending on the
+  <var class="Ar" title="Ar">whence</var> argument, the
+  <var class="Ar" title="Ar">offset</var> is counted relative from:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 10.00ex;">
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><code class="Dv">SEEK_SET</code></dt>
-  <dd class="It-tag">start of file</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><code class="Dv">SEEK_CUR</code></dt>
-  <dd class="It-tag">current read offset in file</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><code class="Dv">SEEK_END</code></dt>
-  <dd class="It-tag">end of file</dd>
+<dl class="Bl-tag" style="margin-left: 15.00ex;">
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#SEEK_SET"><code class="Dv" title="Dv" id="SEEK_SET">SEEK_SET</code></a></dt>
+  <dd>start of file</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#SEEK_CUR"><code class="Dv" title="Dv" id="SEEK_CUR">SEEK_CUR</code></a></dt>
+  <dd>current read offset in file</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#SEEK_END"><code class="Dv" title="Dv" id="SEEK_END">SEEK_END</code></a></dt>
+  <dd>end of file</dd>
 </dl>
 </div>
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">source</var> is set to indicate the
-  error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_read.html">zip_source_read(3)</a>,
-  <a class="Xr" href="zip_source_tell.html">zip_source_tell(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_seek</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  error information in <var class="Ar" title="Ar">source</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_read.html">zip_source_read(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_tell.html">zip_source_tell(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_seek</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_seek.man b/man/zip_source_seek.man
index 965d4f0..399597e 100644
--- a/man/zip_source_seek.man
+++ b/man/zip_source_seek.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_seek.mdoc -- set read offset in source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_SEEK" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_seek_compute_offset.html b/man/zip_source_seek_compute_offset.html
index 2e77399..9d150bd 100644
--- a/man/zip_source_seek_compute_offset.html
+++ b/man/zip_source_seek_compute_offset.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_seek_compute_offset.mdoc - validate arguments and compute offset
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_SEEK_COMPUTE_OFFSET(3)</title>
 </head>
@@ -20,54 +46,64 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_seek_compute_offset</b> &#8212;
-  <span class="Nd">validate arguments and compute offset</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_seek_compute_offset</code> &#x2014;
+<div class="Nd" title="Nd">validate arguments and compute offset</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_source_seek_compute_offset</b>(<var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  offset</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  length</var>, <var class="Fa" style="white-space: nowrap;">void *data</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint64_t data_length</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_error_t *error</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
+<code class="Fn" title="Fn">zip_source_seek_compute_offset</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  offset</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  length</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *data</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  data_length</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
+  *error</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
 Use this function to compute the offset for a
-  <code class="Dv">ZIP_SOURCE_SEEK</code> or
-  <code class="Dv">ZIP_SOURCE_SEEK_WRITE</code> command.
-  <var class="Ar">data</var> and <var class="Ar">data_length</var> are the
-  arguments to the source callback, <var class="Ar">offset</var> is the current
-  offset and <var class="Ar">length</var> is the length of the source data or,
-  for <code class="Dv">ZIP_SOURCE_SEEK_WRITE</code>, the amount of data written.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  <code class="Dv" title="Dv">ZIP_SOURCE_SEEK</code> or
+  <code class="Dv" title="Dv">ZIP_SOURCE_SEEK_WRITE</code> command.
+  <var class="Ar" title="Ar">data</var> and
+  <var class="Ar" title="Ar">data_length</var> are the arguments to the source
+  callback, <var class="Ar" title="Ar">offset</var> is the current offset and
+  <var class="Ar" title="Ar">length</var> is the length of the source data or,
+  for <code class="Dv" title="Dv">ZIP_SOURCE_SEEK_WRITE</code>, the amount of
+  data written.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 On success, it returns the new offset, on error it returns -1 and sets
-  <var class="Ar">error</var>.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_source_seek_compute_offset</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag">One of the arguments is invalid or the seek would place the
-      offset outside the data.</dd>
+  <var class="Ar" title="Ar">error</var>.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_source_seek_compute_offset</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd>One of the arguments is invalid or the seek would place the offset outside
+      the data.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="zip_source_function.html">zip_source_function(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_seek_compute_offset</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="zip_source_function.html">zip_source_function(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_seek_compute_offset</code>() was added in
+  libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_seek_compute_offset.man b/man/zip_source_seek_compute_offset.man
index c7c2704..a1b1cc1 100644
--- a/man/zip_source_seek_compute_offset.man
+++ b/man/zip_source_seek_compute_offset.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_seek_compute_offset.mdoc - validate arguments and compute offset
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_SEEK_COMPUTE_OFFSET" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_seek_write.html b/man/zip_source_seek_write.html
index 1215b2c..cd49a4b 100644
--- a/man/zip_source_seek_write.html
+++ b/man/zip_source_seek_write.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_seek_write.mdoc -- set write offset in source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_SEEK_WRITE(3)</title>
 </head>
@@ -20,64 +46,70 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_seek_write</b> &#8212; <span class="Nd">set write
-  offset in zip source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_seek_write</code> &#x2014;
+<div class="Nd" title="Nd">set write offset in zip source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_source_seek_write</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
-  *source</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
-  offset</var>, <var class="Fa" style="white-space: nowrap;">int whence</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_seek_write</b>() sets the current write
-  offset for <var class="Fa">source</var>. Just like in
-  <a class="Xr" href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/fseek.html">fseek(3)</a>, depending on the
-  <var class="Ar">whence</var> argument, the <var class="Ar">offset</var> is
-  counted relative from:
+<code class="Fn" title="Fn">zip_source_seek_write</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
+  *source</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t
+  offset</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  whence</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_seek_write</code>() sets the
+  current write offset for <var class="Fa" title="Fa">source</var>. Just like in
+  <a class="Xr" title="Xr" href="fseek.html">fseek(3)</a>, depending on the
+  <var class="Ar" title="Ar">whence</var> argument, the
+  <var class="Ar" title="Ar">offset</var> is counted relative from:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 10.00ex;">
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><code class="Dv">SEEK_SET</code></dt>
-  <dd class="It-tag">start of file</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><code class="Dv">SEEK_CUR</code></dt>
-  <dd class="It-tag">current write offset in file</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><code class="Dv">SEEK_END</code></dt>
-  <dd class="It-tag">end of file</dd>
+<dl class="Bl-tag" style="margin-left: 15.00ex;">
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#SEEK_SET"><code class="Dv" title="Dv" id="SEEK_SET">SEEK_SET</code></a></dt>
+  <dd>start of file</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#SEEK_CUR"><code class="Dv" title="Dv" id="SEEK_CUR">SEEK_CUR</code></a></dt>
+  <dd>current write offset in file</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#SEEK_END"><code class="Dv" title="Dv" id="SEEK_END">SEEK_END</code></a></dt>
+  <dd>end of file</dd>
 </dl>
 </div>
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">source</var> is set to indicate the
-  error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
-  <a class="Xr" href="zip_source_commit_write.html">zip_source_commit_write(3)</a>,
-  <a class="Xr" href="zip_source_rollback_write.html">zip_source_rollback_write(3)</a>,
-  <a class="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>,
-  <a class="Xr" href="zip_source_write.html">zip_source_write(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_seek_write</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  error information in <var class="Ar" title="Ar">source</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_commit_write.html">zip_source_commit_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_rollback_write.html">zip_source_rollback_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_write.html">zip_source_write(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_seek_write</code>() was added in libzip
+  1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_seek_write.man b/man/zip_source_seek_write.man
index a25d48c..567588d 100644
--- a/man/zip_source_seek_write.man
+++ b/man/zip_source_seek_write.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_seek_write.mdoc -- set write offset in source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_SEEK_WRITE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_stat.html b/man/zip_source_stat.html
index 897d55c..3c6b7b6 100644
--- a/man/zip_source_stat.html
+++ b/man/zip_source_stat.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_stat.mdoc -- get information about zip source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_STAT(3)</title>
 </head>
@@ -20,26 +46,27 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_stat</b> &#8212; <span class="Nd">get information about
-  zip_source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_stat</code> &#x2014;
+<div class="Nd" title="Nd">get information about zip_source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_source_stat</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
-  *source</var>, <var class="Fa" style="white-space: nowrap;">zip_stat_t
-  *sb</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_source_stat</b>() function obtains information about the
-  zip source <var class="Ar">source</var>
+<code class="Fn" title="Fn">zip_source_stat</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
+  *source</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_stat_t *sb</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_source_stat</code>() function obtains
+  information about the zip source <var class="Ar" title="Ar">source</var>
 <div class="Pp"></div>
-The <var class="Ar">sb</var> argument is a pointer to a <var class="Ft">struct
-  zip_source_stat</var> (shown below), into which information about the zip
-  source is placed.
+The <var class="Ar" title="Ar">sb</var> argument is a pointer to a
+  <var class="Ft" title="Ft">struct zip_source_stat</var> (shown below), into
+  which information about the zip source is placed.
 <div class="Pp"></div>
 <div class="Bd" style="margin-left: 0.00ex;">
 <pre class="Li">
@@ -57,57 +84,62 @@
 };
 </pre>
 </div>
-The structure pointed to by <var class="Ar">sb</var> must be initialized with
-  <b class="Fn">zip_stat_init</b>(<var class="Fa">3</var>) before calling
-  <b class="Fn">zip_source_stat</b>().
+The structure pointed to by <var class="Ar" title="Ar">sb</var> must be
+  initialized with
+  <code class="Fn" title="Fn">zip_stat_init</code>(<var class="Fa" title="Fa">3</var>)
+  before calling <code class="Fn" title="Fn">zip_source_stat</code>().
 <div class="Pp"></div>
-The <var class="Ar">valid</var> field of the structure specifies which other
-  fields are valid. Check if the flag defined by the following defines are in
-  <var class="Ar">valid</var> before accessing the fields:
+The <var class="Ar" title="Ar">valid</var> field of the structure specifies
+  which other fields are valid. Check if the flag defined by the following
+  defines are in <var class="Ar" title="Ar">valid</var> before accessing the
+  fields:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 35.00ex;">
-  <dt class="It-tag" style="margin-left: -35.00ex;"><code class="Dv">ZIP_SOURCE_STAT_NAME</code></dt>
-  <dd class="It-tag"><var class="Ar">name</var></dd>
-  <dt class="It-tag" style="margin-left: -35.00ex;"><code class="Dv">ZIP_SOURCE_STAT_INDEX</code></dt>
-  <dd class="It-tag"><var class="Ar">index</var></dd>
-  <dt class="It-tag" style="margin-left: -35.00ex;"><code class="Dv">ZIP_SOURCE_STAT_SIZE</code></dt>
-  <dd class="It-tag"><var class="Ar">size</var></dd>
-  <dt class="It-tag" style="margin-left: -35.00ex;"><code class="Dv">ZIP_SOURCE_STAT_COMP_SIZE</code></dt>
-  <dd class="It-tag"><var class="Ar">comp_size</var></dd>
-  <dt class="It-tag" style="margin-left: -35.00ex;"><code class="Dv">ZIP_SOURCE_STAT_MTIME</code></dt>
-  <dd class="It-tag"><var class="Ar">mtime</var></dd>
-  <dt class="It-tag" style="margin-left: -35.00ex;"><code class="Dv">ZIP_SOURCE_STAT_CRC</code></dt>
-  <dd class="It-tag"><var class="Ar">crc</var></dd>
-  <dt class="It-tag" style="margin-left: -35.00ex;"><code class="Dv">ZIP_SOURCE_STAT_COMP_METHOD</code></dt>
-  <dd class="It-tag"><var class="Ar">comp_method</var></dd>
-  <dt class="It-tag" style="margin-left: -35.00ex;"><code class="Dv">ZIP_SOURCE_STAT_ENCRYPTION_METHOD</code></dt>
-  <dd class="It-tag"><var class="Ar">encryption_method</var></dd>
-  <dt class="It-tag" style="margin-left: -35.00ex;"><code class="Dv">ZIP_SOURCE_STAT_FLAGS</code></dt>
-  <dd class="It-tag"><var class="Ar">flags</var></dd>
+<dl class="Bl-tag Bl-compact" style="margin-left: 45.00ex;">
+  <dt style="margin-left: -45.00ex;"><a class="permalink" href="#ZIP_SOURCE_STAT_NAME"><code class="Dv" title="Dv" id="ZIP_SOURCE_STAT_NAME">ZIP_SOURCE_STAT_NAME</code></a></dt>
+  <dd><var class="Ar" title="Ar">name</var></dd>
+  <dt style="margin-left: -45.00ex;"><a class="permalink" href="#ZIP_SOURCE_STAT_INDEX"><code class="Dv" title="Dv" id="ZIP_SOURCE_STAT_INDEX">ZIP_SOURCE_STAT_INDEX</code></a></dt>
+  <dd><var class="Ar" title="Ar">index</var></dd>
+  <dt style="margin-left: -45.00ex;"><a class="permalink" href="#ZIP_SOURCE_STAT_SIZE"><code class="Dv" title="Dv" id="ZIP_SOURCE_STAT_SIZE">ZIP_SOURCE_STAT_SIZE</code></a></dt>
+  <dd><var class="Ar" title="Ar">size</var></dd>
+  <dt style="margin-left: -45.00ex;"><a class="permalink" href="#ZIP_SOURCE_STAT_COMP_SIZE"><code class="Dv" title="Dv" id="ZIP_SOURCE_STAT_COMP_SIZE">ZIP_SOURCE_STAT_COMP_SIZE</code></a></dt>
+  <dd><var class="Ar" title="Ar">comp_size</var></dd>
+  <dt style="margin-left: -45.00ex;"><a class="permalink" href="#ZIP_SOURCE_STAT_MTIME"><code class="Dv" title="Dv" id="ZIP_SOURCE_STAT_MTIME">ZIP_SOURCE_STAT_MTIME</code></a></dt>
+  <dd><var class="Ar" title="Ar">mtime</var></dd>
+  <dt style="margin-left: -45.00ex;"><a class="permalink" href="#ZIP_SOURCE_STAT_CRC"><code class="Dv" title="Dv" id="ZIP_SOURCE_STAT_CRC">ZIP_SOURCE_STAT_CRC</code></a></dt>
+  <dd><var class="Ar" title="Ar">crc</var></dd>
+  <dt style="margin-left: -45.00ex;"><a class="permalink" href="#ZIP_SOURCE_STAT_COMP_METHOD"><code class="Dv" title="Dv" id="ZIP_SOURCE_STAT_COMP_METHOD">ZIP_SOURCE_STAT_COMP_METHOD</code></a></dt>
+  <dd><var class="Ar" title="Ar">comp_method</var></dd>
+  <dt style="margin-left: -45.00ex;"><a class="permalink" href="#ZIP_SOURCE_STAT_ENCRYPTION_METHOD"><code class="Dv" title="Dv" id="ZIP_SOURCE_STAT_ENCRYPTION_METHOD">ZIP_SOURCE_STAT_ENCRYPTION_METHOD</code></a></dt>
+  <dd><var class="Ar" title="Ar">encryption_method</var></dd>
+  <dt style="margin-left: -45.00ex;"><a class="permalink" href="#ZIP_SOURCE_STAT_FLAGS"><code class="Dv" title="Dv" id="ZIP_SOURCE_STAT_FLAGS">ZIP_SOURCE_STAT_FLAGS</code></a></dt>
+  <dd><var class="Ar" title="Ar">flags</var></dd>
 </dl>
 </div>
 <div class="Pp"></div>
-<i class="Em">NOTE</i>: Some fields may only be filled out after all data has
-  been read from the source, for example the <var class="Ar">crc</var> or
-  <var class="Ar">size</var> fields.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<i class="Em" title="Em">NOTE</i>: Some fields may only be filled out after all
+  data has been read from the source, for example the
+  <var class="Ar" title="Ar">crc</var> or <var class="Ar" title="Ar">size</var>
+  fields.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">source</var> is set to indicate the
-  error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_stat</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  error information in <var class="Ar" title="Ar">source</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_stat</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_stat.man b/man/zip_source_stat.man
index e3c9b5f..cbc12ff 100644
--- a/man/zip_source_stat.man
+++ b/man/zip_source_stat.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_stat.mdoc -- get information about zip source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_STAT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_tell.html b/man/zip_source_tell.html
index 0c4bb15..dac575e 100644
--- a/man/zip_source_tell.html
+++ b/man/zip_source_tell.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_tell.mdoc -- report current read offset in source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_TELL(3)</title>
 </head>
@@ -20,44 +46,49 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_tell</b> &#8212; <span class="Nd">report current read
-  offset in zip source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_tell</code> &#x2014;
+<div class="Nd" title="Nd">report current read offset in zip source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_source_tell</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_tell</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_tell</b>() returns the current read offset
-  for <var class="Fa">source</var>. The return value can be passed to
-  <a class="Xr" href="zip_source_seek.html">zip_source_seek(3)</a> with
-  <var class="Ar">whence</var> set to <code class="Dv">SEEK_SET</code> to return
-  to the same location in the source.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_tell</code>() returns the
+  current read offset for <var class="Fa" title="Fa">source</var>. The return
+  value can be passed to
+  <a class="Xr" title="Xr" href="zip_source_seek.html">zip_source_seek(3)</a>
+  with <var class="Ar" title="Ar">whence</var> set to
+  <code class="Dv" title="Dv">SEEK_SET</code> to return to the same location in
+  the source.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion the current read offset is returned. Otherwise, -1 is
-  returned and the error information in <var class="Ar">source</var> is set to
-  indicate the error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_read.html">zip_source_read(3)</a>,
-  <a class="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_tell</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  returned and the error information in <var class="Ar" title="Ar">source</var>
+  is set to indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_read.html">zip_source_read(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_tell</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_tell.man b/man/zip_source_tell.man
index caae69a..088ec86 100644
--- a/man/zip_source_tell.man
+++ b/man/zip_source_tell.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_tell.mdoc -- report current read offset in source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_TELL" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_tell_write.html b/man/zip_source_tell_write.html
index dd103da..b0ca534 100644
--- a/man/zip_source_tell_write.html
+++ b/man/zip_source_tell_write.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_tell_write.mdoc -- report current write offset in source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_TELL_WRITE(3)</title>
 </head>
@@ -20,47 +46,53 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_tell_write</b> &#8212; <span class="Nd">report current
-  write offset in zip source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_tell_write</code> &#x2014;
+<div class="Nd" title="Nd">report current write offset in zip source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_source_tell_write</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
+<code class="Fn" title="Fn">zip_source_tell_write</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
   *source</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_tell_write</b>() returns the current write
-  offset for <var class="Fa">source</var>. The return value can be passed to
-  <a class="Xr" href="zip_source_seek_write.html">zip_source_seek_write(3)</a>
-  with <var class="Ar">whence</var> set to <code class="Dv">SEEK_SET</code> to
-  return to the same location in the source.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_tell_write</code>() returns
+  the current write offset for <var class="Fa" title="Fa">source</var>. The
+  return value can be passed to
+  <a class="Xr" title="Xr" href="zip_source_seek_write.html">zip_source_seek_write(3)</a>
+  with <var class="Ar" title="Ar">whence</var> set to
+  <code class="Dv" title="Dv">SEEK_SET</code> to return to the same location in
+  the source.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion the current write offset is returned. Otherwise, -1
-  is returned and the error information in <var class="Ar">source</var> is set
-  to indicate the error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
-  <a class="Xr" href="zip_source_commit_write.html">zip_source_commit_write(3)</a>,
-  <a class="Xr" href="zip_source_rollback_write.html">zip_source_rollback_write(3)</a>,
-  <a class="Xr" href="zip_source_tell.html">zip_source_tell(3)</a>,
-  <a class="Xr" href="zip_source_write.html">zip_source_write(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_tell_write</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  is returned and the error information in
+  <var class="Ar" title="Ar">source</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_commit_write.html">zip_source_commit_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_rollback_write.html">zip_source_rollback_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_tell.html">zip_source_tell(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_write.html">zip_source_write(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_tell_write</code>() was added in libzip
+  1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_tell_write.man b/man/zip_source_tell_write.man
index 8e72e8f..4208e5c 100644
--- a/man/zip_source_tell_write.man
+++ b/man/zip_source_tell_write.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_tell_write.mdoc -- report current write offset in source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_TELL_WRITE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_win32a.html b/man/zip_source_win32a.html
index 661b04e..ed53ac8 100644
--- a/man/zip_source_win32a.html
+++ b/man/zip_source_win32a.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_win32a.mdoc -- create data source using a win32 ANSI name
+   Copyright (C) 2015-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_WIN32A(3)</title>
 </head>
@@ -20,84 +46,97 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_win32a</b>, <b class="Nm">zip_source_win32a_create</b>
-  &#8212; <span class="Nd">create data source from a Windows ANSI file
-  name</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_win32a</code>,
+  <code class="Nm" title="Nm">zip_source_win32a_create</code> &#x2014;
+<div class="Nd" title="Nd">create data source from a Windows ANSI file
+  name</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_win32a</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *fname</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  start</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
+<code class="Fn" title="Fn">zip_source_win32a</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *fname</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t
   len</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_win32a_create</b>(<var class="Fa" style="white-space: nowrap;">const
-  char *fname</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  start</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
-  len</var>, <var class="Fa" style="white-space: nowrap;">zip_error_t
+<code class="Fn" title="Fn">zip_source_win32a_create</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *fname</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t len</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
   *error</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The functions <b class="Fn">zip_source_win32a</b>() and
-  <b class="Fn">zip_source_win32a_create</b>() create a zip source on Windows
-  using a Windows ANSI name. They open <var class="Ar">fname</var> and read
-  <var class="Ar">len</var> bytes from offset <var class="Ar">start</var> from
-  it. If <var class="Ar">len</var> is 0 or -1, the whole file (starting from
-  <var class="Ar">start</var>) is used.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The functions <code class="Fn" title="Fn">zip_source_win32a</code>() and
+  <code class="Fn" title="Fn">zip_source_win32a_create</code>() create a zip
+  source on Windows using a Windows ANSI name. They open
+  <var class="Ar" title="Ar">fname</var> and read
+  <var class="Ar" title="Ar">len</var> bytes from offset
+  <var class="Ar" title="Ar">start</var> from it. If
+  <var class="Ar" title="Ar">len</var> is 0 or -1, the whole file (starting from
+  <var class="Ar" title="Ar">start</var>) is used.
 <div class="Pp"></div>
 If the file supports seek, the source can be used to open a zip archive from.
 <div class="Pp"></div>
 The file is opened and read when the data from the source is used, usually by
-  <b class="Fn">zip_close</b>() or <b class="Fn">zip_open_from_source</b>().
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  <code class="Fn" title="Fn">zip_close</code>() or
+  <code class="Fn" title="Fn">zip_open_from_source</code>().
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the created source is returned. Otherwise,
-  <code class="Dv">NULL</code> is returned and the error code in
-  <var class="Ar">archive</var> or <var class="Ar">error</var> is set to
-  indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_source_win32a</b>() and
-  <b class="Fn">zip_source_win32a_create</b>() fail if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">fname</var>, <var class="Ar">start</var>,
-      or <var class="Ar">len</var> are invalid.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_OPEN</code>]</dt>
-  <dd class="It-tag">Opening <var class="Ar">fname</var> failed.</dd>
+  <code class="Dv" title="Dv">NULL</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> or
+  <var class="Ar" title="Ar">error</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_source_win32a</code>() and
+  <code class="Fn" title="Fn">zip_source_win32a_create</code>() fail if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">fname</var>,
+      <var class="Ar" title="Ar">start</var>, or
+      <var class="Ar" title="Ar">len</var> are invalid.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_OPEN"><code class="Er" title="Er" id="ZIP_ER_OPEN">ZIP_ER_OPEN</code></a>]</dt>
+  <dd>Opening <var class="Ar" title="Ar">fname</var> failed.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_add.html">zip_add(3)</a>,
-  <a class="Xr" href="zip_replace.html">zip_replace(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_win32handle.html">zip_source_win32handle(3)</a>,
-  <a class="Xr" href="zip_source_win32w.html">zip_source_win32w(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_win32a</b>() and
-  <b class="Fn">zip_source_win32a_create</b>() were added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_win32handle.html">zip_source_win32handle(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_win32w.html">zip_source_win32w(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_win32a</code>() and
+  <code class="Fn" title="Fn">zip_source_win32a_create</code>() were added in
+  libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_win32a.man b/man/zip_source_win32a.man
index 1188f7c..e88c4ce 100644
--- a/man/zip_source_win32a.man
+++ b/man/zip_source_win32a.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_win32a.mdoc -- create data source using a win32 ANSI name
+.\" Copyright (C) 2015-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_WIN32A" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -79,8 +111,8 @@
 failed.
 .SH "SEE ALSO"
 libzip(3),
-zip_add(3),
-zip_replace(3),
+zip_file_add(3),
+zip_file_replace(3),
 zip_source(3),
 zip_source_win32handle(3),
 zip_source_win32w(3)
diff --git a/man/zip_source_win32a.mdoc b/man/zip_source_win32a.mdoc
index eab4178..5806947 100644
--- a/man/zip_source_win32a.mdoc
+++ b/man/zip_source_win32a.mdoc
@@ -99,8 +99,8 @@
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_add 3 ,
-.Xr zip_replace 3 ,
+.Xr zip_file_add 3 ,
+.Xr zip_file_replace 3 ,
 .Xr zip_source 3 ,
 .Xr zip_source_win32handle 3 ,
 .Xr zip_source_win32w 3
diff --git a/man/zip_source_win32handle.html b/man/zip_source_win32handle.html
index b485a72..a948541 100644
--- a/man/zip_source_win32handle.html
+++ b/man/zip_source_win32handle.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_handle.mdoc -- create data source from a Windows file handle
+   Copyright (C) 2015-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_WIN32HANDLE(3)</title>
 </head>
@@ -20,83 +46,94 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_win32handle</b>,
-  <b class="Nm">zip_source_win32handle_create</b> &#8212;
-  <span class="Nd">create data source from a Windows file handle</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_win32handle</code>,
+  <code class="Nm" title="Nm">zip_source_win32handle_create</code> &#x2014;
+<div class="Nd" title="Nd">create data source from a Windows file handle</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_win32handle</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">HANDLE h</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_uint64_t start</var>,
-  <var class="Fa" style="white-space: nowrap;">zip_int64_t len</var>);
+<code class="Fn" title="Fn">zip_source_win32handle</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">HANDLE
+  h</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t
+  len</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_win32handle_create</b>(<var class="Fa" style="white-space: nowrap;">HANDLE
-  h</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  start</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
-  len</var>, <var class="Fa" style="white-space: nowrap;">zip_error_t
+<code class="Fn" title="Fn">zip_source_win32handle_create</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">HANDLE
+  h</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t len</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
   *error</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The functions <b class="Fn">zip_source_win32handle</b>() and
-  <b class="Fn">zip_source_win32handle_create</b>() create a zip source from a
-  Windows file handle. They open <var class="Ar">fname</var> and read
-  <var class="Ar">len</var> bytes from offset <var class="Ar">start</var> from
-  it. If <var class="Ar">len</var> is 0 or -1, the whole file (starting from
-  <var class="Ar">start</var>) is used.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The functions <code class="Fn" title="Fn">zip_source_win32handle</code>() and
+  <code class="Fn" title="Fn">zip_source_win32handle_create</code>() create a
+  zip source from a Windows file handle. They open
+  <var class="Ar" title="Ar">fname</var> and read
+  <var class="Ar" title="Ar">len</var> bytes from offset
+  <var class="Ar" title="Ar">start</var> from it. If
+  <var class="Ar" title="Ar">len</var> is 0 or -1, the whole file (starting from
+  <var class="Ar" title="Ar">start</var>) is used.
 <div class="Pp"></div>
 If the file supports seek, the source can be used to open a zip archive from.
 <div class="Pp"></div>
 The file is opened and read when the data from the source is used, usually by
-  <b class="Fn">zip_close</b>() or <b class="Fn">zip_open_from_source</b>().
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  <code class="Fn" title="Fn">zip_close</code>() or
+  <code class="Fn" title="Fn">zip_open_from_source</code>().
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the created source is returned. Otherwise,
-  <code class="Dv">NULL</code> is returned and the error code in
-  <var class="Ar">archive</var> or <var class="Ar">error</var> is set to
-  indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_source_w32handle</b>() and
-  <b class="Fn">zip_source_w32handle_create</b>() fail if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">fname</var>, <var class="Ar">start</var>,
-      or <var class="Ar">len</var> are invalid.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_OPEN</code>]</dt>
-  <dd class="It-tag">Opening <var class="Ar">fname</var> failed.</dd>
+  <code class="Dv" title="Dv">NULL</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> or
+  <var class="Ar" title="Ar">error</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_source_w32handle</code>() and
+  <code class="Fn" title="Fn">zip_source_w32handle_create</code>() fail if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">fname</var>,
+      <var class="Ar" title="Ar">start</var>, or
+      <var class="Ar" title="Ar">len</var> are invalid.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_OPEN"><code class="Er" title="Er" id="ZIP_ER_OPEN">ZIP_ER_OPEN</code></a>]</dt>
+  <dd>Opening <var class="Ar" title="Ar">fname</var> failed.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_add.html">zip_add(3)</a>,
-  <a class="Xr" href="zip_replace.html">zip_replace(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_win32a.html">zip_source_win32a(3)</a>,
-  <a class="Xr" href="zip_source_win32w.html">zip_source_win32w(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_win32handle</b>() and
-  <b class="Fn">zip_source_win32handle_create</b>() were added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_win32a.html">zip_source_win32a(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_win32w.html">zip_source_win32w(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_win32handle</code>() and
+  <code class="Fn" title="Fn">zip_source_win32handle_create</code>() were added
+  in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_win32handle.man b/man/zip_source_win32handle.man
index 1fb1988..4d79635 100644
--- a/man/zip_source_win32handle.man
+++ b/man/zip_source_win32handle.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_handle.mdoc -- create data source from a Windows file handle
+.\" Copyright (C) 2015-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_WIN32HANDLE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -79,8 +111,8 @@
 failed.
 .SH "SEE ALSO"
 libzip(3),
-zip_add(3),
-zip_replace(3),
+zip_file_add(3),
+zip_file_replace(3),
 zip_source(3),
 zip_source_win32a(3),
 zip_source_win32w(3)
diff --git a/man/zip_source_win32handle.mdoc b/man/zip_source_win32handle.mdoc
index 0b829b5..dc3ee58 100644
--- a/man/zip_source_win32handle.mdoc
+++ b/man/zip_source_win32handle.mdoc
@@ -99,8 +99,8 @@
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_add 3 ,
-.Xr zip_replace 3 ,
+.Xr zip_file_add 3 ,
+.Xr zip_file_replace 3 ,
 .Xr zip_source 3 ,
 .Xr zip_source_win32a 3 ,
 .Xr zip_source_win32w 3
diff --git a/man/zip_source_win32w.html b/man/zip_source_win32w.html
index 08d4acf..2070281 100644
--- a/man/zip_source_win32w.html
+++ b/man/zip_source_win32w.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_win32w.mdoc -- create data source using a win32 Unicode name
+   Copyright (C) 2015-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_WIN32W(3)</title>
 </head>
@@ -20,83 +46,95 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_win32w</b>, <b class="Nm">zip_source_win32w_create</b>
-  &#8212; <span class="Nd">create data source from a Windows Unicode file
-  name</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_win32w</code>,
+  <code class="Nm" title="Nm">zip_source_win32w_create</code> &#x2014;
+<div class="Nd" title="Nd">create data source from a Windows Unicode file
+  name</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_win32w</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *fname</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  start</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
+<code class="Fn" title="Fn">zip_source_win32w</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  wchar_t *fname</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t
   len</var>);
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_win32w_create</b>(<var class="Fa" style="white-space: nowrap;">const
-  char *fname</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  start</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
-  len</var>, <var class="Fa" style="white-space: nowrap;">zip_error_t
+<code class="Fn" title="Fn">zip_source_win32w_create</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">const
+  wchar_t *fname</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t len</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_error_t
   *error</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The functions <b class="Fn">zip_source_win32w</b>() and
-  <b class="Fn">zip_source_win32w_create</b>() create a zip source on Windows
-  using a Windows Unicode name. They open <var class="Ar">fname</var> and read
-  <var class="Ar">len</var> bytes from offset <var class="Ar">start</var> from
-  it. If <var class="Ar">len</var> is 0 or -1, the whole file (starting from
-  <var class="Ar">start</var>) is used.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The functions <code class="Fn" title="Fn">zip_source_win32w</code>() and
+  <code class="Fn" title="Fn">zip_source_win32w_create</code>() create a zip
+  source on Windows using a Windows Unicode name. They open
+  <var class="Ar" title="Ar">fname</var> and read
+  <var class="Ar" title="Ar">len</var> bytes from offset
+  <var class="Ar" title="Ar">start</var> from it. If
+  <var class="Ar" title="Ar">len</var> is 0 or -1, the whole file (starting from
+  <var class="Ar" title="Ar">start</var>) is used.
 <div class="Pp"></div>
 If the file supports seek, the source can be used to open a zip archive from.
 <div class="Pp"></div>
 The file is opened and read when the data from the source is used, usually by
-  <b class="Fn">zip_close</b>() or <b class="Fn">zip_open_from_source</b>().
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+  <code class="Fn" title="Fn">zip_close</code>() or
+  <code class="Fn" title="Fn">zip_open_from_source</code>().
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the created source is returned. Otherwise,
-  <code class="Dv">NULL</code> is returned and the error code in
-  <var class="Ar">archive</var> or <var class="Ar">error</var> is set to
-  indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_source_win32w</b>() and
-  <b class="Fn">zip_source_win32w_create</b>() fail if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">fname</var>, <var class="Ar">start</var>,
-      or <var class="Ar">len</var> are invalid.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_OPEN</code>]</dt>
-  <dd class="It-tag">Opening <var class="Ar">fname</var> failed.</dd>
+  <code class="Dv" title="Dv">NULL</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> or
+  <var class="Ar" title="Ar">error</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_source_win32w</code>() and
+  <code class="Fn" title="Fn">zip_source_win32w_create</code>() fail if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">fname</var>,
+      <var class="Ar" title="Ar">start</var>, or
+      <var class="Ar" title="Ar">len</var> are invalid.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_OPEN"><code class="Er" title="Er" id="ZIP_ER_OPEN">ZIP_ER_OPEN</code></a>]</dt>
+  <dd>Opening <var class="Ar" title="Ar">fname</var> failed.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_add.html">zip_add(3)</a>,
-  <a class="Xr" href="zip_replace.html">zip_replace(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_win32a.html">zip_source_win32a(3)</a>,
-  <a class="Xr" href="zip_source_win32handle.html">zip_source_win32handle(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_win32w</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_win32a.html">zip_source_win32a(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_win32handle.html">zip_source_win32handle(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_win32w</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
-    <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-date">June 22, 2018</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_win32w.man b/man/zip_source_win32w.man
index c45e439..7d04685 100644
--- a/man/zip_source_win32w.man
+++ b/man/zip_source_win32w.man
@@ -1,4 +1,36 @@
-.TH "ZIP_SOURCE_WIN32W" "3" "December 18, 2017" "NiH" "Library Functions Manual"
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_win32w.mdoc -- create data source using a win32 Unicode name
+.\" Copyright (C) 2015-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.TH "ZIP_SOURCE_WIN32W" "3" "June 22, 2018" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
 .SH "NAME"
@@ -14,14 +46,14 @@
 .br
 .PD 0
 .HP 4n
-\fBzip_source_win32w\fR(\fIzip_t\ *archive\fR, \fIconst\ char\ *fname\fR, \fIzip_uint64_t\ start\fR, \fIzip_int64_t\ len\fR);
+\fBzip_source_win32w\fR(\fIzip_t\ *archive\fR, \fIconst\ wchar_t\ *fname\fR, \fIzip_uint64_t\ start\fR, \fIzip_int64_t\ len\fR);
 .PD
 .PP
 \fIzip_source_t *\fR
 .br
 .PD 0
 .HP 4n
-\fBzip_source_win32w_create\fR(\fIconst\ char\ *fname\fR, \fIzip_uint64_t\ start\fR, \fIzip_int64_t\ len\fR, \fIzip_error_t\ *error\fR);
+\fBzip_source_win32w_create\fR(\fIconst\ wchar_t\ *fname\fR, \fIzip_uint64_t\ start\fR, \fIzip_int64_t\ len\fR, \fIzip_error_t\ *error\fR);
 .PD
 .SH "DESCRIPTION"
 The functions
@@ -79,8 +111,8 @@
 failed.
 .SH "SEE ALSO"
 libzip(3),
-zip_add(3),
-zip_replace(3),
+zip_file_add(3),
+zip_file_replace(3),
 zip_source(3),
 zip_source_win32a(3),
 zip_source_win32handle(3)
diff --git a/man/zip_source_win32w.mdoc b/man/zip_source_win32w.mdoc
index c4b54fc..65a8f41 100644
--- a/man/zip_source_win32w.mdoc
+++ b/man/zip_source_win32w.mdoc
@@ -29,7 +29,7 @@
 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 18, 2017
+.Dd June 22, 2018
 .Dt ZIP_SOURCE_WIN32W 3
 .Os
 .Sh NAME
@@ -41,9 +41,9 @@
 .Sh SYNOPSIS
 .In zip.h
 .Ft zip_source_t *
-.Fn zip_source_win32w "zip_t *archive" "const char *fname" "zip_uint64_t start" "zip_int64_t len"
+.Fn zip_source_win32w "zip_t *archive" "const wchar_t *fname" "zip_uint64_t start" "zip_int64_t len"
 .Ft zip_source_t *
-.Fn zip_source_win32w_create "const char *fname" "zip_uint64_t start" "zip_int64_t len" "zip_error_t *error"
+.Fn zip_source_win32w_create "const wchar_t *fname" "zip_uint64_t start" "zip_int64_t len" "zip_error_t *error"
 .Sh DESCRIPTION
 The functions
 .Fn zip_source_win32w
@@ -99,8 +99,8 @@
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_add 3 ,
-.Xr zip_replace 3 ,
+.Xr zip_file_add 3 ,
+.Xr zip_file_replace 3 ,
 .Xr zip_source 3 ,
 .Xr zip_source_win32a 3 ,
 .Xr zip_source_win32handle 3
diff --git a/man/zip_source_write.html b/man/zip_source_write.html
index 08e96c8..3407b87 100644
--- a/man/zip_source_write.html
+++ b/man/zip_source_write.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_write.mdoc -- write data to zip source
+   Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_WRITE(3)</title>
 </head>
@@ -20,52 +46,57 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_write</b> &#8212; <span class="Nd">write data to zip
-  source</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_write</code> &#x2014;
+<div class="Nd" title="Nd">write data to zip source</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_int64_t</var>
+<var class="Ft" title="Ft">zip_int64_t</var>
 <br/>
-<b class="Fn">zip_source_write</b>(<var class="Fa" style="white-space: nowrap;">zip_source_t
-  *source</var>, <var class="Fa" style="white-space: nowrap;">const void
-  *data</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
+<code class="Fn" title="Fn">zip_source_write</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_source_t
+  *source</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  void *data</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
   len</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_write</b>() writes
-  <var class="Ar">len</var> bytes from the buffer <var class="Ar">data</var> to
-  the zip source <var class="Ar">source</var> at the current write offset.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_write</code>() writes
+  <var class="Ar" title="Ar">len</var> bytes from the buffer
+  <var class="Ar" title="Ar">data</var> to the zip source
+  <var class="Ar" title="Ar">source</var> at the current write offset.
 <div class="Pp"></div>
-The zip source <var class="Ar">source</var> has to be prepared for writing by
-  calling
-  <a class="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>
+The zip source <var class="Ar" title="Ar">source</var> has to be prepared for
+  writing by calling
+  <a class="Xr" title="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>
   first.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion the number of bytes written is returned. Otherwise,
-  -1 is returned and the error information in <var class="Ar">source</var> is
-  set to indicate the error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>,
-  <a class="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
-  <a class="Xr" href="zip_source_commit_write.html">zip_source_commit_write(3)</a>,
-  <a class="Xr" href="zip_source_rollback_write.html">zip_source_rollback_write(3)</a>,
-  <a class="Xr" href="zip_source_seek_write.html">zip_source_seek_write(3)</a>,
-  <a class="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_write</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  -1 is returned and the error information in
+  <var class="Ar" title="Ar">source</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_begin_write.html">zip_source_begin_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_commit_write.html">zip_source_commit_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_rollback_write.html">zip_source_rollback_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_seek_write.html">zip_source_seek_write(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source_tell_write.html">zip_source_tell_write(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_write</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_write.man b/man/zip_source_write.man
index fd3dc3b..58d808e 100644
--- a/man/zip_source_write.man
+++ b/man/zip_source_write.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_write.mdoc -- write data to zip source
+.\" Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_WRITE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_source_zip.html b/man/zip_source_zip.html
index f315116..6d141d9 100644
--- a/man/zip_source_zip.html
+++ b/man/zip_source_zip.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_source_zip.mdoc -- create data source from zip file
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_SOURCE_ZIP(3)</title>
 </head>
@@ -20,88 +46,99 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_source_zip</b> &#8212; <span class="Nd">create data source
-  from zip file</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_source_zip</code> &#x2014;
+<div class="Nd" title="Nd">create data source from zip file</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">zip_source_t *</var>
+<var class="Ft" title="Ft">zip_source_t *</var>
 <br/>
-<b class="Fn">zip_source_zip</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_t
-  *srcarchive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  srcidx</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
-  flags</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  start</var>, <var class="Fa" style="white-space: nowrap;">zip_int64_t
+<code class="Fn" title="Fn">zip_source_zip</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *srcarchive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  srcidx</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  start</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_int64_t
   len</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The function <b class="Fn">zip_source_zip</b>() creates a zip source from a file
-  in a zip archive. The <var class="Ar">srcarchive</var> argument is the (open)
-  zip archive containing the source zip file at index
-  <var class="Ar">srcidx</var>. <var class="Ar">len</var> bytes from offset
-  <var class="Ar">start</var> will be used in the zip_source. If
-  <var class="Ar">len</var> is 0 or -1, the rest of the file, starting from
-  <var class="Ar">start</var>, is used. If <var class="Ar">start</var> is zero
-  and <var class="Ar">len</var> is -1, the whole file will be copied without
-  decompressing it.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The function <code class="Fn" title="Fn">zip_source_zip</code>() creates a zip
+  source from a file in a zip archive. The
+  <var class="Ar" title="Ar">srcarchive</var> argument is the (open) zip archive
+  containing the source zip file at index
+  <var class="Ar" title="Ar">srcidx</var>. <var class="Ar" title="Ar">len</var>
+  bytes from offset <var class="Ar" title="Ar">start</var> will be used in the
+  zip_source. If <var class="Ar" title="Ar">len</var> is 0 or -1, the rest of
+  the file, starting from <var class="Ar" title="Ar">start</var>, is used. If
+  <var class="Ar" title="Ar">start</var> is zero and
+  <var class="Ar" title="Ar">len</var> is -1, the whole file will be copied
+  without decompressing it.
 <div class="Pp"></div>
 Supported flags are:
-<dl class="Bl-tag" style="margin-left: 21.00ex;">
-  <dt class="It-tag" style="margin-left: -21.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -21.00ex;"><code class="Dv">ZIP_FL_UNCHANGED</code></dt>
-  <dd class="It-tag">Try to get the original data without any changes that may
-      have been made to <var class="Ar">srcarchive</var> after opening it.</dd>
-  <dt class="It-tag" style="margin-left: -21.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -21.00ex;"><code class="Dv">ZIP_FL_RECOMPRESS</code></dt>
-  <dd class="It-tag">When adding the data from <var class="Ar">srcarchive</var>,
+<dl class="Bl-tag" style="margin-left: 28.20ex;">
+  <dt style="margin-left: -28.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -28.20ex;"><a class="permalink" href="#ZIP_FL_UNCHANGED"><code class="Dv" title="Dv" id="ZIP_FL_UNCHANGED">ZIP_FL_UNCHANGED</code></a></dt>
+  <dd>Try to get the original data without any changes that may have been made
+      to <var class="Ar" title="Ar">srcarchive</var> after opening it.</dd>
+  <dt style="margin-left: -28.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -28.20ex;"><a class="permalink" href="#ZIP_FL_RECOMPRESS"><code class="Dv" title="Dv" id="ZIP_FL_RECOMPRESS">ZIP_FL_RECOMPRESS</code></a></dt>
+  <dd>When adding the data from <var class="Ar" title="Ar">srcarchive</var>,
       re-compress it using the current settings instead of copying the
       compressed data.</dd>
 </dl>
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion, the created source is returned. Otherwise,
-  <code class="Dv">NULL</code> is returned and the error code in
-  <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_source_zip</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_CHANGED</code>]</dt>
-  <dd class="It-tag">Unchanged data was requested, but it is not available.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">srcarchive</var>,
-      <var class="Ar">srcidx</var>, <var class="Ar">start</var>, or
-      <var class="Ar">len</var> are invalid.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_MEMORY</code>]</dt>
-  <dd class="It-tag">Required memory could not be allocated.</dd>
+  <code class="Dv" title="Dv">NULL</code> is returned and the error code in
+  <var class="Ar" title="Ar">archive</var> is set to indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_source_zip</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_CHANGED"><code class="Er" title="Er" id="ZIP_ER_CHANGED">ZIP_ER_CHANGED</code></a>]</dt>
+  <dd>Unchanged data was requested, but it is not available.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">srcarchive</var>,
+      <var class="Ar" title="Ar">srcidx</var>,
+      <var class="Ar" title="Ar">start</var>, or
+      <var class="Ar" title="Ar">len</var> are invalid.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_MEMORY"><code class="Er" title="Er" id="ZIP_ER_MEMORY">ZIP_ER_MEMORY</code></a>]</dt>
+  <dd>Required memory could not be allocated.</dd>
 </dl>
 Additionally, it can return all error codes from
-  <b class="Fn">zip_stat_index</b>() and <b class="Fn">zip_fopen_index</b>().
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_add.html">zip_add(3)</a>,
-  <a class="Xr" href="zip_replace.html">zip_replace(3)</a>,
-  <a class="Xr" href="zip_source.html">zip_source(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_source_zip</b>() was added in libzip 1.0.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  <code class="Fn" title="Fn">zip_stat_index</code>() and
+  <code class="Fn" title="Fn">zip_fopen_index</code>().
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_add.html">zip_file_add(3)</a>,
+  <a class="Xr" title="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>,
+  <a class="Xr" title="Xr" href="zip_source.html">zip_source(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_source_zip</code>() was added in libzip 1.0.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_source_zip.man b/man/zip_source_zip.man
index 6a0f0fd..e01f77b 100644
--- a/man/zip_source_zip.man
+++ b/man/zip_source_zip.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_source_zip.mdoc -- create data source from zip file
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_SOURCE_ZIP" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
@@ -85,8 +117,8 @@
 .PD
 .SH "SEE ALSO"
 libzip(3),
-zip_add(3),
-zip_replace(3),
+zip_file_add(3),
+zip_file_replace(3),
 zip_source(3)
 .SH "HISTORY"
 \fBzip_source_zip\fR()
diff --git a/man/zip_source_zip.mdoc b/man/zip_source_zip.mdoc
index 9ffd4b7..511fd69 100644
--- a/man/zip_source_zip.mdoc
+++ b/man/zip_source_zip.mdoc
@@ -107,8 +107,8 @@
 .Fn zip_fopen_index .
 .Sh SEE ALSO
 .Xr libzip 3 ,
-.Xr zip_add 3 ,
-.Xr zip_replace 3 ,
+.Xr zip_file_add 3 ,
+.Xr zip_file_replace 3 ,
 .Xr zip_source 3
 .Sh HISTORY
 .Fn zip_source_zip
diff --git a/man/zip_stat.html b/man/zip_stat.html
index 5c2bed5..b3d3220 100644
--- a/man/zip_stat.html
+++ b/man/zip_stat.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_stat.mdoc -- get information about file
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_STAT(3)</title>
 </head>
@@ -20,44 +46,51 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_stat</b>, <b class="Nm">zip_stat_index</b> &#8212;
-  <span class="Nd">get information about file</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_stat</code>,
+  <code class="Nm" title="Nm">zip_stat_index</code> &#x2014;
+<div class="Nd" title="Nd">get information about file</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_stat</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">const char
-  *fname</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
-  flags</var>, <var class="Fa" style="white-space: nowrap;">zip_stat_t
-  *sb</var>);
+<code class="Fn" title="Fn">zip_stat</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *fname</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_stat_t *sb</var>);
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_stat_index</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
-  index</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t
-  flags</var>, <var class="Fa" style="white-space: nowrap;">zip_stat_t
-  *sb</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_stat</b>() function obtains information about the file
-  named <var class="Ar">fname</var> in <var class="Ar">archive</var>. The
-  <var class="Ar">flags</var> argument specifies how the name lookup should be
-  done. Its values are described in
-  <a class="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>. Also,
-  <code class="Dv">ZIP_FL_UNCHANGED</code> may be
-  <i class="Em">or</i><span class="No">'ed</span> to it to request information
-  about the original file in the archive, ignoring any changes made.
+<code class="Fn" title="Fn">zip_stat_index</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
+  index</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_flags_t
+  flags</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_stat_t *sb</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_stat</code>() function obtains information
+  about the file named <var class="Ar" title="Ar">fname</var> in
+  <var class="Ar" title="Ar">archive</var>. The
+  <var class="Ar" title="Ar">flags</var> argument specifies how the name lookup
+  should be done. Its values are described in
+  <a class="Xr" title="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>.
+  Also, <code class="Dv" title="Dv">ZIP_FL_UNCHANGED</code> may be
+  <i class="Em" title="Em">or</i><span class="No">'ed</span> to it to request
+  information about the original file in the archive, ignoring any changes made.
 <div class="Pp"></div>
-The <b class="Fn">zip_stat_index</b>() function obtains information about the
-  file at position <var class="Ar">index</var>.
+The <code class="Fn" title="Fn">zip_stat_index</code>() function obtains
+  information about the file at position <var class="Ar" title="Ar">index</var>.
 <div class="Pp"></div>
-The <var class="Ar">sb</var> argument is a pointer to a <var class="Ft">struct
-  zip_stat</var> (shown below), into which information about the file is placed.
+The <var class="Ar" title="Ar">sb</var> argument is a pointer to a
+  <var class="Ft" title="Ft">struct zip_stat</var> (shown below), into which
+  information about the file is placed.
 <div class="Pp"></div>
 <div class="Bd" style="margin-left: 0.00ex;">
 <pre class="Li">
@@ -75,73 +108,80 @@
 };
 </pre>
 </div>
-The structure pointed to by <var class="Ar">sb</var> must be allocated before
-  calling <b class="Fn">zip_stat</b>() or <b class="Fn">zip_stat_index</b>().
+The structure pointed to by <var class="Ar" title="Ar">sb</var> must be
+  allocated before calling <code class="Fn" title="Fn">zip_stat</code>() or
+  <code class="Fn" title="Fn">zip_stat_index</code>().
 <div class="Pp"></div>
-The <var class="Ar">valid</var> field of the structure specifies which other
-  fields are valid. Check if the flag defined by the following defines are in
-  <var class="Ar">valid</var> before accessing the fields:
+The <var class="Ar" title="Ar">valid</var> field of the structure specifies
+  which other fields are valid. Check if the flag defined by the following
+  defines are in <var class="Ar" title="Ar">valid</var> before accessing the
+  fields:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 28.00ex;">
-  <dt class="It-tag" style="margin-left: -28.00ex;"><code class="Dv">ZIP_STAT_NAME</code></dt>
-  <dd class="It-tag"><var class="Ar">name</var></dd>
-  <dt class="It-tag" style="margin-left: -28.00ex;"><code class="Dv">ZIP_STAT_INDEX</code></dt>
-  <dd class="It-tag"><var class="Ar">index</var></dd>
-  <dt class="It-tag" style="margin-left: -28.00ex;"><code class="Dv">ZIP_STAT_SIZE</code></dt>
-  <dd class="It-tag"><var class="Ar">size</var></dd>
-  <dt class="It-tag" style="margin-left: -28.00ex;"><code class="Dv">ZIP_STAT_COMP_SIZE</code></dt>
-  <dd class="It-tag"><var class="Ar">comp_size</var></dd>
-  <dt class="It-tag" style="margin-left: -28.00ex;"><code class="Dv">ZIP_STAT_MTIME</code></dt>
-  <dd class="It-tag"><var class="Ar">mtime</var></dd>
-  <dt class="It-tag" style="margin-left: -28.00ex;"><code class="Dv">ZIP_STAT_CRC</code></dt>
-  <dd class="It-tag"><var class="Ar">crc</var></dd>
-  <dt class="It-tag" style="margin-left: -28.00ex;"><code class="Dv">ZIP_STAT_COMP_METHOD</code></dt>
-  <dd class="It-tag"><var class="Ar">comp_method</var></dd>
-  <dt class="It-tag" style="margin-left: -28.00ex;"><code class="Dv">ZIP_STAT_ENCRYPTION_METHOD</code></dt>
-  <dd class="It-tag"><var class="Ar">encryption_method</var></dd>
-  <dt class="It-tag" style="margin-left: -28.00ex;"><code class="Dv">ZIP_STAT_FLAGS</code></dt>
-  <dd class="It-tag"><var class="Ar">flags</var></dd>
+<dl class="Bl-tag Bl-compact" style="margin-left: 36.60ex;">
+  <dt style="margin-left: -36.60ex;"><a class="permalink" href="#ZIP_STAT_NAME"><code class="Dv" title="Dv" id="ZIP_STAT_NAME">ZIP_STAT_NAME</code></a></dt>
+  <dd><var class="Ar" title="Ar">name</var></dd>
+  <dt style="margin-left: -36.60ex;"><a class="permalink" href="#ZIP_STAT_INDEX"><code class="Dv" title="Dv" id="ZIP_STAT_INDEX">ZIP_STAT_INDEX</code></a></dt>
+  <dd><var class="Ar" title="Ar">index</var></dd>
+  <dt style="margin-left: -36.60ex;"><a class="permalink" href="#ZIP_STAT_SIZE"><code class="Dv" title="Dv" id="ZIP_STAT_SIZE">ZIP_STAT_SIZE</code></a></dt>
+  <dd><var class="Ar" title="Ar">size</var></dd>
+  <dt style="margin-left: -36.60ex;"><a class="permalink" href="#ZIP_STAT_COMP_SIZE"><code class="Dv" title="Dv" id="ZIP_STAT_COMP_SIZE">ZIP_STAT_COMP_SIZE</code></a></dt>
+  <dd><var class="Ar" title="Ar">comp_size</var></dd>
+  <dt style="margin-left: -36.60ex;"><a class="permalink" href="#ZIP_STAT_MTIME"><code class="Dv" title="Dv" id="ZIP_STAT_MTIME">ZIP_STAT_MTIME</code></a></dt>
+  <dd><var class="Ar" title="Ar">mtime</var></dd>
+  <dt style="margin-left: -36.60ex;"><a class="permalink" href="#ZIP_STAT_CRC"><code class="Dv" title="Dv" id="ZIP_STAT_CRC">ZIP_STAT_CRC</code></a></dt>
+  <dd><var class="Ar" title="Ar">crc</var></dd>
+  <dt style="margin-left: -36.60ex;"><a class="permalink" href="#ZIP_STAT_COMP_METHOD"><code class="Dv" title="Dv" id="ZIP_STAT_COMP_METHOD">ZIP_STAT_COMP_METHOD</code></a></dt>
+  <dd><var class="Ar" title="Ar">comp_method</var></dd>
+  <dt style="margin-left: -36.60ex;"><a class="permalink" href="#ZIP_STAT_ENCRYPTION_METHOD"><code class="Dv" title="Dv" id="ZIP_STAT_ENCRYPTION_METHOD">ZIP_STAT_ENCRYPTION_METHOD</code></a></dt>
+  <dd><var class="Ar" title="Ar">encryption_method</var></dd>
+  <dt style="margin-left: -36.60ex;"><a class="permalink" href="#ZIP_STAT_FLAGS"><code class="Dv" title="Dv" id="ZIP_STAT_FLAGS">ZIP_STAT_FLAGS</code></a></dt>
+  <dd><var class="Ar" title="Ar">flags</var></dd>
 </dl>
 </div>
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error information in <var class="Ar">archive</var> is set to indicate the
-  error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-The function <b class="Fn">zip_stat</b>() can fail for any of the errors
-  specified for the routine
-  <a class="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>.
+  error information in <var class="Ar" title="Ar">archive</var> is set to
+  indicate the error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+The function <code class="Fn" title="Fn">zip_stat</code>() can fail for any of
+  the errors specified for the routine
+  <a class="Xr" title="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>.
 <div class="Pp"></div>
-The function <b class="Fn">zip_stat_index</b>() fails and sets the error
-  information to <code class="Er">ZIP_ER_INVAL</code> if
-  <var class="Ar">index</var> is invalid. If
-  <code class="Dv">ZIP_FL_UNCHANGED</code> is not set and no information can be
-  obtained from the source callback, the error information is set to
-  <code class="Er">ZIP_ER_CHANGED</code>.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_get_num_entries.html">zip_get_num_entries(3)</a>,
-  <a class="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>,
-  <a class="Xr" href="zip_stat_init.html">zip_stat_init(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_stat</b>() was added in libzip 0.6. In libzip 0.11 the type of
-  <var class="Ar">flags</var> was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_flags_t</var>.
+The function <code class="Fn" title="Fn">zip_stat_index</code>() fails and sets
+  the error information to <code class="Er" title="Er">ZIP_ER_INVAL</code> if
+  <var class="Ar" title="Ar">index</var> is invalid. If
+  <code class="Dv" title="Dv">ZIP_FL_UNCHANGED</code> is not set and no
+  information can be obtained from the source callback, the error information is
+  set to <code class="Er" title="Er">ZIP_ER_CHANGED</code>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_get_num_entries.html">zip_get_num_entries(3)</a>,
+  <a class="Xr" title="Xr" href="zip_name_locate.html">zip_name_locate(3)</a>,
+  <a class="Xr" title="Xr" href="zip_stat_init.html">zip_stat_init(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_stat</code>() was added in libzip 0.6. In libzip
+  0.11 the type of <var class="Ar" title="Ar">flags</var> was changed from
+  <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_flags_t</var>.
 <div class="Pp"></div>
-<b class="Fn">zip_stat_index</b>() was added in libzip 0.6. In libzip 0.10 the
-  type of <var class="Ar">index</var> was changed from <var class="Vt">int</var>
-  to <var class="Vt">zip_uint64_t</var>. In libzip 0.11 the type of
-  <var class="Ar">flags</var> was changed from <var class="Vt">int</var> to
-  <var class="Vt">zip_flags_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<code class="Fn" title="Fn">zip_stat_index</code>() was added in libzip 0.6. In
+  libzip 0.10 the type of <var class="Ar" title="Ar">index</var> was changed
+  from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_uint64_t</var>. In libzip 0.11 the type of
+  <var class="Ar" title="Ar">flags</var> was changed from
+  <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_flags_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_stat.man b/man/zip_stat.man
index d066e67..93b6fdd 100644
--- a/man/zip_stat.man
+++ b/man/zip_stat.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_stat.mdoc -- get information about file
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_STAT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_stat_init.html b/man/zip_stat_init.html
index 5e4b8f5..eb52866 100644
--- a/man/zip_stat_init.html
+++ b/man/zip_stat_init.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_stat_init.mdoc -- init zip_stat structure
+   Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_STAT_INIT(3)</title>
 </head>
@@ -20,46 +46,50 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_stat_init</b> &#8212; <span class="Nd">initialize zip_stat
-  structure</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_stat_init</code> &#x2014;
+<div class="Nd" title="Nd">initialize zip_stat structure</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">void</var>
+<var class="Ft" title="Ft">void</var>
 <br/>
-<b class="Fn">zip_stat_init</b>(<var class="Fa" style="white-space: nowrap;">zip_stat_t
+<code class="Fn" title="Fn">zip_stat_init</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_stat_t
   *sb</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-The <b class="Fn">zip_stat_init</b>() function initializes the members of a
-  struct zip_stat. The current members are described in
-  <a class="Xr" href="zip_stat.html">zip_stat(3)</a>, but this function should
-  be used to initialize it to make sure none are missed. The structure pointed
-  to by <var class="Ar">sb</var> must be allocated before calling
-  <b class="Fn">zip_stat_init</b>().
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The <code class="Fn" title="Fn">zip_stat_init</code>() function initializes the
+  members of a struct zip_stat. The current members are described in
+  <a class="Xr" title="Xr" href="zip_stat.html">zip_stat(3)</a>, but this
+  function should be used to initialize it to make sure none are missed. The
+  structure pointed to by <var class="Ar" title="Ar">sb</var> must be allocated
+  before calling <code class="Fn" title="Fn">zip_stat_init</code>().
 <div class="Pp"></div>
 This function should be used by functions provided to
-  <a class="Xr" href="zip_source_function.html">zip_source_function(3)</a> when
-  returning <code class="Dv">ZIP_SOURCE_STAT</code> information to make sure all
-  fields are initialized.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
-If <var class="Ar">sb</var> is valid, the function is always successful.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_stat.html">zip_stat(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_stat_init</b>() was added in libzip 0.8.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  <a class="Xr" title="Xr" href="zip_source_function.html">zip_source_function(3)</a>
+  when returning <code class="Dv" title="Dv">ZIP_SOURCE_STAT</code> information
+  to make sure all fields are initialized.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+If <var class="Ar" title="Ar">sb</var> is valid, the function is always
+  successful.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_stat.html">zip_stat(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_stat_init</code>() was added in libzip 0.8.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_stat_init.man b/man/zip_stat_init.man
index 463f917..75f3ea9 100644
--- a/man/zip_stat_init.man
+++ b/man/zip_stat_init.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_stat_init.mdoc -- init zip_stat structure
+.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_STAT_INIT" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_unchange.html b/man/zip_unchange.html
index 5a00879..d8f8da7 100644
--- a/man/zip_unchange.html
+++ b/man/zip_unchange.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_unchange.mdoc -- undo changes to file in zip archive
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_UNCHANGE(3)</title>
 </head>
@@ -20,55 +46,61 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_unchange</b> &#8212; <span class="Nd">undo changes to file in
-  zip archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_unchange</code> &#x2014;
+<div class="Nd" title="Nd">undo changes to file in zip archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_unchange</b>(<var class="Fa" style="white-space: nowrap;">zip_t
-  *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_uint64_t
+<code class="Fn" title="Fn">zip_unchange</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
+  *archive</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">zip_uint64_t
   index</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-Changes to the file at position <var class="Ar">index</var> are reverted.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+Changes to the file at position <var class="Ar" title="Ar">index</var> are
+  reverted.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error code in <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="ERRORS">ERRORS</h1>
-<b class="Fn">zip_unchange</b>() fails if:
-<dl class="Bl-tag" style="margin-left: 17.00ex;">
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_EXISTS</code>]</dt>
-  <dd class="It-tag">Unchanging the name would result in a duplicate name in the
-      archive.</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -17.00ex;">[<code class="Er">ZIP_ER_INVAL</code>]</dt>
-  <dd class="It-tag"><var class="Ar">index</var> is not a valid file index in
-      <var class="Ar">zip</var>.</dd>
+  error code in <var class="Ar" title="Ar">archive</var> is set to indicate the
+  error.
+<h1 class="Sh" title="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<code class="Fn" title="Fn">zip_unchange</code>() fails if:
+<dl class="Bl-tag" style="margin-left: 23.40ex;">
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_EXISTS"><code class="Er" title="Er" id="ZIP_ER_EXISTS">ZIP_ER_EXISTS</code></a>]</dt>
+  <dd>Unchanging the name would result in a duplicate name in the archive.</dd>
+  <dt style="margin-left: -23.40ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -23.40ex;">[<a class="permalink" href="#ZIP_ER_INVAL"><code class="Er" title="Er" id="ZIP_ER_INVAL">ZIP_ER_INVAL</code></a>]</dt>
+  <dd><var class="Ar" title="Ar">index</var> is not a valid file index in
+      <var class="Ar" title="Ar">zip</var>.</dd>
 </dl>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_unchange_all.html">zip_unchange_all(3)</a>,
-  <a class="Xr" href="zip_unchange_archive.html">zip_unchange_archive(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_unchange</b>() was added in libzip 0.6. In libzip 0.10 the
-  type of <var class="Ar">index</var> was changed from <var class="Vt">int</var>
-  to <var class="Vt">zip_uint64_t</var>.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_unchange_all.html">zip_unchange_all(3)</a>,
+  <a class="Xr" title="Xr" href="zip_unchange_archive.html">zip_unchange_archive(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_unchange</code>() was added in libzip 0.6. In
+  libzip 0.10 the type of <var class="Ar" title="Ar">index</var> was changed
+  from <var class="Vt" title="Vt">int</var> to
+  <var class="Vt" title="Vt">zip_uint64_t</var>.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_unchange.man b/man/zip_unchange.man
index ee34ffe..c7ec25f 100644
--- a/man/zip_unchange.man
+++ b/man/zip_unchange.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_unchange.mdoc -- undo changes to file in zip archive
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_UNCHANGE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_unchange_all.html b/man/zip_unchange_all.html
index db5a65c..f415449 100644
--- a/man/zip_unchange_all.html
+++ b/man/zip_unchange_all.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_unchange_all.mdoc -- undo changes to all files in zip archive
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_UNCHANGE_ALL(3)</title>
 </head>
@@ -20,39 +46,43 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_unchange_all</b> &#8212; <span class="Nd">undo all changes in
-  a zip archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_unchange_all</code> &#x2014;
+<div class="Nd" title="Nd">undo all changes in a zip archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_unchange_all</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_unchange_all</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-All changes to files and global information in <var class="Ar">archive</var> are
-  reverted.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+All changes to files and global information in
+  <var class="Ar" title="Ar">archive</var> are reverted.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error code in <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_unchange.html">zip_unchange(3)</a>,
-  <a class="Xr" href="zip_unchange_archive.html">zip_unchange_archive(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_unchange_all</b>() was added in libzip 0.6.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  error code in <var class="Ar" title="Ar">archive</var> is set to indicate the
+  error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_unchange.html">zip_unchange(3)</a>,
+  <a class="Xr" title="Xr" href="zip_unchange_archive.html">zip_unchange_archive(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_unchange_all</code>() was added in libzip 0.6.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_unchange_all.man b/man/zip_unchange_all.man
index 455c28f..4fcbee3 100644
--- a/man/zip_unchange_all.man
+++ b/man/zip_unchange_all.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_unchange_all.mdoc -- undo changes to all files in zip archive
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_UNCHANGE_ALL" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zip_unchange_archive.html b/man/zip_unchange_archive.html
index e7884c0..86bd08a 100644
--- a/man/zip_unchange_archive.html
+++ b/man/zip_unchange_archive.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zip_unchange_archive.mdoc -- undo changes to all files in zip archive
+   Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIP_UNCHANGE_ARCHIVE(3)</title>
 </head>
@@ -20,39 +46,45 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zip_unchange_archive</b> &#8212; <span class="Nd">undo global
-  changes to zip archive</span>
-<h1 class="Sh" id="LIBRARY">LIBRARY</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zip_unchange_archive</code> &#x2014;
+<div class="Nd" title="Nd">undo global changes to zip archive</div>
+<h1 class="Sh" title="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
 libzip (-lzip)
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
-<b class="In">#include &lt;<a class="In">zip.h</a>&gt;</b>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">zip.h</a>&gt;</code>
 <div class="Pp"></div>
-<var class="Ft">int</var>
+<var class="Ft" title="Ft">int</var>
 <br/>
-<b class="Fn">zip_unchange_archive</b>(<var class="Fa" style="white-space: nowrap;">zip_t
+<code class="Fn" title="Fn">zip_unchange_archive</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">zip_t
   *archive</var>);
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-Revert all global changes to the archive <var class="Ar">archive</var>. This
-  reverts changes to the archive comment and global flags.
-<h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1>
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+Revert all global changes to the archive
+  <var class="Ar" title="Ar">archive</var>. This reverts changes to the archive
+  comment and global flags.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
 Upon successful completion 0 is returned. Otherwise, -1 is returned and the
-  error code in <var class="Ar">archive</var> is set to indicate the error.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="libzip.html">libzip(3)</a>,
-  <a class="Xr" href="zip_unchange.html">zip_unchange(3)</a>,
-  <a class="Xr" href="zip_unchange_all.html">zip_unchange_all(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Fn">zip_unchange_archive</b>() was added in libzip 0.7.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+  error code in <var class="Ar" title="Ar">archive</var> is set to indicate the
+  error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>,
+  <a class="Xr" title="Xr" href="zip_unchange.html">zip_unchange(3)</a>,
+  <a class="Xr" title="Xr" href="zip_unchange_all.html">zip_unchange_all(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Fn" title="Fn">zip_unchange_archive</code>() was added in libzip
+  0.7.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zip_unchange_archive.man b/man/zip_unchange_archive.man
index bf94723..430eafc 100644
--- a/man/zip_unchange_archive.man
+++ b/man/zip_unchange_archive.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zip_unchange_archive.mdoc -- undo changes to all files in zip archive
+.\" Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIP_UNCHANGE_ARCHIVE" "3" "December 18, 2017" "NiH" "Library Functions Manual"
 .nh
 .if n .ad l
diff --git a/man/zipcmp.html b/man/zipcmp.html
index d974497..97282a3 100644
--- a/man/zipcmp.html
+++ b/man/zipcmp.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zipcmp.mdoc -- compare zip archives
+   Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIPCMP(1)</title>
 </head>
@@ -20,80 +46,77 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zipcmp</b> &#8212; <span class="Nd">compare contents of zip
-  archives</span>
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zipcmp</code> &#x2014;
+<div class="Nd" title="Nd">compare contents of zip archives</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
 <table class="Nm">
-  <colgroup>
-    <col style="width: 6.00ex;"/>
-    <col/>
-  </colgroup>
   <tr>
-    <td><b class="Nm">zipcmp</b></td>
-    <td>[<span class="Op"><b class="Fl">-hipqtVv</b></span>]
-      <var class="Ar">archive1 archive2</var></td>
+    <td><code class="Nm" title="Nm">zipcmp</code></td>
+    <td>[<div class="Op"><code class="Fl" title="Fl">-hipqtVv</code></div>]
+      <var class="Ar" title="Ar">archive1 archive2</var></td>
   </tr>
 </table>
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-<b class="Nm">zipcmp</b> compares the zip archives or directories
-  <var class="Ar">archive1</var> and <var class="Ar">archive2</var> and checks
-  if they contain the same files, comparing their names, uncompressed sizes, and
-  CRCs. File order and compressed size differences are ignored.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Nm" title="Nm">zipcmp</code> compares the zip archives or
+  directories <var class="Ar" title="Ar">archive1</var> and
+  <var class="Ar" title="Ar">archive2</var> and checks if they contain the same
+  files, comparing their names, uncompressed sizes, and CRCs. File order and
+  compressed size differences are ignored.
 <div class="Pp"></div>
 Supported options:
-<dl class="Bl-tag" style="margin-left: 3.00ex;">
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-h</b></dt>
-  <dd class="It-tag">Display a short help message and exit.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-i</b></dt>
-  <dd class="It-tag">Compare names ignoring case distinctions.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-p</b></dt>
-  <dd class="It-tag">Enable paranoid checks. Compares extra fields and other
-      meta data. (Automatically disabled if one of the archives is a
-    directory.)</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-q</b></dt>
-  <dd class="It-tag">Quiet mode. Compare <b class="Fl">-v</b>.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-t</b></dt>
-  <dd class="It-tag">Test zip files by comparing the contents to their
-      checksums.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-V</b></dt>
-  <dd class="It-tag">Display version information and exit.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-v</b></dt>
-  <dd class="It-tag">Verbose mode. Print details about differences to stdout.
-      (This is the default.)</dd>
+<dl class="Bl-tag" style="margin-left: 6.60ex;">
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#h"><code class="Fl" title="Fl" id="h">-h</code></a></dt>
+  <dd>Display a short help message and exit.</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#i"><code class="Fl" title="Fl" id="i">-i</code></a></dt>
+  <dd>Compare names ignoring case distinctions.</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#p"><code class="Fl" title="Fl" id="p">-p</code></a></dt>
+  <dd>Enable paranoid checks. Compares extra fields and other meta data.
+      (Automatically disabled if one of the archives is a directory.)</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#q"><code class="Fl" title="Fl" id="q">-q</code></a></dt>
+  <dd>Quiet mode. Compare <code class="Fl" title="Fl">-v</code>.</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#t"><code class="Fl" title="Fl" id="t">-t</code></a></dt>
+  <dd>Test zip files by comparing the contents to their checksums.</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#V"><code class="Fl" title="Fl" id="V">-V</code></a></dt>
+  <dd>Display version information and exit.</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#v"><code class="Fl" title="Fl" id="v">-v</code></a></dt>
+  <dd>Verbose mode. Print details about differences to stdout. (This is the
+      default.)</dd>
 </dl>
-<h1 class="Sh" id="EXIT_STATUS">EXIT STATUS</h1>
-<b class="Nm">zipcmp</b> exits 0 if the two archives contain the same files, 1
-  if they differ, and &gt;1 if an error occurred.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="zipmerge.html">zipmerge(1)</a>,
-  <a class="Xr" href="ziptool.html">ziptool(1)</a>,
-  <a class="Xr" href="libzip.html">libzip(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Nm">zipcmp</b> was added in libzip 0.6.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="EXIT_STATUS"><a class="permalink" href="#EXIT_STATUS">EXIT
+  STATUS</a></h1>
+<code class="Nm" title="Nm">zipcmp</code> exits 0 if the two archives contain
+  the same files, 1 if they differ, and &gt;1 if an error occurred.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="zipmerge.html">zipmerge(1)</a>,
+  <a class="Xr" title="Xr" href="ziptool.html">ziptool(1)</a>,
+  <a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Nm" title="Nm">zipcmp</code> was added in libzip 0.6.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zipcmp.man b/man/zipcmp.man
index 712132c..4f5d326 100644
--- a/man/zipcmp.man
+++ b/man/zipcmp.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zipcmp.mdoc -- compare zip archives
+.\" Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIPCMP" "1" "December 18, 2017" "NiH" "General Commands Manual"
 .nh
 .if n .ad l
diff --git a/man/zipcmp.mdoc b/man/zipcmp.mdoc
index 464d191..5f2effe 100644
--- a/man/zipcmp.mdoc
+++ b/man/zipcmp.mdoc
@@ -75,7 +75,7 @@
 .Sh EXIT STATUS
 .Nm
 exits 0 if the two archives contain the same files, 1 if they differ,
-and \*[Gt]1 if an error occurred.
+and >1 if an error occurred.
 .Sh SEE ALSO
 .Xr zipmerge 1 ,
 .Xr ziptool 1 ,
diff --git a/man/zipmerge.html b/man/zipmerge.html
index 0598209..68a2baa 100644
--- a/man/zipmerge.html
+++ b/man/zipmerge.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   zipmerge.mdoc -- merge zip archives
+   Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIPMERGE(1)</title>
 </head>
@@ -20,80 +46,83 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">zipmerge</b> &#8212; <span class="Nd">merge zip archives</span>
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">zipmerge</code> &#x2014;
+<div class="Nd" title="Nd">merge zip archives</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
 <table class="Nm">
-  <colgroup>
-    <col style="width: 8.00ex;"/>
-    <col/>
-  </colgroup>
   <tr>
-    <td><b class="Nm">zipmerge</b></td>
-    <td>[<span class="Op"><b class="Fl">-DhIiSsV</b></span>]
-      <var class="Ar">target-zip</var> <var class="Ar">source-zip</var>
-      [<span class="Op"><var class="Ar">source-zip ...</var></span>]</td>
+    <td><code class="Nm" title="Nm">zipmerge</code></td>
+    <td>[<div class="Op"><code class="Fl" title="Fl">-DhIiSsV</code></div>]
+      <var class="Ar" title="Ar">target-zip</var>
+      <var class="Ar" title="Ar">source-zip</var>
+      [<div class="Op"><var class="Ar" title="Ar">source-zip
+      ...</var></div>]</td>
   </tr>
 </table>
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-<b class="Nm">zipmerge</b> merges the source zip archives
-  <var class="Ar">source-zip</var> into the target zip archive
-  <var class="Ar">target-zip</var>. By default, files in the source zip archives
-  overwrite existing files of the same name in the target zip archive.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Nm" title="Nm">zipmerge</code> merges the source zip archives
+  <var class="Ar" title="Ar">source-zip</var> into the target zip archive
+  <var class="Ar" title="Ar">target-zip</var>. By default, files in the source
+  zip archives overwrite existing files of the same name in the target zip
+  archive.
 <div class="Pp"></div>
 Supported options:
-<dl class="Bl-tag" style="margin-left: 3.00ex;">
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-D</b></dt>
-  <dd class="It-tag">Ignore directory components in file name comparisons. This
-      option is slow for archives with many files.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-h</b></dt>
-  <dd class="It-tag">Display a short help message and exit.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-I</b></dt>
-  <dd class="It-tag">Ignore case in file name comparisons This option is slow
+<dl class="Bl-tag" style="margin-left: 6.60ex;">
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#D"><code class="Fl" title="Fl" id="D">-D</code></a></dt>
+  <dd>Ignore directory components in file name comparisons. This option is slow
       for archives with many files.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-i</b></dt>
-  <dd class="It-tag">Ask before overwriting files. See also
-      <b class="Fl">-s</b>.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-S</b></dt>
-  <dd class="It-tag">Do not overwrite files that have the same size and CRC32 in
-      both the source and target archives.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-s</b></dt>
-  <dd class="It-tag">When <b class="Fl">-i</b> is given, do not before
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#h"><code class="Fl" title="Fl" id="h">-h</code></a></dt>
+  <dd>Display a short help message and exit.</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#I"><code class="Fl" title="Fl" id="I">-I</code></a></dt>
+  <dd>Ignore case in file name comparisons This option is slow for archives with
+      many files.</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#i"><code class="Fl" title="Fl" id="i">-i</code></a></dt>
+  <dd>Ask before overwriting files. See also
+      <code class="Fl" title="Fl">-s</code>.</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#S"><code class="Fl" title="Fl" id="S">-S</code></a></dt>
+  <dd>Do not overwrite files that have the same size and CRC32 in both the
+      source and target archives.</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#s"><code class="Fl" title="Fl" id="s">-s</code></a></dt>
+  <dd>When <code class="Fl" title="Fl">-i</code> is given, do not before
       overwriting files that have the same size and CRC32.</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><b class="Fl">-V</b></dt>
-  <dd class="It-tag">Display version information and exit.</dd>
+  <dt style="margin-left: -6.60ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -6.60ex;"><a class="permalink" href="#V"><code class="Fl" title="Fl" id="V">-V</code></a></dt>
+  <dd>Display version information and exit.</dd>
 </dl>
-<h1 class="Sh" id="EXIT_STATUS">EXIT STATUS</h1>
-<b class="Nm">zipmerge</b> exits 0 on success and &gt;1 if an error occurred.
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="zipcmp.html">zipcmp(1)</a>,
-  <a class="Xr" href="ziptool.html">ziptool(1)</a>,
-  <a class="Xr" href="libzip.html">libzip(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Nm">zipmerge</b> was added in libzip 0.6.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="EXIT_STATUS"><a class="permalink" href="#EXIT_STATUS">EXIT
+  STATUS</a></h1>
+<code class="Nm" title="Nm">zipmerge</code> exits 0 on success and &gt;1 if an
+  error occurred.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="zipcmp.html">zipcmp(1)</a>,
+  <a class="Xr" title="Xr" href="ziptool.html">ziptool(1)</a>,
+  <a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Nm" title="Nm">zipmerge</code> was added in libzip 0.6.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/zipmerge.man b/man/zipmerge.man
index b75f1f4..055a2e4 100644
--- a/man/zipmerge.man
+++ b/man/zipmerge.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" zipmerge.mdoc -- merge zip archives
+.\" Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIPMERGE" "1" "December 18, 2017" "NiH" "General Commands Manual"
 .nh
 .if n .ad l
diff --git a/man/zipmerge.mdoc b/man/zipmerge.mdoc
index 4c8a1dd..47fe2eb 100644
--- a/man/zipmerge.mdoc
+++ b/man/zipmerge.mdoc
@@ -76,7 +76,7 @@
 .El
 .Sh EXIT STATUS
 .Nm
-exits 0 on success and \*[Gt]1 if an error occurred.
+exits 0 on success and >1 if an error occurred.
 .Sh SEE ALSO
 .Xr zipcmp 1 ,
 .Xr ziptool 1 ,
diff --git a/man/ziptool.html b/man/ziptool.html
index be0e366..76801f4 100644
--- a/man/ziptool.html
+++ b/man/ziptool.html
@@ -1,13 +1,39 @@
 <!DOCTYPE html>
 <html>
+<!-- This is an automatically generated file.  Do not edit.
+   ziptool.mdoc -- modify zip archives in multiple ways
+   Copyright (C) 2016-2017 Dieter Baron and Thomas Klausner
+  
+   This file is part of libzip, a library to manipulate ZIP archives.
+   The authors can be contacted at <libzip@nih.at>
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in
+      the documentation and/or other materials provided with the
+      distribution.
+   3. The names of the authors may not be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+   OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+   -->
 <head>
   <meta charset="utf-8"/>
-  <style>
-    table.head, table.foot { width: 100%; }
-    td.head-rtitle, td.foot-os { text-align: right; }
-    td.head-vol { text-align: center; }
-    div.Pp { margin: 1ex 0ex; }
-  </style>
   <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
   <title>ZIPTOOL(1)</title>
 </head>
@@ -20,306 +46,318 @@
   </tr>
 </table>
 <div class="manual-text">
-<h1 class="Sh" id="NAME">NAME</h1>
-<b class="Nm">ziptool</b> &#8212; <span class="Nd">modify zip archives</span>
-<h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1>
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">ziptool</code> &#x2014;
+<div class="Nd" title="Nd">modify zip archives</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
 <table class="Nm">
-  <colgroup>
-    <col style="width: 7.00ex;"/>
-    <col/>
-  </colgroup>
   <tr>
-    <td><b class="Nm">ziptool</b></td>
-    <td>[<span class="Op"><b class="Fl">-ceghnrst</b></span>]
-      [<span class="Op"><b class="Fl">-l</b>
-      <var class="Ar">length</var></span>]
-      [<span class="Op"><b class="Fl">-o</b>
-      <var class="Ar">offset</var></span>] <var class="Ar">zip-archive</var>
-      <b class="Cm">command</b> [<span class="Op"><var class="Ar">command-args
-      ...</var></span>] [<span class="Op"><b class="Cm">command</b>
-      [<span class="Op"><var class="Ar">command-args ...</var></span>]
-      ...</span>]</td>
+    <td><code class="Nm" title="Nm">ziptool</code></td>
+    <td>[<div class="Op"><code class="Fl" title="Fl">-ceghnrst</code></div>]
+      [<div class="Op"><code class="Fl" title="Fl">-l</code>
+      <var class="Ar" title="Ar">length</var></div>]
+      [<div class="Op"><code class="Fl" title="Fl">-o</code>
+      <var class="Ar" title="Ar">offset</var></div>]
+      <var class="Ar" title="Ar">zip-archive</var>
+      <code class="Cm" title="Cm">command</code>
+      [<div class="Op"><var class="Ar" title="Ar">command-args ...</var></div>]
+      [<div class="Op"><code class="Cm" title="Cm">command</code>
+      [<div class="Op"><var class="Ar" title="Ar">command-args ...</var></div>]
+      ...</div>]</td>
   </tr>
 </table>
-<h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1>
-<b class="Nm">ziptool</b> modifies the zip archive
-  <var class="Ar">zip-archive</var> according to the
-  <var class="Ar">commands</var> given.
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Nm" title="Nm">ziptool</code> modifies the zip archive
+  <var class="Ar" title="Ar">zip-archive</var> according to the
+  <var class="Ar" title="Ar">commands</var> given.
 <div class="Pp"></div>
 Supported options:
-<dl class="Bl-tag" style="margin-left: 11.00ex;">
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><b class="Fl">-c</b></dt>
-  <dd class="It-tag">Check zip archive consistency when opening it.</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><b class="Fl">-e</b></dt>
-  <dd class="It-tag">Error if archive already exists (only useful with
-      <b class="Fl">-n</b>).</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><b class="Fl">-g</b></dt>
-  <dd class="It-tag">Guess file name encoding (for <b class="Cm">stat</b>
+<dl class="Bl-tag" style="margin-left: 16.20ex;">
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#c"><code class="Fl" title="Fl" id="c">-c</code></a></dt>
+  <dd>Check zip archive consistency when opening it.</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#e"><code class="Fl" title="Fl" id="e">-e</code></a></dt>
+  <dd>Error if archive already exists (only useful with
+      <code class="Fl" title="Fl">-n</code>).</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#g"><code class="Fl" title="Fl" id="g">-g</code></a></dt>
+  <dd>Guess file name encoding (for <code class="Cm" title="Cm">stat</code>
       command).</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><b class="Fl">-h</b></dt>
-  <dd class="It-tag">Display help.</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><b class="Fl">-l</b>
-    <var class="Ar">length</var></dt>
-  <dd class="It-tag">Only read <var class="Ar">length</var> bytes of archive.
-      See also <b class="Fl">-o</b>.</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><b class="Fl">-n</b></dt>
-  <dd class="It-tag">Create archive if it doesn't exist. See also
-      <b class="Fl">-e</b>.</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><b class="Fl">-o</b>
-    <var class="Ar">offset</var></dt>
-  <dd class="It-tag">Start reading input archive from
-      <var class="Ar">offset</var>. See also <b class="Fl">-l</b>.</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><b class="Fl">-r</b></dt>
-  <dd class="It-tag">Print raw file name encoding without translation (for
-      <b class="Cm">stat</b> command).</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><b class="Fl">-s</b></dt>
-  <dd class="It-tag">Follow file name convention strictly (for
-      <b class="Cm">stat</b> command).</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -11.00ex;"><b class="Fl">-t</b></dt>
-  <dd class="It-tag">Disregard current file contents, if any.
-      <i class="Em">Note</i>: use this with care, it deletes all existing file
-      contents when you modify the archive.</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#h"><code class="Fl" title="Fl" id="h">-h</code></a></dt>
+  <dd>Display help.</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#l"><code class="Fl" title="Fl" id="l">-l</code></a>
+    <var class="Ar" title="Ar">length</var></dt>
+  <dd>Only read <var class="Ar" title="Ar">length</var> bytes of archive. See
+      also <code class="Fl" title="Fl">-o</code>.</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#n"><code class="Fl" title="Fl" id="n">-n</code></a></dt>
+  <dd>Create archive if it doesn't exist. See also
+      <code class="Fl" title="Fl">-e</code>.</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#o"><code class="Fl" title="Fl" id="o">-o</code></a>
+    <var class="Ar" title="Ar">offset</var></dt>
+  <dd>Start reading input archive from <var class="Ar" title="Ar">offset</var>.
+      See also <code class="Fl" title="Fl">-l</code>.</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#r"><code class="Fl" title="Fl" id="r">-r</code></a></dt>
+  <dd>Print raw file name encoding without translation (for
+      <code class="Cm" title="Cm">stat</code> command).</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#s"><code class="Fl" title="Fl" id="s">-s</code></a></dt>
+  <dd>Follow file name convention strictly (for
+      <code class="Cm" title="Cm">stat</code> command).</dd>
+  <dt style="margin-left: -16.20ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -16.20ex;"><a class="permalink" href="#t"><code class="Fl" title="Fl" id="t">-t</code></a></dt>
+  <dd>Disregard current file contents, if any.
+      <i class="Em" title="Em">Note</i>: use this with care, it deletes all
+      existing file contents when you modify the archive.</dd>
 </dl>
-<h2 class="Ss" id="Commands">Commands</h2>
+<h2 class="Ss" title="Ss" id="Commands"><a class="permalink" href="#Commands">Commands</a></h2>
 For all commands below, the index is zero-based. In other words, the first entry
   in the zip archive has index 0.
 <div class="Pp"></div>
 Supported commands and arguments are:
-<dl class="Bl-tag" style="margin-left: 10.00ex;">
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">add</b>
-    <var class="Ar">name content</var></dt>
-  <dd class="It-tag">Add file called <var class="Ar">name</var> using the string
-      <var class="Ar">content</var> from the command line as data.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">add_dir</b>
-    <var class="Ar">name</var></dt>
-  <dd class="It-tag">Add directory <var class="Ar">name</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">add_file</b>
-    <var class="Ar">name file_to_add offset len</var></dt>
-  <dd class="It-tag">Add file <var class="Ar">name</var> to archive, using
-      <var class="Ar">len</var> bytes from the file
-      <var class="Ar">file_to_add</var> as input data, starting at
-      <var class="Ar">offset</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">add_from_zip</b>
-    <var class="Ar">name archivename index offset len</var></dt>
-  <dd class="It-tag">Add file called <var class="Ar">name</var> to archive using
-      data from another zip archive <var class="Ar">archivename</var> using the
-      entry with index <var class="Ar">index</var> and reading
-      <var class="Ar">len</var> bytes from <var class="Ar">offset</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">cat</b>
-    <var class="Ar">index</var></dt>
-  <dd class="It-tag">Output file contents for entry <var class="Ar">index</var>
-      to stdout.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">count_extra</b>
-    <var class="Ar">index flags</var></dt>
-  <dd class="It-tag">Print the number of extra fields for archive entry
-      <var class="Ar">index</var> using <var class="Ar">flags</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">count_extra_by_id</b>
-    <var class="Ar">index extra_id flags</var></dt>
-  <dd class="It-tag">Print number of extra fields of type
-      <var class="Ar">extra_id</var> for archive entry
-      <var class="Ar">index</var> using <var class="Ar">flags</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">delete</b>
-    <var class="Ar">index</var></dt>
-  <dd class="It-tag">Remove entry at <var class="Ar">index</var> from zip
-      archive.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">delete_extra</b>
-    <var class="Ar">index extra_idx flags</var></dt>
-  <dd class="It-tag">Remove extra field number <var class="Ar">extra_idx</var>
-      from archive entry <var class="Ar">index</var> using
-      <var class="Ar">flags</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">delete_extra_by_id</b>
-    <var class="Ar">index extra_id extra_index flags</var></dt>
-  <dd class="It-tag">Remove extra field number <var class="Ar">extra_index</var>
-      of type <var class="Ar">extra_id</var> from archive entry
-      <var class="Ar">index</var> using <var class="Ar">flags</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">get_archive_comment</b></dt>
-  <dd class="It-tag">Print archive comment.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">get_extra</b>
-    <var class="Ar">index extra_index flags</var></dt>
-  <dd class="It-tag">Print extra field <var class="Ar">extra_index</var> for
-      archive entry <var class="Ar">index</var> using
-      <var class="Ar">flags</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">get_extra_by_id</b>
-    <var class="Ar">index extra_id extra_index flags</var></dt>
-  <dd class="It-tag">Print extra field <var class="Ar">extra_index</var> of type
-      <var class="Ar">extra_id</var> for archive entry
-      <var class="Ar">index</var> using <var class="Ar">flags</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">get_file_comment</b>
-    <var class="Ar">index</var></dt>
-  <dd class="It-tag">Get file comment for archive entry
-      <var class="Ar">index</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">get_num_entries</b>
-    <var class="Ar">flags</var></dt>
-  <dd class="It-tag">Print number of entries in archive using
-      <var class="Ar">flags</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">name_locate</b>
-    <var class="Ar">name flags</var></dt>
-  <dd class="It-tag">Find entry in archive with the filename
-      <var class="Ar">name</var> using <var class="Ar">flags</var> and print its
-      index.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">rename</b>
-    <var class="Ar">index name</var></dt>
-  <dd class="It-tag">Rename archive entry <var class="Ar">index</var> to
-      <var class="Ar">name</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">replace_file_contents</b>
-    <var class="Ar">index data</var></dt>
-  <dd class="It-tag">Replace file contents for archive entry
-      <var class="Ar">index</var> with the string
-    <var class="Ar">data</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">set_archive_comment</b>
-    <var class="Ar">comment</var></dt>
-  <dd class="It-tag">Set archive comment to <var class="Ar">comment</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">set_extra</b>
-    <var class="Ar">index extra_id extra_index flags value</var></dt>
-  <dd class="It-tag">Set extra field number <var class="Ar">extra_index</var> of
-      type <var class="Ar">extra_id</var> for archive entry
-      <var class="Ar">index</var> using <var class="Ar">flags</var> to
-      <var class="Ar">value</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">set_file_comment</b>
-    <var class="Ar">index comment</var></dt>
-  <dd class="It-tag">Set file comment for archive entry
-      <var class="Ar">index</var> to string <var class="Ar">comment</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">set_file_compression</b>
-    <var class="Ar">index method compression_flags</var></dt>
-  <dd class="It-tag">Set file compression method for archive entry
-      <var class="Ar">index</var> to <var class="Ar">method</var> using
-      <var class="Ar">compression_flags</var>. <i class="Em">Note</i>:
-      Currently, <var class="Ar">compression_flags</var> are ignored.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">set_file_encryption</b>
-    <var class="Ar">index method password</var></dt>
-  <dd class="It-tag">Set file encryption method for archive entry
-      <var class="Ar">index</var> to <var class="Ar">method</var> with password
-      <var class="Ar">password</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">set_file_mtime</b>
-    <var class="Ar">index timestamp</var></dt>
-  <dd class="It-tag">Set file modification time for archive entry
-      <var class="Ar">index</var> to UNIX mtime
-    <var class="Ar">timestamp</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">set_file_mtime_all</b>
-    <var class="Ar">timestamp</var></dt>
-  <dd class="It-tag">Set file modification time for all archive entries to UNIX
-      mtime <var class="Ar">timestamp</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">set_password</b>
-    <var class="Ar">password</var></dt>
-  <dd class="It-tag">Set default password for encryption/decryption to
-      <var class="Ar">password</var>.</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;">&#160;</dt>
-  <dd class="It-tag">&#160;</dd>
-  <dt class="It-tag" style="margin-left: -10.00ex;"><b class="Cm">stat</b>
-    <var class="Ar">index</var></dt>
-  <dd class="It-tag">Print information about archive entry
-      <var class="Ar">index</var>.</dd>
+<dl class="Bl-tag" style="margin-left: 15.00ex;">
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#add"><code class="Cm" title="Cm" id="add">add</code></a>
+    <var class="Ar" title="Ar">name content</var></dt>
+  <dd>Add file called <var class="Ar" title="Ar">name</var> using the string
+      <var class="Ar" title="Ar">content</var> from the command line as
+    data.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#add_dir"><code class="Cm" title="Cm" id="add_dir">add_dir</code></a>
+    <var class="Ar" title="Ar">name</var></dt>
+  <dd>Add directory <var class="Ar" title="Ar">name</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#add_file"><code class="Cm" title="Cm" id="add_file">add_file</code></a>
+    <var class="Ar" title="Ar">name file_to_add offset len</var></dt>
+  <dd>Add file <var class="Ar" title="Ar">name</var> to archive, using
+      <var class="Ar" title="Ar">len</var> bytes from the file
+      <var class="Ar" title="Ar">file_to_add</var> as input data, starting at
+      <var class="Ar" title="Ar">offset</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#add_from_zip"><code class="Cm" title="Cm" id="add_from_zip">add_from_zip</code></a>
+    <var class="Ar" title="Ar">name archivename index offset len</var></dt>
+  <dd>Add file called <var class="Ar" title="Ar">name</var> to archive using
+      data from another zip archive <var class="Ar" title="Ar">archivename</var>
+      using the entry with index <var class="Ar" title="Ar">index</var> and
+      reading <var class="Ar" title="Ar">len</var> bytes from
+      <var class="Ar" title="Ar">offset</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#cat"><code class="Cm" title="Cm" id="cat">cat</code></a>
+    <var class="Ar" title="Ar">index</var></dt>
+  <dd>Output file contents for entry <var class="Ar" title="Ar">index</var> to
+      stdout.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#count_extra"><code class="Cm" title="Cm" id="count_extra">count_extra</code></a>
+    <var class="Ar" title="Ar">index flags</var></dt>
+  <dd>Print the number of extra fields for archive entry
+      <var class="Ar" title="Ar">index</var> using
+      <var class="Ar" title="Ar">flags</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#count_extra_by_id"><code class="Cm" title="Cm" id="count_extra_by_id">count_extra_by_id</code></a>
+    <var class="Ar" title="Ar">index extra_id flags</var></dt>
+  <dd>Print number of extra fields of type
+      <var class="Ar" title="Ar">extra_id</var> for archive entry
+      <var class="Ar" title="Ar">index</var> using
+      <var class="Ar" title="Ar">flags</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#delete"><code class="Cm" title="Cm" id="delete">delete</code></a>
+    <var class="Ar" title="Ar">index</var></dt>
+  <dd>Remove entry at <var class="Ar" title="Ar">index</var> from zip
+    archive.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#delete_extra"><code class="Cm" title="Cm" id="delete_extra">delete_extra</code></a>
+    <var class="Ar" title="Ar">index extra_idx flags</var></dt>
+  <dd>Remove extra field number <var class="Ar" title="Ar">extra_idx</var> from
+      archive entry <var class="Ar" title="Ar">index</var> using
+      <var class="Ar" title="Ar">flags</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#delete_extra_by_id"><code class="Cm" title="Cm" id="delete_extra_by_id">delete_extra_by_id</code></a>
+    <var class="Ar" title="Ar">index extra_id extra_index flags</var></dt>
+  <dd>Remove extra field number <var class="Ar" title="Ar">extra_index</var> of
+      type <var class="Ar" title="Ar">extra_id</var> from archive entry
+      <var class="Ar" title="Ar">index</var> using
+      <var class="Ar" title="Ar">flags</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#get_archive_comment"><code class="Cm" title="Cm" id="get_archive_comment">get_archive_comment</code></a></dt>
+  <dd>Print archive comment.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#get_extra"><code class="Cm" title="Cm" id="get_extra">get_extra</code></a>
+    <var class="Ar" title="Ar">index extra_index flags</var></dt>
+  <dd>Print extra field <var class="Ar" title="Ar">extra_index</var> for archive
+      entry <var class="Ar" title="Ar">index</var> using
+      <var class="Ar" title="Ar">flags</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#get_extra_by_id"><code class="Cm" title="Cm" id="get_extra_by_id">get_extra_by_id</code></a>
+    <var class="Ar" title="Ar">index extra_id extra_index flags</var></dt>
+  <dd>Print extra field <var class="Ar" title="Ar">extra_index</var> of type
+      <var class="Ar" title="Ar">extra_id</var> for archive entry
+      <var class="Ar" title="Ar">index</var> using
+      <var class="Ar" title="Ar">flags</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#get_file_comment"><code class="Cm" title="Cm" id="get_file_comment">get_file_comment</code></a>
+    <var class="Ar" title="Ar">index</var></dt>
+  <dd>Get file comment for archive entry
+    <var class="Ar" title="Ar">index</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#get_num_entries"><code class="Cm" title="Cm" id="get_num_entries">get_num_entries</code></a>
+    <var class="Ar" title="Ar">flags</var></dt>
+  <dd>Print number of entries in archive using
+      <var class="Ar" title="Ar">flags</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#name_locate"><code class="Cm" title="Cm" id="name_locate">name_locate</code></a>
+    <var class="Ar" title="Ar">name flags</var></dt>
+  <dd>Find entry in archive with the filename
+      <var class="Ar" title="Ar">name</var> using
+      <var class="Ar" title="Ar">flags</var> and print its index.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#rename"><code class="Cm" title="Cm" id="rename">rename</code></a>
+    <var class="Ar" title="Ar">index name</var></dt>
+  <dd>Rename archive entry <var class="Ar" title="Ar">index</var> to
+      <var class="Ar" title="Ar">name</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#replace_file_contents"><code class="Cm" title="Cm" id="replace_file_contents">replace_file_contents</code></a>
+    <var class="Ar" title="Ar">index data</var></dt>
+  <dd>Replace file contents for archive entry
+      <var class="Ar" title="Ar">index</var> with the string
+      <var class="Ar" title="Ar">data</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#set_archive_comment"><code class="Cm" title="Cm" id="set_archive_comment">set_archive_comment</code></a>
+    <var class="Ar" title="Ar">comment</var></dt>
+  <dd>Set archive comment to <var class="Ar" title="Ar">comment</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#set_extra"><code class="Cm" title="Cm" id="set_extra">set_extra</code></a>
+    <var class="Ar" title="Ar">index extra_id extra_index flags value</var></dt>
+  <dd>Set extra field number <var class="Ar" title="Ar">extra_index</var> of
+      type <var class="Ar" title="Ar">extra_id</var> for archive entry
+      <var class="Ar" title="Ar">index</var> using
+      <var class="Ar" title="Ar">flags</var> to
+      <var class="Ar" title="Ar">value</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#set_file_comment"><code class="Cm" title="Cm" id="set_file_comment">set_file_comment</code></a>
+    <var class="Ar" title="Ar">index comment</var></dt>
+  <dd>Set file comment for archive entry <var class="Ar" title="Ar">index</var>
+      to string <var class="Ar" title="Ar">comment</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#set_file_compression"><code class="Cm" title="Cm" id="set_file_compression">set_file_compression</code></a>
+    <var class="Ar" title="Ar">index method compression_flags</var></dt>
+  <dd>Set file compression method for archive entry
+      <var class="Ar" title="Ar">index</var> to
+      <var class="Ar" title="Ar">method</var> using
+      <var class="Ar" title="Ar">compression_flags</var>.
+      <i class="Em" title="Em">Note</i>: Currently,
+      <var class="Ar" title="Ar">compression_flags</var> are ignored.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#set_file_encryption"><code class="Cm" title="Cm" id="set_file_encryption">set_file_encryption</code></a>
+    <var class="Ar" title="Ar">index method password</var></dt>
+  <dd>Set file encryption method for archive entry
+      <var class="Ar" title="Ar">index</var> to
+      <var class="Ar" title="Ar">method</var> with password
+      <var class="Ar" title="Ar">password</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#set_file_mtime"><code class="Cm" title="Cm" id="set_file_mtime">set_file_mtime</code></a>
+    <var class="Ar" title="Ar">index timestamp</var></dt>
+  <dd>Set file modification time for archive entry
+      <var class="Ar" title="Ar">index</var> to UNIX mtime
+      <var class="Ar" title="Ar">timestamp</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#set_file_mtime_all"><code class="Cm" title="Cm" id="set_file_mtime_all">set_file_mtime_all</code></a>
+    <var class="Ar" title="Ar">timestamp</var></dt>
+  <dd>Set file modification time for all archive entries to UNIX mtime
+      <var class="Ar" title="Ar">timestamp</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#set_password"><code class="Cm" title="Cm" id="set_password">set_password</code></a>
+    <var class="Ar" title="Ar">password</var></dt>
+  <dd>Set default password for encryption/decryption to
+      <var class="Ar" title="Ar">password</var>.</dd>
+  <dt style="margin-left: -15.00ex;">&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt style="margin-left: -15.00ex;"><a class="permalink" href="#stat"><code class="Cm" title="Cm" id="stat">stat</code></a>
+    <var class="Ar" title="Ar">index</var></dt>
+  <dd>Print information about archive entry
+      <var class="Ar" title="Ar">index</var>.</dd>
 </dl>
-<h2 class="Ss" id="Flags">Flags</h2>
+<h2 class="Ss" title="Ss" id="Flags"><a class="permalink" href="#Flags">Flags</a></h2>
 Some commands take flag arguments. Supported flags are:
 <div class="Bl-tag" style="margin-left: 6.00ex;">
-<dl class="Bl-tag" style="margin-left: 3.00ex;">
-  <dt class="It-tag" style="margin-left: -3.00ex;"><var class="Ar">C</var></dt>
-  <dd class="It-tag"><code class="Dv">ZIP_FL_NOCASE</code></dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><var class="Ar">c</var></dt>
-  <dd class="It-tag"><code class="Dv">ZIP_FL_CENTRAL</code></dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><var class="Ar">d</var></dt>
-  <dd class="It-tag"><code class="Dv">ZIP_FL_NODIR</code></dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><var class="Ar">l</var></dt>
-  <dd class="It-tag"><code class="Dv">ZIP_FL_LOCAL</code></dd>
-  <dt class="It-tag" style="margin-left: -3.00ex;"><var class="Ar">u</var></dt>
-  <dd class="It-tag"><code class="Dv">ZIP_FL_UNCHANGED</code></dd>
+<dl class="Bl-tag Bl-compact" style="margin-left: 6.60ex;">
+  <dt style="margin-left: -6.60ex;"><var class="Ar" title="Ar">C</var></dt>
+  <dd><a class="permalink" href="#ZIP_FL_NOCASE"><code class="Dv" title="Dv" id="ZIP_FL_NOCASE">ZIP_FL_NOCASE</code></a></dd>
+  <dt style="margin-left: -6.60ex;"><var class="Ar" title="Ar">c</var></dt>
+  <dd><a class="permalink" href="#ZIP_FL_CENTRAL"><code class="Dv" title="Dv" id="ZIP_FL_CENTRAL">ZIP_FL_CENTRAL</code></a></dd>
+  <dt style="margin-left: -6.60ex;"><var class="Ar" title="Ar">d</var></dt>
+  <dd><a class="permalink" href="#ZIP_FL_NODIR"><code class="Dv" title="Dv" id="ZIP_FL_NODIR">ZIP_FL_NODIR</code></a></dd>
+  <dt style="margin-left: -6.60ex;"><var class="Ar" title="Ar">l</var></dt>
+  <dd><a class="permalink" href="#ZIP_FL_LOCAL"><code class="Dv" title="Dv" id="ZIP_FL_LOCAL">ZIP_FL_LOCAL</code></a></dd>
+  <dt style="margin-left: -6.60ex;"><var class="Ar" title="Ar">u</var></dt>
+  <dd><a class="permalink" href="#ZIP_FL_UNCHANGED"><code class="Dv" title="Dv" id="ZIP_FL_UNCHANGED">ZIP_FL_UNCHANGED</code></a></dd>
 </dl>
 </div>
-<h2 class="Ss" id="Compression_Methods">Compression Methods</h2>
+<h2 class="Ss" title="Ss" id="Compression_Methods"><a class="permalink" href="#Compression_Methods">Compression
+  Methods</a></h2>
 Some commands take compression method arguments. Supported methods are:
-<ul class="Bl-bullet" style="margin-left: 6.00ex;">
-  <li class="It-bullet" style="margin-top: 0.00em;"><code class="Dv">default</code></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><code class="Dv">deflate</code></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><code class="Dv">store</code></li>
+<ul class="Bl-bullet Bl-compact" style="margin-left: 6.00ex;">
+  <li><a class="permalink" href="#default"><code class="Dv" title="Dv" id="default">default</code></a></li>
+  <li><a class="permalink" href="#deflate"><code class="Dv" title="Dv" id="deflate">deflate</code></a></li>
+  <li><a class="permalink" href="#store"><code class="Dv" title="Dv" id="store">store</code></a></li>
 </ul>
-<h2 class="Ss" id="Encryption_Methods">Encryption Methods</h2>
+<h2 class="Ss" title="Ss" id="Encryption_Methods"><a class="permalink" href="#Encryption_Methods">Encryption
+  Methods</a></h2>
 Some commands take encryption method arguments. Supported methods are:
-<ul class="Bl-bullet" style="margin-left: 6.00ex;">
-  <li class="It-bullet" style="margin-top: 0.00em;"><code class="Dv">none</code></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><code class="Dv">AES-128</code></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><code class="Dv">AES-192</code></li>
-  <li class="It-bullet" style="margin-top: 0.00em;"><code class="Dv">AES-256</code></li>
+<ul class="Bl-bullet Bl-compact" style="margin-left: 6.00ex;">
+  <li><a class="permalink" href="#none"><code class="Dv" title="Dv" id="none">none</code></a></li>
+  <li><a class="permalink" href="#AES-128"><code class="Dv" title="Dv" id="AES-128">AES-128</code></a></li>
+  <li><a class="permalink" href="#AES-192"><code class="Dv" title="Dv" id="AES-192">AES-192</code></a></li>
+  <li><a class="permalink" href="#AES-256"><code class="Dv" title="Dv" id="AES-256">AES-256</code></a></li>
 </ul>
-<h1 class="Sh" id="EXIT_STATUS">EXIT STATUS</h1>
-The <b class="Nm">ziptool</b> utility exits&#160;0 on success, and&#160;&gt;0 if
-  an error occurs.
-<h1 class="Sh" id="EXAMPLES">EXAMPLES</h1>
-Add a file called <i class="Pa">teststring.txt</i> to the zip archive
-  <i class="Pa">testbuffer.zip</i> with data &#8220;This is a test.\n&#8221;
-  where &#8220;\n&#8221; is replaced with a newline character:
+<h1 class="Sh" title="Sh" id="EXIT_STATUS"><a class="permalink" href="#EXIT_STATUS">EXIT
+  STATUS</a></h1>
+The <code class="Nm" title="Nm">ziptool</code> utility exits&#x00A0;0 on
+  success, and&#x00A0;&gt;0 if an error occurs.
+<h1 class="Sh" title="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
+Add a file called <i class="Pa" title="Pa">teststring.txt</i> to the zip archive
+  <i class="Pa" title="Pa">testbuffer.zip</i> with data &#x201C;This is a
+  test.\n&#x201D; where &#x201C;\n&#x201D; is replaced with a newline character:
 <div class="Pp"></div>
 <div class="Bd" style="margin-left: 5.00ex;">
 <pre class="Li">
@@ -327,28 +365,30 @@
 </pre>
 </div>
 <div class="Pp"></div>
-Delete the first file from the zip archive <i class="Pa">testfile.zip</i>:
+Delete the first file from the zip archive
+  <i class="Pa" title="Pa">testfile.zip</i>:
 <div class="Pp"></div>
 <div class="Bd" style="margin-left: 5.00ex;">
 <pre class="Li">
 ziptool testfile.zip delete 0
 </pre>
 </div>
-<h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1>
-<a class="Xr" href="zipcmp.html">zipcmp(1)</a>,
-  <a class="Xr" href="zipmerge.html">zipmerge(1)</a>,
-  <a class="Xr" href="libzip.html">libzip(3)</a>
-<h1 class="Sh" id="HISTORY">HISTORY</h1>
-<b class="Nm">ziptool</b> was added in libzip 1.1.
-<h1 class="Sh" id="AUTHORS">AUTHORS</h1>
-<span class="An">Dieter Baron</span>
-  &lt;<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt; and
-  <span class="An">Thomas Klausner</span>
-  &lt;<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr" href="zipcmp.html">zipcmp(1)</a>,
+  <a class="Xr" title="Xr" href="zipmerge.html">zipmerge(1)</a>,
+  <a class="Xr" title="Xr" href="libzip.html">libzip(3)</a>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<code class="Nm" title="Nm">ziptool</code> was added in libzip 1.1.
+<h1 class="Sh" title="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<span class="An" title="An">Dieter Baron</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>&gt;
+  and <span class="An" title="An">Thomas Klausner</span>
+  &lt;<a class="Mt" title="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>&gt;</div>
 <table class="foot">
   <tr>
     <td class="foot-date">December 18, 2017</td>
-    <td class="foot-os">NetBSD 8.99.14</td>
+    <td class="foot-os">NetBSD 8.99.16</td>
   </tr>
 </table>
 </body>
diff --git a/man/ziptool.man b/man/ziptool.man
index b3d10fc..da9829a 100644
--- a/man/ziptool.man
+++ b/man/ziptool.man
@@ -1,3 +1,35 @@
+.\" Automatically generated from an mdoc input file.  Do not edit.
+.\" ziptool.mdoc -- modify zip archives in multiple ways
+.\" Copyright (C) 2016-2017 Dieter Baron and Thomas Klausner
+.\"
+.\" This file is part of libzip, a library to manipulate ZIP archives.
+.\" The authors can be contacted at <libzip@nih.at>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\" 3. The names of the authors may not be used to endorse or promote
+.\"    products derived from this software without specific prior
+.\"    written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
 .TH "ZIPTOOL" "1" "December 18, 2017" "NiH" "General Commands Manual"
 .nh
 .if n .ad l
diff --git a/regress/nonrandomopentest.c b/regress/nonrandomopentest.c
index 1da7497..b20a469 100644
--- a/regress/nonrandomopentest.c
+++ b/regress/nonrandomopentest.c
@@ -38,7 +38,7 @@
 
 int
 main(int argc, const char *argv[]) {
-    char buf[1024];
+    zip_uint8_t buf[1024];
     int i;
 
 #ifdef HAVE_CRYPTO