chiark / gitweb /
@@@ much mess, mostly manpages
[mLib] / sel / bres.3.in
similarity index 69%
rename from sel/bres.3
rename to sel/bres.3.in
index cce20c2303b39bec1ec5cb041b5077c71fef1aa6..3a240ccb189280003843fa9d3cd15640bd878d1e 100644 (file)
@@ -1,13 +1,47 @@
 .\" -*-nroff-*-
-.TH bres 3 "1 October 1999" "Straylight/Edgeware" "mLib utilities library"
-.SH NAME
-bres \- background name resolver
+.\"
+.\" Manual for background name resolution
+.\"
+.\" (c) 1999, 2001, 2003, 2005, 2007, 2009, 2023, 2024 Straylight/Edgeware
+.\"
+.
+.\"----- Licensing notice ---------------------------------------------------
+.\"
+.\" This file is part of the mLib utilities library.
+.\"
+.\" mLib is free software: you can redistribute it and/or modify it under
+.\" the terms of the GNU Library General Public License as published by
+.\" the Free Software Foundation; either version 2 of the License, or (at
+.\" your option) any later version.
+.\"
+.\" mLib is distributed in the hope that it will be useful, but WITHOUT
+.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
+.\" License for more details.
+.\"
+.\" You should have received a copy of the GNU Library General Public
+.\" License along with mLib.  If not, write to the Free Software
+.\" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+.\" USA.
+.
+.\"--------------------------------------------------------------------------
+.so ../defs.man \" @@@PRE@@@
+.
+.\"--------------------------------------------------------------------------
+.TH bres 3mLib "1 October 1999" "Straylight/Edgeware" "mLib utilities library"
 .\" @bres_abort
 .\" @bres_byname
 .\" @bres_byaddr
 .\" @bres_exec
 .\" @bres_init
+.
+.\"--------------------------------------------------------------------------
+.SH NAME
+bres \- background name resolver
+.
+.\"--------------------------------------------------------------------------
 .SH SYNOPSIS
+.
 .nf
 .B "#include <mLib/bres.h>"
 .PP
@@ -25,7 +59,10 @@ bres \- background name resolver
 .BI "void bres_exec(const char *" file );
 .BI "void bres_init(sel_state *" sel );
 .fi
+.
+.\"--------------------------------------------------------------------------
 .SH DESCRIPTION
+.
 The
 .B bres.h
 header file declares types and functions for doing translation between
@@ -127,10 +164,18 @@ function does nothing at all.
 For security reasons, when an address is resolved, the hostname received
 is verified by performing a forward lookup.  If the forward lookup fails
 to return the expected IP address, an error is reported.
+.
+.\"--------------------------------------------------------------------------
 .SH "SEE ALSO"
+.
 .BR gethostbyname (3),
 .BR gethostbyaddr (3),
 .BR sel (3),
 .BR mLib (3).
+.
+.\"--------------------------------------------------------------------------
 .SH "AUTHOR"
+.
 Mark Wooding, <mdw@distorted.org.uk>
+.
+.\"----- That's all, folks --------------------------------------------------