www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <492C1512.9020706@draigBrady.com> |
Date: | Tue, 25 Nov 2008 15:09:06 +0000 |
From: | =?ISO-8859-1?Q?P=E1draig_Brady?= <P AT draigBrady DOT com> |
User-Agent: | Thunderbird 2.0.0.6 (X11/20071008) |
MIME-Version: | 1.0 |
To: | Jim Meyering <jim AT meyering DOT net> |
CC: | Eric Blake <ebb9 AT byu DOT net>, cygwin AT cygwin DOT com, |
bug-coreutils <bug-coreutils AT gnu DOT org> | |
Subject: | Re: "du -b --files0-from=-" running out of memory |
References: | <nacii4p76633jbufvfoj4qjesrph05rjga AT 4ax DOT com> <49296551 DOT 4010801 AT byu DOT net> <87bpw5a5tp DOT fsf AT rho DOT meyering DOT net> <874p1v52od DOT fsf AT rho DOT meyering DOT net> |
In-Reply-To: | <874p1v52od.fsf@rho.meyering.net> |
x-MXSweep-CtasdSpam: | Unknown |
x-MXSweep-CtasdVirus: | Unknown |
x-MXSweep-KeywordsCount: | 0 |
x-MXPurifier-SpamScore: | 0 |
x-MXPurifier-VirusScore: | 0 |
X-MXSweep-Threat: | Clean |
X-MXUniqueID: | 9f02e270-5b70-437d-96c1-d1731565e970 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id mAPFAFN2020250 |
Jim Meyering wrote: > Subject: [PATCH 1/2] argv-iter: new module > > * gl/lib/argv-iter.h: New file. > * gl/lib/argv-iter.c: New file. > * gl/modules/argv-iter: New file. Very useful module! I see that --files0-from was added to `du` in Mar 2004, so it's a nice solution to this 4 year old issue. I notice that argv_iter does a malloc() + memcpy() per entry. Since the sources are already NUL terminated strings perhaps it could just return a pointer to a getdelim realloc'd buffer which was referenced in the argv_iterator struct. cheers, Pádraig. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |