Xref: utzoo comp.lang.c:12452 comp.unix.questions:9150 Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!cornell!uw-beaver!teknowledge-vaxc!mkhaw From: mkhaw@teknowledge-vaxc.ARPA (Mike Khaw) Newsgroups: comp.lang.c,comp.unix.questions Subject: how many file descriptors? Message-ID: <24889@teknowledge-vaxc.ARPA> Date: 10 Sep 88 01:42:29 GMT Reply-To: mkhaw@teknowledge-vaxc.UUCP (Mike Khaw) Organization: Teknowledge, Inc., Palo Alto CA Lines: 13 How can a SunView program tell how many file descriptors it has in use, especially if it opens&closes /dev/fb several times and creates&destroys frames several times while it's running? I have a SunView program that uses many frames and I want to be able to check that I won't exceed my per-process file descriptor limit (30 in SunOS 3.x) before creating a new frame. Thanks, Mike Khaw -- internet: mkhaw@teknowledge.arpa uucp: {uunet|sun|ucbvax|decwrl|uw-beaver}!mkhaw%teknowledge.arpa hardcopy: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303