Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.os.linux.development.system > #442

Re: System call to get number of open file descriptors in some process

From Alex Vinokur <alex.vinokur@gmail.com>
Newsgroups comp.os.linux.development.system
Subject Re: System call to get number of open file descriptors in some process
Date 2012-07-01 23:04 -0700
Organization http://groups.google.com
Message-ID <921a0dc0-ea3e-4bbc-a23c-656233dae0a4@m10g2000vbn.googlegroups.com> (permalink)
References <66ad4116-0410-48ca-a5dc-02162654ad09@k5g2000vbf.googlegroups.com> <bcc37a49-dcea-40e5-b581-fc60765ab1bc@a16g2000vby.googlegroups.com>

Show all headers | View raw


On Jul 2, 8:37 am, Alex Vinokur <alex.vino...@gmail.com> wrote:
> On Jul 2, 7:50 am, Alex Vinokur <alex.vino...@gmail.com> wrote:
>
> > Hi,
>
> > Linux 2.6.18
> > Is there any system call to get number of open file descriptors in
> > some process?
>
> > Thanks
> > is /proc/<pid>/fd | wc -l
>
> But it is not system call.

ls /proc/<pid>/fd | wc -l

Back to comp.os.linux.development.system | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

System call to get number of open file descriptors in some process Alex Vinokur <alex.vinokur@gmail.com> - 2012-07-01 21:50 -0700
  Re: System call to get number of open file descriptors in some process Alex Vinokur <alex.vinokur@gmail.com> - 2012-07-01 22:37 -0700
    Re: System call to get number of open file descriptors in some process Alex Vinokur <alex.vinokur@gmail.com> - 2012-07-01 23:04 -0700
    Re: System call to get number of open file descriptors in some process John Reiser <jreiserfl@comcast.net> - 2012-07-02 08:04 -0700

csiph-web