From owner-freebsd-hackers Fri May 21 8:19:10 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from acl.lanl.gov (acl.lanl.gov [128.165.147.1]) by hub.freebsd.org (Postfix) with ESMTP id 1F54C14D4B for ; Fri, 21 May 1999 08:19:07 -0700 (PDT) (envelope-from rminnich@acl.lanl.gov) Received: from queen.acl.lanl.gov (rminnich@queen.acl.lanl.gov [128.165.147.181]) by acl.lanl.gov (8.8.8/8.8.5) with ESMTP id JAA203135 for ; Fri, 21 May 1999 09:19:06 -0600 (MDT) Received: from localhost (rminnich@localhost) by queen.acl.lanl.gov (8.8.7/8.8.8) with ESMTP id JAA15749 for ; Fri, 21 May 1999 09:19:06 -0600 X-Authentication-Warning: queen.acl.lanl.gov: rminnich owned process doing -bs Date: Fri, 21 May 1999 09:19:06 -0600 (MDT) From: "Ronald G. Minnich" To: freebsd-hackers@FreeBSD.ORG Subject: Re: open a file for read and write In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 21 May 1999, Zhihui Zhang wrote: > (1) Open the file as read and write, using one file descriptor. > (2) Open the file as read only and open it again as write only, using a > total of two file descriptors. > > Method (2) is more clear in logic and uses a little more resource (file you're using a factor of two more FDs for something that is less clear at least to me. "I don't care about a factor of 2, and neither do my 7 friends" ron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message