From owner-freebsd-current@FreeBSD.ORG Fri Sep 1 21:08:06 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 538A316A4DA for ; Fri, 1 Sep 2006 21:08:06 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp8.server.rpi.edu (smtp8.server.rpi.edu [128.113.2.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id D485043D5A for ; Fri, 1 Sep 2006 21:08:05 +0000 (GMT) (envelope-from gad@FreeBSD.org) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp8.server.rpi.edu (8.13.1/8.13.1) with ESMTP id k81L82Zu023762; Fri, 1 Sep 2006 17:08:03 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <44F892AE.8040409@elischer.org> References: <200609011707.k81H7Ych050627@lurza.secnetix.de> <44F892AE.8040409@elischer.org> Date: Fri, 1 Sep 2006 17:08:02 -0400 To: Julian Elischer , Oliver Fromme From: Garance A Drosehn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) Cc: freebsd-current@FreeBSD.org Subject: Re: suggested addition to 'date' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 21:08:06 -0000 At 1:06 PM -0700 9/1/06, Julian Elischer wrote: >Oliver Fromme wrote: > >>Julian Elischer wrote: >> >>> What is the effective maximum line length for a single fgetln? >> >>It's unlimited. fgetln() allocates sufficient amount of >>memory dynamically, that's why I used it instead of fgets(). >>It avoids reinventing the wheel. >> > >NOTHING is unlimitted. >what happens with a 3GB sequence of characters with no newlines? This is exactly the type of question that we already know is answered in 'cat', because the 'cat' command is already acting as a filter. It already has acceptable behavior with large files, and with I/O errors, etc. I think some kind of date-prefixing option would be a good idea in the 'cat' command. I am not objecting to the option, I'm just saying that the option seems more appropriate for the 'cat' command. -- Garance Alistair Drosehn = drosehn@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA