/[packages]/cauldron/procps/current/SOURCES/procps-3.2.3-sysctlshutup.patch
ViewVC logotype

Contents of /cauldron/procps/current/SOURCES/procps-3.2.3-sysctlshutup.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download)
Fri Jan 7 23:44:59 2011 UTC (13 years, 3 months ago) by tmb
File size: 2006 byte(s)
imported package procps
1 --- ./sysctl.c.sysctl 2004-07-15 17:32:42.000000000 +0200
2 +++ ./sysctl.c 2004-08-12 17:49:08.894600421 +0200
3 @@ -38,6 +38,7 @@
4 typedef int bool;
5 static bool true = 1;
6 static bool false = 0;
7 +static int verbose;
8
9 /*
10 * Globals...
11 @@ -332,9 +333,10 @@
12 if (NameOnly) {
13 fprintf(stdout, "%s\n", outname);
14 } else {
15 - if (PrintName) {
16 + if (PrintName && verbose) {
17 fprintf(stdout, "%s = %s\n", outname, value);
18 } else {
19 + if (verbose)
20 if (PrintNewline)
21 fprintf(stdout, "%s\n", value);
22 else
23 @@ -464,6 +466,9 @@
24 SwitchesAllowed = false;
25 WriteMode = true;
26 break;
27 + case 'v':
28 + verbose++;
29 + break;
30 case 'f': // the NetBSD way
31 case 'p':
32 argv++;
33 --- ./sysctl.8.sysctl 2004-07-30 03:42:03.000000000 +0200
34 +++ ./sysctl.8 2004-08-12 17:50:42.203511780 +0200
35 @@ -10,15 +10,15 @@
36 .SH NAME
37 sysctl \- configure kernel parameters at runtime
38 .SH SYNOPSIS
39 -.B "sysctl [-n] [-e] variable ..."
40 +.B "sysctl [-v] [-e] variable ..."
41 .br
42 -.B "sysctl [-n] [-e] [-q] -w variable=value ..."
43 +.B "sysctl [-v] [-e] [-q] -w variable=value ..."
44 .br
45 -.B "sysctl [-n] [-e] [-q] -p <filename>"
46 +.B "sysctl [-v] [-e] [-q] -p <filename>"
47 .br
48 -.B "sysctl [-n] [-e] -a"
49 +.B "sysctl [-v] [-e] -a"
50 .br
51 -.B "sysctl [-n] [-e] -A"
52 +.B "sysctl [-v] [-e] -A"
53 .SH DESCRIPTION
54 .B sysctl
55 is used to modify kernel parameters at runtime. The parameters available
56 @@ -39,8 +39,9 @@
57 which are parsed by the shell, you may need to enclose the value in double
58 quotes. This requires the -w parameter to use.
59 .TP
60 -.B "-n"
61 -Use this option to disable printing of the key name when printing values.
62 +.B "-v"
63 +Use this option to enable printing of the key name when printing
64 +values (by default nothing is printed).
65 .TP
66 .B "-e"
67 Use this option to ignore errors about unknown keys.

  ViewVC Help
Powered by ViewVC 1.1.30