From owner-cvs-all Wed Sep 26 4:32: 6 2001 Delivered-To: cvs-all@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 5CB0D37B42F; Wed, 26 Sep 2001 04:31:57 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f8QBUVf64814; Wed, 26 Sep 2001 14:30:31 +0300 (EEST) (envelope-from ru) Date: Wed, 26 Sep 2001 14:30:31 +0300 From: Ruslan Ermilov To: Matt Dillon Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/bin/cat cat.1 cat.c Message-ID: <20010926143031.A51837@sunbay.com> References: <200109150039.f8F0dFZ41705@freefall.freebsd.org> <20010925211639.C57333@sunbay.com> <200109251909.f8PJ9eJ03402@earth.backplane.com> <20010926115717.E29020@sunbay.com> <200109260908.f8Q98Pm11521@earth.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200109260908.f8Q98Pm11521@earth.backplane.com>; from dillon@earth.backplane.com on Wed, Sep 26, 2001 at 02:08:25AM -0700 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Sep 26, 2001 at 02:08:25AM -0700, Matt Dillon wrote: [...] > > Yes, and.... so what? I never said it would be. The point is to > simply minimize the number of unnecessary system calls for the common > case. There is no need to stat() the file, you simply try to open() it. > 99.9999% of the paths used with cat are simple files. There is no need > to check whether it's a socket; if the open fails with a specific > errno you simply try to connect() to it. If it isn't a socket, the > connect() will fail. There is no need for anything more sophisticated. > OK, just forget it. This was a minor issue. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message