From: apawar.linux@gmail.com (Abhijit Pawar)
To: kernelnewbies@lists.kernelnewbies.org
Subject: no files can be opened in a C program
Date: Mon, 25 Jul 2011 18:05:29 +0530 [thread overview]
Message-ID: <4E2D6311.9040006@gmail.com> (raw)
In-Reply-To: <CAP+Vj-XUx0pYAdaQKEkGEhQRTxVdMwPwXg8m-54hcrzZ1hw9pA@mail.gmail.com>
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?
> On Mon, Jul 25, 2011 at 5:18 PM, Anuz Pratap Singh Tomar
> <chambilkethakur at gmail.com <mailto:chambilkethakur@gmail.com>> wrote:
>
>
>
> On Mon, Jul 25, 2011 at 12:31 PM, Venkateswarlu P
> <p.venkatesh551 at gmail.com <mailto:p.venkatesh551@gmail.com>> wrote:
>
>
> What is the Max no of files that can be opened simultaneously
> within a Single C program.
>
> i want this information for kenel compilation
>
>
> See man 3 setrlimit
> Total number of files that can be opened should depend on file system.
> And what this has to do with kernel compilation?
>
>
>
>
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> <mailto:Kernelnewbies@kernelnewbies.org>
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> <mailto:Kernelnewbies@kernelnewbies.org>
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Regards,
Abhijit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110725/f1f0846a/attachment-0001.html
next prev parent reply other threads:[~2011-07-25 12:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-25 11:31 no files can be opened in a C program Venkateswarlu P
2011-07-25 11:48 ` Anuz Pratap Singh Tomar
2011-07-25 11:59 ` Naveen Kumar
2011-07-25 12:35 ` Abhijit Pawar [this message]
2011-07-25 15:50 ` Dave Hylands
2011-07-26 4:29 ` Abhijit Pawar
2011-07-26 4:41 ` Manish Katiyar
2011-07-26 4:52 ` Manish Katiyar
2011-07-26 5:05 ` Abhijit Pawar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E2D6311.9040006@gmail.com \
--to=apawar.linux@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.