~ubuntu-branches/ubuntu/utopic/busybox/utopic

« back to all changes in this revision

Viewing changes to procps/sysctl.c

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2012-05-01 03:35:20 UTC
  • mfrom: (2.1.29 sid)
  • Revision ID: package-import@ubuntu.com-20120501033520-3nb8wjf4bp524txp
Tags: 1:1.19.3-7ubuntu1
* Merge from Debian unstable, remaining changes:
  - [udeb] Enable chvt, killall, losetup, NFS mount, od, ping, ping6, and
    stat.
  - [deb, static] Enable CGI support for httpd.
  - Enable 'mount -f' and mount helpers for all targets.
  - Add busybox-initramfs.
  - test-bin.patch: Move test and friends to /bin.
  - static-sh-alias.patch: Add static-sh alias name for ash, and install
    /bin/static-sh symlink to busybox in busybox-static.
  - debian/patches/fix-64-bit-permissions.patch: mkdir: fix permissions
    on 64-bit platforms.  Taken from upstream.
  - Filter out -Werror=format-security from CFLAGS passed by
    dpkg-buildpackage, at least for now.
* Dropped changes, included in Debian:
  - [deb] Enable mdev.
  - Add cross-compiling support.
* Disable NFS mount in the static build; needs a newer upstream version of
  busybox for compatibility with glibc 2.15.
* Set V=1 in debian/rules, to get more meaningful build logs.
* Export the dpkg-buildflags to the environment, so we pick up hardening
  now that dpkg doesn't export them for us.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 * v1.01.1 - busybox applet aware by <solar@gentoo.org>
12
12
 */
13
13
 
 
14
//usage:#define sysctl_trivial_usage
 
15
//usage:       "[OPTIONS] [VALUE]..."
 
16
//usage:#define sysctl_full_usage "\n\n"
 
17
//usage:       "Configure kernel parameters at runtime\n"
 
18
//usage:     "\n        -n      Don't print key names"
 
19
//usage:     "\n        -e      Don't warn about unknown keys"
 
20
//usage:     "\n        -w      Change sysctl setting"
 
21
//usage:     "\n        -p FILE Load sysctl settings from FILE (default /etc/sysctl.conf)"
 
22
//usage:     "\n        -a      Display all values"
 
23
//usage:     "\n        -A      Display all values in table form"
 
24
//usage:
 
25
//usage:#define sysctl_example_usage
 
26
//usage:       "sysctl [-n] [-e] variable...\n"
 
27
//usage:       "sysctl [-n] [-e] -w variable=value...\n"
 
28
//usage:       "sysctl [-n] [-e] -a\n"
 
29
//usage:       "sysctl [-n] [-e] -p file        (default /etc/sysctl.conf)\n"
 
30
//usage:       "sysctl [-n] [-e] -A\n"
 
31
 
14
32
#include "libbb.h"
15
33
 
16
34
enum {