aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Convert all coreutils/* applets to "new style" applet definitionsDenys Vlasenko2016-11-231-3/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cp: add -u/--update and --remove-destinationDenys Vlasenko2016-05-271-12/+18
| | | | | | | | | | | | | | | | | | | | Based on the patch by wdlkmpx@gmail.com function old new delta copy_file 1546 1644 +98 add_partition 1270 1362 +92 ask_and_unlink 95 133 +38 do_iproute 132 157 +25 decode_one_format 710 715 +5 cp_main 369 374 +5 ubirename_main 198 202 +4 read_package_field 232 230 -2 bb_make_directory 421 412 -9 packed_usage 30505 30476 -29 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 7/3 up/down: 267/-40) Total: 227 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add conditional support for -v / --verboseDenys Vlasenko2014-05-191-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With FEATURE_VERBOSE off, practically no size change. With it on: function old new delta remove_file 493 556 +63 install_main 719 765 +46 bb_make_directory 383 419 +36 rmdir_main 162 191 +29 copy_file 1516 1544 +28 mv_main 502 525 +23 cmp_main 677 693 +16 bbconfig_config_bz2 5264 5279 +15 mkdir_main 158 168 +10 install_longopts 66 76 +10 rm_main 167 175 +8 nexpr 840 846 +6 scan_tree 275 280 +5 fsck_main 1807 1811 +4 ed_main 2541 2545 +4 expand_one_var 1574 1575 +1 swap_on_off_main 420 418 -2 parse_command 1443 1440 -3 redirect 1279 1274 -5 do_load 946 918 -28 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 16/4 up/down: 304/-38) Total: 266 bytes Based on the patch by Igor Živković. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cp: trim help textDenys Vlasenko2012-03-051-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-051-1/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move help text from include/usage.src.h to coreutils/*.cPere Orga2011-03-311-0/+18
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cp: fix -H handlingDenys Vlasenko2010-01-151-10/+6
| | | | | | | function old new delta copy_file 1495 1518 +23 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cp: revert a recent buggy change, and add a comment why it's wrongDenys Vlasenko2009-10-081-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cp: add support for --parents and long option synonyms of short optsDenys Vlasenko2009-09-261-14/+52
| | | | | | | | | | | | | | By Ian Wienand (ianw AT vmware.com) function old new delta cp_main 257 369 +112 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 112/0) Total: 112 bytes text data bss dec hex filename 823000 458 6948 830406 cabc6 busybox_old 823283 458 6948 830689 cace1 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cd: "support" -v by ignoring itDenis Vlasenko2009-03-201-1/+49
|
* cp: fix "cp -RL" to create regular files even if src is a symlinkDenis Vlasenko2008-04-271-10/+12
|
* build system: use POSIX options only for cpDenis Vlasenko2008-04-111-1/+1
| | | | | cp: improve comment
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* cp: -r and -R imply -d (coreutils compat)Denis Vlasenko2007-09-251-1/+2
|
* *: kill bb_get_last_path_component, replace with two functionsDenis Vlasenko2007-09-241-1/+1
| | | | | | | | | (one which strips trailing slash and one which does not) wget: straighten out as a result of above change text data bss dec hex filename 5056 1 0 5057 13c1 busybox.t4/networking/wget.o 5022 0 0 5022 139e busybox.t5/networking/wget.o
* make copy_file() a bit easier to understand, and smallerDenis Vlasenko2007-08-251-1/+0
| | | | | | | | | | | function old new delta copy_file 1565 1447 -118 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-118) Total: -118 bytes text data bss dec hex filename 770938 1063 10788 782789 bf1c5 busybox_old 770814 1063 10788 782665 bf149 busybox_unstripped
* cp,mv: simpler arg[cv] handling -> smallish code savingsDenis Vlasenko2007-08-241-14/+16
|
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* libbb: nuke BB_GETOPT_ERROR, always die if there are mutually exclusive optionsDenis Vlasenko2007-07-211-1/+1
| | | | | | | | | | | | | | | | | | | | find_pair 164 180 +16 passwd_main 1222 1230 +8 display_speed 91 96 +5 msh_main 1335 1339 +4 qrealloc 38 36 -2 refresh 1190 1182 -8 cut_main 543 532 -11 sendCgi 1807 1794 -13 getopt32 1063 1045 -18 arith 2077 2030 -47 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/6 up/down: 33/-99) Total: -66 bytes text data bss dec hex filename 781548 1168 11900 794616 c1ff8 busybox_old 781452 1168 11900 794520 c1f98 busybox_unstripped
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* audit small applets and mark some of them as NOFORK.Denis Vlasenko2007-04-101-0/+3
| | | | | Put big scary warnings in relevant places.
* fix accumulated whitespace and indentation damageDenis Vlasenko2007-03-201-1/+1
|
* selinux support by Yuichi Nakamura <ynakam@hitachisoft.jp> (HitachiSoft)Denis Vlasenko2007-03-101-0/+7
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* cp: add support for -s, -l. Fix free(nonmalloc) bug.Denis Vlasenko2006-10-211-45/+27
| | | | | Add doc on POSIX's rules on -i and -f (insane!). ln: make "ln dangling_symlink new_link" work.
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-1/+1
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* whitespace cleanupDenis Vlasenko2006-09-171-1/+1
|
* - typos: s/compatability/compatibility/g;s/compatable/compatible/g;Bernhard Reutner-Fischer2006-04-021-1/+1
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* Fix cp /dev/null filename, and a few in-passing cleanups.Rob Landley2005-11-011-25/+2
|
* fake out support for POSIX -H and -L options since busybox cp dereferences ↵Mike Frysinger2005-04-141-5/+13
| | | | everything by default
* cp: make -P a synonym for -dMike Frysinger2005-01-071-1/+7
|
* Add the -r option as a synonym of -RGlenn L McGrath2004-01-251-1/+8
|
* Major coreutils update.Manuel Novoa III2003-03-191-66/+64
|
* Invert FILEUTILS_PRESERVE_SYMLINKS into FILEUTILS_DEREFERENCE.Matt Kraai2001-10-051-4/+4
|
* Use generic flag names.Matt Kraai2001-04-241-9/+9
|
* Rewrite cp and mv to be SUSv2 compliant.Matt Kraai2001-04-231-0/+114
|
* A few minor updates. ;-)Erik Andersen2000-02-071-127/+0
| | | | | | Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik
* Fix cp and mv so 'cp foo/README bar' where foo and bar are directories,Erik Andersen2000-01-081-1/+6
| | | | | and README is a file. -Erik
* Bunches of fixes. Typos, bugs, etc.Erik Andersen2000-01-041-1/+1
| | | | | | Added 'gunzip -t'. inittab support _almost_ works (but it isn't ready for prime time useage yet). -Erik
* Fixed mv so it now does the right thing (same method used in cp). RemovedErik Andersen1999-12-291-8/+1
| | | | | some cruft from cp. -Erik
* Fixed cp so it works as God intended it to.Erik Andersen1999-12-291-14/+26
| | | | -Erik
* StufEric Andersen1999-11-161-0/+2
|
* Updates to usage, and made tar work.Eric Andersen1999-11-101-1/+1
| | | | -Erik
* Fixed up copyright notices and suchEric Andersen1999-10-201-1/+3
|
* Added sfdisk. Ststic-ified a bunch of stuff.Eric Andersen1999-10-191-1/+1
|
* More stuff.Eric Andersen1999-10-181-4/+2
| | | | -Erik
* More fixesEric Andersen1999-10-181-4/+6
|
* Some fixes and suchEric Andersen1999-10-171-6/+8
|