Date: Fri, 21 May 1999 09:19:06 -0600 (MDT) From: "Ronald G. Minnich" <rminnich@acl.lanl.gov> To: freebsd-hackers@FreeBSD.ORG Subject: Re: open a file for read and write Message-ID: <Pine.LNX.4.10.9905210918120.15456-100000@queen.acl.lanl.gov> In-Reply-To: <Pine.GSO.3.96.990521110117.12277A-100000@sol.cs.binghamton.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.9905210918120.15456-100000>