Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/coreutils/dd.c

    r2725 r3232  
    88 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    99 */
     10
     11//usage:#define dd_trivial_usage
     12//usage:       "[if=FILE] [of=FILE] " IF_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n"
     13//usage:       "    [seek=N]" IF_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync|fsync]")
     14//usage:#define dd_full_usage "\n\n"
     15//usage:       "Copy a file with converting and formatting\n"
     16//usage:     "\n    if=FILE     Read from FILE instead of stdin"
     17//usage:     "\n    of=FILE     Write to FILE instead of stdout"
     18//usage:     "\n    bs=N        Read and write N bytes at a time"
     19//usage:    IF_FEATURE_DD_IBS_OBS(
     20//usage:     "\n    ibs=N       Read N bytes at a time"
     21//usage:    )
     22//usage:    IF_FEATURE_DD_IBS_OBS(
     23//usage:     "\n    obs=N       Write N bytes at a time"
     24//usage:    )
     25//usage:     "\n    count=N     Copy only N input blocks"
     26//usage:     "\n    skip=N      Skip N input blocks"
     27//usage:     "\n    seek=N      Skip N output blocks"
     28//usage:    IF_FEATURE_DD_IBS_OBS(
     29//usage:     "\n    conv=notrunc    Don't truncate output file"
     30//usage:     "\n    conv=noerror    Continue after read errors"
     31//usage:     "\n    conv=sync   Pad blocks with zeros"
     32//usage:     "\n    conv=fsync  Physically write data out before finishing"
     33//usage:    )
     34//usage:     "\n"
     35//usage:     "\nNumbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),"
     36//usage:     "\nMD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)"
     37//usage:
     38//usage:#define dd_example_usage
     39//usage:       "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n"
     40//usage:       "4+0 records in\n"
     41//usage:       "4+0 records out\n"
    1042
    1143#include "libbb.h"
     
    398430    dd_output_status(0);
    399431
     432    if (ENABLE_FEATURE_CLEAN_UP) {
     433        free(obuf);
     434        if (flags & FLAG_TWOBUFS)
     435            free(ibuf);
     436    }
     437
    400438    return exitcode;
    401439}
Note: See TracChangeset for help on using the changeset viewer.