Thread (9 messages) 9 messages, 6 authors, 2011-07-26

no files can be opened in a C program

From: Dave Hylands <hidden>
Date: 2011-07-25 15:50:43

Hi Abhijit,

On Mon, Jul 25, 2011 at 6:35 AM, Abhijit Pawar [off-list ref] wrote:
On 07/25/2011 05:29 PM, Naveen Kumar wrote:

You can use command ulimit -a, there you can check the limit for a process.

Thanks,
Naveen

Ulimit gives 1024 as open file limit. In struct task_struct it has a member
called struct files_struct *files;

I tried checking for this member and the limit however I am? not able to
decide correctly why the limit is 1024.
?Also, is there any distinction between 32 bit and 64 bit systems for this
limit?
My 64-bit system reports 1024 as well.

I have no troubles compiling kernels.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help