summaryrefslogtreecommitdiffstats
path: root/contrib/openpam/misc
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-07-15 07:18:26 +0000
committerdes <des@FreeBSD.org>2003-07-15 07:18:26 +0000
commit4f94712dd14f8e2fd55b14e14daa159df368e451 (patch)
tree90480c2f7b7437d4ebac16f2a7849084abe7ba6e /contrib/openpam/misc
parent49e0f275db6cafef33693cb9ac1fdd52cdd63a67 (diff)
downloadFreeBSD-src-4f94712dd14f8e2fd55b14e14daa159df368e451.zip
FreeBSD-src-4f94712dd14f8e2fd55b14e14daa159df368e451.tar.gz
Vendor import of OpenPAM Dogwood.
Diffstat (limited to 'contrib/openpam/misc')
-rw-r--r--contrib/openpam/misc/gendoc.pl24
1 files changed, 14 insertions, 10 deletions
diff --git a/contrib/openpam/misc/gendoc.pl b/contrib/openpam/misc/gendoc.pl
index 945c224..feb6e48 100644
--- a/contrib/openpam/misc/gendoc.pl
+++ b/contrib/openpam/misc/gendoc.pl
@@ -32,13 +32,14 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $P4: //depot/projects/openpam/misc/gendoc.pl#25 $
+# $P4: //depot/projects/openpam/misc/gendoc.pl#27 $
#
use strict;
+use locale;
use Fcntl;
use Getopt::Std;
-use POSIX qw(strftime);
+use POSIX qw(locale_h strftime);
use vars qw($COPYRIGHT $TODAY %FUNCTIONS %PAMERR);
$COPYRIGHT = ".\\\"-
@@ -360,7 +361,7 @@ sub gendoc($) {
if ($func->{'name'} =~ m/openpam/) {
$mdoc .= ".In security/openpam.h\n"
}
- $mdoc .= ".Ft $func->{'type'}
+ $mdoc .= ".Ft \"$func->{'type'}\"
.Fn $func->{'name'} $func->{'args'}
.Sh DESCRIPTION
$func->{'man'}
@@ -411,10 +412,11 @@ function is an OpenPAM extension.
$mdoc .= ".Sh AUTHORS
The
.Nm
-function and this manual page were developed for the FreeBSD Project
-by ThinkSec AS and Network Associates Laboratories, the Security
-Research Division of Network Associates, Inc. under DARPA/SPAWAR
-contract N66001-01-C-8035
+function and this manual page were developed for the
+.Fx
+Project by ThinkSec AS and Network Associates Laboratories, the
+Security Research Division of Network Associates, Inc. under
+DARPA/SPAWAR contract N66001-01-C-8035
.Pq Dq CBOSS ,
as part of the DARPA CHATS research program.
";
@@ -511,7 +513,7 @@ The following return codes are defined by
}
print FILE ".Sh SEE ALSO
";
- print FILE ".Xr openpam 3\n"
+ print FILE ".Xr openpam 3 ,\n"
if ($page eq 'pam');
foreach $func (keys(%FUNCTIONS)) {
$xref{$func} = 3;
@@ -530,8 +532,9 @@ The following return codes are defined by
.Re
.Sh AUTHORS
The OpenPAM library and this manual page were developed for the
-FreeBSD Project by ThinkSec AS and Network Associates Laboratories,
-the Security Research Division of Network Associates, Inc. under
+.Fx
+Project by ThinkSec AS and Network Associates Laboratories, the
+Security Research Division of Network Associates, Inc. under
DARPA/SPAWAR contract N66001-01-C-8035
.Pq Dq CBOSS ,
as part of the DARPA CHATS research program.
@@ -550,6 +553,7 @@ MAIN:{
usage()
unless (@ARGV && getopts("op", \%opts));
+ setlocale(LC_ALL, "en_US.ISO8859-1");
$TODAY = strftime("%B %e, %Y", localtime(time()));
$TODAY =~ s,\s+, ,g;
if ($opts{'o'} || $opts{'p'}) {
OpenPOWER on IntegriCloud