chiark / gitweb /
@@@ much mess, mostly manpages
[mLib] / sys / env.3.in
similarity index 54%
rename from sys/env.3
rename to sys/env.3.in
index 2c5b5af3c0fb4e93422eb6b8b6db2e2629b9f4b5..e61c036573ac8d4bb71e93d020e9f3b51a7414ad 100644 (file)
--- a/sys/env.3
@@ -1,13 +1,47 @@
 .\" -*-nroff-*-
-.TH env 3 "26 July 1999" "Straylight/Edgeware" "mLib utilities library"
-.SH "NAME"
-env \- efficient fiddling with environment variables
+.\"
+.\" Manual for environment variable table
+.\"
+.\" (c) 1999, 2001, 2005, 2009, 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 env 3mLib "26 July 1999" "Straylight/Edgeware" "mLib utilities library"
 .\" @env_get
 .\" @env_put
 .\" @env_import
 .\" @env_export
 .\" @env_destroy
+.
+.\"--------------------------------------------------------------------------
+.SH "NAME"
+env \- efficient fiddling with environment variables
+.
+.\"--------------------------------------------------------------------------
 .SH "SYNOPSIS"
+.
 .nf
 .B "#include <mLib/env.h>"
 .PP
@@ -17,7 +51,10 @@ env \- efficient fiddling with environment variables
 .BI "void env_import(sym_table *" t ", char **" env );
 .BI "char **env_export(sym_table *" t );
 .fi
+.
+.\"--------------------------------------------------------------------------
 .SH "DESCRIPTION"
+.
 The functions in the
 .B "<mLib/env.h>"
 header manipulate environment variables stored in a hash table.
@@ -80,8 +117,16 @@ The
 .B env_destroy
 function frees an environment symbol table, together with all of the
 environment variables.
+.
+.\"--------------------------------------------------------------------------
 .SH "SEE ALSO"
+.
 .BR sym (3),
 .BR mLib (3).
+.
+.\"--------------------------------------------------------------------------
 .SH "AUTHOR"
+.
 Mark Wooding, <mdw@distorted.org.uk>
+.
+.\"----- That's all, folks --------------------------------------------------