Thread View: comp.sys.unix.programmer
2 messages
2 total messages
Started by Jason Rosenberg
Tue, 01 Nov 1994 00:14
Number of Open Files
Author: 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
Re: Number of Open Files
Author: Jason Merrill
Date: Tue, 01 Nov 1994 02:46
Date: Tue, 01 Nov 1994 02:46
12 lines
1442 bytes
1442 bytes
>>>>> Jason Rosenberg <jason@lanai.cs.ucla.edu> writes: > 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)? Usually this number is set at kernel config time. Jason
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads