Update libbsd header references in man pages Point to the namespaced path for libbsd specific headers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
diff --git a/TODO b/TODO
index 3a1e3dc..1e96cb5 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,3 @@
* Add more functions used by ported packages (check openssh).
-* Fix includes on man pages.
* Add missing man pages.
* Add a README.import file.
diff --git a/src/arc4random.3 b/src/arc4random.3
index 1043602..eda74af 100644
--- a/src/arc4random.3
+++ b/src/arc4random.3
@@ -44,7 +44,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In stdlib.h
+.In bsd/stdlib.h
.Ft u_int32_t
.Fn arc4random "void"
.Ft void
diff --git a/src/fgetln.3 b/src/fgetln.3
index cc33a0a..7dd3fc8 100644
--- a/src/fgetln.3
+++ b/src/fgetln.3
@@ -38,7 +38,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In stdio.h
+.In bsd/stdio.h
.Ft char *
.Fn fgetln "FILE *stream" "size_t *len"
.Sh DESCRIPTION
diff --git a/src/flopen.3 b/src/flopen.3
index 4c53d46..8f81211 100644
--- a/src/flopen.3
+++ b/src/flopen.3
@@ -36,7 +36,7 @@
.Lb libbsd
.Sh SYNOPSIS
.In sys/fcntl.h
-.In libutil.h
+.In bsd/libutil.h
.Ft int
.Fn flopen "const char *path" "int flags"
.Ft int
diff --git a/src/fmtcheck.3 b/src/fmtcheck.3
index 86a3563..7bf5d39 100644
--- a/src/fmtcheck.3
+++ b/src/fmtcheck.3
@@ -37,7 +37,7 @@ format string
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In stdio.h
+.In bsd/stdio.h
.Ft const char *
.Fn fmtcheck "const char *fmt_suspect" "const char *fmt_default"
.Sh DESCRIPTION
diff --git a/src/getpeereid.3 b/src/getpeereid.3
index 66ae6c2..84c776e 100644
--- a/src/getpeereid.3
+++ b/src/getpeereid.3
@@ -36,7 +36,7 @@
.Lb libbsd
.Sh SYNOPSIS
.In sys/types.h
-.In unistd.h
+.In bsd/unistd.h
.Ft int
.Fn getpeereid "int s" "uid_t *euid" "gid_t *egid"
.Sh DESCRIPTION
diff --git a/src/heapsort.3 b/src/heapsort.3
index bf6ce7f..39ed3e0 100644
--- a/src/heapsort.3
+++ b/src/heapsort.3
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In stdlib.h
+.In bsd/stdlib.h
.Ft int
.Fo heapsort
.Fa "void *base"
diff --git a/src/humanize_number.3 b/src/humanize_number.3
index 403e173..e0ffdf0 100644
--- a/src/humanize_number.3
+++ b/src/humanize_number.3
@@ -38,7 +38,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In stdlib.h
+.In bsd/stdlib.h
.Ft int
.Fn dehumanize_number "const char *str" "int64_t *result"
.Ft int
diff --git a/src/mdX.3 b/src/mdX.3
index 963d221..41bf329 100644
--- a/src/mdX.3
+++ b/src/mdX.3
@@ -28,7 +28,7 @@
.Lb libbsd
.Sh SYNOPSIS
.Fd #include <sys/types.h>
-.Fd #include <mdX.h>
+.Fd #include <bsd/mdX.h>
.Ft void
.Fn MDXInit "MDX_CTX *context"
.Ft void
diff --git a/src/nlist.3 b/src/nlist.3
index 3ee5404..25624c7 100644
--- a/src/nlist.3
+++ b/src/nlist.3
@@ -38,7 +38,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In nlist.h
+.In bsd/nlist.h
.Ft int
.Fn nlist "const char *filename" "struct nlist *nl"
.Sh DESCRIPTION
diff --git a/src/pidfile.3 b/src/pidfile.3
index 34214c0..2f84c44 100644
--- a/src/pidfile.3
+++ b/src/pidfile.3
@@ -37,7 +37,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In libutil.h
+.In bsd/libutil.h
.Ft "struct pidfh *"
.Fn pidfile_open "const char *path" "mode_t mode" "pid_t *pidptr"
.Ft int
diff --git a/src/radixsort.3 b/src/radixsort.3
index dfa65f1..82a4be7 100644
--- a/src/radixsort.3
+++ b/src/radixsort.3
@@ -38,7 +38,7 @@
.Lb libc
.Sh SYNOPSIS
.In limits.h
-.In stdlib.h
+.In bsd/stdlib.h
.Ft int
.Fn radixsort "const unsigned char **base" "int nmemb" "const unsigned char *table" "unsigned endbyte"
.Ft int
diff --git a/src/readpassphrase.3 b/src/readpassphrase.3
index c9d55a2..967f8d3 100644
--- a/src/readpassphrase.3
+++ b/src/readpassphrase.3
@@ -28,7 +28,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.Fd #include <readpassphrase.h>
+.Fd #include <bsd/readpassphrase.h>
.Ft char *
.Fn readpassphrase "const char *prompt" "char *buf" "size_t bufsiz" "int flags"
.Sh DESCRIPTION
diff --git a/src/reallocf.3 b/src/reallocf.3
index eee010c..99152b6 100644
--- a/src/reallocf.3
+++ b/src/reallocf.3
@@ -42,7 +42,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In stdlib.h
+.In bsd/stdlib.h
.Ft void *
.Fn reallocf "void *ptr" "size_t size"
.Sh DESCRIPTION
diff --git a/src/setmode.3 b/src/setmode.3
index c0a2837..ae7c568 100644
--- a/src/setmode.3
+++ b/src/setmode.3
@@ -39,7 +39,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In unistd.h
+.In bsd/unistd.h
.Ft mode_t
.Fn getmode "const void *set" "mode_t mode"
.Ft void *
diff --git a/src/strlcpy.3 b/src/strlcpy.3
index 74fbafa..bf14b4f 100644
--- a/src/strlcpy.3
+++ b/src/strlcpy.3
@@ -25,7 +25,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In string.h
+.In bsd/string.h
.Ft size_t
.Fn strlcpy "char *dst" "const char *src" "size_t size"
.Ft size_t
diff --git a/src/strmode.3 b/src/strmode.3
index b2dfaf4..70264c0 100644
--- a/src/strmode.3
+++ b/src/strmode.3
@@ -38,7 +38,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In string.h
+.In bsd/string.h
.Ft void
.Fn strmode "mode_t mode" "char *bp"
.Sh DESCRIPTION
diff --git a/src/strtonum.3 b/src/strtonum.3
index c5f3111..42674f0 100644
--- a/src/strtonum.3
+++ b/src/strtonum.3
@@ -25,8 +25,8 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In stdlib.h
.In limits.h
+.In bsd/stdlib.h
.Ft long long
.Fo strtonum
.Fa "const char *nptr"
diff --git a/src/unvis.3 b/src/unvis.3
index f318ecf..5e01f88 100644
--- a/src/unvis.3
+++ b/src/unvis.3
@@ -39,7 +39,7 @@
.ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
.Lb libbsd
.Sh SYNOPSIS
-.In vis.h
+.In bsd/vis.h
.Ft int
.Fn unvis "char *cp" "char c" "int *astate" "int flag"
.Ft int
diff --git a/src/vis.3 b/src/vis.3
index 3da6eb1..65548f0 100644
--- a/src/vis.3
+++ b/src/vis.3
@@ -41,7 +41,7 @@
.Lb libbsd
.Sh SYNOPSIS
.In stdlib.h
-.In vis.h
+.In bsd/vis.h
.Ft char *
.Fn vis "char *dst" "int c" "int flag" "int nextc"
.Ft int