Skip site navigation (1)Skip section navigation (2)
Date:      15 Oct 1999 14:12:08 +0200
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Determine # of open files via fdesc
Message-ID:  <xzpd7ugvn53.fsf@flood.ping.uio.no>
In-Reply-To: Dag-Erling Smorgrav's message of "15 Oct 1999 14:09:47 %2B0200"
References:  <Pine.GSO.3.96.991014164954.3631B-100000@sol.cs.binghamton.edu> <xzpg0zcvn90.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav <des@flood.ping.uio.no> 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




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