Re: File descriptor

From: Richard Kershaw <Richard.Kershaw@dont-contact.us>
Date: Mon, 28 Feb 2000 12:04:35 +1100

On Thu, Feb 24, 2000 at 05:46:19PM +0100, Plak, Peter wrote:
> Thanks, Jonathan Fortin,
>
> I have tried five times to change the NR_OPEN setting in some head files
> like fs.h & limits.h. And I also use "make menuconfig" to change the
> file
> descriptor(in "General setting"). But it seems nothing can affect
> limited
> 1024 open files.
> Of course, I'll find what the matter is. Let's work together.(In fact,
> I'm not
> so familiar with Linux Kernel, :))

/usr/include/linux/limit.h
        NR_OPEN
        OPEN_MAX
/usr/include/linux/fs.h
        INR_OPEN
/usr/include/bin/types.h
        __FD_SETSIZE
/usr/include/linux/posix_types.h
        __FD_SETSIZE

As far as I can tell, the above values set the file descriptor
limits. (At least for REDHAT 6.0 + 6.1).

If you change the above then recompile, you should be fine.

Richard Kershaw
Web Server Administrator
Monash University, Australia
Received on Sun Feb 27 2000 - 18:11:21 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:51:36 MST