Date: Fri, 19 Apr 2002 10:33:10 -0500 From: "Jacques A. Vidrine" <nectar@FreeBSD.org> To: Brian Somers <brian@freebsd-services.com> Cc: Robert Watson <rwatson@FreeBSD.org>, Garrett Wollman <wollman@lcs.mit.edu>, "M. Warner Losh" <imp@village.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_descrip.c kern_exec.c src/sys/sys filedesc.h Message-ID: <20020419153310.GD31829@madman.nectar.cc> In-Reply-To: <200204191445.g3JEjXSg095842@hak.lan.Awfulhak.org> References: <Pine.NEB.3.96L.1020419103914.64976x-100000@fledge.watson.org> <200204191445.g3JEjXSg095842@hak.lan.Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 19, 2002 at 03:45:33PM +0100, Brian Somers wrote: > The spec is dup(2). It's not documented in open(2), but people make > the assumption. It's not just an assumption. Stevens's APUE p49, in the description of `open': ``The file descriptor returned by open is guaranteed to be the lowest numbered unused descriptor.'' McKusick, et. al.'s daemon book, p34: ``The open, pipe, and socket system calls produce new descriptors with the lowest unused number usable for a descriptor.'' ISO/IEC 9945-1: 1996 ANSI/IEEE Std 1003.1, 1996 Edition, section 5.3.1.2: ``The open() function shall return a file descriptor for the named file that is the lowest file descriptor not currently open for that process.'' IEEE Std 1003.1-2001: ``The open() function shall return a file descriptor for the named file that is the lowest file descriptor not currently open for that process.'' et cetera -- Jacques A. Vidrine <n@nectar.cc> http://www.nectar.cc/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se 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?20020419153310.GD31829>