Browse Source

Reduce instances of `` '' in manuals.

troff displays these as typographic quotes, but nroff implementations
almost always print them literally, which rarely has the intended effect
with modern fonts, even in stock xterm.
These uses of `` '' can be replaced either with more semantic alternatives
or with Dq, which prints typographic quotes in a UTF-8 locale (but will
automatically fall back to `` '' in an ASCII locale).
improvements and ok schwarze@
OPENBSD_5_7
bentley 10 years ago
parent
commit
33d56bef5a
3 changed files with 15 additions and 12 deletions
  1. +3
    -3
      src/lib/libc/hash/md5.3
  2. +7
    -4
      src/lib/libc/hash/rmd160.3
  3. +5
    -5
      src/lib/libc/stdlib/getsubopt.3

+ 3
- 3
src/lib/libc/hash/md5.3 View File

@ -16,9 +16,9 @@
.\" If we meet some day, and you think this stuff is worth it, you .\" If we meet some day, and you think this stuff is worth it, you
.\" can buy me a beer in return. Poul-Henning Kamp .\" can buy me a beer in return. Poul-Henning Kamp
.\" .\"
.\" $OpenBSD: md5.3,v 1.2 2014/04/03 15:55:29 beck Exp $
.\" $OpenBSD: md5.3,v 1.3 2014/11/15 14:41:02 bentley Exp $
.\" .\"
.Dd $Mdocdate: April 3 2014 $
.Dd $Mdocdate: November 15 2014 $
.Dt MD5 3 .Dt MD5 3
.Os .Os
.Sh NAME .Sh NAME
@ -31,7 +31,7 @@
.Nm MD5File , .Nm MD5File ,
.Nm MD5FileChunk , .Nm MD5FileChunk ,
.Nm MD5Data .Nm MD5Data
.Nd calculate the RSA Data Security, Inc., ``MD5'' message digest
.Nd calculate the RSA Data Security, Inc., MD5 message digest
.Sh SYNOPSIS .Sh SYNOPSIS
.In sys/types.h .In sys/types.h
.In md5.h .In md5.h


+ 7
- 4
src/lib/libc/hash/rmd160.3 View File

@ -1,4 +1,4 @@
.\" $OpenBSD: rmd160.3,v 1.32 2014/03/23 23:27:22 naddy Exp $
.\" $OpenBSD: rmd160.3,v 1.33 2014/11/15 14:41:02 bentley Exp $
.\" .\"
.\" Copyright (c) 1997, 2004 Todd C. Miller <Todd.Miller@courtesan.com> .\" Copyright (c) 1997, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
.\" .\"
@ -17,7 +17,7 @@
.\" See http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html .\" See http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html
.\" for detailed information about RIPEMD-160. .\" for detailed information about RIPEMD-160.
.\" .\"
.Dd $Mdocdate: March 23 2014 $
.Dd $Mdocdate: November 15 2014 $
.Dt RMD160 3 .Dt RMD160 3
.Os .Os
.Sh NAME .Sh NAME
@ -30,7 +30,7 @@
.Nm RMD160File , .Nm RMD160File ,
.Nm RMD160FileChunk , .Nm RMD160FileChunk ,
.Nm RMD160Data .Nm RMD160Data
.Nd calculate the ``RIPEMD-160'' message digest
.Nd calculate the RIPEMD-160 message digest
.Sh SYNOPSIS .Sh SYNOPSIS
.In sys/types.h .In sys/types.h
.In rmd160.h .In rmd160.h
@ -167,7 +167,10 @@ and should be freed using
when it is no longer needed. when it is no longer needed.
.Sh EXAMPLES .Sh EXAMPLES
The follow code fragment will calculate the digest for The follow code fragment will calculate the digest for
the string "abc" which is ``0x8eb208f7e05d987a9b044a8e98c6b087f15a0bfc''.
the string
.Dq abc
which is
.Dq 0x8eb208f7e05d987a9b044a8e98c6b087f15a0bfc .
.Bd -literal -offset indent .Bd -literal -offset indent
RMD160_CTX rmd; RMD160_CTX rmd;
u_int8_t results[RMD160_DIGEST_LENGTH]; u_int8_t results[RMD160_DIGEST_LENGTH];


+ 5
- 5
src/lib/libc/stdlib/getsubopt.3 View File

@ -1,4 +1,4 @@
.\" $OpenBSD: getsubopt.3,v 1.13 2013/06/05 03:39:23 tedu Exp $
.\" $OpenBSD: getsubopt.3,v 1.14 2014/11/15 14:41:02 bentley Exp $
.\" .\"
.\" Copyright (c) 1990, 1991, 1993 .\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\" .\"
.\" @(#)getsubopt.3 8.1 (Berkeley) 6/9/93 .\" @(#)getsubopt.3 8.1 (Berkeley) 6/9/93
.\" .\"
.Dd $Mdocdate: June 5 2013 $
.Dd $Mdocdate: November 15 2014 $
.Dt GETSUBOPT 3 .Dt GETSUBOPT 3
.Os .Os
.Sh NAME .Sh NAME
@ -107,17 +107,17 @@ char *options, *value;
while ((ch = getopt(argc, argv, "ab:")) != -1) { while ((ch = getopt(argc, argv, "ab:")) != -1) {
switch (ch) { switch (ch) {
case 'a': case 'a':
/* process ``a'' option */
/* process "a" option */
break; break;
case 'b': case 'b':
options = optarg; options = optarg;
while (*options) { while (*options) {
switch (getsubopt(&options, tokens, &value)) { switch (getsubopt(&options, tokens, &value)) {
case ONE: case ONE:
/* process ``one'' sub option */
/* process "one" sub option */
break; break;
case TWO: case TWO:
/* process ``two'' sub option */
/* process "two" sub option */
if (!value) if (!value)
error("no value for two"); error("no value for two");
i = atoi(value); i = atoi(value);


Loading…
Cancel
Save