From owner-freebsd-arch Fri Jul 27 5:30:24 2001 Delivered-To: freebsd-arch@freebsd.org Received: from assaris.sics.se (assaris.sics.se [193.10.66.234]) by hub.freebsd.org (Postfix) with ESMTP id 7798837B403 for ; Fri, 27 Jul 2001 05:30:21 -0700 (PDT) (envelope-from assar@assaris.sics.se) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id OAA52708; Fri, 27 Jul 2001 14:30:10 +0200 (CEST) (envelope-from assar) To: Mike Heffner Cc: arch@FreeBSD.ORG Subject: Re: Making glob(3) portable (was Re: Importing lukemftpd) References: From: Assar Westerlund Date: 27 Jul 2001 14:30:10 +0200 In-Reply-To: Mike Heffner's message of "Wed, 25 Jul 2001 22:45:18 -0400 (EDT)" Message-ID: <5lr8v2mu5p.fsf@assaris.sics.se> Lines: 17 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Heffner writes: > On 25-Jul-2001 Assar Westerlund wrote: > | Mike Heffner writes: > | > |> IMO, removing GLOB_LIMITHIT, or whatever, and just using GLOB_NOSPACE with > |> errno=0 would be the first step in the direction of portability. > | > | Sure, we can do that. > > How's the following patch look: Ok, except I don't really like this errno part. I think it's bad using errno as a substitute for different error codes from glob() and it's not really going to be portable either, is it? Does the others set errno = 0 if the limit is reached? /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message