]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
man: Add new libbsd(7) library overview man page
authorGuillem Jover <guillem@hadrons.org>
Mon, 5 Jun 2017 04:33:47 +0000 (06:33 +0200)
committerGuillem Jover <guillem@hadrons.org>
Fri, 9 Jun 2017 03:46:29 +0000 (05:46 +0200)
40 files changed:
COPYING
man/arc4random.3bsd
man/bitstring.3bsd
man/byteorder.3bsd
man/closefrom.3bsd
man/errc.3bsd
man/expand_number.3bsd
man/explicit_bzero.3bsd
man/fgetln.3bsd
man/fgetwln.3bsd
man/flopen.3bsd
man/fmtcheck.3bsd
man/fparseln.3bsd
man/fpurge.3bsd
man/funopen.3bsd
man/getbsize.3bsd
man/getpeereid.3bsd
man/getprogname.3bsd
man/heapsort.3bsd
man/humanize_number.3bsd
man/libbsd.7 [new file with mode: 0644]
man/mdX.3bsd
man/nlist.3bsd
man/pidfile.3bsd
man/queue.3bsd
man/radixsort.3bsd
man/readpassphrase.3bsd
man/reallocarray.3bsd
man/reallocf.3bsd
man/setmode.3bsd
man/setproctitle.3bsd
man/stringlist.3bsd
man/strlcpy.3bsd
man/strmode.3bsd
man/strnstr.3bsd
man/strtonum.3bsd
man/tree.3bsd
man/unvis.3bsd
man/vis.3bsd
man/wcslcpy.3bsd

diff --git a/COPYING b/COPYING
index 3b943fdc24a9f01fb915ba84e3bc03f0a1044b68..eedf465a6303e09ee6f6eb48df5d20ca17aef6f8 100644 (file)
--- a/COPYING
+++ b/COPYING
@@ -3,7 +3,7 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Files:
  *
 Copyright:
- Copyright © 2004-2006, 2008-2015 Guillem Jover <guillem@hadrons.org>
+ Copyright © 2004-2006, 2008-2017 Guillem Jover <guillem@hadrons.org>
 License: BSD-3-clause
 
 Files:
index 9602ad90879b652b2b80a5c7fd50d8827750cafe..895809984d9a5a8894ff00142b89b2c7312ba890 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdlib.h
+.In stdlib.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft uint32_t
 .Fn arc4random "void"
 .Ft void
index cd9b5bf997cb34e1e96e85c40b980b7cf4e46cb8..4eb0be31f4c58aee15acc5d5019ca307001d1a7a 100644 (file)
 .Nm bit_test
 .Nd bit-string manipulation macros
 .Sh SYNOPSIS
-.In bsd/bitstring.h
+.In bitstring.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft bitstr_t *
 .Fn bit_alloc "int nbits"
 .Ft void
index ddb010fe3b4bbcbc82648d1a73204ede67be0cdc..21214ee4d738004d338addb9a167f85e84819c55 100644 (file)
@@ -33,6 +33,9 @@
 .Nd byte order operations
 .Sh SYNOPSIS
 .In sys/endian.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft uint16_t
 .Fn be16dec "const void *"
 .Ft uint32_t
index 472c985d1a58c9bb074d35aa1d7f1408e2d4f4f7..1af7e677643f7473154090470bd91f184a58320b 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/unistd.h
+.In unistd.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft void
 .Fn closefrom "int lowfd"
 .Sh DESCRIPTION
index 1b1579f5ec4fa10dfd6a869b13c680f62119bb20..6b8b3fde989ee7525652abbf541cf2c63f4f6d45 100644 (file)
@@ -41,6 +41,9 @@
 .Lb libbsd
 .Sh SYNOPSIS
 .In err.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft void
 .Fn errc "int status" "int code" "const char *fmt" "..."
 .Ft void
index b97f5e5d020aa26701b2ca66cf2c741083d061ed..cd36ab969fd71278cdbd77e97f4dfc20876b5c0f 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/libutil.h
+.In libutil.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft int
 .Fo expand_number
 .Fa "const char *buf" "uint64_t *num"
index 2bed62a2d6b6f63b6e2f1652c503aa21e07a06bd..bfe583a064550c55e0baa04772fc74a3f7d04e39 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/string.h
+.In string.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft void
 .Fn explicit_bzero "void *buf" "size_t len"
 .Sh DESCRIPTION
index cc7b735957c9fa5f2bd728ee824fc09d5996aec5..992e2452f118e19784d3b3ebe7ccfcfd6647468a 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdio.h
+.In stdio.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft char *
 .Fn fgetln "FILE *stream" "size_t *len"
 .Sh DESCRIPTION
index 7557d5271d2b7fa1d02953615c3c73af3f1da343..5c05388f3b358aa5d5043bef6019ebdbc92da3f0 100644 (file)
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdio.h
-.In bsd/wchar.h
+.In wchar.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft wchar_t *
 .Fn fgetwln "FILE * restrict stream" "size_t * restrict len"
 .Sh DESCRIPTION
index f430dc08cfb4be6d23ef11e94b0d0880d424f5fe..4bb23b279f7b6648754dad7c6bc98fabb2d3964b 100644 (file)
 .Lb libbsd
 .Sh SYNOPSIS
 .In sys/fcntl.h
-.In bsd/libutil.h
+.In libutil.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft int
 .Fn flopen "const char *path" "int flags"
 .Ft int
index 7bf5d39ac5675e36952b1915f0a7170f7722d850..0a1797f500e9c099b435ad6473e8c6c16c35c563 100644 (file)
@@ -37,7 +37,10 @@ format string
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdio.h
+.In stdio.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft const char *
 .Fn fmtcheck "const char *fmt_suspect" "const char *fmt_default"
 .Sh DESCRIPTION
index 9170417f8c8b4ff5f8ec4d0fb1534dd001f8e785..a3fd325864a502dc7f7b5e13dead8ebcbe0ff90e 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdio.h
+.In stdio.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft "char *"
 .Fo "fparseln"
 .Fa "FILE *stream" "size_t *len" "size_t *lineno"
index d4d0b893555ab9269d64335ee3d4734f56e26442..96a4017af1ba254e0c2f2fed099ec7d3116c7f74 100644 (file)
@@ -42,6 +42,9 @@
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdio.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft int
 .Fn fpurge "FILE *stream"
 .Sh DESCRIPTION
index 123c124a4d9249b1d137d6d8977d118d0a0dd50c..7c867b6f7b14520a1e29c591489d99fffba0844f 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdio.h
+.In stdio.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft FILE *
 .Fn funopen "const void *cookie" "int (*readfn)(void *, char *, int)" "int (*writefn)(void *, const char *, int)" "off_t (*seekfn)(void *, off_t, int)" "int (*closefn)(void *)"
 .Ft FILE *
index 38ec41a80ad41876c53adb20f29c2f9509141a88..817711e495e3a1b2566ad6fedfbbf8814886b96f 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdlib.h
+.In stdlib.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft char *
 .Fn getbsize "int *headerlenp" "long *blocksizep"
 .Sh DESCRIPTION
index 84c776e28179ae059d567815020a33ff0c3b49b0..9292ed36b778a0e5394d755dee524419f9d5b988 100644 (file)
 .Lb libbsd
 .Sh SYNOPSIS
 .In sys/types.h
-.In bsd/unistd.h
+.In unistd.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft int
 .Fn getpeereid "int s" "uid_t *euid" "gid_t *egid"
 .Sh DESCRIPTION
index fe32efb7ea847a2e34397e1f82cf1c9682bb6595..d29064fb44ee5f88b1b1eae49b7123849ccd6027 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdlib.h
+.In stdlib.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft const char *
 .Fn getprogname "void"
 .Ft void
index eefe157b8ecc876af2d468816a02cfd9f0a08ded..48b4d8f9275cabef489784589f1f40797607f341 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdlib.h
+.In stdlib.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft int
 .Fo heapsort
 .Fa "void *base"
index e0ffdf02d2cc5b015b897eaa5a7b3fad91bc6b4c..5d5472a70bfee613d1df873e75c87027a3efcedf 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdlib.h
+.In stdlib.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft int
 .Fn dehumanize_number "const char *str" "int64_t *result"
 .Ft int
diff --git a/man/libbsd.7 b/man/libbsd.7
new file mode 100644 (file)
index 0000000..216bc01
--- /dev/null
@@ -0,0 +1,206 @@
+.\" libbsd man page
+.\"
+.\" Copyright © 2017 Gullem Jover <guillem@hadrons.org>
+.\"
+.\" 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 name of the author may not be used to endorse or promote products
+.\"    derived from this software without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED ``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 AUTHOR 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.
+.\"
+.Dd May 31 2017
+.Dt LIBBSD 7
+.Os
+.Sh NAME
+.Nm libbsd
+.Nd utility functions from BSD systems
+.Sh DESCRIPTION
+The
+.Nm libbsd
+library provides a set if compatibility macros and functions commonly found
+on BSD-based systems.
+Its purpose is to make those available on non-BSD based systems to ease
+portability.
+.Pp
+The library can be used in an overlay mode, which is the preferred way, so
+that the code is portable and requires no modification to the original BSD
+code.
+This can be done easily with the
+.Xr pkg-config 3
+library named
+.Pa libbsd-overlay .
+Or by adding the system-specific include directory with the
+.Pa bsd/
+suffix to the list of system include paths.
+With
+.Nm gcc
+this could be
+.Ar -isystem ${includedir}/bsd .
+In addition the
+.Dv LIBBSD_OVERLAY
+pre-processor variable needs to be defined.
+The includes in this case should be the usual system ones, such as
+.In unistd.h .
+.Pp
+The other way to use the library is to use the namespaced headers,
+this is less portable as it makes using
+.Nm libbsd
+mandatory and it will not work on BSD-based systems, and requires
+modifying original BSD code.
+This can be done with the
+.Xr pkg-config 3
+library named
+.Pa libbsd .
+The includes in this case should be namespaced with
+.Pa bsd/ ,
+such as
+.In bsd/unistd.h .
+.Pp
+The package also provides a
+.Pa bsd-ctor
+static library that can be used to inject automatic constructors into a
+program so that the
+.Fn setproctitle
+function gets invoked automatically at startup time.
+This can be done with the
+.Xr pkg-config 3
+library named
+.Pa libbsd-ctor .
+.Sh HEADERS
+The following are the headers provided by
+.Nm libbsd ,
+that extend the standard system headers.
+They can work in normal or overlay modes, for the former they need to
+be prefixed with
+.Pa bsd/ .
+.Pp
+.Bl -tag -width 4m -compact
+.It In bitstring.h
+.It In err.h
+.It In getopt.h
+.It In libutil.h
+.It In md5.h
+.It In netinet/ip_icmp.h
+.It In nlist.h
+.It In readpassphrase.h
+.It In stdio.h
+.It In stdlib.h
+.It In string.h
+.It In stringlist.h
+.It In sys/bitstring.h
+.It In sys/cdefs.h
+.It In sys/endian.h
+.It In sys/poll.h
+.It In sys/queue.h
+.It In sys/tree.h
+.It In timeconv.h
+.It In unistd.h
+.It In vis.h
+.It In wchar.h
+.El
+.Pp
+The following is a
+.Pa libbsd
+specific convenience header, that includes some of the extended headers.
+It only works in non-overlay mode.
+.Pp
+.Bl -tag -width 4m -compact
+.It In bsd/bsd.h
+.El
+.Sh DEPRECATED
+Some functions have been deprecated, they will emit warnings at compile time
+and possibly while being linked at run-time.
+This might be due to the functions not being portable at all to other
+systems, making the package not buildable there; not portable in a correct
+or non-buggy way; or because there are better more portable replacements now.
+.Pp
+This is the list of currently deprecated macros and functions:
+.Bl -tag -width 4m
+.It Fn fgetln
+Unportable, requires assistance from the stdio layer.
+An implementation has to choose between leaking buffers or being reentrant
+for a limited amount of streams (this implementation chose the latter with
+a limit of 32).
+Use
+.Fn getline 3
+instead, which is available in many systems and required by
+.St -p1003.1-2008 .
+.It Fn funopen
+Unportable, requires assistance from the stdio layer or some hook framework.
+On GNU systems the
+.Fn fopencookie
+function can be used.
+Otherwise the code needs to be prepared for neither of these functions being
+available.
+.El
+.Pp
+In addition, the MD5 set of digest funtions are now provided by the
+.Nm libmd
+companion library, so it is advised to use that instead, as the ones
+provided in
+.Nm libbsd
+might disappear on the next SONAME bump.
+.Sh SEE ALSO
+.Xr arc4random 3bsd ,
+.Xr bitstring 3bsd ,
+.Xr byteorder 3bsd ,
+.Xr closefrom 3bsd ,
+.Xr errc 3bsd ,
+.Xr expand_number 3bsd ,
+.Xr explicit_bzero 3bsd ,
+.Xr fgetln 3bsd ,
+.Xr fgetwln 3bsd ,
+.Xr flopen 3bsd ,
+.Xr fmtcheck 3bsd ,
+.Xr fparseln 3bsd ,
+.Xr fpurge 3bsd ,
+.Xr funopen 3bsd ,
+.Xr getbsize 3bsd ,
+.Xr getpeereid 3bsd ,
+.Xr getprogname 3bsd ,
+.Xr heapsort 3bsd ,
+.Xr humanize_number 3bsd ,
+.Xr md5 3bsd ,
+.Xr nlist 3bsd ,
+.Xr pidfile 3bsd ,
+.Xr queue 3bsd ,
+.Xr radixsort 3bsd ,
+.Xr readpassphrase 3bsd ,
+.Xr reallocarray 3bsd ,
+.Xr reallocf 3bsd ,
+.Xr setmode 3bsd ,
+.Xr setproctitle 3bsd ,
+.Xr stringlist 3bsd ,
+.Xr strlcpy 3bsd ,
+.Xr strmode 3bsd ,
+.Xr strnstr 3bsd ,
+.Xr strtonum 3bsd ,
+.Xr tree 3bsd ,
+.Xr unvis 3bsd ,
+.Xr vis 3bsd ,
+.Xr wcslcpy 3bsd .
+.Sh HISTORY
+The
+.Nm libbsd
+project started in the Debian GNU/kFreeBSD port as a way to ease porting
+code from FreeBSD to the GNU-based system.
+Pretty early on it was generalized and a project created on FreeDesktop.org
+for other distributions and projects to use.
+.Pp
+It is now distributed as part of most non-BSD distributions.
index 095a2692809edbdcafc09a6786fd1710d4a9a1a4..38ed0d305499eb79a6084fdb66ed5ddfa2073825 100644 (file)
 .Lb libbsd
 .Sh SYNOPSIS
 .Fd #include <sys/types.h>
-.Fd #include <bsd/mdX.h>
+.Fd #include <mdX.h>
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft void
 .Fn MDXInit "MDX_CTX *context"
 .Ft void
index 25624c7838f0626248c12106a3a3c154dc2f8993..aa6e1ea8a8287595ceab3150e8ac0b03d58dca71 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/nlist.h
+.In nlist.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft int
 .Fn nlist "const char *filename" "struct nlist *nl"
 .Sh DESCRIPTION
index 91596dc3a744aca2e302f0074ba851b167cd0dbd..2eede98881cb10d6708970fcb0476d95cf14a940 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/libutil.h
+.In libutil.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft "struct pidfh *"
 .Fn pidfile_open "const char *path" "mode_t mode" "pid_t *pidptr"
 .Ft int
index 7a5ed95e6c1c11b00dc71354a1f99ac2addfbcc5..272f25323a523b6bf2ada17f06e403d41ea21a0a 100644 (file)
 .Nd implementations of singly-linked lists, singly-linked tail queues,
 lists and tail queues
 .Sh SYNOPSIS
-.In bsd/sys/queue.h
+.In sys/queue.h
+(See
+.Xr libbsd 7
+for include usage.)
 .\"
 .Fn SLIST_EMPTY "SLIST_HEAD *head"
 .Fn SLIST_ENTRY "TYPE"
index 069e40184602a1f1617f863a0f41e98f262e7c54..cb1222b1707ead1e8cfd278de313dffa9b468026 100644 (file)
 .Lb libbsd
 .Sh SYNOPSIS
 .In limits.h
-.In bsd/stdlib.h
+.In stdlib.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft int
 .Fn radixsort "const unsigned char **base" "int nmemb" "const unsigned char *table" "unsigned endbyte"
 .Ft int
index 967f8d325fcadc4273ef772f1522f3fc72a40912..d0237b5470b159e3d3147fdd3360b0561972460d 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.Fd #include <bsd/readpassphrase.h>
+.Fd #include <readpassphrase.h>
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft char *
 .Fn readpassphrase "const char *prompt" "char *buf" "size_t bufsiz" "int flags"
 .Sh DESCRIPTION
index 71a047edb21f024965d910c5d1adb05e4d744775..fb96d1c6919745687f5d11a918a267b7a9f86392 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdlib.h
+.In stdlib.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft void *
 .Fn reallocarray "void *ptr" "size_t nmemb" "size_t size"
 .Sh DESCRIPTION
index 99152b6ea6f24fdeafab2c19b5ee6ce6a62e191f..764ea3496117cc918868691aa436b6af3c883c23 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stdlib.h
+.In stdlib.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft void *
 .Fn reallocf "void *ptr" "size_t size"
 .Sh DESCRIPTION
index 5073d439296e7b6fd64873718fbe4c68f602b7b9..4f425c3be4c183056a9abb4320dff74109284ba9 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/unistd.h
+.In unistd.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft void *
 .Fn setmode "const char *mode_str"
 .Ft mode_t
index dd5df592e3371676fa63625d6f8622d56a221d1f..304e01f341074b0efd194ca80c0c0fae22d763f4 100644 (file)
 .Lb libbsd
 .Sh SYNOPSIS
 .In sys/types.h
-.In bsd/unistd.h
+.In unistd.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft void
 .Fn setproctitle_init "int argc" "char *argv[]" "char *envp[]"
 .Ft void
index c62e444319e16bd97d6ae88ec81f3a075be36c20..7c5833af606d5427a6204dbf76f575aa0ea271db 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/stringlist.h
+.In stringlist.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft StringList *
 .Fn sl_init "void"
 .Ft int
index bf14b4fe965c1ba542e702abccbc98e56e96dfc1..4a16bc78a388b6d5441a7e40d898101992e80369 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/string.h
+.In string.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft size_t
 .Fn strlcpy "char *dst" "const char *src" "size_t size"
 .Ft size_t
index b505537f6057dbed9e71b0b9f550e50adffd096b..5796fcae2ee008a50c7ae44e8afd74a868461e3b 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/string.h
+.In string.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft void
 .Fn strmode "mode_t mode" "char *bp"
 .Sh DESCRIPTION
index 28bb0f884ad6d27da51021e47e42f7823fa267f9..19cf4ccc759a0355cfa70ac3c509d5c8fe6adafd 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/string.h
+.In string.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft char *
 .Fn strnstr "const char *big" "const char *little" "size_t len"
 .Sh DESCRIPTION
index f159a2364c4c6f666f3724d23f3305ac8c71049d..d279ff13a6ac721a0aabbcdc6dba3032bb4ab57b 100644 (file)
 .Lb libbsd
 .Sh SYNOPSIS
 .In limits.h
-.In bsd/stdlib.h
+.In stdlib.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft long long
 .Fo strtonum
 .Fa "const char *nptr"
index 643b0ee7b2bad6a4c4d22b557f41a968e4e13755..0c30d6738460d51340a3872fb34ee9d4d5f1cbce 100644 (file)
 .Nm RB_REMOVE
 .Nd implementations of splay and red-black trees
 .Sh SYNOPSIS
-.In bsd/sys/tree.h
+.In sys/tree.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Fn SPLAY_PROTOTYPE NAME TYPE FIELD CMP
 .Fn SPLAY_GENERATE NAME TYPE FIELD CMP
 .Fn SPLAY_ENTRY TYPE
index 5ff42feed939a14a44a2f8a7e3bf4c198fb53227..58f88d95bbcbdcd7c132a847bccb619aa334716b 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/vis.h
+.In vis.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft int
 .Fn unvis "char *cp" "char c" "int *astate" "int flag"
 .Ft int
index cf2cd983a5e801ccb57f728ab17b27faf7072748..b77266d17be0a220428af275ddeb1130363de098 100644 (file)
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdlib.h
-.In bsd/vis.h
+.In vis.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft char *
 .Fn vis "char *dst" "int c" "int flag" "int nextc"
 .Ft int
index 0d6011b0dcd97a190afd378297caedb9cda64f3f..5c60d95cf1636715461ae1a89da0ef79d2e5d985 100644 (file)
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
 .Lb libbsd
 .Sh SYNOPSIS
-.In bsd/wchar.h
+.In wchar.h
+(See
+.Xr libbsd 7
+for include usage.)
 .Ft size_t
 .Fn wcslcat "wchar_t *s1" "const wchar_t *s2" "size_t n"
 .Ft size_t