summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/sysctl.3
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-01-31 00:25:12 +0000
committermpp <mpp@FreeBSD.org>1997-01-31 00:25:12 +0000
commit1511fd26d00d731e1cae638fece10bbe433f8d41 (patch)
tree814283488e76e5535be719a162f78098a38ac080 /lib/libc/gen/sysctl.3
parent329d4e7056aa6e3a9edb41148e3476bac13b60c3 (diff)
downloadFreeBSD-src-1511fd26d00d731e1cae638fece10bbe433f8d41.zip
FreeBSD-src-1511fd26d00d731e1cae638fece10bbe433f8d41.tar.gz
Very minor mdoc cleanup.
Diffstat (limited to 'lib/libc/gen/sysctl.3')
-rw-r--r--lib/libc/gen/sysctl.38
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index b33bc44..36f91cc 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -130,22 +130,24 @@ listed here, and described in separate sections below.
.Pp
For example, the following retrieves the maximum number of processes allowed
in the system:
+.Pp
.Bd -literal -offset indent -compact
int mib[2], maxproc;
size_t len;
-.sp
+
mib[0] = CTL_KERN;
mib[1] = KERN_MAXPROC;
len = sizeof(maxproc);
sysctl(mib, 2, &maxproc, &len, NULL, 0);
.Ed
-.sp
+.Pp
To retrieve the standard search path for the system utilities:
+.Pp
.Bd -literal -offset indent -compact
int mib[2];
size_t len;
char *p;
-.sp
+
mib[0] = CTL_USER;
mib[1] = USER_CS_PATH;
sysctl(mib, 2, NULL, &len, NULL, 0);
OpenPOWER on IntegriCloud