busybox: update to version 1.25.0
[openwrt/staging/rmilecki.git] / package / utils / busybox / config / coreutils / Config.in
index c00eca9534813665479250fec20a00b4bf3aa0bd..ec5611bdfda8db217fd22a5874bd66a907837816 100644 (file)
@@ -58,6 +58,50 @@ config BUSYBOX_CONFIG_FEATURE_DATE_COMPAT
          With this option off, 'date DATE' is 'date -s DATE' support
          the same format. With it on, 'date DATE' additionally supports
          MMDDhhmm[[YY]YY][.ss] format.
+config BUSYBOX_CONFIG_DD
+       bool "dd"
+       default BUSYBOX_DEFAULT_DD
+       help
+         dd copies a file (from standard input to standard output,
+         by default) using specific input and output blocksizes,
+         while optionally performing conversions on it.
+
+config BUSYBOX_CONFIG_FEATURE_DD_SIGNAL_HANDLING
+       bool "Enable signal handling for status reporting"
+       default BUSYBOX_DEFAULT_FEATURE_DD_SIGNAL_HANDLING
+       depends on BUSYBOX_CONFIG_DD
+       help
+         Sending a SIGUSR1 signal to a running `dd' process makes it
+         print to standard error the number of records read and written
+         so far, then to resume copying.
+
+         $ dd if=/dev/zero of=/dev/null &
+         $ pid=$!; kill -USR1 $pid; sleep 1; kill $pid
+         10899206+0 records in
+         10899206+0 records out
+
+config BUSYBOX_CONFIG_FEATURE_DD_THIRD_STATUS_LINE
+       bool "Enable the third status line upon signal"
+       default BUSYBOX_DEFAULT_FEATURE_DD_THIRD_STATUS_LINE
+       depends on BUSYBOX_CONFIG_DD && BUSYBOX_CONFIG_FEATURE_DD_SIGNAL_HANDLING
+       help
+         Displays a coreutils-like third status line with transferred bytes,
+         elapsed time and speed.
+
+config BUSYBOX_CONFIG_FEATURE_DD_IBS_OBS
+       bool "Enable ibs, obs and conv options"
+       default BUSYBOX_DEFAULT_FEATURE_DD_IBS_OBS
+       depends on BUSYBOX_CONFIG_DD
+       help
+         Enables support for writing a certain number of bytes in and out,
+         at a time, and performing conversions on the data stream.
+
+config BUSYBOX_CONFIG_FEATURE_DD_STATUS
+       bool "Enable status display options"
+       default BUSYBOX_DEFAULT_FEATURE_DD_STATUS
+       depends on BUSYBOX_CONFIG_DD
+       help
+         Enables support for status=noxfer/none option.
 config BUSYBOX_CONFIG_HOSTID
        bool "hostid"
        default BUSYBOX_DEFAULT_HOSTID
@@ -74,6 +118,46 @@ config BUSYBOX_CONFIG_GROUPS
        default BUSYBOX_DEFAULT_GROUPS
        help
          Print the group names associated with current user id.
+config BUSYBOX_CONFIG_SHUF
+       bool "shuf"
+       default BUSYBOX_DEFAULT_SHUF
+       help
+         Generate random permutations
+config BUSYBOX_CONFIG_STAT
+       bool "stat"
+       default BUSYBOX_DEFAULT_STAT
+       help
+         display file or filesystem status.
+
+config BUSYBOX_CONFIG_FEATURE_STAT_FORMAT
+       bool "Enable custom formats (-c)"
+       default BUSYBOX_DEFAULT_FEATURE_STAT_FORMAT
+       depends on BUSYBOX_CONFIG_STAT
+       help
+         Without this, stat will not support the '-c format' option where
+         users can pass a custom format string for output. This adds about
+         7k to a nonstatic build on amd64.
+
+config BUSYBOX_CONFIG_FEATURE_STAT_FILESYSTEM
+       bool "Enable display of filesystem status (-f)"
+       default BUSYBOX_DEFAULT_FEATURE_STAT_FILESYSTEM
+       depends on BUSYBOX_CONFIG_STAT
+       select BUSYBOX_CONFIG_PLATFORM_LINUX # statfs()
+       help
+         Without this, stat will not support the '-f' option to display
+         information about filesystem status.
+config BUSYBOX_CONFIG_SYNC
+       bool "sync"
+       default BUSYBOX_DEFAULT_SYNC
+       help
+         sync is used to flush filesystem buffers.
+config BUSYBOX_CONFIG_FEATURE_SYNC_FANCY
+       bool "Enable -d and -f flags (requres syncfs(2) in libc)"
+       default BUSYBOX_DEFAULT_FEATURE_SYNC_FANCY
+       depends on BUSYBOX_CONFIG_SYNC
+       help
+         sync -d FILE... executes fdatasync() on each FILE.
+         sync -f FILE... executes syncfs() on each FILE.
 config BUSYBOX_CONFIG_TEST
        bool "test"
        default BUSYBOX_DEFAULT_TEST
@@ -134,6 +218,17 @@ config BUSYBOX_CONFIG_FEATURE_TR_EQUIV
          replace all instances of 'a' with 'xyz'. This option is mainly
          useful for cases when no other way of expressing a character
          is possible.
+config BUSYBOX_CONFIG_TRUNCATE
+       bool "truncate"
+       default BUSYBOX_DEFAULT_TRUNCATE
+       help
+         truncate truncates files to a given size. If a file does
+         not exist, it is created unless told otherwise.
+config BUSYBOX_CONFIG_UNLINK
+       bool "unlink"
+       default BUSYBOX_DEFAULT_UNLINK
+       help
+         unlink deletes a file by calling unlink()
 config BUSYBOX_CONFIG_BASE64
        bool "base64"
        default BUSYBOX_DEFAULT_BASE64
@@ -156,7 +251,7 @@ config BUSYBOX_CONFIG_CAL
        bool "cal"
        default BUSYBOX_DEFAULT_CAL
        help
-         cal is used to display a monthly calender.
+         cal is used to display a monthly calendar.
 
 config BUSYBOX_CONFIG_CATV
        bool "catv"
@@ -232,44 +327,6 @@ config BUSYBOX_CONFIG_CUT
          cut is used to print selected parts of lines from
          each file to stdout.
 
-config BUSYBOX_CONFIG_DD
-       bool "dd"
-       default BUSYBOX_DEFAULT_DD
-       help
-         dd copies a file (from standard input to standard output,
-         by default) using specific input and output blocksizes,
-         while optionally performing conversions on it.
-
-config BUSYBOX_CONFIG_FEATURE_DD_SIGNAL_HANDLING
-       bool "Enable DD signal handling for status reporting"
-       default BUSYBOX_DEFAULT_FEATURE_DD_SIGNAL_HANDLING
-       depends on BUSYBOX_CONFIG_DD
-       help
-         Sending a SIGUSR1 signal to a running `dd' process makes it
-         print to standard error the number of records read and written
-         so far, then to resume copying.
-
-         $ dd if=/dev/zero of=/dev/null&
-         $ pid=$! kill -USR1 $pid; sleep 1; kill $pid
-         10899206+0 records in
-         10899206+0 records out
-
-config BUSYBOX_CONFIG_FEATURE_DD_THIRD_STATUS_LINE
-       bool "Enable the third status line upon signal"
-       default BUSYBOX_DEFAULT_FEATURE_DD_THIRD_STATUS_LINE
-       depends on BUSYBOX_CONFIG_DD && BUSYBOX_CONFIG_FEATURE_DD_SIGNAL_HANDLING
-       help
-         Displays a coreutils-like third status line with transferred bytes,
-         elapsed time and speed.
-
-config BUSYBOX_CONFIG_FEATURE_DD_IBS_OBS
-       bool "Enable ibs, obs and conv options"
-       default BUSYBOX_DEFAULT_FEATURE_DD_IBS_OBS
-       depends on BUSYBOX_CONFIG_DD
-       help
-         Enables support for writing a certain number of bytes in and out,
-         at a time, and performing conversions on the data stream.
-
 config BUSYBOX_CONFIG_DF
        bool "df"
        default BUSYBOX_DEFAULT_DF
@@ -726,22 +783,6 @@ config BUSYBOX_CONFIG_FEATURE_SPLIT_FANCY
          Supports additional suffixes 'b' for 512 bytes,
          'g' for 1GiB for the -b option.
 
-config BUSYBOX_CONFIG_STAT
-       bool "stat"
-       default BUSYBOX_DEFAULT_STAT
-       select BUSYBOX_CONFIG_PLATFORM_LINUX # statfs()
-       help
-         display file or filesystem status.
-
-config BUSYBOX_CONFIG_FEATURE_STAT_FORMAT
-       bool "Enable custom formats (-c)"
-       default BUSYBOX_DEFAULT_FEATURE_STAT_FORMAT
-       depends on BUSYBOX_CONFIG_STAT
-       help
-         Without this, stat will not support the '-c format' option where
-         users can pass a custom format string for output. This adds about
-         7k to a nonstatic build on amd64.
-
 config BUSYBOX_CONFIG_STTY
        bool "stty"
        default BUSYBOX_DEFAULT_STTY
@@ -754,12 +795,6 @@ config BUSYBOX_CONFIG_SUM
        help
          checksum and count the blocks in a file
 
-config BUSYBOX_CONFIG_SYNC
-       bool "sync"
-       default BUSYBOX_DEFAULT_SYNC
-       help
-         sync is used to flush filesystem buffers.
-
 config BUSYBOX_CONFIG_TAC
        bool "tac"
        default BUSYBOX_DEFAULT_TAC
@@ -778,12 +813,13 @@ config BUSYBOX_CONFIG_FEATURE_FANCY_TAIL
        default BUSYBOX_DEFAULT_FEATURE_FANCY_TAIL
        depends on BUSYBOX_CONFIG_TAIL
        help
-         The options (-q, -s, and -v) are provided by GNU tail, but
+         The options (-q, -s, -v and -F) are provided by GNU tail, but
          are not specific in the SUSv3 standard.
 
            -q      Never output headers giving file names
            -s SEC  Wait SEC seconds between reads with -f
            -v      Always output headers giving file names
+           -F      Same as -f, but keep retrying
 
 config BUSYBOX_CONFIG_TEE
        bool "tee"
@@ -818,6 +854,14 @@ config BUSYBOX_CONFIG_UNAME
        help
          uname is used to print system information.
 
+config BUSYBOX_CONFIG_UNAME_OSNAME
+       string "Operating system name"
+       default BUSYBOX_DEFAULT_UNAME_OSNAME
+       depends on BUSYBOX_CONFIG_UNAME
+       help
+         Sets the operating system name reported by uname -o.  The
+         default BUSYBOX_DEFAULT_UNAME_OSNAME "GNU/Linux".
+
 config BUSYBOX_CONFIG_UNEXPAND
        bool "unexpand"
        default BUSYBOX_DEFAULT_UNEXPAND
@@ -883,6 +927,16 @@ config BUSYBOX_CONFIG_YES
          yes is used to repeatedly output a specific string, or
          the default string `y'.
 
+comment "Common options"
+
+config BUSYBOX_CONFIG_FEATURE_VERBOSE
+       bool "Support verbose options (usually -v) for various applets"
+       default BUSYBOX_DEFAULT_FEATURE_VERBOSE
+       help
+         Enable cp -v, rm -v and similar messages.
+         Also enables long option (--verbose) if it exists.
+         Without this option, -v is accepted but ignored.
+
 comment "Common options for cp and mv"
        depends on BUSYBOX_CONFIG_CP || BUSYBOX_CONFIG_MV