summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2010-09-19 22:22:13 +0000
committerjmc <jmc@openbsd.org>2010-09-19 22:22:13 +0000
commit05299c440d9b87760628bf024fcb1f9b55368f41 (patch)
tree63bcc83017971fe50fe8a97c5f3a5ad3aa10bd28 /lib/libc
parentmore wacky macro fixing; (diff)
downloadwireguard-openbsd-05299c440d9b87760628bf024fcb1f9b55368f41.tar.xz
wireguard-openbsd-05299c440d9b87760628bf024fcb1f9b55368f41.zip
more wacky macro fixing;
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/getloadavg.36
-rw-r--r--lib/libc/stdlib/getopt_long.374
2 files changed, 40 insertions, 40 deletions
diff --git a/lib/libc/gen/getloadavg.3 b/lib/libc/gen/getloadavg.3
index 9e689297620..a19825115af 100644
--- a/lib/libc/gen/getloadavg.3
+++ b/lib/libc/gen/getloadavg.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getloadavg.3,v 1.10 2007/05/31 19:19:28 jmc Exp $
+.\" $OpenBSD: getloadavg.3,v 1.11 2010/09/19 22:22:13 jmc Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: September 19 2010 $
.Dt GETLOADAVG 3
.Os
.Sh NAME
@@ -45,7 +45,7 @@ averaged over various periods of time.
Up to
.Fa nelem
samples are retrieved and assigned to successive elements of
-.Fa loadavg Ns Bq .
+.Fa loadavg Ns \(sq .
The system imposes a maximum of 3 samples, representing averages
over the last 1, 5, and 15 minutes, respectively.
.Sh RETURN VALUES
diff --git a/lib/libc/stdlib/getopt_long.3 b/lib/libc/stdlib/getopt_long.3
index 2bab9637341..53737d8f257 100644
--- a/lib/libc/stdlib/getopt_long.3
+++ b/lib/libc/stdlib/getopt_long.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getopt_long.3,v 1.15 2007/07/03 12:06:07 jmc Exp $
+.\" $OpenBSD: getopt_long.3,v 1.16 2010/09/19 22:22:13 jmc Exp $
.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getopt.3 8.5 (Berkeley) 4/27/95
.\"
-.Dd $Mdocdate: July 3 2007 $
+.Dd $Mdocdate: September 19 2010 $
.Dt GETOPT_LONG 3
.Os
.Sh NAME
@@ -204,41 +204,6 @@ if there was a missing option argument,
.Sq \&?
if the user specified an unknown or ambiguous option, and
\-1 when the argument list has been exhausted.
-.Sh EXAMPLES
-.Bd -literal
-int bflag, ch, fd;
-int daggerset;
-
-/* options descriptor */
-static struct option longopts[] = {
- { "buffy", no_argument, NULL, 'b' },
- { "fluoride", required_argument, NULL, 'f' },
- { "daggerset", no_argument, &daggerset, 1 },
- { NULL, 0, NULL, 0 }
-};
-
-bflag = 0;
-while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1)
- switch (ch) {
- case 'b':
- bflag = 1;
- break;
- case 'f':
- if ((fd = open(optarg, O_RDONLY, 0)) == -1)
- err(1, "unable to open %s", optarg);
- break;
- case 0:
- if (daggerset)
- fprintf(stderr, "Buffy will use her dagger to "
- "apply fluoride to dracula's teeth\en");
- break;
- default:
- usage();
- /* NOTREACHED */
- }
-argc -= optind;
-argv += optind;
-.Ed
.Sh IMPLEMENTATION DIFFERENCES
This section describes differences to the GNU implementation
found in glibc-2.1.3:
@@ -444,6 +409,41 @@ in the
.Ar optstring
is ignored.
.El
+.Sh EXAMPLES
+.Bd -literal
+int bflag, ch, fd;
+int daggerset;
+
+/* options descriptor */
+static struct option longopts[] = {
+ { "buffy", no_argument, NULL, 'b' },
+ { "fluoride", required_argument, NULL, 'f' },
+ { "daggerset", no_argument, &daggerset, 1 },
+ { NULL, 0, NULL, 0 }
+};
+
+bflag = 0;
+while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1)
+ switch (ch) {
+ case 'b':
+ bflag = 1;
+ break;
+ case 'f':
+ if ((fd = open(optarg, O_RDONLY, 0)) == -1)
+ err(1, "unable to open %s", optarg);
+ break;
+ case 0:
+ if (daggerset)
+ fprintf(stderr, "Buffy will use her dagger to "
+ "apply fluoride to dracula's teeth\en");
+ break;
+ default:
+ usage();
+ /* NOTREACHED */
+ }
+argc -= optind;
+argv += optind;
+.Ed
.Sh SEE ALSO
.Xr getopt 3
.Sh HISTORY