Article View: comp.sys.unix.programmer
Article #1Number of Open Files
From: Jason Rosenberg
Date: Tue, 01 Nov 1994 00:14
Date: Tue, 01 Nov 1994 00:14
23 lines
1807 bytes
1807 bytes
Hello, I am wondering how to test the number of open
files within a process. Is there an appropriate system
call? Also, is there a similar apparatus for testing
the maximum allowable? Is this maximum configurable
at run time or at compile time (or is something that is
set when the kernel of the OS is built)? Also, is there
a difference between sockets, streams (FILE*), and regular
file descriptors, or do they all go into the same pool
of available descriptors?
Through debugging, I seem to have figured out the current
max is 64 within my environment. (fopen fails at this
point).
I am using currently SunOs 4.1.3, and am using the
gcc (g++). But I am interested in general info, of
course, as I will expect to be porting to other platforms.
Jason
--
Jason Rosenberg Computer Science Department
jason@cs.ucla.edu University of California
Los Angeles, CA 90024
Technical Details
Message-ID:
<39419v$ul@lanai.cs.ucla.edu>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!library.ucla.edu!delphi.cs.ucla.edu!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,207172a9e9671f1,start X-Google-Attributes: gid11318c,public X-Google-Thread: 10ba33,207172a9e9671f1,start X-Google-Attributes: gid10ba33,public X-Google-Thread: 11f540,207172a9e9671f1,start X-Google-Attributes: gid11f540,public X-Google-ArrivalTime: 1994-10-31 18:00:17 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!library.ucla.edu!delphi.cs.ucla.edu!not-for-mail From: jason@lanai.cs.ucla.edu (Jason Rosenberg) Newsgroups: comp.sys.unix.programmer,gnu.gcc.help,gnu.g++.help Subject: Number of Open Files Date: 31 Oct 1994 16:14:55 -0800 Organization: UCLA, Computer Science Department Lines: 23 Distribution: world Message-ID: <39419v$ul@lanai.cs.ucla.edu> NNTP-Posting-Host: lanai.cs.ucla.edu