From owner-freebsd-hackers Fri Oct 15 5:12:13 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 6528515081 for ; Fri, 15 Oct 1999 05:12:10 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id OAA32380; Fri, 15 Oct 1999 14:12:08 +0200 (CEST) (envelope-from des) To: Zhihui Zhang Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Determine # of open files via fdesc References: From: Dag-Erling Smorgrav Date: 15 Oct 1999 14:12:08 +0200 In-Reply-To: Dag-Erling Smorgrav's message of "15 Oct 1999 14:09:47 +0200" Message-ID: Lines: 11 X-Mailer: Gnus v5.7/Emacs 20.4 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dag-Erling Smorgrav writes: > Each process only sees its own file descriptors. The five descriptors > you see above belong to ls. 0 (stdin) and 2 (stderr) are whichever tty > or pty you typed this into, 1 (stdout) is the file you redirected the > output from ls into, 3 is /dev and 4 is /dev/fd. OBTW, this is adequately documented in the fdesc(5) man page. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message