Helpful system calls.

2007-12-25 10:22:00

Hi,

        I was looking for a functions to find no of open files.

Well, for the same process I had to finally do it by getting the current

limit on the number of file descriptors,

( getrlimit(RLIMIT_NOFILE, (* (struct rlimit)) ), and then looping

that many number of times through fstat.

thanks and regds,

Atish

  

#..........................................................................#

>From : Atish Datta Chowdhury

       Oracle Software Development Centre

       India Development Centre

       150 Embassy Point

       Bangalore 560001

Telephone: (080) 2256099 Extn:496

e-mail: achowdhu@in.oracle.com

#..........................................................................#

          

 

Comments

Got something to say?

You must be logged in to post a comment.