From: Jim Meyering Date: Fri, 21 Feb 2003 10:41:27 +0000 (+0000) Subject: Include "mmap-stack.h". X-Git-Tag: COREUTILS-4_5_8~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d34fabc8dbf9ec41b869ab11c0db0cf326db400;p=platform%2Fupstream%2Fcoreutils.git Include "mmap-stack.h". (main): Invoke `run' through a macro that (when possible) runs it with a large, mmap'd stack. --- diff --git a/src/cp.c b/src/cp.c index 9ae9f2a..3079cb4 100644 --- a/src/cp.c +++ b/src/cp.c @@ -32,8 +32,9 @@ #include "backupfile.h" #include "copy.h" #include "cp-hash.h" -#include "error.h" #include "dirname.h" +#include "error.h" +#include "mmap-stack.h" #include "path-concat.h" #include "quote.h" @@ -1066,5 +1067,6 @@ main (int argc, char **argv) if (x.unlink_dest_after_failed_open && (x.hard_link || x.symbolic_link)) x.unlink_dest_before_opening = 1; - run (argc - optind, argv + optind, target_directory, &x); + RUN_WITH_BIG_STACK_4 (run, argc - optind, argv + optind, + target_directory, &x); }