@@@ much mess, mostly manpages
[mLib] / sel / selbuf.3.in
similarity index 63%
rename from sel/selbuf.3
rename to sel/selbuf.3.in
index a2d345a..fa53807 100644 (file)
@@ -1,13 +1,47 @@
 .\" -*-nroff-*-
-.TH selbuf 3 "23 May 1999" "Straylight/Edgeware" "mLib utilities library"
-.SH NAME
-selbuf \- line-buffering input selector
+.\"
+.\" Manual for event-driven line buffer
+.\"
+.\" (c) 1999--2002, 2005, 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 selbuf 3mLib "23 May 1999" "Straylight/Edgeware" "mLib utilities library"
 .\" @selbuf_enable
 .\" @selbuf_disable
 .\" @selbuf_setsize
 .\" @selbuf_init
 .\" @selbuf_destroy
+.
+.\"--------------------------------------------------------------------------
+.SH NAME
+selbuf \- line-buffering input selector
+.
+.\"--------------------------------------------------------------------------
 .SH SYNOPSIS
+.
 .nf
 .B "#include <mLib/selbuf.h>"
 .PP
@@ -21,6 +55,8 @@ selbuf \- line-buffering input selector
 .BI "  lbuf_func *" func ", void *" p );
 .BI "void selbuf_destroy(selbuf *" b );
 .fi
+.
+.\"--------------------------------------------------------------------------
 .SH DESCRIPTION
 The
 .B selbuf
@@ -101,9 +137,17 @@ with the requested size.  The default buffer size is 256 bytes.
 When it's finished with, a line buffer selector must be destroyed by
 calling
 .BR selbuf_destroy .
+.
+.\"--------------------------------------------------------------------------
 .SH "SEE ALSO"
+.
 .BR lbuf (3),
 .BR sel (3),
 .BR mLib (3).
+.
+.\"--------------------------------------------------------------------------
 .SH AUTHOR
+.
 Mark Wooding, <mdw@distorted.org.uk>
+.
+.\"----- That's all, folks --------------------------------------------------