Commit 8478e57463db7a4f1b27d165d45de17c6d992ada

Guillem Jover 2011-02-23T13:14:22

Update libbsd header references in man pages Point to the namespaced path for libbsd specific headers.

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