diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1997-01-31 00:25:12 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1997-01-31 00:25:12 +0000 |
| commit | c492ccdb9a6701df2ce87c5305d82d73e17d5865 (patch) | |
| tree | 814283488e76e5535be719a162f78098a38ac080 /lib/libc/gen/sysctl.3 | |
| parent | bba323e822c538e2bd6d1d17337e335cd91b8281 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/sysctl.3')
| -rw-r--r-- | lib/libc/gen/sysctl.3 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3 index b33bc447a6d1..36f91cc4469d 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); |
