Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2001 14:30:31 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Matt Dillon <dillon@earth.backplane.com>
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>
In-Reply-To: <200109260908.f8Q98Pm11521@earth.backplane.com>; from dillon@earth.backplane.com on Wed, Sep 26, 2001 at 02:08:25AM -0700
References:  <200109150039.f8F0dFZ41705@freefall.freebsd.org> <20010925211639.C57333@sunbay.com> <200109251909.f8PJ9eJ03402@earth.backplane.com> <20010926115717.E29020@sunbay.com> <200109260908.f8Q98Pm11521@earth.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010926143031.A51837>